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

C / C++ / MFC

 
GeneralRe: Find the OS version and SP Pin
RomTibi5-May-07 19:44
RomTibi5-May-07 19:44 
GeneralRe: Find the OS version and SP Pin
ThatsAlok16-May-07 19:42
ThatsAlok16-May-07 19:42 
QuestionClass+WNDPROC Pin
shaderx5-May-07 9:13
shaderx5-May-07 9:13 
AnswerRe: Class+WNDPROC Pin
Mark Salsbery5-May-07 9:18
Mark Salsbery5-May-07 9:18 
GeneralRe: Class+WNDPROC Pin
shaderx5-May-07 11:14
shaderx5-May-07 11:14 
GeneralRe: Class+WNDPROC Pin
Michael Dunn5-May-07 12:33
sitebuilderMichael Dunn5-May-07 12:33 
GeneralRe: Class+WNDPROC Pin
ThatsAlok16-May-07 19:42
ThatsAlok16-May-07 19:42 
Questionwindows service Pin
micutzu5-May-07 3:51
micutzu5-May-07 3:51 
QuestionOLE DB provider Pin
George_George5-May-07 3:24
George_George5-May-07 3:24 
AnswerRe: OLE DB provider Pin
led mike5-May-07 9:18
led mike5-May-07 9:18 
GeneralRe: OLE DB provider Pin
George_George5-May-07 16:33
George_George5-May-07 16:33 
QuestionI2C Pin
Rabia Waqas5-May-07 3:23
Rabia Waqas5-May-07 3:23 
AnswerRe: I2C Pin
ThatsAlok16-May-07 19:38
ThatsAlok16-May-07 19:38 
QuestionFile read-plz help me? Pin
prathuraj5-May-07 1:24
prathuraj5-May-07 1:24 
AnswerRe: File read-plz help me? Pin
Hans Dietrich5-May-07 1:59
mentorHans Dietrich5-May-07 1:59 
AnswerRe: File read-plz help me? Pin
CPallini5-May-07 2:19
mveCPallini5-May-07 2:19 
AnswerRe: File read-plz help me? Pin
ThatsAlok16-May-07 19:38
ThatsAlok16-May-07 19:38 
QuestionFont of command buttons on property pages Pin
Neeraj Sinha5-May-07 1:19
Neeraj Sinha5-May-07 1:19 
AnswerRe: Font of command buttons on property pages Pin
prasad_som5-May-07 1:54
prasad_som5-May-07 1:54 
GeneralRe: Font of command buttons on property pages Pin
Neeraj Sinha5-May-07 2:03
Neeraj Sinha5-May-07 2:03 
GeneralRe: Font of command buttons on property pages Pin
prasad_som6-May-07 20:59
prasad_som6-May-07 20:59 
Questionhow to wisely use memory to store data Pin
cy163@hotmail.com5-May-07 1:18
cy163@hotmail.com5-May-07 1:18 
AnswerRe: how to wisely use memory to store data Pin
Hans Dietrich5-May-07 2:14
mentorHans Dietrich5-May-07 2:14 
AnswerRe: how to wisely use memory to store data Pin
Mark Salsbery5-May-07 6:48
Mark Salsbery5-May-07 6:48 
Questionstring copy problem in structure variable Pin
amitmistry_petlad 5-May-07 0:21
amitmistry_petlad 5-May-07 0:21 
Hi!
Need help to copy string in the structure variable .

following is my structure,

struct argument_list
{
WCHAR *pszInFile;
WCHAR *pszOutFil;

Confused | :confused: what should i have used here string or char *?Confused | :confused:

char* Host; // Initially I had used string but strcpy function does not support to copy the string

char* UserID;
char* InitPackageRequest;
char* ScriptFile;

};

I have made this structure for the thread. to pass the parameter.

for that i have used the following.


struct argument_list *l;
l=(argument_list *)malloc(sizeof(argument_list));

<br />
                        <code>is lstrcpy require here?
l->pszInFile=bufferwithpath;

l->pszOutFil=w_Output;
l->_ProtectSet=_ProtectSet;
l->hList=hList;
//l->Host(HOST);

l->Host=NULL;
strcpy(l->Host,HOST); //got error here


l->hwndEncrypt=hwndEncrypt;
l->hWndinoutfiledir=hWndinoutfiledir;
l->hwndParent=hDlg;
l->InitPackageRequest=NULL;
strcpy(l->InitPackageRequest,sINIT_PACKAGE_RESPONSE.c_str());
l->Port=PORT;
l->ScriptFile=NULL;
strcpy(l->ScriptFile,COMMUNICATOR_SCRIPT_FILE_PATH);

l->UserID=NULL;
strcpy(l->UserID,UserID.c_str());





"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India

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.