|
Has anybody else had problems getting the MFC samples to run from Microsoft's site?
I have downloaded two different projects and both gpf'd when I ran them. I don't know enough to track down the problem, has anybody else had this problem? Is there some setting that I need to change?
|
|
|
|
|
Hi friends!
I'm trying to cancel initial text selection for my CEdit in CPropPage, but it dies not happends. What's wrong with it?
Thanks,
Serge
|
|
|
|
|
==================
1.You may creaet a new control and invisible it.
2.open rc file with txt mode
3.move the new control line beyond CEdit Control. That's it.
|
|
|
|
|
All,
I have downloaded the NT Symbols files for NT SP6a and have attempted to install them using Visual Studio -> Tools -> Windows NT Symbols Setup. This wants the original VS6 CD, if I ignore this and install the files I have downloaded it only installs the couple it was going to from the VS6 CD. Any ideas how to do this ? Is there a manual hack ?
I could find no help on http://www.microsoft.com/support/search/ for this question.
|
|
|
|
|
Hello,
I'm a software developer and have following problem
with Win32 API and serial communication :
In my protocol is a read thread to receive bytes.
The function ReadFile() reads one Byte from serial
interface (COM1 or COM2). I use an overlapped
structure to receive data. If there is an error
the function WaitForSingleObject() is called. Usually
the receive is correct. Sometimes the function
ReadFile() don't read a Byte although the InQueue
has a byte. The function WaitForSingleObject() is called.
This function returns with WAIT_TIMEOUT, the current
Byte is lost.
If I call in this case PurgeComm(), the lost Byte is in
the buffer which was in ReadFile() the input buffer.
But this algorithm don't works correct every time.
How can I read the Byte in the InQueue if this byte
can't read from a Win32 API function ?
How can I avoid this problem ?
Good buy
Rico Salfer
|
|
|
|
|
I also use the ReadFile for serial comm and I found that the problem I was having was that I was using the same overlapped object for both Put and Get. If I did a Put while a Get was waiting for data, the stuff would get trashed. I made sure that only one was doing overlapped operation and the other was just doing a WaitCommEvent. I also found that the number of bytes read that ReadFile returns was not correct. I just figure out the length on my own with a strlen().
Vern
==================
The original message was:
Hello,
I'm a software developer and have following problem with Win32 API and serial communication :
In my protocol is a read thread to receive bytes. The function ReadFile() reads one Byte from serial interface (COM1 or COM2). I use an overlapped structure to receive data. If there is an error the function WaitForSingleObject() is called. Usually the receive is correct. Sometimes the function ReadFile() don't read a Byte although the InQueue has a byte. The function WaitForSingleObject() is called. This function returns with WAIT_TIMEOUT, the current Byte is lost. If I call in this case PurgeComm(), the lost Byte is in the buffer which was in ReadFile() the input buffer. But this algorithm don't works correct every time.
How can I read the Byte in the InQueue if this byte can't read from a Win32 API function ? How can I avoid this problem ?
Good buy Rico Salfer
|
|
|
|
|
Is there any way to tell the vc++ compiler to split a certain function into several optimization blocks. i.e each block in the function is a distinct optimization unit.
thanks
jonathan
|
|
|
|
|
Hi all,
I want to add the functionality , that set the url document, right to left document and left to right document. In visual c++ , mfc. Please help....
thanks Lilach.
|
|
|
|
|
I'm a little confused about what you needed... but here is instruction on how to include the web browser control on a dialog.
Go to project, Add To Project, Components and Controls.
Go to Registered Active X controls and select Microsoft Web Browser.
This should create the files WebBrowser2.cpp & .h
In you dialog #inlcude “WebBrowser2.h”
then when you want to fill in you browser with a site add the following
CWebBrowser2* pBrowser = (CWebBrowser2*)GetDlgItem( IDC_EXPLORER1 );
COleVariant varEmpty = new COleVariant;
pBrowser->Navigate( "http://www.carolecode.com", &varEmpty, &varEmpty,&varEmpty, &varEmpty );
==================
The original message was:
Hi all,
I want to add the functionality , that set the url document, right to left document and left to right document. In visual c++ , mfc. Please help....
thanks Lilach.
|
|
|
|
|
From my dialog base app I call a modal dialog window. When minimized the parent window does not become minimize aswell. When I minimize the child dialog I would like to minimize all ancestor windows. Anyone know how please?
|
|
|
|
|
Hi,
I'm writing a MFC dailog app where I wish to be able to change the Dialog client area Background on the FLy.
Is there aan easy way of doing this,
Regardz
Colin Davies
|
|
|
|
|
Override the dialog's WM_ERASEBKGND so that the dialog background is not draw, and then in OnPaint draw the background you want.
Email me for more help.
Jerry
==================
The original message was:
Hi, I'm writing a MFC dailog app where I wish to be able to change the Dialog client area Background on the FLy. Is there aan easy way of doing this,
Regardz Colin Davies
|
|
|
|
|
Thanks Jerry !
==================
The original message was:
|
|
|
|
|
I would so appreciate someone telling me what I'm failing to do in implementing splitter windows in an SDI app. A boiled down version of my program--default MFC SDI
app created with MSVS 6 app wizard, accepting all the defaults. Using ClassWizard, I add a new view class derived from CEditView. I then add a public CSplitterWnd
object to CMainFrame, and override the OnCreateClient() function with the following code (this code is taken more or less verbatim from the MFC sample DaoView):
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) {
if (!m_Splitter.CreateStatic(this, 1, 2)) {/*error handling*/}
if (!m_Splitter.CreateView(0, 0,
pContext->m_pNewViewClass, CSize(100, 50), pContext)) {/*error handling*/}
if (!m_Splitter.CreateView(0, 1,
RUNTIME_CLASS(CSplitEditView), CSize(0,0), pContext)) {/*error handling*/}
SetActiveView((CView*)m_Splitter.GetPane(0, 1));
return CFrameWnd::OnCreateClient(lpcs, pContext);
}
Program compiles fine, runs fine, but with no splitters. What am I leaving out? TIA
|
|
|
|
|
I just went through the same thing but as soon as I stopped calling the CFrameWnd::OnCreateClient function.
So instead of this:
return CFrameWnd::OnCreateClient(lpcs, pContext);
just try:
return TRUE;
|
|
|
|
|
Anyone have any suggestions on a simple, efficient way to remotely execute a program on another Windows NT machine from a local program and then have that program wait until the remote program finishes executing before continuing?
Thanks.
Laura Michaels
|
|
|
|
|
Can anyone here help me? I have gotten no response on the microsoft newsgroups. I want to use Working Set Tuner to optimize the rebasing of a number of DLLs, but I cannot find the WST tools on either the Sept. 1999 or the January 2000 Platform SDK (as far as I can tell, the Working Set Tuner is still supposed to be part of the PSDK---it's listed in the documentation). Can anyone tell me where to look?
Thanks,
Jonathan
|
|
|
|
|
Utilities like VADUMP and others are in the Platform SDK. Try searching on "Tuning the Working Set of Your Application" in the MSDN library or online. Look under "Performance Utilities" if you get that far.
HTH
==================
The original message was:
Can anyone here help me? I have gotten no response on the microsoft newsgroups. I want to use Working Set Tuner to optimize the rebasing of a number of DLLs, but I cannot find the WST tools on either the Sept. 1999 or the January 2000 Platform SDK (as far as I can tell, the Working Set Tuner is still supposed to be part of the PSDK---it's listed in the documentation). Can anyone tell me where to look?
Thanks, Jonathan
|
|
|
|
|
I find documentation in the PSDK documentation, but I installed the whole PSDK and cannot find the executables WST.DLL, WSTUNE.EXE, WSTCAT.EXE, and WSTDUMP.EXE that the documentation refers to anywhere on my disk. Where do you find the executables?
==================
The original message was:
Utilities like VADUMP and others are in the Platform SDK. Try searching on "Tuning the Working Set of Your Application" in the MSDN library or online. Look under "Performance Utilities" if you get that far.
HTH
================== The original message was: Can anyone here help me? I have gotten no response on the microsoft newsgroups. I want to use Working Set Tuner to optimize the rebasing of a number of DLLs, but I cannot find the WST tools on either the Sept. 1999 or the January 2000 Platform SDK (as far as I can tell, the Working Set Tuner is still supposed to be part of the PSDK---it's listed in the documentation). Can anyone tell me where to look?
Thanks, Jonathan
|
|
|
|
|
I just received the following note from Robin Caron at MS Developer Support:
Hi Jonathan,
The release notes failed to indicate the the working set tuner is not
included with the Platform SDK because it did meet expectation for quality
and stability set for Windows 2000. If you have specific needs that were
answered by WST, please let me know and I'll do my best to find you
alternatives.
At a future time tools like working set tuner may get added back into the
Platform SDK.
Thank you for using the Platform SDK.
|
|
|
|
|
Pls help me some other problem:
- Can I creat and activate other child Dialog from a
Dialog ?
- How to throw ESC keystroke while activating dialog.
I try to write a Dialog base program with MFC Wizard.
When main window (dialog) activated, if ESC pressed,
the window (program) also deactivate. Whate can I do
to avoid this ?
- I want to make my main window (dialog) to have a
background with a small picture (bmp) like webpage (by
"tile" way. Can you help me to do this ? Can you send
me a dialog class with the this properties ? I have
download a source nearly with my taget (BmpDlg - from
CodeProject/Codeguru), but I could not to change
Static Control to not transparent.
Please help me asap.
Thank you,
Hai Le
|
|
|
|
|
Hitting the ESC key calls CDialog::OnCancel() which closes the dialog. You just have to override OnCancel() and make the handler empty (don't call the base class OnCancel)
As for the static controls, add a handler for WM_CTLCOLOR, and when nCtlColor is CTLCOLOR_STATIC, return a null brush.
--Mike--
==================
The original message was:
Pls help me some other problem:
- Can I creat and activate other child Dialog from a Dialog ? - How to throw ESC keystroke while activating dialog. I try to write a Dialog base program with MFC Wizard. When main window (dialog) activated, if ESC pressed, the window (program) also deactivate. Whate can I do to avoid this ? - I want to make my main window (dialog) to have a background with a small picture (bmp) like webpage (by "tile" way. Can you help me to do this ? Can you send me a dialog class with the this properties ? I have download a source nearly with my taget (BmpDlg - from CodeProject/Codeguru), but I could not to change Static Control to not transparent.
Please help me asap.
Thank you,
Hai Le
|
|
|
|
|
I'm using SHBrowseForFolder to create a browse dialog. The problem is when I change the
CD the CD volume label on the dialog is not refreshed. Even if I cancel out of the dialog and
then put in a new CD the label in the dialog still reflects the old CD.
|
|
|
|
|
I have a dialog derived from CFileDialog. I override OnLBSelChangedNotify. According to Microsoft documentation this should get called every time the selection changes, but it doesn't.
Any ideas or workarounds?
|
|
|
|
|
Is there any API to play MP3 files ?
Alex
|
|
|
|