Okay will give that a shot today.
Just one question relating to it though -- why doesn't Auto just automatically use Ansi then?...
User Profile
Collapse
-
The return value of the function is the number of bytes received from the product. I put that value into a messageBox and it displays "22 bytes received" so I think it MAY be working although I am still getting no movement.
Here is the exact text from the function:
"cmd" - Pointer to a null-terminated string that contains on or more commands. Commands must be separateed with a carriage return of colon. The...Leave a comment:
-
Well the function returned a value of 22 (bytes sent to the controller), but I still got no motion from the controller.
BTW when I send the command its supposed to make the arm attached to the controller move a certain distance with specified acceleration and speed.
My thought is that the command was actually sent and received by the controller (all 22 bytes of it), but the pointer to the null terminated string is not...Leave a comment:
-
So would I just add a \0 to the end of my string to null-terminate it?
If its that easy that would be awesome.
Thanks in advance....Leave a comment:
-
Char Pointer from C++ DLL
I recently converted my application into C# as VS2008 does not support new Data Sources (?!), but now I am stuck on one command from the old DLL.
Here is the old function declaration and command that worked in C++:
...Code:typedef short(*pfunc2)(short address, LPSTR cmd, short irqnum); pfunc2 pfSendAT6400Block = (pfunc2)GetProcAddress(hndl, "SendAT6400Block"); char *testCommands[258] = {"A100:V50:D254000:GO1:"};
No activity results to display
Show More
Leave a comment: