CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Location
    Poland
    Posts
    3

    problems with calling DLL

    hello,
    Visual C++ .NET
    I have a problem with calling my dll from other file. I use static linking, I can obtain .dll and .lib file, .lib file is included to project. When I debbug my calling file, I can see that my .dll is not loaded to project.
    I use command:
    extern "C" __declspec(dllimport)void myfun(int& Ck)

    What is wrong? For what should I pay attention ?

    How can I check in Visual C++ .NET - how dll function is exported?

  2. #2
    Join Date
    Feb 2002
    Posts
    5,757
    One solution is dllexport.

    extern "C" __declspec(dllexport) void myfun(int& Ck);

    Here is one tutorial to basic DLL.

    http://www.flipcode.com/tutorials/tut_dll01.shtml

    Kuphryn

  3. #3
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882
    Can you include the project.
    Regards,
    Ramkrishna Pawar

  4. #4
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    [Moved thread]

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