CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Italy
    Posts
    39

    How to create a DLL

    Hi,
    I want to put my functions myFunc1(), myFunc2(),... into a DLL.
    I wrote the code for all of them in myfunc.c file, but I don't know how to create a myfunc.dll which should contain my functions.
    Can you help me?

    Thanks in advance.
    Antonio.

    _______

  2. #2
    Join Date
    May 1999
    Posts
    30

    Re: How to create a DLL

    from VC
    File->New
    Projects Tab
    enter name for project
    select MFC appwizard dll
    OK
    add your .c file to project
    add this line to each function that you want exported
    extern "C" __declspec( dllexport )
    compile.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured