Hello Guest it is April 23, 2024, 02:28:56 AM

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 - aAndy

Pages: 1
1
General Mach Discussion / Re: Unable to open ProbeDiag.dat Error=11
« on: November 29, 2016, 01:07:41 PM »
Hi,

I had the same problem.   There was an access lock on the c:\Mach3\ProbeDiag.txt file and it prevented Mach3 from opening.

I deleted the c:\Mach3\ProbeDiag.txt file and Mach3 was able to open and run again.

Andy

2
So to remind myself when I need to fix this issue in 2 or 3 years, or to help anyone else who stumbles upon it...

In MachDevImplementation.h, I had to add:

typedef void (_cdecl *VoidShortBool) ( short, bool );   
 // and
extern VoidShortBool      SetLED;       // bool   SetLED( short code, bool value );

After that, I was able to use this successfully: 
        SetLED(1011, true); 


USER LEDs have an allowable range 1000-2255 

Andy

3
Hi!

I am having problems with a plugin I am writing too.  

In VS2003 I can successfully call:
 SetDRO( #, val);
double dbl = GetDRO(#);
bool bol = GetDRO(#);

However, if I try:
SetLED(#,1);
It errors out saying: c:\Mach3\PlugIns\Devel\MachDevImplementation.cpp(795): error C3861: 'SetLED': identifier not found, even with argument-dependent lookup

Which is weird since it is listed in MachDevice.cpp (along with the other ones):

//System Varibles
CXMLProfile        *DevProf;
OneShort           DoButton;     // void DoButton( code )
DoubleShort        GetDRO;       // Double GetDRO( code )
VoidShortDouble    SetDRO;       // void   SetDRO( short code, double value);
BoolShort          GetLED;       // bool   GetLED( short code );
VoidShortBool      SetLED;       //SetLED Fucntion
CSTRret            GetProName;   // CString GetProName()
VoidLPCSTR         Code;         // void    Code( "G0X10Y10" );
IntShort           GetMenuRange;



Any thoughts?


And I did try adding those 2 keys to my registry and restarting... no dice.

Thanks,
Andy


  


Pages: 1