|
I think it is better to send WM_CLOSE to the window instead of calling DestroyWindow().
Slavisa
|
|
|
|
|
I suspect you've to use EnumThreadWindows [^], passing, as dwThreadId argument, the dwThreadId member of the PROCESS_INFORMATION struct filled by CreateProcess function.
It's just a guess: the test is up to you.
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]
|
|
|
|
|
Friens i used
GetWindowThreadProcessId(hwnd, &dwProcessId);
and also PostMessage(hwnd,WM_CLOSE,0);
but it is not moving into that if loop still
if(dwprocessid == DWORD(param))
i could not figure it out what i need to do now or IS there any other way to get the handle of the window
seeking ur help....
|
|
|
|
|
Well, since you just want to close the program you could use TerminateProcess(hProcess, 0);
Slavisa
|
|
|
|
|
I am sorry not exactly i want to close the process slavisa i need to close that window alone and should open the next command line say next.wmv in that place
|
|
|
|
|
A hammer is another option.
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]
|
|
|
|
|
I am sorry i could get what does A hammer is.. could you please throw some light on this area..
|
|
|
|
|
Hammer [^].
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]
|
|
|
|
|
I am in a serious deputation buddy...
|
|
|
|
|
vijaywithu wrote: I am in a serious deputation buddy...
You are a Member of Parliament?
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]
|
|
|
|
|
Hi,
CString strBuffer("");
int count=1;
count= m_cCombo.GetCurSel();
if(count!=CB_ERR)
{
m_cCombo.GetWindowTextW(strBuffer);
const char* temp=strBuffer;
m_nCount=atoi(temp);
}
|
|
|
|
|
Use LPCTSTR instead of const char* and _ttoi() instead of atoi().
- ns ami -
|
|
|
|
|
USING CONVERSION;
const char* temp=W2A(strBuffer);
|
|
|
|
|
What about
if( m_cCombo.GetCurSel()!= CB_ERR)
{
CString strText;
m_cCombo.GetWindowText(strText);
m_nCount = _tstoi( strText );
} ?
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]
|
|
|
|
|
assertion failure
atlbase.h
|
|
|
|
|
I think you asked an encoded question about Inprocess Reco Engine previous can you decode your question, we cant guess your problem.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
runtime check failure
foo.cpp
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]
|
|
|
|
|
I want to create resource dll in vc++ under visual studio 2005.Plz help me, if u have any sample application,plz send the link.
Thank you
|
|
|
|
|
If you mean a resource only DLL, then create a Win32 DLL, add the resources and set the No Entry Point linker option to Yes.
Project Properties -> Linker -> Advanced -> No Entry Point
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for answering. Now plz tell me that How to add resources? Can u explain sir?
Thanks in advance..
|
|
|
|
|
There is a menu option for that.
Project -> Add Resource
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Let me explain u my problem.
I have an application in english. Now I want to add multilingual support for german and japanese too. So the problem is that how to add my English application's resources to German and French DLL, because this step is required to create resource only dll for German and Japanese language.
plz tell me that how can I add all resources such as Dialogs,menus,strings etc. from my English application to other language's resource DLL?
Thank You.
|
|
|
|
|
|
Thanks for answering sir but I have seen this link already, but it doesn't solve my problem.
I fu have any other link plz send me the link
thank you.
|
|
|
|
|
Why you cant use of it?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|