Search:
Type: Posts; User: ChrisD
Search:
Search took 0.19 seconds.
-
July 22nd, 2003, 02:05 PM
Check out http://www.memtest86.com, it is a memory testing utillity for the x86 processor. It is controlled under the GPL, so source is available. It may not be 100% what you need, but it does do a...
-
July 22nd, 2003, 01:57 PM
Ths is atually a built in MDI function (if I remeber correctly). However if you override WM_GETMINMAXINFO(this name may be slightly off) for your view classes, you can adjust the the minimum size in...
-
If I remeber correctly Timers created using SetTimer will not work unless you have a Message Loop in your Application. Since you have a console app, it is likely you do not. You might want to look...
-
January 22nd, 2003, 03:45 PM
You need to call the base class OnIdle function from your function first.
BOOL CVisionRayApp::OnIdle(LONG lCount)
{
BOOL bRet = CWinApp::OnIdle(lCount);
// Do not render if the app is...
-
August 10th, 2002, 10:42 PM
Xeon,
I created a MFC dialog app added a button and then added the following to the Dialog class
void CMapTestDlg::OnButton1()
{
CMap<COleDateTime, COleDateTime&, int, int> maptest;...
-
July 25th, 2002, 04:39 PM
Change
wc.hbrBackground=GetStockObject(WHITE_BRUSH);
to
wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
Chris
-
July 25th, 2002, 04:26 PM
How are you passing the CStringT object can you post sample?
Chris
-
July 24th, 2002, 09:20 AM
Check out CVS
http://www.cvshome.org/
Chris
-
July 12th, 2002, 10:26 AM
I think this should help explain the problem
float min = atof(pmmi->min_value.c_str());
// value<min here is compared as float < float
cerr << (value<min?"yes":"no") << endl;
// here...
-
July 12th, 2002, 09:59 AM
You need to watch for the following message
const UINT WM_TASKBARCREATED =
::RegisterWindowMessage(_T("TaskbarCreated"));
It is sent any time the taskbar is recreated, and you therefore...
-
July 10th, 2002, 02:13 PM
add the following line prior to #include <windows.h>
#define _WIN32_WINNT 0x0400
This tells the header file that you are targeting WINNT 4.0 or greater and it can expose any NT API functions.
...
-
Here is the Macro used in windows to do what you are asking
#define RGB(r,g,b) ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16)))
This will return the single...
-
Use the pow function from math.h
ex:
variable=45,5*10^2;
double dVal = pow(10, 2) * 5;
variable = 45000 + dVal;
-
Try adding the following line prior to your puts statement
puts("Content-type: text/html\r\n\r\n");
Chris
-
You need to create an invisible top level window and then use the invisible window as the parent, as far as I can remember this is this only way.
Chris
-
None that I have seen, although reconstructing the class names/ serialized data would probably not be that difficult. If you really need security overide the FileSave function so that you can change...
-
I have attached a sample program that I believe does what you want. Take a look and let me know.
Chris
-
The code that actually calls the function is located in
CCmdTarget::OnCmdMsg. So I would take a look at that function and use it as a basis to create a function to give you the information you need....
-
Is it possible for you to duplicate the problem with a program that just has the dialog box in question? And if so can you post that code as an attachment to the post. If so I will try it on my...
-
Your OnBFrMPIClose function will not be called until after PreTranslateMessage is called. The code you have in PreTranslatate Message will stop any BN_CLICKED messages from being processed. If you...
-
You can not call AddString prior to the actual creation of the dialog box (DoModal in your case). The easiest thing for you to do is add a member function to CFrameDialog that adds the strings to a...
-
If you are switching video modes in your app, it is very possible it is a display driver problem. Also debbugging DirectX app's is best accomplished thru remote debuging. This way the system does not...
-
It is possible that you need to set those extended sytles at creation time. To do that you need to use CWnd::CreateEx.
ex:
DWORD dwStyle = EDITSTYLE;
DWORD dwExStyle = EDITEXSTYLE;...
-
There should be no difference between the resource created edit control and code created edit control. Try comparing the Window Styles and Extended Styles of the 2 controls using either Spy++ or by...
-
Yes, MFC actually takes the the return value of your HashKey fuction and the does the following
nHash = HashKey(key) % m_nHashTableSize;
this keep the value returned within the boundry of the...
|
Click Here to Expand Forum to Full Width
|