>hi,
>Since i want to interface lowel langauge with visual foxpro, i need to build a DLL libraries which can using by visual foxpro.
>i have a problem to build a DLL libraries by using MS Visual C++ 5.0, since i have a source code written in turbo C language and also assembly language.The another problem is i'm not familiar to using visual c++ 5.0, anyone familiar to visual c++ programming ? Can you show me the way to build a DLL libraries by using visual C++5.0.
The VC++ Project Wizard will do most of the work for you. DLLs are easy to
write. Really it's just functions that use a certain calling convention.
All functions need to be:
< UL>
Declared as exportable (you can use the WINAPI) macro as in: DWORD WINAPI CallDllFunct(DWORD dwParm) {
/// C code here
return 0;
}
Each and every method you export needs to be marked
as exportable in the .DEF file. VC++ creates a default
file for you - just add any functions into it.
< /ul>
If you're interested in interfacing VFP COM objects with VC++
check out the VC++ VFP COM article on my Web site:
http://www.west-wind.com/articles.htm
+++ Rick ---