Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about parameter passing Pin
CPallini19-Mar-08 0:30
mveCPallini19-Mar-08 0:30 
GeneralRe: about parameter passing Pin
savitri19-Mar-08 0:55
savitri19-Mar-08 0:55 
QuestionRe: about parameter passing Pin
CPallini19-Mar-08 1:03
mveCPallini19-Mar-08 1:03 
General[Message Deleted] Pin
savitri19-Mar-08 1:17
savitri19-Mar-08 1:17 
GeneralRe: about parameter passing Pin
Demian Panello19-Mar-08 1:44
Demian Panello19-Mar-08 1:44 
GeneralRe: about parameter passing Pin
savitri19-Mar-08 2:04
savitri19-Mar-08 2:04 
GeneralRe: about parameter passing Pin
CPallini19-Mar-08 2:06
mveCPallini19-Mar-08 2:06 
GeneralRe: about parameter passing Pin
David Crow19-Mar-08 3:44
David Crow19-Mar-08 3:44 
savitri wrote:
...or not returning to my project from OCX file.


Exactly how are you expecting this to happen? You effectively have the following:

BOOL CACR120RWCtrl::ReadBlk( LPCTSTR MemId )
{
    CString dStr;
    ...
    MemId = dStr;
}
In this context, the MemId can be changed to point to something else, but only within ReadBlk(). Once ReadBlk() goes out of scope, MemId goes back to pointing to whatever it pointed to before ReadBlk() was called. If you want MemId to point elsewhere, you'll likely need to change the parameters to char ** instead. You can also change it to a char * and use strcpy() to change its contents.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: about parameter passing Pin
CPallini19-Mar-08 4:26
mveCPallini19-Mar-08 4:26 
GeneralRe: about parameter passing Pin
David Crow19-Mar-08 4:30
David Crow19-Mar-08 4:30 
GeneralRe: about parameter passing Pin
savitri19-Mar-08 19:45
savitri19-Mar-08 19:45 
QuestionRe: about parameter passing Pin
David Crow20-Mar-08 2:28
David Crow20-Mar-08 2:28 
AnswerRe: about parameter passing Pin
savitri20-Mar-08 21:17
savitri20-Mar-08 21:17 
GeneralRe: about parameter passing Pin
David Crow21-Mar-08 2:53
David Crow21-Mar-08 2:53 
Questionhow to pause execution on a form based application without Sleep() effect Pin
reteset18-Mar-08 23:07
reteset18-Mar-08 23:07 
GeneralRe: how to pause execution on a form based application without Sleep() effect Pin
Cedric Moonen18-Mar-08 23:10
Cedric Moonen18-Mar-08 23:10 
GeneralRe: how to pause execution on a form based application without Sleep() effect Pin
reteset18-Mar-08 23:32
reteset18-Mar-08 23:32 
GeneralRe: how to pause execution on a form based application without Sleep() effect Pin
Mark Salsbery19-Mar-08 8:41
Mark Salsbery19-Mar-08 8:41 
GeneralRe: how to pause execution on a form based application without Sleep() effect Pin
Randor 19-Mar-08 3:37
professional Randor 19-Mar-08 3:37 
GeneralRe: how to pause execution on a form based application without Sleep() effect Pin
ThatsAlok19-Mar-08 19:51
ThatsAlok19-Mar-08 19:51 
GeneralRe: how to pause execution on a form based application without Sleep() effect Pin
reteset21-Mar-08 7:40
reteset21-Mar-08 7:40 
GeneralModeless dialog box Pin
Chandrasekharan P18-Mar-08 22:57
Chandrasekharan P18-Mar-08 22:57 
GeneralRe: Modeless dialog box Pin
Cedric Moonen18-Mar-08 23:05
Cedric Moonen18-Mar-08 23:05 
GeneralRe: Modeless dialog box Pin
Chandrasekharan P18-Mar-08 23:20
Chandrasekharan P18-Mar-08 23:20 
GeneralRe: Modeless dialog box Pin
Cedric Moonen18-Mar-08 23:46
Cedric Moonen18-Mar-08 23:46 

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.