Click here to Skip to main content
15,887,585 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Remove COM Objects from VC++ projects Pin
Richard MacCutchan3-Jun-13 23:43
mveRichard MacCutchan3-Jun-13 23:43 
AnswerRe: Remove COM Objects from VC++ projects Pin
Hrpreet singh6-Jun-13 0:36
Hrpreet singh6-Jun-13 0:36 
GeneralRe: Remove COM Objects from VC++ projects Pin
Prashant Gupta 2416-Jun-13 0:42
Prashant Gupta 2416-Jun-13 0:42 
Questionc++ exporting class variables Pin
bfis1081371-Jun-13 9:26
bfis1081371-Jun-13 9:26 
AnswerRe: c++ exporting class variables Pin
MicroVirus3-Jun-13 5:10
MicroVirus3-Jun-13 5:10 
QuestionHow to encrypt and decrypt a const char* in winrt Pin
yourchandrashekhar@gmail.com26-May-13 22:09
yourchandrashekhar@gmail.com26-May-13 22:09 
GeneralRe: How to encrypt and decrypt a const char* in winrt Pin
Richard MacCutchan26-May-13 23:36
mveRichard MacCutchan26-May-13 23:36 
GeneralRe: How to encrypt and decrypt a const char* in winrt Pin
yourchandrashekhar@gmail.com28-May-13 9:46
yourchandrashekhar@gmail.com28-May-13 9:46 
Hi Richards,
Thanks for your response. I found the problem. First let me describe the issue: Suppose my source string(say 'pData') is "SampleTextSample" and I encrypt it using encryptData() which stores the encrypted string in 'encryptedData'(suppose). Then I call decryptData() with 'encryptedData' as the input and in turn decryptData() stores the decrypted string in 'decryptedData'(suppose). Now logically, pData and decryptedData should be equal. But this is not happenning in my code.

Error: Using CryptographicBuffer::GenerateRandom() for creating key and initialazation vector in both encryptData() and decryptData(). Thus I am using a different key and initialization vector in encryptData() and another key and initialization vector in decryptData(). Hence the results don't match.
Solution: Arranged to use the same key in both encryptData() and decryptData().
GeneralRe: How to encrypt and decrypt a const char* in winrt Pin
Richard MacCutchan28-May-13 11:21
mveRichard MacCutchan28-May-13 11:21 
QuestionVC++ Crashing? Pin
macklinbob20-May-13 9:25
macklinbob20-May-13 9:25 
AnswerRe: VC++ Crashing? Pin
chaau5-Jun-13 15:23
chaau5-Jun-13 15:23 
QuestionSuggestion for project type Pin
bkelly1319-May-13 15:55
bkelly1319-May-13 15:55 
AnswerRe: Suggestion for project type Pin
Garth J Lancaster19-May-13 17:49
professionalGarth J Lancaster19-May-13 17:49 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 15:17
bkelly1320-May-13 15:17 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 15:26
professionalGarth J Lancaster20-May-13 15:26 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 15:54
bkelly1320-May-13 15:54 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 16:01
professionalGarth J Lancaster20-May-13 16:01 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 16:12
bkelly1320-May-13 16:12 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 16:20
professionalGarth J Lancaster20-May-13 16:20 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 16:27
bkelly1320-May-13 16:27 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 16:32
professionalGarth J Lancaster20-May-13 16:32 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 16:38
bkelly1320-May-13 16:38 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 16:49
professionalGarth J Lancaster20-May-13 16:49 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 16:59
bkelly1320-May-13 16:59 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster21-May-13 2:16
professionalGarth J Lancaster21-May-13 2:16 

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.