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

Search:

Type: Posts; User: lichtf

Page 1 of 5 1 2 3 4

Search: Search took 0.09 seconds.

  1. Thanks for everyone's help. I finally figured...

    Thanks for everyone's help.

    I finally figured out why my program was crashing. And it didn't even have anything to do with the threads. I had a memory leak that I didn't notice. Don't you just...
  2. Thanks for the replies. First of all I did try...

    Thanks for the replies.

    First of all I did try using the AfxEndThread function and it still crashes.
    It also crashes with or with out the AfxMessageBox call.

    Bo I think you might be on to...
  3. Thanks for the reply. I don't think that the...

    Thanks for the reply.

    I don't think that the main program exits before the thread, but I am getting that error you mentioned.

    I am using an MFC dialog application. So the main thread shouldn't...
  4. CWinThread (program crashes after the thread is closed)

    Hello all-

    I have a problem with my program crashing. I start a CWinThread worker thread using afxbeginthread. After the thread function returns my program crashes. Here is the code I use to...
  5. Thread: thread

    by lichtf
    Replies
    3
    Views
    743

    You do want to use the LPVOID. Inside your...

    You do want to use the LPVOID. Inside your myThread function you will have to use a cast to get the parameter to the variable type that you want.

    For example


    DWORD WINAPI myThread(LPVOID...
  6. Replies
    5
    Views
    1,015

    Did you build your program using Debug or Release...

    Did you build your program using Debug or Release mode?

    If you have no clue what that question means then you built it using Debug mode. To change this in Microsoft Visual C++ select Set Active...
  7. Replies
    4
    Views
    1,060

    Make sure that your bmp variable is a member...

    Make sure that your bmp variable is a member variable, or a global variable I guess. If it isn't then everything will return true like it worked, but it won't be implemented(I guess it does get...
  8. Replies
    3
    Views
    980

    Thank you very much for your help. The...

    Thank you very much for your help. The subclassing accomplished exactly what I was looking for!
  9. Replies
    3
    Views
    1,513

    I'm not sure why your program would be crashing,...

    I'm not sure why your program would be crashing, but here is a link to a page that shows you how to add radio buttons to a dialog box:
    ...
  10. Replies
    3
    Views
    980

    Anybody have any ideas?

    Anybody have any ideas?
  11. Replies
    3
    Views
    980

    Custom Popup for a ComboBox

    I am trying to have a custom popup menu be displayed when the user right clicks on the edit portion of the combo box.

    I have added this code to the inherited CComboBox class I made:

    LRESULT...
  12. Replies
    3
    Views
    1,241

    I believe that your problem can be solved by...

    I believe that your problem can be solved by using a brush. Add COLORREF and a CBrush member variables to your CImportDlg class.

    CBrush m_brushOutput_Box;
    COLORREF m_colorOutput_Box;

    Then add...
  13. Replies
    2
    Views
    757

    Creating a Bitmap of one color dynamically

    Hello all-

    I am trying to create a bitmap during runtime. I would like to use an RGB color to create a bitmap of just that color. I then want to display the bitmap in a popup menu.

    I have...
  14. Re: Multiple Selections & Selecting a subitem in ListView

    Thanks for your help.
    I will probably have to do something like that as well.
  15. Multiple Selections & Selecting a subitem in ListView

    Hello All-

    I am a first time user of Visual Basic. I am trying to use a List View control. I have two questions.

    - I am wondering if it is possible to allow the user to select and edit a...
  16. Replies
    2
    Views
    688

    Re: how to press a toolbar button?

    You will need to handle the UPDATE_COMMAND_UI message for the toolbar button. In this function you can enable or disable your button.

    The reason what you're doing doesn't work is because you are...
  17. Replies
    6
    Views
    882

    Re: multithreading problem

    I think what you're looking for is something like this:


    UINT thread (LPVOID parameter)
    {
    //cast the parameter into a pointer of your dialog class
    CYourDlgClass* pdlgClass =...
  18. Replies
    1
    Views
    715

    Re: Resizing Custom Dialog

    I hope you've had some luck figuring out your problem, but if you haven't or for anyone else out there that might need some help with the same issue.

    There is an AnimateWindow function which might...
  19. Re: Setting a limit to the resizing of a Dialog Box

    Thank you very much. That worked perfectly!
  20. Setting a limit to the resizing of a Dialog Box

    I would like to set a minimum to the amount the user can resize the dialog box. I've tried catching the WM_SIZING message in the WindowProc function, but I can't get it to work.

    Here is the code...
  21. Re: Release vs Debug

    Here is a link to a page in MSDN which gives some good differences and explains some problems you might have when changing your build from debug to release.
    ...
  22. Replies
    3
    Views
    836

    Re: Text size of a Static Text Control

    I have included the Microsoft Forms 2.0 Label Active X control on one of my modeless dialog boxes within my SDI project.

    I am trying to change the text of the control during runtime. When I call...
  23. Re: How to create an exe that work on every Windows machine

    Did you build it with the debug configuration or the Release configuration?

    To distribute it you need to build it with the Release configuration. To change this in Microsoft Visual C++ select the...
  24. Assertion Failure while trying to set text of Microsoft Forms 2.0 Label Control

    I have included the Microsoft Forms 2.0 Label Active X control on one of my modeless dialog boxes within my SDI project.

    I am trying to change the text of the control during runtime. When I call...
  25. Re: Popup menu of an edit box in a Dialog window

    Thanks for your reply. I figured I'd have to make a new inherited edit box class.

    If any one else knows of a different way I'd like to hear it.

    Thanks
Results 1 to 25 of 107
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured