I have a class which inlcudes this line for the function -
inline CString GetFile() {return File;}
I am trying to get data in from a dialog list box, using the OnDblClick() this is the code as it stands.
Essentially I have a template filename
(c:\dave......setup.exe)
and the object selected has a method which gets the filename. I want it in the middle of the startpath string. (startpath will be startpath+filename+program)
char startpath[80]("c:\\dave\\");
char program[90]("setup.exe");
char path[100];
CDataObject *pObject;
pObject=0;
path=(pObject->GetFile());
strcat(startpath, program);
spawnl(P_WAIT, startpath, startpath, NULL);
I can zip the whole thing to you if this doesn't make any sense, but i need to get the File ( which is a string, and append it to the startpath variable.
Cheers
dave