Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka23-Mar-03 15:11
Taka Muraoka23-Mar-03 15:11 
GeneralRe: help with Dynamic allocation in C. Pin
mnjobes23-Mar-03 19:09
mnjobes23-Mar-03 19:09 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka23-Mar-03 19:16
Taka Muraoka23-Mar-03 19:16 
GeneralRe: help with Dynamic allocation in C. Pin
mnjobes26-Mar-03 20:32
mnjobes26-Mar-03 20:32 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka26-Mar-03 21:10
Taka Muraoka26-Mar-03 21:10 
GeneralChanging the file extension for documents in VC7 Pin
Matt Gates23-Mar-03 14:21
Matt Gates23-Mar-03 14:21 
GeneralRe: Changing the file extension for documents in VC7 Pin
Nish Nishant23-Mar-03 20:00
sitebuilderNish Nishant23-Mar-03 20:00 
QuestionEmulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 12:45
Ambit23-Mar-03 12:45 
Hi,

I am using an encrypted password in an INI file using the CryptoAPI (cryptography.cpp and .h) which is read from the INI file and converted back into text for checking by my program. However, certain symbols generated by the encryption cannot be read using GetPrivateProfileString() in Win95/98/Me. To get around this, I built an error-checker into my password encryption generator that writes the encrypted password to a test INI file and then tries to read it and decrypt it back again - if it fails, then it tells the user to pick another password. However, this is obviously flawed - because if the password generator is run on a Windows XP or 2000 system, it will never fail - but then when the program is run on Win95/98/Me, the decryption will fail.

So what I need to do is have my password generator check that the encrypted password will work on a Win95/98/Me system even if the generator is being run on an XP/2000 system. I hope I am explaining this okay. Essentially, what I want to do is force the program to act like it is running on a Win95/98/Me system even if it is being run on Windows XP or 2000. Is this possible by doing something like #define _WIN32?

Many thanks,
Keith
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Taka Muraoka23-Mar-03 12:51
Taka Muraoka23-Mar-03 12:51 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:29
Ambit23-Mar-03 14:29 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Taka Muraoka23-Mar-03 15:28
Taka Muraoka23-Mar-03 15:28 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit24-Mar-03 2:30
Ambit24-Mar-03 2:30 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Stefan Pedersen23-Mar-03 12:52
Stefan Pedersen23-Mar-03 12:52 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:47
Ambit23-Mar-03 14:47 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Stefan Pedersen23-Mar-03 23:36
Stefan Pedersen23-Mar-03 23:36 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Dave Bryant23-Mar-03 13:52
Dave Bryant23-Mar-03 13:52 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:32
Ambit23-Mar-03 14:32 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Navin23-Mar-03 16:42
Navin23-Mar-03 16:42 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
r i s h a b h s23-Mar-03 19:20
r i s h a b h s23-Mar-03 19:20 
GeneralTrying to create context-sensitive help with VC++ Pin
trimtrom23-Mar-03 11:53
trimtrom23-Mar-03 11:53 
GeneralAnnoying fstream problem!! Pin
Rickard Andersson2023-Mar-03 10:29
Rickard Andersson2023-Mar-03 10:29 
GeneralRe: Annoying fstream problem!! Pin
Christian Graus23-Mar-03 10:34
protectorChristian Graus23-Mar-03 10:34 
GeneralRe: Annoying fstream problem!! Pin
Rickard Andersson2023-Mar-03 10:56
Rickard Andersson2023-Mar-03 10:56 
GeneralRe: Annoying fstream problem!! Pin
Joaquín M López Muñoz23-Mar-03 11:00
Joaquín M López Muñoz23-Mar-03 11:00 
GeneralRe: Annoying fstream problem!! Pin
Rickard Andersson2023-Mar-03 11:12
Rickard Andersson2023-Mar-03 11:12 

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.