possible to provide VB app access to VC++ dll?
-
Hi, Thank you for stopping by. I have a number of dlls written for VC++ 6 and I have been asked to make them available to a VB app (perhaps in the form of a .def file). I would be very grateful to know what or how to go about doing this. Any pointers would be much appreciated - the possibility of PAID work after so long is certainly a good incentive - I am sure you understand. Please note that I am a VC++ programmer on version 6. I have yet to transition to .NET. Thanks Michael
-
Hi, Thank you for stopping by. I have a number of dlls written for VC++ 6 and I have been asked to make them available to a VB app (perhaps in the form of a .def file). I would be very grateful to know what or how to go about doing this. Any pointers would be much appreciated - the possibility of PAID work after so long is certainly a good incentive - I am sure you understand. Please note that I am a VC++ programmer on version 6. I have yet to transition to .NET. Thanks Michael
Assuming the functions/classes in the C++ are exported, why not just add
Declare Function **NameOfFunction** Lib "**NameOfLib**" (**ParameterList**) As **ReturnType**
to the top of your VB modules? -
Assuming the functions/classes in the C++ are exported, why not just add
Declare Function **NameOfFunction** Lib "**NameOfLib**" (**ParameterList**) As **ReturnType**
to the top of your VB modules?Hi David, Thank you for responding. I have never produced a dll so I am completely ignorant of the terms, which I know is going to make this coding difficult. I guess I will have to go away and get familiar with how dlls are coded and generally fiddle around with them, since at this point I don't even know what 'exported' means. At least you have given me a starting point and thanks for that. Thanks Michael
-
Hi David, Thank you for responding. I have never produced a dll so I am completely ignorant of the terms, which I know is going to make this coding difficult. I guess I will have to go away and get familiar with how dlls are coded and generally fiddle around with them, since at this point I don't even know what 'exported' means. At least you have given me a starting point and thanks for that. Thanks Michael
Check out the web site below Calling DLL Functions from Visual Basic Applications http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_calling_dll_functions_from_visual_basic_applications.asp
-
Check out the web site below Calling DLL Functions from Visual Basic Applications http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_calling_dll_functions_from_visual_basic_applications.asp
Excellent resource. Thank you so much! I think this will do it. Thanks again. You are a star! Michael