Archived

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

caffeineaddict

Question regarding Visual Basic.

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