Question regarding Visual Basic.

Started by
0 comments, last by caffeineaddict 21 years, 1 month ago
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.
Advertisement
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]
Patrick

This topic is closed to new replies.

Advertisement