Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Visual basic with the C++ DLLs

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
4 postsPage 1 of 1
4 postsPage 1 of 1

Visual basic with the C++ DLLs

Post by arobo88 » Wed Dec 02, 2009 5:31 am

Post by arobo88
Wed Dec 02, 2009 5:31 am

Has anyone been able to use Visual Basic with the C++ DLL to control anything?
Has anyone been able to use Visual Basic with the C++ DLL to control anything?
arobo88
Robot Builder
Robot Builder
Posts: 9
Joined: Wed Dec 02, 2009 5:26 am

Post by PedroR » Wed Dec 02, 2009 1:27 pm

Post by PedroR
Wed Dec 02, 2009 1:27 pm

I haven't heard about that.

However it should be possible since they are C style DLLs. (provided you write the function definitions yourself)

If you're running VB6 or earlier the only thing is that the DLL needs to be compiled with STDCALL standard and not the CDECL standard.
Info and workarounds for that are available here http://support.microsoft.com/kb/153586

For VB.Net I am not sure but I believe it should also be possible and most likely this limitation of calling conventions does not apply.
I haven't heard about that.

However it should be possible since they are C style DLLs. (provided you write the function definitions yourself)

If you're running VB6 or earlier the only thing is that the DLL needs to be compiled with STDCALL standard and not the CDECL standard.
Info and workarounds for that are available here http://support.microsoft.com/kb/153586

For VB.Net I am not sure but I believe it should also be possible and most likely this limitation of calling conventions does not apply.
PedroR
Savvy Roboteer
Savvy Roboteer
Posts: 1199
Joined: Mon Jun 16, 2008 11:07 pm

Re: Visual basic with the C++ DLLs

Post by roboard » Fri Mar 05, 2010 2:34 am

Post by roboard
Fri Mar 05, 2010 2:34 am

arobo88 wrote:Has anyone been able to use Visual Basic with the C++ DLL to control anything?


The RoBoIO lib for VC2005 has been compiled with STDCALL standard so that ones are able to call RoBoIO lib in VB6 or VB.NET. You can find many tutorials on internet that explain how to call C++ lib with following STDCALL in VB:)
arobo88 wrote:Has anyone been able to use Visual Basic with the C++ DLL to control anything?


The RoBoIO lib for VC2005 has been compiled with STDCALL standard so that ones are able to call RoBoIO lib in VB6 or VB.NET. You can find many tutorials on internet that explain how to call C++ lib with following STDCALL in VB:)
roboard
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am

Visual Basic with C++ DLLs

Post by arobo88 » Fri Mar 05, 2010 6:23 am

Post by arobo88
Fri Mar 05, 2010 6:23 am

RoBoard,

Thanks

arobo88
RoBoard,

Thanks

arobo88
arobo88
Robot Builder
Robot Builder
Posts: 9
Joined: Wed Dec 02, 2009 5:26 am


4 postsPage 1 of 1
4 postsPage 1 of 1