Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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

AnswerRe: string copy problem in structure variable Pin
Hans Dietrich5-May-07 0:49
mentorHans Dietrich5-May-07 0:49 
GeneralRe: string copy problem in structure variable Pin
amitmistry_petlad 5-May-07 1:01
amitmistry_petlad 5-May-07 1:01 
AnswerRe: string copy problem in structure variable Pin
amistry_petlad12-Apr-10 12:49
amistry_petlad12-Apr-10 12:49 
QuestionHow To change degault font of ToolTip control? Pin
Atul234-May-07 23:38
Atul234-May-07 23:38 
Questionerror problem Pin
anu jaggi4-May-07 23:02
anu jaggi4-May-07 23:02 
AnswerRe: error problem Pin
amitmistry_petlad 4-May-07 23:58
amitmistry_petlad 4-May-07 23:58 
QuestionCreate Registry Entry in Vista ... Pin
Manjunath S4-May-07 22:33
Manjunath S4-May-07 22:33 
AnswerRe: Create Registry Entry in Vista ... Pin
prasad_som4-May-07 22:50
prasad_som4-May-07 22:50 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S4-May-07 22:56
Manjunath S4-May-07 22:56 
AnswerRe: Create Registry Entry in Vista ... Pin
Sameer_Thakur4-May-07 23:03
Sameer_Thakur4-May-07 23:03 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S4-May-07 23:21
Manjunath S4-May-07 23:21 
GeneralRe: Create Registry Entry in Vista ... Pin
Sameer_Thakur4-May-07 23:33
Sameer_Thakur4-May-07 23:33 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S4-May-07 23:45
Manjunath S4-May-07 23:45 
GeneralRe: Create Registry Entry in Vista ... Pin
Sameer_Thakur5-May-07 0:00
Sameer_Thakur5-May-07 0:00 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S5-May-07 0:14
Manjunath S5-May-07 0:14 
AnswerRe: Create Registry Entry in Vista ... Pin
Michael Dunn5-May-07 7:06
sitebuilderMichael Dunn5-May-07 7:06 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S6-May-07 20:05
Manjunath S6-May-07 20:05 

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.