|
Which article are you talking about?
jhaga
|
|
|
|
|
Hi Ray,
Is that struct member alignment in
(Settings:C++\Code Generation) settings is different from the default(marked with *)?
OR
Is this comes only with Release Mode build? In which build mode this problem appears?
regards
~Hari~
|
|
|
|
|
Friends, I want to cach the event of opening a perticuler application, for that i use Windows Hook. I get the handel of the window but from which application/proccess this window belongs i dont know.
Is there any procedure which give me the process Name, if i will supplied it the window Handle
Waiting for the Positive reply
|
|
|
|
|
GetWindowThreadProcessId - get process ID from window handle
OpenProcess - get process handle
Call EnumProcessModules, for each enumerated module call GetModuleFileNameEx.
|
|
|
|
|
Friends, I want to cach the event of opening a perticuler application, for that i use Windows Hook. I get the handel of the window but from which application/proccess this window belongs i dont know.
Is there any procedure which give me the process Name, if i will supplied it the window Handle
Waiting for the Positive reply
|
|
|
|
|
: while capturing a DV Type-2 file using Microsoft Soft DV encoder "MS DV Encoder" i noticed that the type-2 encoded file size is less than the type-2 file captured from any camcoder using directshow.(Type-1 is ok).
e.g
30 sec type-2 captured from DV Camcoder = 100MB
30 sec type-2 captured from "MS DV Encoder" = 80 MB
I have tried all the interfaces (like IAMVideoCompression ,IDVEnc ..) available on "MS DV Encoder" to do some tweaking but the results are same.
so any one who can help me or explain the reason?????
Liaqat
|
|
|
|
|
Hi, I'm creating a MDI application, with different views (e.g data view, chart view) link to the same doc.
When I open these views the childframe titled "doc:1", "doc:2".
However, I want to change the titled as "doc:data", "doc:chart", is it possible ? If yes then how to do it ? Thanks a lot!
|
|
|
|
|
You can overide the void OnUpdateFrameTitle(BOOL bAddToTitle) method in the frame window classes of your documents (CMDIChildWnd derived):
void CChartFrame::OnUpdateFrameTitle(BOOL bAddToTitle)
{
GetMDIFrame()->OnUpdateFrameTitle(bAddToTitle);
SetWindowText("doc:chart");
}
Pavel
Sonork 100.15206
|
|
|
|
|
Hi,
Hope the following code snippet will help.
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
//--- Following Lines will do the trick---
cs.style &= ~FWS_ADDTOTITLE;
cs.lpszName = "APP NAME : CHILD DOC NAME";
//----------------------------------------
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
return TRUE;
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
//--- Following Lines will do the trick---
cs.style &= ~FWS_ADDTOTITLE;
cs.lpszName = "Mainframe";
//----------------------------------------
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
return TRUE;
}
regards
~Hari~
|
|
|
|
|
The Applications which I have written in vc++ are terminating when I press "Enter" Button or pressing "Escape" button.How can I prevent this type of termination.
|
|
|
|
|
YSRao wrote:
The Applications which I have written in vc++ are terminating when I press "Enter" Button or pressing "Escape" button.
I suppose they are dialog based. If it's so, then override OnOK and OnCancel handlers.
Pavel
Sonork 100.15206
|
|
|
|
|
I assume you've written a dialog based app.
Override the OnOK() and OnCancel() handlers to simply return; without calling the base class methods. Then, add a button (eg: IDC_BUTTON_EXIT ) to your dialog and call CDialog::OnOK() in its handler.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I guess this is a dialog-based app, so you need to override CYourDlg::PreTranslateMessage to catch WM_KEYDOWN messages with (wParam == VK_RETURN || wParam == VK_ESCAPE) . You may simply return TRUE from this function (with no base implementation call) to get rid of the behavior you mentioned.
Regards,
BB
|
|
|
|
|
on click OPEN file... get the data from the file as an array of characters (each line) and ... display it as a TREE
Please give me some hit. Thank a lot.
quoi
|
|
|
|
|
quoi wrote:
on click OPEN file...
Use CFileDialog.
quoi wrote:
get the data from the file as an array of characters (each line)
Use CStdioFile (::ReadString).
quoi wrote:
display it as a TREE
Use CTreeCtrl (::InsertItem).
Perhaps you should read some MFC tutorial first before asking in this message board?
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
|
I am developing IVR application for my organizational needs.I am using only tapi.h and linked with tapi32.lib using vc++.I am facing the problem that all the events are not fired when a call comes in.My telephone has the callerID capability.I am not able to capture the callerID also.
Can anybody suggest me to solve my problem.
Y.Srinivas
|
|
|
|
|
A couple of things,
What TSPI are you using, is it for a modem or a PBX?
How have you Initialised TAPI, are you using LINEINITIALIZEEXOPTION_USEEVENT or LINEINITIALIZEEXOPTION_USEHIDDENWINDOW.
What privilege have you used to open the device LINECALLPRIVILEGE_OWNER or LINECALLPRIVILEGE_MONITOR?
If supported by your TSPI, the CallID can be retrieved using lineGetCallInfo.
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
i want to know by a system call whether that system is connected to the internet r not .for example i had an application how can i make that application run only when it is connected to the internet .is there any specialised commands for that.
|
|
|
|
|
BOOL CheckInternetConnection(LPCTSTR url)
{
DWORD flags = 0;
if(InternetGetConnectedState(&flags,0))
{
if(InternetCheckConnection(url,
FLAG_ICC_FORCE_CONNECTION, 0 ) )
return TRUE;
else
return FALSE;
}
else
return FALSE;
}
And use it like :-
if(CheckInternetConnection(_T("www.google.com")) &&
CheckInternetConnection(_T("www.yahoo.com")))
{
}
"I'm a bit bored at the moment so I'm thinking about writing a new programming language" - Colin Davies
My book :- Summer Love and Some more Cricket [New Win]
Review by Shog9 Click here for review[NW]
|
|
|
|
|
Ei! how do i open .hxi or .hxs files?
i recently installed the microsoft SDK Platform and the documentation files are type hxi and hxs.. it seems that i have no program to open these type of files... I have no MSDN yet... but can you give me another downloadable program that ha a small file size... that opens these files...
thanks...
|
|
|
|
|
|
|
Ok I have a private member variable CArray containing a structure of data. I have a worker thread working with it. It finishes and the thread is terminated.
Then I try calling a non-threaded function in the same class and try to access the array it returns a -1. Why can't it be accessed even when locked?
I've made sure that its unlocked after its unneeded in the threads.
-Steven "the yellow dart" Hicks
CPACodeProjectAddict
|
|
|
|
|
(Steven Hicks)n+1 wrote:
try to access the array it returns a -1
What is returning -1?
Software Zen: delete this;
|
|
|
|