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

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


win32s and 4.1

Graham Stalker-Wilde -- GSTALKER@CSFBG.CSFB.COM
Monday, July 22, 1996

Environment: VC 4.1, VC 1.52, Win 3.1

I understand that VC 4.2 does not support Win32s,
but I have an application I built (compiled and linked) with 4.1.
(with MFC) It worked fine under Win3.1 (It doesn't do any fancy
Win32 stuff, just some new common cotrols). At least it worked on
one machine. Then I installed VC 1.52, and it wont load. All I
get is:

"Win32s - Error
Initialization of a dynamic link library failed.
The process is terminating abnormally."
and
"Application -Execution Error
Unexpected DOS Error: 21."

Same problem if I try it on other machines.
Honest, it did run under 3.1!!

I have reinstalled win32s from theVC 4.1 win32s
and from PW1118.exe. No luck. I have tried every version
of MSVCRT40.dll I can find. No luck.
I noticed the win32s.ini after installing from the 4.1 CD says
version 1.1.0.0 , surely that aint true?

Anyone else had this problem? I'm linking statically to the MFC
libraries.

-Graham





Eric Merrill -- ericm@reell.com
Friday, July 26, 1996

[Mini-digest: 3 responses]


 > From: GSTALKER@CSFBG.CSFB.COM

 > Anyone else had this problem? I'm linking statically to the MFC 
libraries.

Try linking dynamically, if you want to run under Win32s.


Eric Merrill
ericm@reell.com
-----From: Frank Froelich 

Graham,

When my customers report error 21 they are using an earlier
version of Win32s than I require. Try one of the later versions
(1.25 or 1.3).

Frank

-----From: Hugh Robinson 

I have not had this message in the circumstances which you describe, but   
I have had just that error message with VC 4.1 running on Windows 3.11. I   
got the message when I linked my app with MFC statically and I   
accidentally linked a third party library dynamically with MFC. When I   
linked the third party library statically with MFC, it worked OK. Maybe   
that means I have two copies of MFC linked in, mind you...

I have been linking my program (and the static version of MFC which I   
created) to the single-threaded version of the runtime library (under   
Build|Settings, C++ tab, Code Generation option) as I read that Win32s   
does not support multithreading, which makes sense as for 3.x.

Hugh Robinson
hugh@ssihou.ssii.com



Rommel Songco -- rsongco@spectrasoft.com
Wednesday, July 31, 1996

[Mini-digest: 3 responses]

I'm also writing a program under Visual C++ 4.1 that runs on all
Windows platforms -- Win 3.1, Win 95 and Win NT.  I use Win32s on
the 3.1 machine.  The program looks good enough on all platforms
except for the CEdit controls.  I subclassed CEdit to customize
its behavior.  My edit boxes are smaller than the usual (20 pixels
in height).  The problem is that on Win 3.1, the text in the 
edit box is not centered vertically, meaning it appears at a fixed
offset from the top margin of the edit box.  Thus the text is
cut off at the bottom.  On Win 95, the edit box looks fine since
the text is centered.  Anyone else had this problem before?  How
can I explicitly center the text vertically?

TIA.

Regards,
Rommel Songco
rsongco@spectrasoft.com
-----From: Tony Goodhew 

I just finished an app in VC 4.1 under Win32s which linked statically =
and I had no problems. The only thing I could recommend is that you use =
Win32s 1.30c

TonyG

-----From: Frank Froelich 

Graham,

When my customers report error 21 they are using an earlier
version of Win32s than I require. Try one of the later versions
(1.25 or 1.3).

Frank

-----From: Hugh Robinson 

I have not had this message in the circumstances which you describe, but =
 =20
I have had just that error message with VC 4.1 running on Windows 3.11. =
I  =20
got the message when I linked my app with MFC statically and I  =20
accidentally linked a third party library dynamically with MFC. When I   =

linked the third party library statically with MFC, it worked OK. Maybe  =
=20
that means I have two copies of MFC linked in, mind you...

I have been linking my program (and the static version of MFC which I  =20
created) to the single-threaded version of the runtime library (under  =20
Build|Settings, C++ tab, Code Generation option) as I read that Win32s   =

does not support multithreading, which makes sense as for 3.x.

Hugh Robinson
hugh@ssihou.ssii.com


-----From: David Wine 

Check the version of Win32s you are running.  You may have inadvertently
changed it to an earlier version.




Pete Chestna -- pchestna@highground.com
Monday, August 05, 1996

What you need to do is override the OnInitDialog method and set a new font
into all of the controls.  It was trial and error to find the correct point
size, but thats how you need to do it.

If you are using a CFormView (God help you!!!), you have to do some pretty
funky stuff to actually get the WM_INITDIALOG. If you need it, let me know.

Pete

At 12:30 PM 7/31/96 +0800, you wrote:
>[Mini-digest: 3 responses]
>
>I'm also writing a program under Visual C++ 4.1 that runs on all
>Windows platforms -- Win 3.1, Win 95 and Win NT.  I use Win32s on
>the 3.1 machine.  The program looks good enough on all platforms
>except for the CEdit controls.  I subclassed CEdit to customize
>its behavior.  My edit boxes are smaller than the usual (20 pixels
>in height).  The problem is that on Win 3.1, the text in the 
>edit box is not centered vertically, meaning it appears at a fixed
>offset from the top margin of the edit box.  Thus the text is
>cut off at the bottom.  On Win 95, the edit box looks fine since
>the text is centered.  Anyone else had this problem before?  How
>can I explicitly center the text vertically?
>
>TIA.
>
>Regards,
>Rommel Songco
>rsongco@spectrasoft.com
>-----From: Tony Goodhew 
>
>I just finished an app in VC 4.1 under Win32s which linked statically =
>and I had no problems. The only thing I could recommend is that you use =
>Win32s 1.30c
>
>TonyG
>
>-----From: Frank Froelich 
>
>Graham,
>
>When my customers report error 21 they are using an earlier
>version of Win32s than I require. Try one of the later versions
>(1.25 or 1.3).
>
>Frank
>
>-----From: Hugh Robinson 
>
>I have not had this message in the circumstances which you describe, but =
> =20
>I have had just that error message with VC 4.1 running on Windows 3.11. =
>I  =20
>got the message when I linked my app with MFC statically and I  =20
>accidentally linked a third party library dynamically with MFC. When I   =
>
>linked the third party library statically with MFC, it worked OK. Maybe  =
>=20
>that means I have two copies of MFC linked in, mind you...
>
>I have been linking my program (and the static version of MFC which I  =20
>created) to the single-threaded version of the runtime library (under  =20
>Build|Settings, C++ tab, Code Generation option) as I read that Win32s   =
>
>does not support multithreading, which makes sense as for 3.x.
>
>Hugh Robinson
>hugh@ssihou.ssii.com
>
>
>-----From: David Wine 
>
>Check the version of Win32s you are running.  You may have inadvertently
>changed it to an earlier version.
>
>
---
"To you -- is it movement or is it action?       Peter J. Chestna
 It is contact or just reaction?                 HighGround Systems
 And you -- revolution or just resistance?       PChestna@highground.com
 Is it living, or just existence?" - RUSH        (508) 263-5588 x.125





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