Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: power to the people:zzz: Pin
Ben Burnett5-Feb-03 18:56
Ben Burnett5-Feb-03 18:56 
Generalnetbios names Pin
orcun colak5-Feb-03 6:10
orcun colak5-Feb-03 6:10 
GeneralRead Foxpro dbf files Pin
pk_fox5-Feb-03 5:52
pk_fox5-Feb-03 5:52 
GeneralRe: Read Foxpro dbf files Pin
Stefan Pedersen5-Feb-03 11:17
Stefan Pedersen5-Feb-03 11:17 
GeneralRe: Read Foxpro dbf files Pin
Mike Nordell5-Feb-03 21:09
Mike Nordell5-Feb-03 21:09 
GeneralRe: Read Foxpro dbf files Pin
pk_fox5-Feb-03 23:38
pk_fox5-Feb-03 23:38 
GeneralRe: Read Foxpro dbf files Pin
Mike Nordell12-Feb-03 9:24
Mike Nordell12-Feb-03 9:24 
GeneralWin9x error Pin
Anonymous5-Feb-03 5:34
Anonymous5-Feb-03 5:34 
Hi,

I'm doing an application that first checks the OS installed in the machine where it is run. If the OS is Windows 2000, the porgram does a number of checks with iphlpapi, which do not work in Windows 9x. If the Os is Win9x, it displays some information.
The application has the following structure:

if (OS is Win2K)


{

... checks with iphlpapi


}

else

{

... displays some information


}


Now, the application fails in Win9x, and I don't understand why. The functions in the first part of the if are not executed, so why does it give an error?
The curious thing is that if do this:

if (OS is Win2K)


{
/*
... checks with iphlpapi



*/
}

else

{

... displays some information


}

(I comment all the first part of the if)
It DOES work in win9x, perfectly. So the part that is giving me an error is the part that si not even executed in Win9x. I don't get it!

Any ideas about this?

Thanks a lot.


F

GeneralRe: Win9x error Pin
David Chamberlain5-Feb-03 6:07
David Chamberlain5-Feb-03 6:07 
GeneralRe: Win9x error Pin
Joaquín M López Muñoz5-Feb-03 8:36
Joaquín M López Muñoz5-Feb-03 8:36 
GeneralRe: Win9x error Pin
Anonymous5-Feb-03 22:57
Anonymous5-Feb-03 22:57 
GeneralRe: Win9x error Pin
Anonymous5-Feb-03 23:00
Anonymous5-Feb-03 23:00 
GeneralErrors in createthread file. Need help! Pin
Pecan2045-Feb-03 5:24
Pecan2045-Feb-03 5:24 
GeneralRe: Errors in createthread file. Need help! Pin
Anonymous5-Feb-03 5:48
Anonymous5-Feb-03 5:48 
GeneralRe: Errors in createthread file. Need help! Pin
Anonymous5-Feb-03 5:56
Anonymous5-Feb-03 5:56 
GeneralRe: Errors in createthread file. Need help! Pin
-=jarl=-5-Feb-03 6:54
-=jarl=-5-Feb-03 6:54 
GeneralRe: Errors in createthread file. Need help! Pin
Pecan2045-Feb-03 8:15
Pecan2045-Feb-03 8:15 
GeneralGUI Dll Problems Pin
Ricky_TheBard5-Feb-03 5:08
Ricky_TheBard5-Feb-03 5:08 
GeneralGetDlgItem question. Pin
Maximilien5-Feb-03 4:13
Maximilien5-Feb-03 4:13 
GeneralRe: GetDlgItem question. Pin
Paul M Watt5-Feb-03 8:13
mentorPaul M Watt5-Feb-03 8:13 
GeneralRe: GetDlgItem question. Pin
Abbas_Riazi5-Feb-03 22:24
professionalAbbas_Riazi5-Feb-03 22:24 
Questionusing template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:09
professionalJoan M5-Feb-03 4:09 
AnswerRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:36
-=jarl=-5-Feb-03 4:36 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:44
professionalJoan M5-Feb-03 4:44 
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:46
-=jarl=-5-Feb-03 4:46 

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.