Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it possible to "drag and drop" between listboxes in visual c++6? Pin
whatever@whatever.com18-Jan-07 22:21
whatever@whatever.com18-Jan-07 22:21 
GeneralRe: Is it possible to "drag and drop" between listboxes in visual c++6? Pin
Nibu babu thomas18-Jan-07 22:56
Nibu babu thomas18-Jan-07 22:56 
AnswerRe: Is it possible to "drag and drop" between listboxes in visual c++6? Pin
Mike O'Neill19-Jan-07 6:43
Mike O'Neill19-Jan-07 6:43 
GeneralRe: Is it possible to "drag and drop" between listboxes in visual c++6? Pin
whatever@whatever.com21-Jan-07 14:08
whatever@whatever.com21-Jan-07 14:08 
QuestionHow to set font of resources in multilingual application Pin
Atul2318-Jan-07 18:53
Atul2318-Jan-07 18:53 
AnswerRe: How to set font of resources in multilingual application Pin
Nibu babu thomas18-Jan-07 19:16
Nibu babu thomas18-Jan-07 19:16 
AnswerRe: How to set font of resources in multilingual application Pin
Waldermort18-Jan-07 20:59
Waldermort18-Jan-07 20:59 
AnswerRe: How to set font of resources in multilingual application Pin
John R. Shaw19-Jan-07 17:55
John R. Shaw19-Jan-07 17:55 
QuestionHow can solve the print preview problem Pin
Murugan k18-Jan-07 18:42
Murugan k18-Jan-07 18:42 
Questionencrypt and decrypt in UNICODE Pin
kiranin18-Jan-07 18:29
kiranin18-Jan-07 18:29 
QuestionRe: encrypt and decrypt in UNICODE Pin
Rajesh R Subramanian18-Jan-07 19:12
professionalRajesh R Subramanian18-Jan-07 19:12 
AnswerRe: encrypt and decrypt in UNICODE Pin
kiranin18-Jan-07 19:17
kiranin18-Jan-07 19:17 
QuestionRe: encrypt and decrypt in UNICODE Pin
Rajesh R Subramanian18-Jan-07 19:19
professionalRajesh R Subramanian18-Jan-07 19:19 
AnswerRe: encrypt and decrypt in UNICODE Pin
kiranin18-Jan-07 19:23
kiranin18-Jan-07 19:23 
GeneralRe: encrypt and decrypt in UNICODE Pin
Rajesh R Subramanian18-Jan-07 19:30
professionalRajesh R Subramanian18-Jan-07 19:30 
GeneralRe: encrypt and decrypt in UNICODE Pin
kiranin18-Jan-07 19:35
kiranin18-Jan-07 19:35 
GeneralRe: encrypt and decrypt in UNICODE Pin
Rajesh R Subramanian18-Jan-07 19:57
professionalRajesh R Subramanian18-Jan-07 19:57 
GeneralRe: encrypt and decrypt in UNICODE Pin
kiranin18-Jan-07 20:04
kiranin18-Jan-07 20:04 
GeneralRe: encrypt and decrypt in UNICODE Pin
Rajesh R Subramanian18-Jan-07 20:07
professionalRajesh R Subramanian18-Jan-07 20:07 
GeneralRe: encrypt and decrypt in UNICODE Pin
Mark Salsbery19-Jan-07 5:59
Mark Salsbery19-Jan-07 5:59 
GeneralRe: encrypt and decrypt in UNICODE Pin
Mark Salsbery19-Jan-07 6:06
Mark Salsbery19-Jan-07 6:06 
How is this going to work:

dwLength = sizeof(TCHAR)*_tcslen(szEncryptPwd);

If szEncryptPwd is encrypted there's not necessarily an ASCIIZ at the end so _tcslen()
won't work. You need a way to store the encrypted length somewhere or use a pre-defined length.

*EDIT* The encrypt side looks ok but the decrypt isn't going to work as coded.
Also, not all encryption algorithms produce the same number of encrypted bytes as unencrypted
source bytes, but you've assumed that in your encryption function. Be careful Smile | :)
You can check the size required with an extra call to CryptEncrypt() with the pbData param set to
NULL.

Mark

GeneralRe: encrypt and decrypt in UNICODE Pin
Mark Salsbery19-Jan-07 6:19
Mark Salsbery19-Jan-07 6:19 
QuestionUSB Drive Pin
radhika2818-Jan-07 17:57
radhika2818-Jan-07 17:57 
AnswerRe: USB Drive Pin
Michael Dunn18-Jan-07 19:47
sitebuilderMichael Dunn18-Jan-07 19:47 
Questioncmd.exe bug / GetFileType from kernel mode Pin
Mike_V18-Jan-07 16:20
Mike_V18-Jan-07 16:20 

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.