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. OpenDocumentFile(NULL) has problem

OpenDocumentFile(NULL) has problem

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpannouncementworkspace
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.
  • B Offline
    B Offline
    blongtq
    wrote on last edited by
    #1

    Hello all, I have a big problem and I don't know why. Here is my problem: I have a large project with unicode supported. When I build it as Debug configuration, everything is OK and my app runs correctly. When I build it as Release configuration, the linker complains: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library. I ignore these warnings and try to run my app. Then, my app hangs when calling OpenDocumentFile(NULL). I really don't know why the linker uses *d.lib during the linking process. After that I use /NODEFAULTLIB to ignore these lib and the linker complain again: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library I ignore these warning and try to run my app. Then, my app cause a DEBUG ASSERTION. It is so STRANGE because I build my app under Release mode. Please give me some ideas. Thanks in advance.

    N 1 Reply Last reply
    0
    • B blongtq

      Hello all, I have a big problem and I don't know why. Here is my problem: I have a large project with unicode supported. When I build it as Debug configuration, everything is OK and my app runs correctly. When I build it as Release configuration, the linker complains: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library. I ignore these warnings and try to run my app. Then, my app hangs when calling OpenDocumentFile(NULL). I really don't know why the linker uses *d.lib during the linking process. After that I use /NODEFAULTLIB to ignore these lib and the linker complain again: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification LINK : warning LNK4098: defaultlib "mfc42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42u.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library I ignore these warning and try to run my app. Then, my app cause a DEBUG ASSERTION. It is so STRANGE because I build my app under Release mode. Please give me some ideas. Thanks in advance.

      N Offline
      N Offline
      Nimmi K R
      wrote on last edited by
      #2

      blongtq wrote:

      LINK : warning LNK4098: defaultlib "mfc42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "mfcs42ud.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library

      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