Like Tree1Likes

Visual Studio DLL and Visual Basic

This is a discussion on Visual Studio DLL and Visual Basic within the C Programming forums, part of the General Programming Boards category; Okay. Well, I'm sure that we're set for Win32. Anything else you can think of that would cause it to ...

  1. #16
    Registered User
    Join Date
    Nov 2011
    Posts
    28
    Okay. Well, I'm sure that we're set for Win32. Anything else you can think of that would cause it to work in Windows 7 but not XP and Server 2003? I realize now that the MSVCR80, etc. are runtime libraries. Those shouldn't be causing us any issues.

  2. #17
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by mathguy View Post
    Okay. Well, I'm sure that we're set for Win32. Anything else you can think of that would cause it to work in Windows 7 but not XP and Server 2003? I realize now that the MSVCR80, etc. are runtime libraries. Those shouldn't be causing us any issues.
    You may need to distribute the runtime with the dll, to make sure it's on the target machines.

    (Which is why I gave up on MS compilers long ago... you gotta give out this, include that, share something else... what a pain!)

  3. #18
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,680
    Quote Originally Posted by Codeplug View Post
    To use your VS DLL on other PC's, you'll need to use a release build and make sure the PC has had the VC++ Redistributable Package installed (or link with the CRT statically).
    >> we still have MSVCR80.DLL
    That's the non-debug version (no 'D' at the end), which is good, but you'll have to apply the VC++ Redistributable Package to the target machine to ensure MSVCR80.DLL is in place.

    The alternative is to link with the CRT statically. From the menu:
    Project -> Properties
    select Configuration: "Release"
    select Configuration Properties \ C/C++ \ Code Generation
    set "Runtime Library" to "Multi-threaded (/MT)"
    After that, depends.exe should no longer show MSVCR80.DLL as a dependency.

    If the above doesn't help, we'll need a better description than "it fails".

    gg

  4. #19
    Registered User
    Join Date
    Nov 2011
    Posts
    28
    I have been meaning to get back. I've got it solved and working. It wouldn't have happened without all of your help. Thank you! I truly appreciate the time you all took responding to my questions.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual C++ and Visual Studio 2010
    By 03jh01 in forum C++ Programming
    Replies: 5
    Last Post: 10-03-2010, 04:03 AM
  2. visual studio 6 and visual studio.net difference
    By gemini_shooter in forum Tech Board
    Replies: 5
    Last Post: 02-04-2006, 12:32 AM
  3. Replies: 1
    Last Post: 05-26-2004, 09:59 AM
  4. Replies: 1
    Last Post: 04-20-2002, 06:49 AM
  5. Moving from Visual Basic to Visual C++
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-10-2002, 09:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21