Search:

Type: Posts; User: skiingwiz

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,093

    I think what you want to do is define the...

    I think what you want to do is define the conversion from a Regex to a string, instead of overloading the assignment operator.

    It must be a member function of the Regex class with a signiture...
  2. Replies
    21
    Views
    3,204

    I believe that's an XNOR gate. How about...

    I believe that's an XNOR gate.


    How about "true || true && false"

    (true || true) && false => false
    true || (true && false) => true
  3. Replies
    21
    Views
    3,204

    That example evaluates to true regardless of...

    That example evaluates to true regardless of which operator has precedence.

    ( (true && false) || true ) == true
    ( true && (false || true) ) == true
  4. For the curious, tilex is correct, the...

    For the curious, tilex is correct, the implementation must go in the same file. I think that this is a Visual Studio problem and I believe that this is why: MSDN Knowledge Base
  5. Inheriting from specific templated version of class

    I would like to do something like the following:


    template<class T>
    class BaseClass
    {
    public:
    BaseClass(void);
    //....
    }
  6. Replies
    11
    Views
    13,141

    Thanks

    Thanks
  7. Replies
    11
    Views
    13,141

    That is what I am trying now, it doesn't seem to...

    That is what I am trying now, it doesn't seem to be working, no matter how far back I seek, it just starts to write at the end of the file. I believe the problem is that I was opening the file in...
  8. Replies
    11
    Views
    13,141

    That is a pretty good temperary solution...

    That is a pretty good temperary solution major_small. Thanks. I am still holding out hope that there is a way to do it without going through the entire file.
  9. Replies
    11
    Views
    13,141

    Sorry, I should have been more specific. I need...

    Sorry, I should have been more specific. I need to remove the last line and then continue to add output to the file.

    Basically, I am writing an XML file and I have to write the closing tag...
  10. Replies
    11
    Views
    13,141

    Removing the last line of a file.

    I need to remove the last line of a text file. The last line is always the same, but the files could be very large so copying the file to a container and writing out all lines but the last is not an...
  11. Yes, I am, that is why it is so puzzling to me. ...

    Yes, I am, that is why it is so puzzling to me.


    #define IDD_PREFS_DIALOG 101

    (of course MSVC did this for me, but still, it is there)
  12. CreateDialog fails (Using resource but not MFC)

    I am trying to show a dialog that I have created in reasource editor (without using MFC). I call CreateDialog like this.


    det.hwnd = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_PREFS_DIALOG),...
  13. Replies
    6
    Views
    6,397

    groan... Thanks for the suggestion of the 5...

    groan... Thanks for the suggestion of the 5 minute break... this one was embarrassingly obvoius. In my OnInitDialog I was calling the function to fill the CListCtrl before I was creating the...
  14. Replies
    6
    Views
    6,397

    hmm... That didn't do it. And oddly enough, in...

    hmm... That didn't do it. And oddly enough, in the other CListCtrl I have (that does work), I didn't need to specify that subitem index when I created the columns. Thanks anyway :)

    <edit> In...
  15. Replies
    6
    Views
    6,397

    CListCtrl::SetItem is failing

    I have a CListCtrl in report view. When I try


    int index = prefsD->m_CcontactList.InsertItem(0,entry->name);
    prefsD->m_CcontactList.SetItem(index, 1, LVIF_TEXT, entry->real_name, 0, 0, 0,...
  16. Replies
    3
    Views
    1,839

    WinXP MS Visual C++ 6

    WinXP
    MS Visual C++ 6
  17. Replies
    3
    Views
    1,839

    Turn off screensaver via function call

    I would like to turn off the screensaver, if it is currently running. I have found these two functions, but neither of them seem to work.



    SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE,...
  18. Replies
    1
    Views
    1,503

    Add a caption button to all windows

    Is there a way to register a new caption button so that it shows up on all windows?

    I want to add a caption button to all windows that will cause the window to "maximize" to either the left or...
  19. Replies
    2
    Views
    2,526

    Thank you VERY much, that was an extremely quick...

    Thank you VERY much, that was an extremely quick reply. :)
  20. Replies
    2
    Views
    2,526

    Errors when including winsock2.h

    I am relatively new to windows programming and this is my first attempt at using winsock, but this error has me baffeled.

    Using MSVC++ 6.0

    I #include "winsock2.h" but I get unresolved external...
  21. You are absolutely correct... That is completely...

    You are absolutely correct... That is completely illogical. I realized that last night about a half an hour after I posted.

    Thanks for the replies though.
  22. Linking error when using static member variable in templated class (MSVC++ 6.0)

    I am making a templated class for a linked list in Visual C++ 6.0. Everything works fine until I put the static keyword in front of "int length;" I get the following error "error LNK2001:...
Results 1 to 22 of 22