Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create DLL using visual C++ for visual foxpro
Message
 
To
07/09/1998 22:26:07
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00133927
Message ID:
00133961
Views:
9
>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 ---
    +++ Rick ---

    West Wind Technologies
    Maui, Hawaii

    west-wind.com/
    West Wind Message Board
    Rick's Web Log
    Markdown Monster
    ---
    Making waves on the Web

    Where do you want to surf today?
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform