User Profile

Collapse

Profile Sidebar

Collapse
mdonders
mdonders
Last Activity: Dec 11 '09, 07:09 PM
Joined: Oct 26 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mdonders
    replied to Char Pointer from C++ DLL
    Okay will give that a shot today.

    Just one question relating to it though -- why doesn't Auto just automatically use Ansi then?...
    See more | Go to post

    Leave a comment:


  • mdonders
    replied to Char Pointer from C++ DLL
    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...
    See more | Go to post

    Leave a comment:


  • mdonders
    replied to Char Pointer from C++ DLL
    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...
    See more | Go to post

    Leave a comment:


  • mdonders
    replied to Char Pointer from C++ DLL
    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....
    See more | Go to post

    Leave a comment:


  • mdonders
    started a topic Char Pointer from C++ DLL

    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:"};
    ...
    See more | Go to post
No activity results to display
Show More
Working...