15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


running 32 bit mfc app on win32s

Mats Mеnhav -- manhav@connectum.skurup.se
Wednesday, May 22, 1996

-- [ From: Mats Manhav * EMC.Ver #2.5.02 ] --

MSVC 4.1 NT / 95 / 3.11

I have a 32 bit application that I want to run on 3.11 as well.

When I try to load I get an error saying that 
"the current version of MSVCRT40.dll is not compatible with Win32s"

How do I find out what functions I (implicitly through MFC or explicitly)
use that makes it impossible to run on Win32s ?

Mats


--
==========================================================================
Mats Mеnhav (Mats Manhav for 7-bit people)
email:manhav@connectum.skurup.se   WWW: http://connectum.skurup.se/~manhav
FAX:  (int) 46 (0) 414 243 05      Phone: (int) 46 (0) 414 243 05         
==========================================================================




Don.Irvine@net-tel.co.uk
Tuesday, May 28, 1996

[Mini-digest: 10 responses]

> I have a 32 bit application that I want to run on 3.11 as well.
> 
> When I try to load I get an error saying that 
> "the current version of MSVCRT40.dll is not compatible with Win32s"
> 
> How do I find out what functions I (implicitly through MFC or explicitly)
> use that makes it impossible to run on Win32s ?

Extract from \msdev\redist\redistrb.wri:

"Note: MSVCRT40.DLL has the same name in WIN32S and VC++4.0. They are diffent
files and you must redistribute the proper matching file for the intended
target (Win32 or Win32s).  Also, different versions of CTL3D32.DLL are
required for Windows NT and Windows 95.  Please be sure you are installing
the correct version on each operating system."

Hope this helps,

Don
-----From: Andi Giri 

Hello

I think this problem is more due to incompatibility between your versions
of Visual C++ and Win32s than individual function calls in your code.
Use the Win32s which came with your Visual C++ CD.

Andi
-----From: Ola Strandberg 

Link with the single-threaded version of the MFC DLLs and you're set. Win32s
can not handle multi-threaded applications (the default for AppWizard
generated apps)

--
Ola Strandberg, Systems Developer
PharmaSoft AB, Box 1237, S-754 51 Uppsala, Sweden
http://www.pharmasoft.se/
Tel: +46 18 185459 Fax: +46 18 109200

-----From: beriksen@cda.com

     You need the version of the dll in :\win32s\redist.
     
     Brian Eriksen
     CDA/Wiesenberger
     beriksen@cda.com

-----From: Dmitry Zinchenko 

Hi !

I'm not certain what is your problem, but when we've tried to run
our MFC 4.0 application under Win 3.11 he had a number of problems.
Some problems we have solved. I wanna give you some tips, which I hope
will help you.

1. You have to have Win32s version 1.3 or later.
2. You are not allowed to use multithreading in your code.

Take care, zidi.
--
When a man has no longer any conception of excellence above
his own, his voyage is done, he is dead.

                        Henry Ward Beecher (USA, 1813-1887)
-----From: Ron Forrester 

Just copy the msvcrt40.dll from the VC++ cdrom (win32s/redist) into your =
windows/system directory.=20

This is the only DLL that is different between NT and Win32s.

rjf

-----From: Paul Pettigrew 

I just solved this same problem yesterday.
I don't have the CD with me, but basically there are 2 flavours of this file (yes, with the same name)!
Search for this file on the MSVC++ CD, and you will find two copies of it.
One will be in a "usual" directory, the other will be in a Win32s type directory.
Do this search, and all will be obvious.

--
Paul Pettigrew
chilli@iinet.net.au || pmpet2@mugc.cc.monash.edu.au
http://www.iinet.net.au/~chilli/

-----From: "Peter A. Vanvliet" 

If I am not mistaken, there are two versions of this DLL, as well as other
DLL's that go by the same name, but have different contents(?) from the 32
bit version to the Win32s version. Check the documentation for distributing
MFC DLL's with your application. I found this info when I was perusing the
docs on what DLL's to include in my setup program. It is a nightmare.

Peter

---------------------------------------------------------------------
Peter A. Vanvliet    Houston, Texas    pvanvlie@neosoft.com=20
System Analyst, NanoSoft Corporation (http://www.special-events.com)
HALPC C++ SIG Leader=20
WWW home page (http://www.special-events.com/cppsig)

-----From: coutadeur.f@ccmail.cgi.fr

     
        I don't think this is a question of function. This is a problem of 
     DLL : Your are trying to use the Win NT Dll under Windows 3.11. Check 
     your path ! 
        I had this problem with using old version of Win32s. As Windows NT 
     was in my path , I was using this DLL instead of the Win 3.11 one.
     
        Hope this help,
     
                Fabrice Coutadeur

-----From: Niels Ull Jacobsen 

You'll have to distribute another MSVCRT40.DLL for Win32s. It can be foun=
d in
the Win32s/redist directory on the CD.

>How do I find out what functions I (implicitly through MFC or explicitly=
)
>use that makes it impossible to run on Win32s ?

You can't do anything about it. It's internal to the C runtime library.

Niels Ull Jacobsen, Kr=FCger A/S (nuj@kruger.dk)
Everything stated herein is THE OFFICIAL POLICY of the entire Kruger grou=
p
and should be taken as legally binding in every respect. Pigs will grow
wings and fly.




| Вернуться в корень Архива |