|
in have created a struct info in my exe and i have set a value for cstringi.e. struct info{
CString name}.and i have set value for it in exe itself . Now i want to show that vale for name in my name editbox which is in DLL...
can any one tell how to call struct of exe into dll which show value of it(exe) in DLL..
|
|
|
|
|
Shared Memory[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Why shared memory? The DLL and EXE run as the same process - shared memory is usually used to communicate between two different processes.
Judy
|
|
|
|
|
If the DLL displays this editbox in response to a call from the EXE, just pass the string as one of the parameters to the call.
Judy
|
|
|
|
|
any example or sample u can show me????
|
|
|
|
|
Hi All
I have a String which have some information, i want to cut some part from this and stroe in different srting.
CString a;
a="d:\jhdjh\as.data"
i want to cut
\jhdjh\as.data
And store in
CString b;
plz help me
|
|
|
|
|
|
Use Find and Left functions of CString...
CString a= "d:\\jhdjh\\as.data";<br />
int nPos = a.Find( '\\' );<br />
CString b = a.Left( nPos );
|
|
|
|
|
Hi
Thx's for help.I try this it is working.
But it is working i different way.It is storing d in string b.
I want to cut d and store \\jhdjh\\as.data
Plz help..
|
|
|
|
|
knowvc wrote: I want to cut d and store \\jhdjh\\as.data
Sorry I misunderstood your question. If you want to do so, you can use the Right() function instead of Left().
If you are actually dealing with the file paths and you want to cut the drive information, its better to use PathSkipRoot[^]
|
|
|
|
|
Thx's Again it's help me
Problem solved..
|
|
|
|
|
Hi one more problem i have how can i add drive name and string.
i mean i want to add drive name
c:\\ and
LPCTSTR lp
LPCTSTR lp=file\\file.ed and i want to add here
CopyFile(st, "c:\\" + lp ,TRUE);
Plz help me
|
|
|
|
|
Better use a CString.
CString cs = "c:\\";<br />
cs += "file\\file.ed";<br />
CopyFile(st, cs,TRUE);
|
|
|
|
|
|
Try AfxExtractSubString() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
IS there any solution to give color to TabControl buttons..........................?????
|
|
|
|
|
|
In a Dialog based MFC program, Can I use class CToolBar? or I just can use CToolBarCtrl?
And how to add two CTolBarCtrls in the dialog based program?
|
|
|
|
|
|
Thanks very much for your reply.
Yes, it will be very kind if you send me your sample. I'm fooled by it.
Send the sample to this email: albertkong1984@gmail.com
Thx.
|
|
|
|
|
The sample is already there in that link. Here is direct link[^]
|
|
|
|
|
Take a quick look at this link[^]">.
Regards,
Rane
modified on Thursday, September 4, 2008 11:59 PM
|
|
|
|
|
And how about adding two CToolBarCtrl in a dialog?
|
|
|
|
|
how can i give or set color of tabcontrol buttons (background color ) in visual c++ code.
|
|
|
|
|