Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Thanks a lot for this, I really appreciate the help. Unfortunately, I am such a novice I am still having problems (sorry). How would I use this code to convert an exising encrypted string (eg. encrypted_password_str) and store it in an INI file? I tried this:

char test_str[MAX_PATH];<br />
char test2_str[MAX_PATH];<br />
<br />
unsigned char* pEncryptedBuf = (unsigned char*)encrypted_password_str;<br />
size_t encryptedBufLen = sizeof(encrypted_password_str);<br />
for ( size_t i=0 ; i < encryptedBufLen; ++i )<br />
{<br />
	strncpy(test2_str,"",MAX_PATH);<br />
	itoa((int)pEncryptedBuf[i],test2_str,10);<br />
	strcat(test_str,test2_str);<br />
	WritePrivateProfileString("TestHex","TestHex",test_str,TestFile_str);<br />
}


But this prints odd characters to the INI file too, and I think I have totally screwed this up. Sorry if this looks incredibly stupid or obvious to you.

Many thanks,
Keith
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 
GeneralRe: Annoying fstream problem!! Pin
Joaquín M López Muñoz23-Mar-03 20:13
Joaquín M López Muñoz23-Mar-03 20:13 
GeneralRe: Annoying fstream problem!! Pin
Rickard Andersson2023-Mar-03 22:36
Rickard Andersson2023-Mar-03 22:36 
QuestionMenu Mnemonics on Dialog? Pin
MKlucher23-Mar-03 10:05
MKlucher23-Mar-03 10:05 
AnswerRe: Menu Mnemonics on Dialog? Pin
Dave Bryant23-Mar-03 10:46
Dave Bryant23-Mar-03 10: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.