Anyone know how to test the operating system for windows 98/2000/XP. I need to know the is_windowsnt result but I don't know how to enter it in the condition field in the installer. I want to install a file but only in windows 98. Thanks.
Hi,
I have ported over an app from VC 6.0 to .Net 2003. I am compiling the debug version, and it all links and builds fine. However when I run it I get a missing msvcrtd.dll error. Surely the app should be looking for msvcr71d.dll ? How can I get around this. Thanks.
I know there is a TRACE function/macro that will dump
the stack trace out to the output window in the debugger,
what I want to do is dump the results to a file (as I
will be running a debug build but not with the debugger).
I have chosen not to run a release build because the
TRACE...
All,
I am writing a bitmap to a file, however after I bit blat
with BitBlt how can I change all references from one colour
to another ? I am trying to change the blue background to
white so I can save the image with a white background.
Thanks.
CBitmap bitmap;
CClientDC dc(pwd);
CDC memDC...
All,
I have an app developed in XP using visual studio 6. All
works fine. It is an MDI that has a multidoctemplate
setup in the App class.
In 95/98 however I run the app and it crashes in the MFC
the stack is
CMDIChildWnd::OnCreate
CFramWnd::OnCreateClient
CFrameWnd::OnCreateHelper
It appears...
All,
I am interested in monitoring how much memory
my app is using (it looks like it may be leaking
I am using bounds checker to search for the leaks),
but on the live system I can monitor the
physical memory available in the task manager,
but how and when does the app hand back the memory...
Can anyone please help me by providing an example of
how to print a view without the print dialog box
coming up, I just want to print the current view
with the default printer, thanks !
Marcus
I had a project created using the class wizard,
now I have imported the code into a different
project. I now get asserts in the MFC complaining
about using Afx Format Strings, basically it can not find
the resources. What DLL or resource do i need to link in ?
Thanks
All,
I have a problem with LoadString not finding any Afx Strings, the various VERIFY
statements assert due to not finding the string.
The strings vary from "Untitled" which is used
via a NewDocument call, to "Do you wish to save ?"
e.g. of a verify assert
BOOL...
History:
Buttons on a dialog bar can not be enabled and disabled
(see KBA 152376).
The answer is to have a handler for ON UPDATE COMMAND UI
to the button
void CMainFrame::OnUpdateButton1(CCmdUI *p)
{
p->Enable(TRUE);
}
so this is great it works, now I want to disable this
button when the...
All,
I have a dialog bar that is created thus...
void CMainFrame::OnCreate()
{
if(!m_wndDlgBar.Create(this,IDD,CBRS_LEFT,IDD)
.
.
.;
}
The MainFrame is created from MyApp::InitInstance()
what I need to know is when can I set the button states
(i.e. Grayed - SetWindow(false)) I...
hello all,
I am trying to display a bitmap in a rectangle on a view.
I have written this to do it...
void MyView::OnDraw(..)
{
HBITMAP MyBitmap = (HBITMAP)::LoadImage(0,"bit1.bmp", IMAGE_BITMAP, 0 ,0 ,LR_LOADFROMFILE);
CStatic BitDraw;
BitDraw.Create("", SS_BITMAP...
I have created a menu in the resource editor and have
implemented the following code (in my View class)
void CMBFView::OnContextMenu(CWnd *p, CPoint point)
{
CMenu Me;
Me.LoadMenu(ID_MY_MENU);
Me.TrackPopupMenu(TPM_RIGHTALIGN | TPM_RIGHTBUTTON,
point.x, point.y, this);
SetMenu(&Me)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.