Skip to main content
gamedev.net
🔒 Locked

Question regarding Visual Basic.

Started by caffeineaddict Mar 1, 2003 at 8:36 PM 0 replies 250+ views
Original Post
caffeineaddict
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.
prh99
prh99
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.