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

Search:

Type: Posts; User: ekhule

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,532

    Re: OnPaint() not being called for CWnd

    I think I figured it out. I was missing #include "afxwin.h"
  2. Replies
    2
    Views
    2,532

    OnPaint() not being called for CWnd

    Hello,

    I have a CWnd class, that is a child to another CWnd. The problem is that onPaint() is never invoked. Even when I call UpdateTest(), and the Invalidate() gets called, OnPaint() still does...
  3. Replies
    12
    Views
    3,601

    Re: How to draw a 2D array of data in MFC

    Hello Philip,

    Ok I made some progress. I got it to display if I use dc, but not when I use dcMemory. So this code works:



    CPaintDC dc(this);
    ...
    CRgn region;
    ...
  4. Replies
    12
    Views
    3,601

    Re: How to draw a 2D array of data in MFC

    Hello Philip,

    Is it possible you can zip up your sample project and post it here? For some reason nothing is displaying correctly for me.

    I also sent you a private message if you get a chance...
  5. Replies
    12
    Views
    3,601

    Re: How to draw a 2D array of data in MFC

    Can you post the code that has the changes you made?

    I don't have my code here to post those values for the variables, but I will post them as soon as I can.

    Thanks!
  6. Replies
    12
    Views
    3,601

    Re: How to draw a 2D array of data in MFC

    Hello Phillip,

    The data I am attempting to plot is coming from a radar, if that helps.
  7. Replies
    12
    Views
    3,601

    Re: How to draw a 2D array of data in MFC

    What type should I use then to pass to CreatePolygonRgn() ? It takes LPPOINT's which are longs. Can I pass doubles to them?

    Thanks
  8. Replies
    12
    Views
    3,601

    Re: How to draw a 2D array of data in MFC

    Thanks for the response. I took this code, and I tried to make it work, but nothing was displaying on the screen. So I started debugging the points, and here is an example of my 4 points:

    (0, 0)...
  9. Replies
    12
    Views
    3,601

    How to draw a 2D array of data in MFC

    Hello,

    I have a circle of data that is represented as:

    vector<vector <unsigned char> >* data;

    The first dimension of this vector is the angle of the data so there are 360 angles, and the...
  10. Replies
    11
    Views
    5,681

    Re: AfxRegisterWndClass() causes crash

    I fixed this issue by converting my project to unicode.
  11. Replies
    11
    Views
    5,681

    Re: AfxRegisterWndClass() causes crash

    Ok, i have 3 classes involved in the Create() call. I have the View class, which has a handle to the CWnd derived window. In the view's OnCreate() I have:



    int...
  12. Replies
    11
    Views
    5,681

    AfxRegisterWndClass() causes crash

    Hello,

    My app crashes when I attempt to create a CWnd as shown below. I am attempting to create the CWnd with a a parent of type CFormView. Does anyone know why this might be crashing?


    ...
  13. Replies
    2
    Views
    3,848

    Help! ambiguous symbol error

    Hello,

    Here is the error I am getting:

    1>d:\testproject\gdiplusrenderer.h(61): error C2872: 'Font' : ambiguous symbol
    1> could be 'c:\program files (x86)\microsoft visual studio...
  14. Problem with PostMessage() in CView derived class

    Hello,

    Nevermind I figured this out, and it is not worth answering on here.
  15. Replies
    2
    Views
    1,272

    Boost shared_ptr question

    Hello all,

    I have a class called Wheel, and I created a boost shared_ptr to this class in the following way:



    typedef boost::shared_ptr<Wheel> WheelPtr;


    I also have a vector of these...
  16. error: invalid initialization of non-const reference of type ...

    Hello,

    I am tryign to use the Singleton design patterno on Linux, but it is not working:

    in the .h I have:



    public:
    static ErrorH& Instance();
  17. Re: warning C4715: 'CM::Instance' : not all control paths return a value

    How would you fix this code? I am stumped!
  18. warning C4715: 'CM::Instance' : not all control paths return a value

    Hello, I have the following code where I use the singleton design pattern, but I get the warning:

    warning C4715: 'CM::Instance' : not all control paths return a value



    CM& CM::Instance()
    { ...
  19. Replies
    7
    Views
    3,138

    Windows strcpy overflow question

    Hello,

    I have the following code:

    char buf[5];
    strcpy(buf, "12345678");


    When I run this from the IDE in Release mode, it works fine, no crashes. However, when I change "12345678" to...
  20. Replies
    5
    Views
    2,307

    Re: just get filename from wstring?

    Hello Paul,

    Do you have any sample code with that function? I can't much about it online.

    Regards,
    Ellay K.
  21. Replies
    5
    Views
    2,307

    just get filename from wstring?

    Hello,

    I have a file path in a wstring like this:

    wstring pathName = L"c:\windows\system\test.exe";

    I want to be able to geta new wstring that just contains "test" from this wstring.
    ...
  22. Replies
    1
    Views
    517

    help looping through a vector of vectors

    Figured it out, nevermind!

    Ellay K.
  23. Replies
    1
    Views
    724

    looping through a vector of vectors

    Figured it out, nevermind!\

    Thanks!
    Ellay K.
  24. Replies
    1
    Views
    943

    Re: unexplained linking errors

    nevermind.. I missed a sneaky /MD :)
  25. Replies
    1
    Views
    943

    unexplained linking errors

    Hello all,

    I get the following linking errors when trying to compile my exe:

    1>MSVCRT.lib(MSVCR100.dll) : error LNK2005: _tolower already defined in libcmt.lib(tolower.obj)...
Results 1 to 25 of 167
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured