Hello Guest it is April 19, 2024, 08:31:59 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kareed

Pages: 1
1
Hi Theminor,
Thanks for the help.  I think I have it working.  One line I needed to add to MachDevice.cpp was this

#include <ole2.h>

Thanks again it was really appreciated.

2
Hi Theminor,
Actually the part I am most interested in is the c++ part.  I don't know what I need to do to the c++ plugin files to allow vb access to the functions.  I have all the c++ functions written and working for what I want to do which is to convert the gcode and save it to a new file.  I just want it to return a string or filename to VB.  Essentially your solution I believe will work great using the same vb script for the button and this is where I am stuck.

3
Hi Theminor,
I received a response from someone else and I was informed that the function rs274ngc_open is not available to a plugin.  I guess this explains the error. 

I like you solution and I am trying to go something similar (modifying the gcode).  I have a plugin that does what I want, though I would just like to have it function similarly to yours ie. click the load gcode button and then access the modifying function.  I am however new to c++ and was hoping I could get some help from you in what you put in the plugin to allow access from a script.  If possible could post you what you did.  I am using vs2008 which I believe you were too. 

Thanks for the help.

4
Hi theminor,
Were you able to figure out how to get by the error you were getting in you earlier post

Error 1 error LNK2028: unresolved token (0A000013) "int __cdecl
rs274ngc_open(char const *)" (?rs274ngc_open@@$$FYAHPBD@Z) referenced in
function __catch$?piNotify@@$$FYAXH@Z$0
C:\Users\usrnm\Desktop\tmp\plgn\Plugin.obj

Error 2 error LNK2019: unresolved external symbol "int __cdecl
rs274ngc_open(char const *)" (?rs274ngc_open@@$$FYAHPBD@Z) referenced in
function __catch$?piNotify@@$$FYAXH@Z$0
C:\Users\usrnm\Desktop\tmp\plgn\Plugin.obj

I am getting the same thing and was hoping I could get some help.  I am using the mach3 wizard and vs 2008  also.
Thanks

Pages: 1