|
In addition to the other replies, you might want to check this article[^]. Things will get much clearer afterwards.
|
|
|
|
|
crazy_sam wrote: but it is not working...?
And you're wondering why? Perhaps it's because there's a compiler error (hint: messageToWrite is never declared).
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I suppose that wasn't the problem. My CPMRU says he just omitted the declaration in the OP and was in fact making a UNICODE build.
BTW: my CPMRU abusez drugz like me...
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
[My articles]
|
|
|
|
|
CPallini wrote: I suppose that wasn't the problem.
I know. I was just getting my fix.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
this might help
CString temp="hello";
char *t=(LPTSTR)(LPCTSTR)temp;
|
|
|
|
|
Hi,
I am able to open a public queue on a diff PC in the same network in the send mode. I am able to send message to the Q also.
But i am not able to open the remote public queue in the receive mode. Not sure why???
Any help will be great.
Thanks,
Saleem
|
|
|
|
|
Hi all,
Is there any method to hooking/getting notified the common error message dialogs ("Application error", "Microsoft Visual C++ Runtime Library", Window error reporting dialog etc) from any applications.
Thanx in advance
|
|
|
|
|
You can create a CBT Hook or a Shell Hook to be notified whenever a new dialog box is going to be created. You can then check its caption and text.
«_Superman_»
|
|
|
|
|
Hi All
How to communicate two exe between each other?is it possible?Plz help me
|
|
|
|
|
Search for IPC (inter-process communication).
|
|
|
|
|
Check this[^] out, or 0this[^], or for a more generic aproach look at this[^], but most importantly, google is your friend, you just have to know what to look for.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
See here [^].
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
[My articles]
|
|
|
|
|
all three of us replied with the same sort of options
'g'
|
|
|
|
|
Well the question was: "IPC ?", so the answers were: "yes, via IPC ".
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
[My articles]
|
|
|
|
|
actually, yes, you are more correct than I was - I was forgetting that IPC could be local or remote
cheers
'g'
|
|
|
|
|
MsmVc wrote: is it possible
yes
MsmVc wrote: Plz help me
not enough information.
Things you may need to consider :-
Are the two exe's on the same machine ?
How much data is to be exchanged ?
Do you need a proprietary protocol ?
.. and probably a million other questions
If the two exes are not on the same machine, you might need tcp/ip messaging for example, it could be low level if you have your own protocol in mind or MSMQ for example. If the are on the same machine, you need to read up on 'IPC' - which could still be sockets, or shared memory, windows messages for example
I'd suggest you refine your requirements, then use google to look around - there's plenty of code out there to help you.
'g'
|
|
|
|
|
|
Hi all,
I wish to choose a dialog template resource dynamically.
The problem is that i wish to do it for the application main dialog, so its a modal dialog and i
cant choose it in a Create function.
Thanks
Shimon
|
|
|
|
|
Check out CDialog's constructors, they look something like this:
CDialog::CDialog(LPCTSTR lpszTemplateName, CWnd* pParentWnd)
{
...
m_lpszTemplateName = lpszTemplateName;
if (IS_INTRESOURCE(m_lpszTemplateName))
m_nIDHelp = LOWORD((DWORD_PTR)m_lpszTemplateName);
...
}
CDialog::CDialog(UINT nIDTemplate, CWnd* pParentWnd)
{
...
m_lpszTemplateName = MAKEINTRESOURCE(nIDTemplate);
m_nIDHelp = nIDTemplate;
...
}
So probably all you have to do is change m_lpszTemplateName and maybe m_nIDHelp before calling DoModal to the apropriate value, so something like:
INT_PTR CMyDialog::DoModalWithID(UINT nIDTemplate)
{
m_lpszTemplateName = MAKEINTRESOURCE(nIDTemplate);
m_nIDHelp = nIDTemplate;
return DoModal();
}
Does this work for you?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
if i change these 2 variables the app doesnt load any dialog.
|
|
|
|
|
I just tested it, it works for me. Maybe there are "version based differences" that cause the trouble, i did the test on VC++ 2003, version 7.1.something, show your code and maybe we will see what might be the problem.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
You were right your suggestion indeed changed the resource, the visualization of
the dialog was dependent on another factor.
Thanks
|
|
|
|
|
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hello All,
I want to write an MFC application where i want to enumerate different CAN hardware/or any such hardware like USB,PCMCIA,Serialport CAN's etc., and their information connected to my PC.Can you please let me know which functions i should use to get those.
Thanks in Advacne.
|
|
|
|
|
I have built an executable package in release mode in VC++.Net 2008(MFC). The package is running in my PC well but in other PC that doesn't have Visual stdio, is showing dll(mfc90.dll, msvc90.dll etc ) missing.
If I install Visual stdio 2008 redistribution package then it is working. Is there any way to run my package without installing Visual stdio 2008 redistribution package? How can I do this?
|
|
|
|