-
Making dll's in C???
Making dll's in C???
I have coded a program in C for displaying bitmap images and i wish to design the GUI for it in VB. Basically i need that File open dialogue that would allow the user to pick the bmp from anywhere on the harddisk. I know that I can port my code to VB by making a dll, but have no clue how to do it. Can anyone help, any links etc would be appreciated...
thanks.
-
A good example can be found here:
http://www.planet-source-code.com/vb...=1005&lngWId=3
Exactly what you need, create a dll with C/C++ and re-use it in Visual Basic.
-
thanx vber, i have coded the dll now. But theres one more problem.. I need to return a string from the dll file to my VB code. All i have been able to do is to return a pointer to the beginning of the string. Any idea how can i actually retrieve the string stored at this starting at this address in VB??