Click here to Skip to main content
15,867,972 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72824-Apr-09 1:53
RKP72824-Apr-09 1:53 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
Stuart Dootson24-Apr-09 3:23
professionalStuart Dootson24-Apr-09 3:23 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72824-Apr-09 22:09
RKP72824-Apr-09 22:09 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72826-Apr-09 21:32
RKP72826-Apr-09 21:32 
QuestionHow to implement CCrypto class into a MDI project ? Pin
mesajflaviu23-Apr-09 1:46
mesajflaviu23-Apr-09 1:46 
AnswerRe: How to implement CCrypto class into a MDI project ? Pin
Iain Clarke, Warrior Programmer23-Apr-09 2:10
Iain Clarke, Warrior Programmer23-Apr-09 2:10 
GeneralRe: How to implement CCrypto class into a MDI project ? Pin
mesajflaviu23-Apr-09 8:35
mesajflaviu23-Apr-09 8:35 
GeneralRe: How to implement CCrypto class into a MDI project ? Pin
Iain Clarke, Warrior Programmer24-Apr-09 5:54
Iain Clarke, Warrior Programmer24-Apr-09 5:54 
OK, you still need to break your problem into bits.

It looks like the CCrypto object has an encrypt and decrypt function that call (I guess from your first post) the CMyDocument::Setialize method to put the data in / out of the document. Feel free to use your debugger to see if I'm telling the truth.

BUT,

A CRichEditCtrl is a UI item, and would either be part of a CRichEditView. You would have to add a handler to the view which would fire every time it changes (ie, ON_EN_UPDATE) and save the text from the rich edit control to a CString (or std::string, or whatever you like) in the document. Then you can archive that.

As for decryting, that article has a good example of that. After decrypting the text, it will be deserialized into your documents text string. Call CDocument::UpdateAllViews, and add code to CMyView::OnUpdate to put that text into the rich edit.

In a similar thought, if you're in an MDI enviroment, you might have multipler views pointing at one document. You'll need to keep that in sychronisation with each other.

I hope that gives you something to think about,

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job! http://cv.imcsoft.co.uk/[^]

GeneralRe: How to implement CCrypto class into a MDI project ? Pin
mesajflaviu25-Apr-09 6:56
mesajflaviu25-Apr-09 6:56 
GeneralRe: How to implement CCrypto class into a MDI project ? [modified] Pin
mesajflaviu3-May-09 20:35
mesajflaviu3-May-09 20:35 
QuestionHow to load a region from an image file? Pin
Frank Isensee23-Apr-09 0:46
Frank Isensee23-Apr-09 0:46 
AnswerRe: How to load a region from an image file? Pin
CPallini23-Apr-09 1:40
mveCPallini23-Apr-09 1:40 
AnswerRe: How to load a region from an image file? Pin
Hamid_RT23-Apr-09 2:54
Hamid_RT23-Apr-09 2:54 
QuestionIs there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++? Pin
kapardhi23-Apr-09 0:39
kapardhi23-Apr-09 0:39 
QuestionRe: Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++? Pin
CPallini23-Apr-09 1:42
mveCPallini23-Apr-09 1:42 
AnswerRe: Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++? Pin
kapardhi23-Apr-09 1:58
kapardhi23-Apr-09 1:58 
GeneralRe: Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++? Pin
CPallini23-Apr-09 2:11
mveCPallini23-Apr-09 2:11 
AnswerRe: Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++? Pin
Rajkumar R23-Apr-09 2:02
Rajkumar R23-Apr-09 2:02 
QuestionFullscreen blocks autohide Taskbar Pin
baerten23-Apr-09 0:24
baerten23-Apr-09 0:24 
QuestionHow to solve unresolved external symbol error in NggolekiGinambaran... [modified] Pin
tasmin iqbal22-Apr-09 23:30
tasmin iqbal22-Apr-09 23:30 
AnswerRe: How to solve unresolved external symbol error in NggolekiGinambaran... Pin
Michael Schubert23-Apr-09 5:17
Michael Schubert23-Apr-09 5:17 
General[Message Deleted] Pin
tasmin iqbal22-Apr-09 23:25
tasmin iqbal22-Apr-09 23:25 
GeneralRe: how to solve unresolved external Symbols error in NggolekiGinambaran. Pin
Cedric Moonen22-Apr-09 23:34
Cedric Moonen22-Apr-09 23:34 
GeneralRe: how to solve unresolved external Symbols error in NggolekiGinambaran. Pin
tasmin iqbal22-Apr-09 23:35
tasmin iqbal22-Apr-09 23:35 
QuestionDirectShow Blues Pin
Teashirt222-Apr-09 21:14
Teashirt222-Apr-09 21:14 

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.