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

Search:

Type: Posts; User: ReneG

Page 1 of 3 1 2 3

Search: Search took 0.19 seconds.

  1. Re: std::ifstream read() fails with >=1 mb file, but not with

    I'm not sure why it works with the smaller files, but I figured out that I should open the file with the std::ios::binary flag, and all would be well. Like this:


    std::ifstream...
  2. std::ifstream read() fails with >=1 mb file, but not with

    Hi Gurus!

    I'm using STL to read a file, and it works with a file that that's 16 byte and 256 byte, but not with a 1024 KB file. I know I should try with a filesize in between, but unfortunately I...
  3. Re: SkinID assigned programmatically is not applied

    I realize now, that I probably should have posted this question in the ASP.NET forum. (Maybe a nice moderator would move this thread?)

    Anyway, I found a way to solve my problem. I still don't know...
  4. [RESOLVED] SkinID assigned programmatically is not applied

    (.NET 2.0, Visual Studio 2005 Pro)

    Hi Gurus!

    I'm trying to learn ASP.NET, but are (Obviously) experiencing some difficulties. Basically, I have created an Image object and assigned it a skinID,...
  5. Re: Deleting a base class pointer, pointing to a derived class

    Ah okay! Thanks alot for clarifying that for me! :)
  6. Re: Deleting a base class pointer, pointing to a derived class

    Thank you all for your comments! I really appreciate it!

    And thank you JVene for your thorough explaination!

    So when using inheritance (And especially multiple inheritance) in C++, I should...
  7. Deleting a base class pointer, pointing to a derived class

    Hi Gurus!

    My question is: If I have a base class pointer (CBase *) which is pointing to a derived class (CDerived *) and I call delete on this pointer; will it delete the whole object? (I.e. the...
  8. Replies
    5
    Views
    1,482

    Re: STL: vector iterator addition/incremention

    Ahh, very clever! I didn't think of, that the ++ operator would be overloaded. Just thought it was a pointer that was incremented. Very smart ! :) Thank you for clarifying this for me! :)
  9. Replies
    5
    Views
    1,482

    STL: vector iterator addition/incremention

    Hi all!

    I don't have alot of experience with the STL, so in my current personal project, i'm trying to implement vector lists instead of reinventing the wheel and using my own 'linked-list'...
  10. Replies
    11
    Views
    3,589

    Re: RichEdit and Unicode

    Hi zvenny!

    I'm sorry, in my previous response I assumed you were using MFC.

    Yes, you need to define _RICHEDIT_VER in your code before you include windows.h.

    I have a project where I'm...
  11. Replies
    11
    Views
    3,589

    Re: RichEdit and Unicode

    Might help: (From MSDN)
  12. Thread: LVITEM & CString

    by ReneG
    Replies
    5
    Views
    5,962

    Re: LVITEM & CString

    I believe you're right, because I didn't have any problems with assigning a CString to pszText, when not using Unicode. But when I changed to Unicode, it gave me some problems. pszText was expecting...
  13. Thread: LVITEM & CString

    by ReneG
    Replies
    5
    Views
    5,962

    Re: LVITEM & CString

    This post was exactly what I was looking for! I had the exact same problem with LVITEM.

    Thanks alot! :)
  14. Replies
    6
    Views
    1,136

    Encouragement to use descriptive topic titles!

    Hello all!

    Just wanted to encourage people to think about their topic titles. And the keyword here is 'think'. Please use more than just 20 milliseconds to figure out a topic title. Why?

    The...
  15. Replies
    2
    Views
    4,699

    Re: EM_GETTEXTEX fails (RichEdit)

    That works! Thank you Viorel! It was exactly what I was missing! :)

    Thanks alot! :D
  16. Replies
    2
    Views
    4,699

    EM_GETTEXTEX fails (RichEdit)

    Hi all!

    In an app of mine, I'm trying to get the text of a richedit control I've created using CreateWindow.

    Here is the code:

    char * cBuffer; // The buffer i want the text in....
  17. Replies
    1
    Views
    832

    Re: Dialog as appbar?

    I found out what the problem was.

    The problem was that the window creation is a bit slow. So the following registration of the appbar would succeed BEFORE the dialog was shown. When the dialog was...
  18. Replies
    1
    Views
    832

    [RESOLVED] Dialog as appbar?

    I know there is many posts and threads about appbars on this forum, however I can't seem to find the answer to my question. The question is:

    Can a dialog be an appbar?

    I'm using ATL and I have...
  19. Replies
    3
    Views
    1,610

    Re: Get the rect of work area

    Ahh great! Don't think it can be any easier than that! Thanks alot! :D
  20. Replies
    3
    Views
    1,610

    [RESOLVED] Get the rect of work area

    This might be a silly question, but I was wondering what would be the easiest way to get the size of the 'desktop work area'. By this, I mean the size of the desktop minus the size of the taskbar.
    ...
  21. Replies
    7
    Views
    20,098

    Re: Windows Service & Keyboard hook

    I second that.
  22. Replies
    7
    Views
    20,098

    Re: Windows Service & Keyboard hook

    You can't install a keyboard hook before a user has logged on, obviously, because if you could, it would be way too easy to steal a users password.

    Why do you need a keyboard hook before a user is...
  23. Re: EnumWindowsProc as a member function?

    I solved it!

    The problem was not with the function signature as expected, but with the syntax in the call to EnumWindows. All I had to change was the call to EnumWindows. The changed line looks...
  24. Re: EnumWindowsProc as a member function?

    Okay, I tried implementing the EnumWindowsProc callback function, but I get a compiler error.

    error C2664: 'EnumWindows' : cannot convert parameter 1 from 'bool (__stdcall *)(HWND,LPARAM)' to...
  25. Re: EnumWindowsProc as a member function?

    Great link ovidiucucu! Thanks alot! It explains all the questions I had about pointers to member functions! :D

    And FYI, I've rated both of your posts. :) Thanks for your replies!
Results 1 to 25 of 65
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured