Click here to Skip to main content
15,925,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ deletes files?? Pin
Andres Manggini20-Feb-02 16:01
Andres Manggini20-Feb-02 16:01 
GeneralNon-Visual CRichEditCtrl For Printing Mechanism Pin
perlmunger20-Feb-02 13:03
perlmunger20-Feb-02 13:03 
GeneralRe: Non-Visual CRichEditCtrl For Printing Mechanism Pin
Tim Smith20-Feb-02 13:28
Tim Smith20-Feb-02 13:28 
GeneralRe: Non-Visual CRichEditCtrl For Printing Mechanism Pin
perlmunger20-Feb-02 13:45
perlmunger20-Feb-02 13:45 
GeneralRe: Non-Visual CRichEditCtrl For Printing Mechanism Pin
Tim Smith20-Feb-02 13:58
Tim Smith20-Feb-02 13:58 
GeneralRe: Non-Visual CRichEditCtrl For Printing Mechanism Pin
perlmunger21-Feb-02 5:43
perlmunger21-Feb-02 5:43 
GeneralCString and memory mapped files Pin
20-Feb-02 12:59
suss20-Feb-02 12:59 
GeneralRe: CString and memory mapped files Pin
Tim Smith20-Feb-02 13:27
Tim Smith20-Feb-02 13:27 
When you assign the strMsgPtr variable with pMsgPtr, you are creating a copy of the string. So, as you make changes to strMsgPtr, you are making changes to the copy.

To copy the string back to the memory mapped file, you could add this line of code and remove your last two lines.

_tcscpy ((LPTSTR) pMsgPtr, strMsgPtr);


This will copy the contents of the string back into the memory mapped file section.

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
GeneralExcel like Tab control Pin
20-Feb-02 12:50
suss20-Feb-02 12:50 
GeneralRe: Excel like Tab control Pin
Mazdak20-Feb-02 19:08
Mazdak20-Feb-02 19:08 
GeneralRe: Excel like Tab control Pin
Steen Krogsgaard20-Feb-02 21:38
Steen Krogsgaard20-Feb-02 21:38 
GeneralRe: Excel like Tab control Pin
567890123421-Feb-02 0:58
567890123421-Feb-02 0:58 
GeneralHelp with Documents and Views Pin
Aaron Schaefer20-Feb-02 12:36
Aaron Schaefer20-Feb-02 12:36 
GeneralRe: Help with Documents and Views Pin
Mazdak20-Feb-02 19:08
Mazdak20-Feb-02 19:08 
GeneralRe: Help with Documents and Views Pin
Steen Krogsgaard20-Feb-02 21:48
Steen Krogsgaard20-Feb-02 21:48 
GeneralError with compiled app (localization) Pin
blink4me20-Feb-02 12:11
blink4me20-Feb-02 12:11 
GeneralMemory leak Pin
Stew20-Feb-02 11:20
Stew20-Feb-02 11:20 
GeneralRe: Memory leak Pin
Christian Graus20-Feb-02 11:31
protectorChristian Graus20-Feb-02 11:31 
GeneralRe: Memory leak Pin
CodeGuy20-Feb-02 11:41
CodeGuy20-Feb-02 11:41 
GeneralRe: Memory leak Pin
Stew20-Feb-02 14:04
Stew20-Feb-02 14:04 
GeneralRe: Memory leak Pin
CodeGuy21-Feb-02 1:56
CodeGuy21-Feb-02 1:56 
GeneralMember variables which are Pointers to User Defined Classes - Prob with CPropertySheet Pin
dazinith20-Feb-02 11:16
dazinith20-Feb-02 11:16 
GeneralRe: Member variables which are Pointers to User Defined Classes - Prob with CPropertySheet Pin
dazinith20-Feb-02 11:18
dazinith20-Feb-02 11:18 
GeneralSplitter Windows Pin
Anthony988720-Feb-02 8:59
Anthony988720-Feb-02 8:59 
GeneralRe: Splitter Windows Pin
Steen Krogsgaard20-Feb-02 21:53
Steen Krogsgaard20-Feb-02 21:53 

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.