Archived

This topic is now archived and is closed to further replies.

Question regarding Visual Basic.

This topic is 5404 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering if it was possible to have C++ functions to be able to be used in anyway in Visual Basic. There''s a game that I just got that has a C++, Header file and .obj file to let you do various things with the game. I am wanting to use Visual basic to use this functionality in some way, by DLL or anything, does anyone know of a way? Thank you in advance.

Share this post


Link to post
Share on other sites
quote:
Original post by caffeineaddict
I was wondering if it was possible to have C++ functions to be able to be used in anyway in Visual Basic. There's a game that I just got that has a C++, Header file and .obj file to let you do various things with the game. I am wanting to use Visual basic to use this functionality in some way, by DLL or anything, does anyone know of a way? Thank you in advance.


Make the C++ functions into a DLL and you can call the functions from VB.

Take this call for example:
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long 


it make call to the function GetCurrentProcessId which is held in kernal32.dll

[edited by - prh99 on March 2, 2003 3:24:58 AM]

Share this post


Link to post
Share on other sites