Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to fing windows system directory Pin
Anonymous3-Aug-04 1:46
Anonymous3-Aug-04 1:46 
Generalscrolling up Pin
V.2-Aug-04 22:41
professionalV.2-Aug-04 22:41 
GeneralDelayed Single Instance Creation Pin
peterchen2-Aug-04 22:34
peterchen2-Aug-04 22:34 
GeneralRe: Delayed Single Instance Creation Pin
Ravi Bhavnani3-Aug-04 1:46
professionalRavi Bhavnani3-Aug-04 1:46 
GeneralRe: Delayed Single Instance Creation Pin
peterchen3-Aug-04 2:02
peterchen3-Aug-04 2:02 
GeneralRe: Delayed Single Instance Creation Pin
Ravi Bhavnani3-Aug-04 2:11
professionalRavi Bhavnani3-Aug-04 2:11 
GeneralWindows 98 incompatibility Pin
sirtimid2-Aug-04 22:09
sirtimid2-Aug-04 22:09 
GeneralRe: Windows 98 incompatibility Pin
Jaime Stuardo3-Aug-04 8:01
Jaime Stuardo3-Aug-04 8:01 
I think the only solution is to debug your application under Windows 98. The fact is that Windows 98 is less permissive for some bad operations, or some bugs. For example, I will tell you my experience with a problem I had.

I developed an application that uses ADO to connect to a SQL Server database. I had a CWinApp member variable called m_Database which was initialized in InitInstance method.

In order to use ADO, I had to use CoInitialize(NULL) in InitInstance and CoUninitialize in ExitInstance. Note that the m_Database destructor was responsible to close and release ADO objects.

All works perfectly under Windows 2000 and XP, but in Windows 98 application crashed at exit.

The cause of the problem: CDatabase destructor was called at the end of ExitInstance, of course, after CoUninitialize. Since COM was uninitialized when I tried to release COM interfaces, application crashed, but only in Windows 98. In Windows 2000 and XP, application exited the normal way.

The solution: declare the member as * m_pDatabase, and delete it before CoUninitialize.

I could realized of that only by debugging it in Windows 98.

This wasn't the only problem I had when running the application in that platform.

Jaime

GeneralStructure of a signed short Pin
Joel Holdsworth2-Aug-04 21:58
Joel Holdsworth2-Aug-04 21:58 
GeneralRe: Structure of a signed short Pin
peterchen2-Aug-04 22:52
peterchen2-Aug-04 22:52 
GeneralRe: Structure of a signed short Pin
Joel Holdsworth2-Aug-04 23:38
Joel Holdsworth2-Aug-04 23:38 
GeneralRe: Structure of a signed short Pin
Henry miller3-Aug-04 4:30
Henry miller3-Aug-04 4:30 
GeneralRe: Structure of a signed short Pin
peterchen3-Aug-04 12:32
peterchen3-Aug-04 12:32 
GeneralIE Crashing Pin
Abhi Lahare2-Aug-04 21:51
Abhi Lahare2-Aug-04 21:51 
GeneralRe: IE Crashing Pin
jmkhael2-Aug-04 22:21
jmkhael2-Aug-04 22:21 
GeneralRe: IE Crashing Pin
Abhi Lahare2-Aug-04 23:53
Abhi Lahare2-Aug-04 23:53 
GeneralRe: IE Crashing Pin
jmkhael3-Aug-04 0:17
jmkhael3-Aug-04 0:17 
GeneralRe: IE Crashing Pin
Abhi Lahare3-Aug-04 1:08
Abhi Lahare3-Aug-04 1:08 
GeneralRe: IE Crashing Pin
jmkhael3-Aug-04 1:22
jmkhael3-Aug-04 1:22 
GeneralRe: IE Crashing Pin
Abhi Lahare3-Aug-04 1:33
Abhi Lahare3-Aug-04 1:33 
GeneralGUI Pin
cristianmuller2-Aug-04 21:35
cristianmuller2-Aug-04 21:35 
GeneralRe: GUI Pin
ohadp2-Aug-04 23:54
ohadp2-Aug-04 23:54 
GeneralRe: GUI Pin
cristianmuller4-Aug-04 3:27
cristianmuller4-Aug-04 3:27 
QuestionDirectShow vs. DirectDraw ??? Pin
baboguru2-Aug-04 20:41
baboguru2-Aug-04 20:41 
QuestionHow to search a substring of a LPWSTR? Pin
ting6682-Aug-04 20:34
ting6682-Aug-04 20:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.