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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Using VC++6 .dll and .lib in VC.NET

Using VC++6 .dll and .lib in VC.NET

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++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.
  • F Offline
    F Offline
    Freddie Code
    wrote on last edited by
    #1

    Need help with using VC++6 .dll and .lib with VC.NET. I add the .dll and .lib to the Linker option and #include a .h file that has the function definitions. Seems that the functions in the .dll and .lib are found by the compiler and linker but VC.NET does not like something about the way they are formatted??? Is there something new in VC.NET that I'm missing? These .dll and .lib files work perfect in VC++6. Thanks.:((:(:

    A 1 Reply Last reply
    0
    • F Freddie Code

      Need help with using VC++6 .dll and .lib with VC.NET. I add the .dll and .lib to the Linker option and #include a .h file that has the function definitions. Seems that the functions in the .dll and .lib are found by the compiler and linker but VC.NET does not like something about the way they are formatted??? Is there something new in VC.NET that I'm missing? These .dll and .lib files work perfect in VC++6. Thanks.:((:(:

      A Offline
      A Offline
      Anthony_Yio
      wrote on last edited by
      #2

      For compile error that you will face in VC7, VC7 has a updated version of STL and stronger type checking. Do expect some compile errors like type checking error, STL related errors and etc. But it should be obvious and easy to fix. For linker error that you will face, As you know that VC 7 uses upgraded version of STL and other CRT. Do expect some function conflicts or incompatible problem during linkage stage. Theoritically, a updated STL should work with lower version but not in this case. Other than this problem, you will face another error like fatal error LNK1235: corrupt or invalid COFF symbol table. Linker error that relate to COFF. COFF symbol table is not generated in earlier version of Visual C++ compiler as the /clr switch is not exist at that time. The quick fix for this is to recompile your VC6 lib to reproduce a newer one with VC.NET. Other than that, what I think of is not to use the lib in VC.NET. Sonork 100.41263:Anthony_Yio

      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