|
Thank you sir!
Indeed there were no Kanine Crunchies for the troll, yesterday.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[Image resize DLL]
|
|
|
|
|
|
T.RATHA KRISHNAN wrote: The new application is displayed as a separate window. But What should I do if I've to run with in the launching application?
What exactly are you trying to do? What do you mean by "with in the launching application"?
Sounds like a Liquid Nitrogen[^] candidate to me.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: Sounds like a Liquid Nitrogen[^] candidate to me
I forgot about that one !
|
|
|
|
|
Cedric Moonen wrote: [Big Grin] I forgot about that one !
It is too good for me to forget. Comes handy on occasions like this.
Also, see Archivist[^]
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Do you have the source code for the second application? Is it developed by you or is it third-party?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Yes. I've. It's developed by me.
|
|
|
|
|
Then why two applications? Merge the second app in the first.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
How to merge the two applications? Shall I add the second project to the first project's solution?
|
|
|
|
|
I meant by adding the second project's source files to the first project.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Do you want to open other program after this line?
|
|
|
|
|
I didn't understand.
|
|
|
|
|
You used of this code on your program for run other program now what do you want to do?
|
|
|
|
|
The second application's window is opend separately if I used the following statement.
::ShellExecuteA(NULL, "open", path.c_str(), NULL, NULL, SW_NORMAL);
I want to open in the first application's window.
|
|
|
|
|
you need the code for both the application , then only you can avoid saperate window . But if you just don't want to show the other appplication then you can replace SW_NORMAL by SW_HIDE
Vikas Amin
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
Hi,
I am using the function AppendChar but is is giving the error that
AppendChar' : is not a member of 'CString'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(368) : see declaration of 'CString'.
Please help me.
Dhiraj Kumar Saini
|
|
|
|
|
I don't know what you are trying to do but there's no AppendChar function in the CString class (see here[^]). The error message was clear enough, don't you think ?
|
|
|
|
|
Possibly the CString class provided by your MFC installation hasn't such method, use the += operator [^] instead.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[Image resize DLL]
|
|
|
|
|
Hi,
I am using visual studio 6.0. If it is not defined in current mfc installation then which version should i use.
Thanks
Dhiraj
|
|
|
|
|
Dhiraj kumar Saini wrote: I am using visual studio 6.0. If it is not defined in current mfc installation then which version should i use.
I find simpler using the += operator, as suggested.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[Image resize DLL]
|
|
|
|
|
I'm using VS2005 and it's defined there.
Actually CString is now a typedef of the template CStringT , which inherits from CSimpleStringT . The AppendChar() function is a member of the CSimpleStringT template.
More info here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Couldn't find a function named - CString::AppendChar() in MSDN Documentation[^]. You can use operator += to append char to CString. For instance,
CString String = "Hell";
String += 'o';
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi all,
I am a newbie to NDIS driver programming. I have written a very basic and simple NDIS protocol driver which just prints a message for all incoming packets. (I've taken help from DDK's Passthru and Protocol driver examples).
The part where I am stuck is that my Protocol driver is registered with NDIS as BindAdapter, UnbindAdapter and PnPEvent Handlers are all getting invoked/called and working as per requirement. However neither ProtocolReceive() nor ProtocolReceivePacket() is getting invoked, even in case of heavy network traffic ( which I confirmed with use of Wireshark).
Please Help.
Thanks in Advance,
Numero Uno.
|
|
|
|
|
Hi all,
I have made a application in vc2005 in which i am selecting some files from folder and then displaying names of each file.I am opening dialog box using CFileDialog Class, i have set OFN_ALLOWMULTISELECT for the dialog box.....
Now my problem is for some folders when i select all the files and click on open it returns IDCANCEL or 2 as a return value and for some folders it return IDOK or 1 as return value.....
How can i remove this???
thanks in advance
|
|
|
|
|
VCProgrammer wrote: i have set OFN_ALLOWMULTISELECT for the dialog box.....
Now my problem is for some folders when i select all the files and click on open it returns IDCANCEL or 2 as a return value and for some folders it return IDOK or 1 as return value.....
Probably there is a buffer overflow hence file dialog returns IDCANCEL . Note that for this style you've got to provide a large enough buffer to retrieve all file names.
Probably an FNERR_BUFFERTOOSMALL error occurs. Call CommDlgExtendedError to check.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|