Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello dears

i want call a function that i write in vb6 from vc6

for example my function is:

public sub Hello_Example()
msgbox "hello"
end sub


and in vc6 i call this function

thank you very much
Posted
Comments
Mohibur Rashid 29-Jan-12 9:31am    
try with LoadLibrary and GetProcAddress functions
Sergey Alexandrovich Kryukov 29-Jan-12 13:32pm    
Keep using VB6, and you will never get out of troubles. It's too much obsolete and never was any good, time to move on.
--SA

1 solution

You can use VB6 to produce a COM DLL or COM EXE. You can then use the standard COM API[link] to create and manipulate your classes.

As SAKryukov said though, it might just be easier to move away from VB6
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900