Creating a DLL
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Creating a DLL

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Creating a DLL

    hi guys,

    I wanna create a DLL from my C++ program.
    My output of my C++ program is a text file called Centre_Cartouche.txt
    My output is two text files called brd.txt and sym.txt

    At the beginning my program was just a main which contains all development (Main.cpp)

    Now I created function (in _Cartouche.h and _Cartouche.cpp).

    My debugger tell me that the simulation works.
    But my file Centre_Cartouche.txt is not create.
    How could I do please? It's really urgent for me

    Best regards

    _Cartouche.cpp_Cartou.hbrd.txtsym.txt

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,877

    Re: Creating a DLL

    If this really urgent for you, you could try to explain your problem much better.

    My output of my C++ program is a text file called Centre_Cartouche.txt
    My output is two text files called brd.txt and sym.txt
    What does it have to do with your problem?

    My debugger tell me that the simulation works.
    What is simulation, and what does it have to do with your problem?

    But my file Centre_Cartouche.txt is not create.
    Did you make sure the code that creates this file really executes? Did you debug your code?

    EXE and DLL have the only one most significant difference: Windows loader automatically calls main() when loading EXE, while with DLL it calls DllMain(). Besides, DllMain() is not intended for code execution in the sense how it goes with EXE's main(). DLL is a bunch of functions that have to be called explicitly by other modules, EXE or DLL.
    Best regards,
    Igor

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center