|
an exe (A) exectutes (runs) another exe (B).
I hope A is waiting at executing call point untill B is created or failed, then A continues to process its code bellow call point.
Simply said, the execute call (ShellExecute or others) is similar to SendMessage(...) in sync-way.
How to do it? CreateProcess()?
|
|
|
|
|
Unfortunately CreateProcess is not a blocking call as you're expecting it to be. It returns even before the target process has completely initialised (the docs...).
You might consider posting a message to the creating process from the newly spawned process (some sort of indication that the new process is live and kicking).
Does that help?
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Rajesh R Subramanian wrote: Unfortunately CreateProcess is not a blocking call
i.e. Any sentence, out of context, may be funny!
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]
|
|
|
|
|
What's it? I'm missing some subtle humour here.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I'm pretty happy CreateProcess is not blocking as requested by the OP.
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]
|
|
|
|
|
Rajesh R Subramanian wrote: What's it? I'm missing some subtle humour here.
Actually typical English humour; interesting that it was posted by a foreigner - that's the EU for you
[edit]Sorry Rajesh; the suggestion is that the expression 'blocking call' is a curse/obscenity.[/edit]
|
|
|
|
|
Hehe... Thank you.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hi,
i've just managed to build a TABControl. Below this TabCtrl i have some Checkboxes which should be used to enable and disable all DialogItems from a Tab.
I.e. if i uncheck a checkbox, i want all elements from my first dialog, which is on my first tab to be disabled.
Is there any solution to dynamically get all elements from a dialog and not adding a member variable to each and disabling it?
ty!
|
|
|
|
|
GetWindow(...) with a loop
|
|
|
|
|
Should i put the ID's of all elements in an array and do the loop over the GetWindow or is there any other way?
|
|
|
|
|
No, have a look about the function.
code is:
CWnd*pw=GetWindow(GW_CHILD);
while(pw)
{
pw=GetWindow(GW_HWNDNEXT);
}
|
|
|
|
|
CWnd* pw = m_tab1.GetWindow(GW_CHILD);
while(pw)
{
MessageBox("trala");
pw=m_tab1.GetWindow(GW_HWNDNEXT);
}
ends in endless "trala"'s
"m_tab1" is the ctrl for my dialog.
in general i would write:
m_tab1.GetDlgItem(IDC_T1_OK)->EnableWindow(0);
|
|
|
|
|
Sorry, missed pw-> in code.
According to your code, the code is:
CWnd* pw = m_tab1.GetWindow(GW_CHILD);
while(pw)
{
MessageBox("trala");
pw=pw->GetWindow(GW_HWNDNEXT);
}
|
|
|
|
|
|
Now that i've gotten the handle to all items, i'd like to know how i may get information of which kind the item is.
is there any way to get to know whether the item is a button or a spin control or... whatever?
|
|
|
|
|
Hi All,
I am trying to run a chat client-server application in vc++.The server is running on Windows Vista whereas client is running on Windows XP.The application failed.Can anybody tell me how to make it work.
Regards,
Abinash
|
|
|
|
|
Abinash Mohanty wrote: I am trying to run a chat client-server application in vc++.The server is running on Windows Vista whereas client is running on Windows XP.The application failed.Can anybody tell me how to make it work.
Yes: fix it.
i.e. vague question -> vague answer.
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]
|
|
|
|
|
Abinash Mohanty wrote: The application failed.
Wow, that was a very clear description of your problem
There's nothing wrong with using XP as client and Vista as server, so I guess you'll need to investigate a bit more than that (e.g. use your debugger).
|
|
|
|
|
While asking a question please be specific as to what you are using , what exactly is failing , which framework are you working on, what language you are using , what is the error you are getting in log file and in which method or function it fails.These all things are mandatory if you want a proper answer to your question. Else, its all to vague
Regards,
Kushagra
I hate coding but I luv to develop .
|
|
|
|
|
Sockets are not dependent on the operating systems (not even programming languages). You can have a C++ server and have a client written in VB (ugh...) connect to it.
So, you have essentially given no clue. All we know is that your program is "not working". So, the only possible suggestion to you would be "then fix it".
If you could give more details and be specific, one or the other would definitely answer your query. You might as well look at one of those plenty of articles on client/server programming. Search CP.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
hi all
my question is that can we typecast the directshow filter?
if yes how i typecast the IUnknown filter to IBaseFilter?
pls help me
|
|
|
|
|
raj1576 wrote: my question is that can we typecast the directshow filter?
Why?
raj1576 wrote:
if yes how i typecast the IUnknown filter to IBaseFilter?
Why don't you use the mechanism COM provides for, i.e. QueryInterface ?
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]
|
|
|
|
|
thanks pallini for reply
Because I am getting the value from the IUnknown filter from the gmfbridge and now i want to connect the manually graph so that I have to use typecast this IUnknown filter to the IBaseFilter.
|
|
|
|
|
Your question is unclear, to say the least. I can't make head or tail out of it. Can you explain more clearly?
Steve
|
|
|
|
|
I am using gmfbridge to play the clips
hr = pController->CreateSourceGraph(wFilter, m_pGraph, &m_pSinkFilter);
where m_pSinkFilter is the IUnknown type. If I want to GetPin of this m_pSinkFilter then this function wants the IBaseFilter type.
GetPin((IBaseFilter*)&m_pSinkFilter, PINDIR_OUTPUT);
Is this possible
|
|
|
|