CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    4

    Post combined console32 app and MFC

    Hi Again,
    If I had a previous application that was created as console32 exe with MFC support.
    and I want to call to some functions implemented within that application, from my MFC GUI application.

    I do not want to take all the files and build then within my MFC application (to many files and mosts are connected to each other).
    On the other hand, combine this project to my MFC project (as active) will be great but i fail to do that (maybe because the other main() function of the exe application??).

    I tried to take the .obj of that console app (without the obj with the main()).
    and it works but is it the right way ??

    Thanks
    Yossi

  2. #2
    Join Date
    Mar 2005
    Location
    Romania,Cluj-Napoca
    Posts
    1,073

    Re: combined console32 app and MFC

    Well it's really hard to say what you could do whithout more information ...perhaps you could modify you consol application and put the important things in a static library ( lib ) or in a dynamic library ( dll ) and in this case you will have to do some modifications on your consol app. as well ... but this is just a suggestion ...

    Regards,
    Gili
    Please use code tags [code] [/code]

    We would change the world, but God won't give us the sourcecode..
    Undocumented futures are fun and useful....
    ___
    ______
    Gili

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