Click here to Skip to main content
15,886,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple AES Pin
Member 1065708319-Feb-15 14:37
Member 1065708319-Feb-15 14:37 
GeneralRe: Simple AES Pin
enhzflep19-Feb-15 17:53
enhzflep19-Feb-15 17:53 
GeneralRe: Simple AES Pin
Member 1065708319-Feb-15 18:25
Member 1065708319-Feb-15 18:25 
GeneralRe: Simple AES Pin
enhzflep19-Feb-15 18:29
enhzflep19-Feb-15 18:29 
GeneralRe: Simple AES Pin
Member 1065708319-Feb-15 20:38
Member 1065708319-Feb-15 20:38 
GeneralRe: Simple AES Pin
enhzflep19-Feb-15 20:52
enhzflep19-Feb-15 20:52 
GeneralRe: Simple AES Pin
Member 1065708319-Feb-15 23:21
Member 1065708319-Feb-15 23:21 
GeneralRe: Simple AES Pin
enhzflep20-Feb-15 1:00
enhzflep20-Feb-15 1:00 
Bother. Frown | :(

I'd actually downloaded the project yesterday that you shared at MediaFire or wherever it was. I've just tried the page you linked to here, but only saw the ability to browse 10 sample projects. Going back to the article's main page also only gives the ability to download any one of the 10 samples.

So, I gave it a go and carried-on anyway - loading the SLN file in your zip.I converted it to one that VS2010 was happy with and hit build. Great, no problem - it builds just fine.

--

Next, I created a new win32, console project in the solution.(called Member10657083) I copied the contents of your aes.cpp file and replaced the contents of "Member10657083.cpp" with it. I also uncommented the #include stdafx.h line.

Upon trying to build, I didn't get that warning you had, but still got the same error.

Mistakenly, I changed
C++
new DefaultEncryptorWithMAC(
    password.c_str(),

into
C++
new DefaultEncryptorWithMAC(
    (const char*)password.c_str(),

Of course, the error was exactly the same. Realizing my mistake, I then changed it to:
C++
new DefaultEncryptorWithMAC(
    (const byte*)password.c_str(),


and tried again. Bingo! The project compiled. While the project didn't successfully build, it was only linker errors, since I didn't add any to the new project. I'm tired and very rarely use VS, so I'm not going to tackle that tonight.

Hope this helps. Smile | :) Let me know how you get on.
"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life." - John Lennon

GeneralRe: Simple AES Pin
Member 1065708320-Feb-15 2:05
Member 1065708320-Feb-15 2:05 
QuestionMicrosoft foundation class Pin
Kamlendra Chandra18-Feb-15 0:30
Kamlendra Chandra18-Feb-15 0:30 
AnswerRe: Microsoft foundation class Pin
Jochen Arndt18-Feb-15 1:10
professionalJochen Arndt18-Feb-15 1:10 
GeneralRe: Microsoft foundation class Pin
Kamlendra Chandra22-Feb-15 19:45
Kamlendra Chandra22-Feb-15 19:45 
AnswerRe: Microsoft foundation class Pin
Jochen Arndt22-Feb-15 21:12
professionalJochen Arndt22-Feb-15 21:12 
SuggestionRe: Microsoft foundation class Pin
Richard MacCutchan18-Feb-15 5:32
mveRichard MacCutchan18-Feb-15 5:32 
QuestionI want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan17-Feb-15 14:09
Shibu Krishnan17-Feb-15 14:09 
AnswerRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Richard MacCutchan17-Feb-15 22:42
mveRichard MacCutchan17-Feb-15 22:42 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan19-Feb-15 14:09
Shibu Krishnan19-Feb-15 14:09 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Richard MacCutchan19-Feb-15 21:12
mveRichard MacCutchan19-Feb-15 21:12 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan21-Feb-15 2:22
Shibu Krishnan21-Feb-15 2:22 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Richard MacCutchan21-Feb-15 2:51
mveRichard MacCutchan21-Feb-15 2:51 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan22-Feb-15 7:04
Shibu Krishnan22-Feb-15 7:04 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Richard MacCutchan22-Feb-15 7:17
mveRichard MacCutchan22-Feb-15 7:17 
QuestionRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan22-Feb-15 7:36
Shibu Krishnan22-Feb-15 7:36 
AnswerRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Richard MacCutchan22-Feb-15 7:48
mveRichard MacCutchan22-Feb-15 7:48 
GeneralRe: I want to create a treeview with my structure/class variable as nodes and update the same with custom values Pin
Shibu Krishnan22-Feb-15 8:01
Shibu Krishnan22-Feb-15 8:01 

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.