|
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?
|
|
|
|
|
By statically linking to the MFC libraries and to the C-runtime libraries.
|
|
|
|
|
How can I statically link to MFC libraries and to the C-runtime libraries? will I copy all the missing dlls to the package?
|
|
|
|
|
Look a bit in your project settings (I never used VC2008 before).
For MFC, search for something like "Use of MFC" (it should be in the general section) and set it to "Use MFC in a static library".
For C-runtime libraries, look for "Runtime library" (it should be under "C/C++" category -> "Code Generation") and set it to the non DLL version (you have several choices there, take the one that is selected but without the DLL at the end).
|
|
|
|
|
I have done so but still dll missing message displaying.
|
|
|
|
|
I know there is 3 possible view states for any file in the windows explorer:
1) Thumbnails OR Tiles view
2) Icons
3) List OR Details
But within a PE file, there are more icons than this number. How can I realize which one or group of them is/are shown by the windows explorer?
Thank you masters!
|
|
|
|
|
Could you please direct me to a link or something to convert an RVA to File Offset in a PE file format? (Much better in the case of a Fuction or Class or something)
Thank you masters!
|
|
|
|
|
|
I've read it before! If you would read that you'd realize there's nothing to convert in that article but RVA to VA and NOT file offset!
Thank you anyway 4 Ur attention.
|
|
|
|
|
|
|
Hi,
I have exported one function from DLL, in that i am using "CFile fileObj", but compiler giving error:
CFile:undeclared indentifier , so is it possible to use file handling in DLL? what is the solution for that?
|
|
|
|
|
To use CFile, the DLL must be an MFC DLL.
Or you need to give MFC support to the DLL.
«_Superman_»
|
|
|
|
|
I'm giving you a 5 for answering a question like that. You have an awful lot of patience.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thank you Rajesh.
That is very kind of you.
«_Superman_»
|
|
|
|
|
Hi all,
I have 6 int values and a char buffer to pass another method. Something like this.
<br />
int MyClassOne::Method()<br />
{<br />
NemMwthod(1, 2, 3, 4, 5, 6, buffer);<br />
}<br />
<br />
int MyClassTwo::NewMethod(int a, int b, int c, int d, int e, int f, char buffer)<br />
{<br />
}<br />
Seems it's odd to me. So I do the following.
int MyClassOne::Method()<br />
{<br />
int* arr = new int[6];<br />
arr[0] = 1;<br />
arr[1] = 2;<br />
arr[2] = 3;<br />
arr[3] = 4;<br />
arr[4] = 5<br />
arr[5] = 6;<br />
<br />
NemMwthod(arr, buffer);<br />
delete[] arr;<br />
}<br />
<br />
int MyClassTwo::NewMethod(int ar[], char buffer)<br />
{<br />
}
I want to know what's best way to workaround is.
Thanks a lot
I appreciate your help all the time...
CodingLover
|
|
|
|