Author Topic: uses MSVCR70  (Read 6195 times)

Offline juli

  • Single posting newcomer
  • *
  • Posts: 5
uses MSVCR70
« on: June 27, 2008, 09:39:03 pm »
hello

    it appears that codeblock uses msvcrt.dll as default,  how do i switch it to use MSVCR71.DLL

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: uses MSVCR70
« Reply #1 on: June 28, 2008, 04:05:19 am »
hello

    it appears that codeblock uses msvcrt.dll as default,  how do i switch it to use MSVCR71.DLL

The above is misleading; Code::Blocks uses mingwm10.dll which uses msvcrt.dll.

Note, some non official builds of MinGW-Like GCC links mingwm10.dll to MSVCR71.DLL.

See Python language builds like http://www.develer.com/oss/GccWinBinaries

Tim S

C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline juli

  • Single posting newcomer
  • *
  • Posts: 5
Re: uses MSVCR70
« Reply #2 on: June 28, 2008, 05:04:18 am »

 Here is my real problem ...

        I would build my program inside windows and it would work fine on one computer, but it would crash at another, the only thing that's really different are the dlls,  i read that the  microsoft periodically update msvcrt.dll which means one version could be different from another,  so an alternative would be if I just supply my own msvcr71.dll with my distribution , since mingw uses msvcrt.dll, i guess there's really no way around this problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: uses MSVCR70
« Reply #3 on: June 28, 2008, 05:12:49 am »
Are you suppling mingwm10.dll with your code? if not, then that is most likely causing the problem.
Why do you think msvcrt.dll is related to the cause of the problem?

You are using MinGW GCC to compile your project, right?

If you are using Visual C++ then the MSVCR71.DLL issue makes sense; are you?

What complier are you using? What version is it?

Tim S
« Last Edit: June 28, 2008, 05:25:58 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline juli

  • Single posting newcomer
  • *
  • Posts: 5
Re: uses MSVCR70
« Reply #4 on: June 29, 2008, 02:40:36 am »
No

     I didn't include mingwm10.dll, I'll give that a try,  where exactly is that?
and yes, i am using gcc and therefore i shouldn't worry about msvcr71.dll, I was a little confused, cus I saw msvcrt.dll inside dependency walker
« Last Edit: June 29, 2008, 02:53:47 am by juli »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: uses MSVCR70
« Reply #5 on: June 29, 2008, 02:55:01 am »
No

     I didn't include mingwm10.dll, I'll give that a try,  where exactly is that?
and yes, i am using gcc and therefore i shouldn't worry about msvcr71.dll, I was a little confused, cus I saw msvcrt.dll inside dependency walker

MinGW uses msvcrt.dll because it is considered part of the operating system, so should always be on the PC.
Some PC have msvcr71.dll some don't.

Always include the version of MinGW mingwm10.dll that is in the bin folder for the Compiler.
Place it in the same folder as the executable.
Note, including an newer MinGW mingwm10.dll DLL is supposed to work, but it might not sometimes.
An older one never works for me.

Tim S
« Last Edit: June 29, 2008, 02:57:30 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline juli

  • Single posting newcomer
  • *
  • Posts: 5
Re: uses MSVCR70
« Reply #6 on: June 29, 2008, 06:59:30 am »
hello

      thank you very much for all your suggestions, as it turned out, it was a problem with the windows registry that was some how messed up, when i was making my installer, I didn't remove many of the necessary stuff and when i cleaned it all up, it seemed to work again, but i'm not exactly sure how to manipulate the registry directly with code, so that's what i'll work towards, 

    as for mingwm10.dll, i definitely didn't include that , but all the computers i ran on already has code block, so i'll definitely also need it,

thank you