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

Search:

Type: Posts; User: Ergodyne

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    993

    Re: Changing MFC GDI in thread

    Thanks for the advice! I will try using messages.

    Since the application uses GDI I threw that in, but yes you are right, the question does not have anything to do with that.
  2. Replies
    3
    Views
    993

    Changing MFC GDI in thread

    Hello,

    I have an MCF application in which I have started several CWinThreads that interact with the main window.

    Now I'm trying to change the system menu in the window in one of the threads,...
  3. Replies
    7
    Views
    2,377

    Re: Accessing the recent file list

    Ok, so I figured it out by my self and will post the answer just for reference.

    For reading the last opened file I use the following



    CString file =...
  4. Replies
    7
    Views
    2,377

    Re: Accessing the recent file list

    I don't see how that answers the question?

    I found that article to when I googled it but after reading it I realized that it was not quite the same as my question.
  5. Replies
    7
    Views
    2,377

    Accessing the recent file list

    In a MFC application you can add the recent files opened easily to the File menu item list. I have found functions for inserting items in the recent file list but is there a way to obtain the file...
  6. Replies
    23
    Views
    14,408

    Re: Using goto in c++ code

    Ok,

    just to document the answer to this question I will put this here.

    I read a few sections in the book Code Complete and found that it was actually one of the cases where a goto statement...
  7. Replies
    23
    Views
    14,408

    Using goto in c++ code

    This may be a hot topic but I am interested in knowing what the general thought about this is. When I started to learn programming I was taught to never use goto's in the code (c++) and that this was...
  8. Re: Configuration manager problem in Visual studio

    I managed to resolve the matter.

    What I had missed was that one had to use the configuration manager on each project property page and there by access the configuration settings and removing the...
  9. Configuration manager problem in Visual studio

    Hi,

    I'm using Visual Studio 2003 and have a question about using the configuration manager.

    In my project I have used different solution configurations and have also deleted some old ones that...
  10. Replies
    2
    Views
    1,968

    How to use thread Pooling?

    I was looking at the MSDN web page for information about how to use thread pooling and I found some example code there. However, I am not able to compile the code since the compiler seems to be...
  11. Replies
    2
    Views
    769

    Re: Reading a binary file

    Thank you! I don't know where the comma came from but it did not give any errors during compilation. The problem was how ever from not having O_BINARY in the opening mode.

    I had just copied and...
  12. Replies
    2
    Views
    769

    Reading a binary file

    I have some troubles reading from a binary file. I think that I have just messed up somewhere but I can't seem to find the problem.

    When writing an array to a binary file the program shows the...
  13. Replies
    9
    Views
    843

    Re: Speed versus memory

    To make it even more clear, suppose that the above code lies within a threaded section and that there are several threads working with similar problems each having their own arrays to work on.
    ...
  14. Replies
    9
    Views
    843

    Re: Speed versus memory

    Assuming the array that you will be working with can be arbitrary you do not really know the size of it. In that case you might want to keep the memory allocation in the program to a minimum and not...
  15. Replies
    9
    Views
    843

    Re: Speed versus memory

    In a smaller program it would not be any problem allocating the memory but in general what would be the best? How can you measure the memory allocation when testing the program? The speed is easier...
  16. Replies
    9
    Views
    843

    Speed versus memory

    I have a general question regarding c/c++ regarding what is best to optimize.

    Let's say that I have a large array, say of 200.000 elements and I want to look though this array and single out...
  17. Replies
    7
    Views
    1,261

    Re: Trouble with drawing smoothly in SDI

    I solved the problem in a different way. I'm not quite sure why this works but I suspect that it has to do with the fact that the background bitmap is 1.3 MB.

    I changed the loading of the bitmap...
  18. Replies
    7
    Views
    1,261

    Re: Trouble with drawing smoothly in SDI

    Ok, I will try doing that. Thank you for the help!
  19. Replies
    7
    Views
    1,261

    Re: Trouble with drawing smoothly in SDI

    Sure, here are two examples. One is from dragging the window off and on the screen and the other is dragging another window over the application window.
  20. Replies
    7
    Views
    1,261

    Re: Trouble with drawing smoothly in SDI

    No, not really. I was under the assumption that it would slow it down to do all the background drawing in OnDraw.

    Anyway, still when I move the rendering to OnDraw I still get the same result.
    ...
  21. Replies
    7
    Views
    1,261

    Trouble with drawing smoothly in SDI

    Hi,
    I'm making a SDI application and I seem to make something wrong when I am drawing the background.

    When ever the application window is dragged outside of the screen, the drawings in it get...
  22. Replies
    3
    Views
    827

    Re: Problem with redrawing windows

    Hi, well first of all. Sorry for not using code tags. I had no idea they existed. I've edited the first message now.

    To answer your questions:
    1. Well the whole point of learning MFC to me is to...
  23. Replies
    3
    Views
    827

    Problem with redrawing windows

    I have a problem with a program I am writing. I'm currently trying to learn MFC and has written a program from scratch not using any application wizards.
    I have a class which inherits from...
Results 1 to 23 of 23


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)