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

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


Porting code (16-32 bits, MFC4.2->MFC4.1/4.0)

Benoit Martin -- ehlija@vircom.com
Friday, January 31, 1997

Environment: VC++4.2b, Win95, MFC4.2

I built an ActiveX control using MFC4.2 libraries.  Now, I would like to
port the code to MFC4.1, so that users of IE3.01 will not need any new dlls.
Is it an easy porting?  I read the "ABCs" of MFC and it mostly seems you
need to modify "", and AfxOleUnregisterTypeLib.  Is that it?  

Also, afterwards, I'd like to try and make this code work under win32s.
Since MFC4.1 support win32s (MFC4.2 doesn't, if I read correctly), will I
just need to compile it under win32s, and all will be fine? Anybody ever
tried this?  

Thks for any answers.

Benoit  
 




P.J. Tezza -- pj@exemplarsoftware.com
Sunday, February 02, 1997

As long as you are not using many MFC 4.2 specific features, porting your 
code back to 4.1 may be easier than reinstalling Visual C++. We have a 
fairly large base of code which we recompile to support the 4 VC 4.x 
versions I know of and Win32s (when applicable). Sometimes I develop under 
VC 4.1 for Win32s compatibility, and sometimes I develop under VC 4.2 
because that's where I have VJ and MSDN installed. Win32s is on its own 
planet, and, in general, requires lots of testing to ensure that things 
work correctly. The OLE support is in there so, in theory, ActiveX controls 
should work on Win32s, but none of the OCXs supplied with Visual C++ 4.x (I 
have tried several of them) seem to work (not that any of them claim to). 
Maybe the IE3 developers will straighten out ActiveX support for Win32s . 
Or maybe the MS Grid OCX uses Win95 and WinNT functionality not supported 
on Win32s. I support a large application on Win32s (which uses OLE and ODBC 
but does not use ActiveX controls) and, with lots of Win32s specific work 
around, we were eventually able to get things working.

PJ

-----Original Message-----
From:	Benoit Martin [SMTP:ehlija@vircom.com]
Sent:	Friday, January 31, 1997 9:27 AM
To:	mfc-l@netcom.com
Subject:	Porting code (16-32 bits, MFC4.2->MFC4.1/4.0)

Environment: VC++4.2b, Win95, MFC4.2

I built an ActiveX control using MFC4.2 libraries.  Now, I would like to
port the code to MFC4.1, so that users of IE3.01 will not need any new 
dlls.
Is it an easy porting?  I read the "ABCs" of MFC and it mostly seems you
need to modify "", and AfxOleUnregisterTypeLib.  Is that it?

Also, afterwards, I'd like to try and make this code work under win32s.
Since MFC4.1 support win32s (MFC4.2 doesn't, if I read correctly), will I
just need to compile it under win32s, and all will be fine? Anybody ever
tried this?

Thks for any answers.

Benoit




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