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

Search:

Type: Posts; User: zerver

Page 1 of 5 1 2 3 4

Search: Search took 0.07 seconds.

  1. Thread: IPogressDialog

    by zerver
    Replies
    2
    Views
    434

    Re: IPogressDialog

    Never used this specific UIProgressDialog, but I am guessing you have to manually pump the messages through when you have the parent specified. In this case you need to call a function like the one...
  2. Replies
    17
    Views
    1,729

    Re: CListCtrl LVN_ITEMCHANGING

    I replied in your other thread, basically you should not change any selection or focus in the handler code for LVN_ITEMCHANGING. Instead use SetTimer() to make the changes after the handler has...
  3. Replies
    12
    Views
    1,258

    Re: Lvn_itemchanging

    Does this help?

    http://forums.codeguru.com/showthread.php?334950-CListCtrl-Notification-Behavior
  4. Re: what would be the correct syntax and how would i run this?

    If you don't understand the documentation, your best bet is probably to google for the function name and find code examples of how someone else used it. For example:
    ...
  5. Re: Need an VC++ application to execute smoothly another third part application

    You can use EnumChildWindows or maybe EnumThreadWindows to detect the messagebox appearing and send a WM_COMMAND IDOK message to it...

    http://msdn.microsoft.com/en-us/library/ms633497(VS.85).aspx
  6. Replies
    3
    Views
    569

    Re: How to paint color Text on background DC

    Hi!

    Try

    GetDC(NULL); // this DC will draw to the entire screen

    or

    CPaintDC(this); // this == a CWnd derived class
  7. Thread: error C2440

    by zerver
    Replies
    3
    Views
    532

    Re: error C2440

    It seems you have a function pointer.

    Try this:


    uint4 protoID = (as->*getProtoID)();
  8. Thread: dist

    by zerver
    Replies
    2
    Views
    320

    Re: dist

    The easy way out of "dll hell" would be to link statically with MFC.
    You can find the setting in your project options.
  9. Re: How to display the content of particular folder in Tree control?

    Use CTreeCtrl::Expand

    http://msdn.microsoft.com/en-us/library/hx4e0e58(VS.80).aspx
  10. Replies
    2
    Views
    314

    Re: Baffling Problem

    Put the function declaration directly in the template class instead...
  11. Re: How to know if exe was run from a zip archive?

    GetTempPath http://msdn.microsoft.com/en-us/library/aa364992(VS.85).aspx

    I suggest you simply don't put it in autorun if the folder is temporary...
  12. Re: How to know if exe was run from a zip archive?

    If your exe is located in the windows temp folder, it might indicate it was extracted there by a zip tool. But I would not rely on this to make any important decisions regarding how my exe should...
  13. Replies
    3
    Views
    3,766

    Re: Help with CListBox Multi-column with checkbox

    Hi!

    1. The checkbox can only be in the first column, but you can use SetColumnOrderArray to (visually) make it appear in the second column.

    2. There should be many samples available. Look at...
  14. Replies
    11
    Views
    1,711

    Re: CreateCompatibleBitmap

    This is correct, although it is possible to work around by creating two device independent bitmaps that share the same pixel memory.
  15. Replies
    5
    Views
    508

    Re: How to output in a .txt file?

    Some error messages may be output to the stderr stream.

    IIRC, you can redirect both stdout and stderr to file using.


    prog.exe >2> out.txt

    or possibly
  16. Replies
    3
    Views
    455

    Re: How to expand the console?

    Programmatically - I don't know.

    Manually, right-click in the top-left corner of the console and choose Properties.
    In the Layout tab, adjust the Height of the Screen Buffer Size.
  17. Replies
    1
    Views
    328

    Re: Outlining in visual studio

    Maybe your question is answered here:
    http://msdn.microsoft.com/en-us/library/td6a5x4s(VS.80).aspx
  18. Re: How to calculate total line number of a text file

    int c;
    while((c=fgetc(f))!=EOF)
    if(c=='\n')
    ++num_lines;
  19. Replies
    11
    Views
    1,711

    Re: CreateCompatibleBitmap

    Well, if I'm not completely mistaken a DC normally draws directly to screen. For instance, GetDC(NULL) will obtain a DC that draws directly on top of the entire screen surface. Such a DC does not...
  20. Replies
    1
    Views
    580

    Re: Implementing queue as a class and threads

    It's very simple, you just lock a critical section in every function that accesses the queue.


    CCriticalSection cs;

    void read_queue() {
    cs.Lock();
    queue.read( ...
    cs.Unlock();
    }
  21. Replies
    7
    Views
    734

    Re: Edit ACCESS file in Visual C++

    Hi!

    If your data type is COleDateTime, convert date to text using

    CString DateAsString = m_pSet->m_column4.Format("%Y-%m-%d");

    Regards / Z
  22. Replies
    11
    Views
    1,711

    Re: CreateCompatibleBitmap

    Not necessarily. A DC with a bitmap is called a memory DC.
  23. Replies
    11
    Views
    1,711

    Re: CreateCompatibleBitmap

    The DC does not have a width or height. It is just an interface for drawing onto a surface.

    You have to use some other method to get the dimensions of the window etc. that the DC draws onto.
  24. Thread: Homework Help!

    by zerver
    Replies
    2
    Views
    417

    Re: Homework Help!

    I suggest the following structure


    while(FILE_HAS_MORE_NUMBERS) {
    READ_NEXT_NUMBER;
    if(IS_FIRST_NUMBER || NUMBER<SMALLEST_NUMBER)
    SMALLEST_NUMBER=NUMBER;
    if(IS_FIRST_NUMBER ||...
  25. Re: Is thread priority lowered while PC is inactive?

    No, I have not found any solution to this.
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width