CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ChrisD

Page 1 of 27 1 2 3 4

Search: Search took 0.19 seconds.

  1. Check out http://www.memtest86.com, it is a...

    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...
  2. Replies
    1
    Views
    995

    Ths is atually a built in MDI function (if I...

    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...
  3. Thread: event handling

    by ChrisD
    Replies
    3
    Views
    724

    If I remeber correctly Timers created using...

    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...
  4. Replies
    2
    Views
    636

    You need to call the base class OnIdle function...

    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...
  5. Thread: CMap : HashKey?

    by ChrisD
    Replies
    13
    Views
    3,871

    Xeon, I created a MFC dialog app added a button...

    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;...
  6. Replies
    1
    Views
    1,201

    Change...

    Change
    wc.hbrBackground=GetStockObject(WHITE_BRUSH);

    to

    wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);

    Chris
  7. Replies
    1
    Views
    1,263

    How are you passing the CStringT object can you...

    How are you passing the CStringT object can you post sample?

    Chris
  8. Replies
    5
    Views
    826

    Check out CVS http://www.cvshome.org/ Chris

    Check out CVS

    http://www.cvshome.org/

    Chris
  9. Thread: weird atof

    by ChrisD
    Replies
    2
    Views
    629

    I think this should help explain the problem ...

    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...
  10. Replies
    1
    Views
    581

    You need to watch for the following message ...

    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...
  11. Replies
    1
    Views
    701

    add the following line prior to #include...

    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.
    ...
  12. Thread: RGB to hex

    by ChrisD
    Replies
    3
    Views
    751

    Here is the Macro used in windows to do what you...

    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...
  13. Thread: exponential ???

    by ChrisD
    Replies
    6
    Views
    1,052

    Use the pow function from math.h ex: ...

    Use the pow function from math.h

    ex:

    variable=45,5*10^2;

    double dVal = pow(10, 2) * 5;

    variable = 45000 + dVal;
  14. Replies
    2
    Views
    725

    Try adding the following line prior to your puts...

    Try adding the following line prior to your puts statement



    puts("Content-type: text/html\r\n\r\n");


    Chris
  15. Replies
    1
    Views
    776

    You need to create an invisible top level window...

    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
  16. Replies
    1
    Views
    764

    None that I have seen, although reconstructing...

    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...
  17. Thread: Bn_clicked

    by ChrisD
    Replies
    5
    Views
    2,595

    I have attached a sample program that I believe...

    I have attached a sample program that I believe does what you want. Take a look and let me know.

    Chris
  18. Thread: Bn_clicked

    by ChrisD
    Replies
    5
    Views
    2,595

    The code that actually calls the function is...

    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....
  19. Replies
    1
    Views
    745

    Is it possible for you to duplicate the problem...

    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...
  20. Thread: Bn_clicked

    by ChrisD
    Replies
    5
    Views
    2,595

    Your OnBFrMPIClose function will not be called...

    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...
  21. Replies
    1
    Views
    799

    You can not call AddString prior to the actual...

    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...
  22. Replies
    1
    Views
    1,102

    If you are switching video modes in your app, it...

    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...
  23. Replies
    4
    Views
    1,659

    It is possible that you need to set those...

    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;...
  24. Replies
    4
    Views
    1,659

    There should be no difference between the...

    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...
  25. Thread: CMap : HashKey?

    by ChrisD
    Replies
    13
    Views
    3,871

    Yes, MFC actually takes the the return value of...

    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...
Results 1 to 25 of 667
Page 1 of 27 1 2 3 4





Click Here to Expand Forum to Full Width

Featured