|
can anybody tell me what is Account operator.
|
|
|
|
|
Other than responding with "Someone that operates the account," you'll need to be a bit more specific.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
hi
|
|
|
|
|
since this is the Visual C++ message board and not some chat-site.
"Hello World!" would`ve been at least a little more appropriate than just plain "hi"
Other than that, when starting a new thread in this message board, please just post C++ related questions. There are message-boards for non programming related topics in the Lounge and Soapbox...
Cheers...
And since you look to be new here: Welcome!
|
|
|
|
|
Maybe jitendra is just a material person in a material world...
Oh, wait, that belongs in the "sucky music" forum...
|
|
|
|
|
It is easy to use exported functions from dll using LoadLibrary and GetProcAddress.
however it seems that there is no way to use exported functions from exe(executable application).
In other words, how can the communication between two applications(such as, function call) be done?
thanks
|
|
|
|
|
I think the only way to do that is RPC (Remote Procedure Call) used for communication of application running on remote hosts. I don't think there is another way to export functions from an executable, that's the job for a dynamic library only. A more common way for communication between apps is shared memory or pipes if they are running on the same host as RPC is a bit 'expensive' on CPU considering it adds some overhead.
Themis
|
|
|
|
|
There are many articles about IPC on CodeProject.
Don't try it, just do it!
|
|
|
|
|
Hi, I 'd like to ask an MFC related question. I have an SDI application and I want to show a modal dialog just when my main frame appears on screen. Which event of my CMainFrm should I register for that? I've tried ON_WM_CREATE and ON_WM_SHOWWINDOW but the first is called before any drawing has been done and the latter doesn't get invoked at all! Could you help me plz?
Themis
|
|
|
|
|
Hi,
Create a timer in Mainframe with 1 as timer interval. Add handler to WM_TIMER message and domodal the dialog in it. Dont forger to kill the Timer before u show the dialog.
Bye,
Cool Ju
|
|
|
|
|
When exactly do you want your dialog to appear? Just before or just after the mainframe appears on screen?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Just after the mainframe appears.
To Cool Jul: I don't think the timer is a good idea, because the initilization in a slow machine may take more time than in mine pc. Thanks though!
Themis
|
|
|
|
|
Here's a thought:
1) Create a user defined message, that you can post to display the dialog.
2) In the main frames OnSetFocus(), just post the message (post not send).
If there is already a command that allows the user to display the dialog then you can skip step 1 and just post that messge.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Hi,
I am using DDEML. What if I want my DDEML Server application to receive some data from a Client, process it and send back the result to client.
What I am doing so far is:
I send some data from Client to Server through XTYP_POKE transaction.
In Server's DDECallBack function, I store this data in some static variables.
Then I send an XTYP_REQUEST transaction from Client to Server, to process the data sent in XTYP_POKE transaction.
The Server application, on receiving the XTYP_REQUEST transaction, process the data received in XTYP_POKE transaction and returns the handle of result.
What I fear here is that what if the Server receives another XTYP_POKE transaction in between above XTYP_POKE and XTY_REQUEST transactions.
Means, When a client sends "A" data to Server through XTYP_POKE, an another Client sends "B" data to Server before Server could get and process the XTYP_REQUEST from first Client, the Server may generate and return wrong data.
Is this right? If yes, what I could do to prevent this? Is there a way where Client could send and receive data through XTYP_REQUEST itself?
Please help. Quick replies are appriciated.
Thanks In Advance,
Vipin.
|
|
|
|
|
my app create a process(by CreateProcess ) and hang up itself unitl child process was exit,but child process may create a other process....
I love programming
|
|
|
|
|
yqzq wrote:
but child process may create a other process....
can u be more accurate what do u mean?
a child can create other process which can create other process which can create other process which can create other process which can create other process...
Right?
/\|-||\/|/\|)
|
|
|
|
|
sorry for my bad english :P
in my 'AppA' ,i want launch another 'AppB' to do some thing, and i want get the notify when the 'AppB' and all of process which launch by 'AppB' or 'AppB'`s child process was terminate
I love programming
|
|
|
|
|
if i understand u right. U need to take a look on the following function:
CWnd::Onclose or CWnd::OnDestroy
/\|-||\/|/\|)
|
|
|
|
|
See this search.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
HI All
I want to know that how to use WMI Classes using VC++,I want to extract some system information from there, but I do not know how to use that,
Better if please do provide some sample code.
Thanks & Regards.
Edit/Delete Message
|
|
|
|
|
Try Using WMI in VisualC[^]
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
I downloaded the mentioned project and tried to run the project but could not succeed.
Although I included all needed .lib files and header files yet I am getting two errors
1)error C2065: 'CoInitializeSecurity' : undeclared identifier
2)error C2065: 'EOAC_NONE' : undeclared identifier
However the function CoInitializeSecurity( ) is declared in "objbase.h" and I have included this file too.
So Please tell me how to remove this problem.
Please reply .
Thanks & Regards.
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi all,
I have dll(mfc) which displays dialog with list control with some file [with path] ( .doc,.msg, ... )
When user double clicks my code opens file in maximize mode useing ShellExecuteEx. It returns me HANDLE hProcess. All works fine.
But some file like msg file are not opening in MAXIMIZE state. After looking deep into that i conclude that it is handled by MS Outlook.( means if last msg file is opend in normal window (not maximized) then my code will not open msg file maximized!!.)
So what i want is HWND from hProcess. so that i can send message to that window for maximize!!!
I have searched a lot and also applied a code. but i think my dll handles this so i m not getting required results.
//////////////////////////////////// hProcess is returned by ShellExecuteEx
WaitForInputIdle(hProcess,1000);
FILETIME lpCreationTime, lpCreationTime2;
FILETIME d1,d2,d3;
DWORD dwProcessId;
HANDLE hProc;
GetProcessTimes( hProcess, &lpCreationTime, &d1, &d2, &d3 );
HWND hTemp = ::FindWindow(NULL,NULL);
while ( hTemp != NULL )
{
if ( ::GetParent(hTemp) == NULL )
{
::GetWindowThreadProcessId(hTemp,&dwProcessId);
hProc = OpenProcess(PROCESS_QUERY_INFORMATION, 0, dwProcessId);
GetProcessTimes( hProc, &lpCreationTime2, &d1, &d2, &d3 );
CloseHandle(hProc);
if ( lpCreationTime.dwHighDateTime == lpCreationTime2.dwHighDateTime &&
lpCreationTime.dwLowDateTime == lpCreationTime2.dwLowDateTime )
{
//("Sending Message"); // Never came here
::PostMessage(hTemp,WM_SYSCOMMAND,SC_MAXIMIZE,0);
break;
}
}
hTemp = ::GetWindow(hTemp, GW_HWNDNEXT) ;
//"looping");
}
// i have also tried with EnumWindows and its proc.
Can anyone help me in getting solved my problem.
Thank in advance.
Regards
Jetli
Constant Thing In World Is Change.
|
|
|
|