|
what is the bets way to erialise Chris' grid control?
if it is embedded in a view, using his method for doing this?
|
|
|
|
|
I am trying to make a composite control so that I can use it in my grid. In the control, I have several check boxes. I want them to act like radio buttons. However, I couldn't figure out how to make them talk to each other. Any suggestions? I have gone through a lot of ATL samples, but I couldn't find any composite example.
Thanks
JC
|
|
|
|
|
Hi all,
does anybody have a Visual C++ solution for schedule problems and visualisation by Gantt-Diagrams.
|
|
|
|
|
Hi all,
does anybody have a Visual C++ solution for schedule problems and visualisation by Gantt-Diagrams.
|
|
|
|
|
Hi, everybody!
Do somebody know whether is it possible to emulate a system modal dialog (I mean a 'system modal' style) using MFC CPropertySheet class?
Thanks in advance.
|
|
|
|
|
Hi All --
I'm probably overlooking a simple API or class, but:
Does anyone have sample code for converting a double value to a formatted string using the currency format defined by the system? For example:
double dValue = 1234567.89;
CString sValue = FormatAsCurrency(dValue);
// If we're in the USA,
// sValue should be "$1,234,567.89".
// If we're in the UK,
// sValue should be "£1,234,567.89"
I'd be grateful for any suggestions.
|
|
|
|
|
Use wsprintf() to convert your value to a string, then call GetCurrencyFormat(). Simple!
--Mike--
==================
The original message was:
Hi All --
I'm probably overlooking a simple API or class, but:
Does anyone have sample code for converting a double value to a formatted string using the currency format defined by the system? For example:
double dValue = 1234567.89; CString sValue = FormatAsCurrency(dValue);
// If we're in the USA, // sValue should be "$1,234,567.89". // If we're in the UK, // sValue should be "£1,234,567.89"
I'd be grateful for any suggestions.
|
|
|
|
|
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
|
|
|
|