Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. another quesion about regular dll

another quesion about regular dll

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gucy
    wrote on last edited by
    #1

    i create a regular dll named MyDll using MFC, i want the dll popup a dialg in the beginning of the function CMyDllApp::InitInstance() ,just as i did in my exe. but here caused serious error in wincore.cpp (line:884) BOOL CMyDllApp::InitInstance() { // TODO: Add your specialized code here and/or call the base class CDlg dlg; dlg.DoModal(); return CWinApp::InitInstance(); } who can tell me what's wrong to my program? gucy

    D 1 Reply Last reply
    0
    • G gucy

      i create a regular dll named MyDll using MFC, i want the dll popup a dialg in the beginning of the function CMyDllApp::InitInstance() ,just as i did in my exe. but here caused serious error in wincore.cpp (line:884) BOOL CMyDllApp::InitInstance() { // TODO: Add your specialized code here and/or call the base class CDlg dlg; dlg.DoModal(); return CWinApp::InitInstance(); } who can tell me what's wrong to my program? gucy

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      gucy wrote: i create a regular dll named MyDll using MFC... If by "regular dll" you mean a non-MFC DLL, this is rather contradictory, don't you think? gucy wrote: who can tell me what's wrong to my program? I would guess that it's too early to be calling such functions. The DLL is not fully initialized at this point, and something within CDialog requires the DLL to be up and ready to go.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups