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

Search:

Type: Posts; User: Syslock

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. View Post

    No, you must specify the encoding when using fopen with UTF strings.

    fopen("newfile.txt", "rw, ccs=<encoding>");
    http://msdn.microsoft.com/en-us/library/yeby3zcb(v=vs.80).aspx

    Like this:...
  2. Replies
    1
    Views
    1,770

    Ctreectrl under Win7/Vista

    Under Windows XP, when you drag and drop an Ctreectrl item, it will create a ghost image of
    the item icon and text. But, I ran the same program under Windows 7/Vista, and the item text
    is missing...
  3. Replies
    8
    Views
    1,753

    Re: Ctreectrl problem

    It's not the real source, but it's always very close. What I'm looking for is probably buried in the
    base class somewhere.

    Thanks, I will try to use NM_CLICK.
  4. Replies
    8
    Views
    1,753

    Re: Ctreectrl problem

    Thanks, but does a NM_CLICK simulate an "upclick" ?

    I want to place the checkmark at the upclick, not the downclick.

    I searched the wine source for a reason why the OnLButtonUp handler goes...
  5. Replies
    8
    Views
    1,753

    Re: Ctreectrl problem

    edited:
    My Ctreectrl has imagelist icons that look like checkboxes, but it doesn't use the TVS_CHECKBOXES flag.
    It gets checked when OnLButtonUp is called.

    But, this functionality is broken when...
  6. Replies
    8
    Views
    1,753

    Ctreectrl problem

    I have an odd problem involving Ctreectrl. When I add the TVS_DISABLEDRAGDROP flag to my
    Ctreectrl creation, OnLButtonUp gets called as expected. But, when I remove it,
    OnLButtonUp doesn't get...
  7. Replies
    7
    Views
    688

    Re: UNICODE question and help needed

    You didn't say what platform or OS, so I'll just assume Windows.

    If you're providing a static library, then you can do it like the Windows SDK. Export both a "Unicode" and ANSI
    function, and use...
  8. Replies
    2
    Views
    1,131

    Re: Forced compilation?

    Thanks, that's sounds like it might work.

    I found something called "Enable Minimal Rebuild" under Configuration Properties -> C/C++ -> Code Generation -> Enable Minimal Rebuild,
    but I think it...
  9. Replies
    2
    Views
    1,131

    Forced compilation?

    For VS 2005/2008, is there a set option/property that rebuilds the entire project every time, even if no source code
    changes have been made? It would rebuild everything, even if "Build->Build...
  10. Replies
    6
    Views
    1,536

    Re: VS9->VS8 project converter ?

    Yes, it's called MS Notepad! Open up the .vcproj file and change:
    Version="9.00"
    to
    Version="8.00"

    It should open up like a charm.
  11. Re: How to let a CFrameWnd based SDI application start in full screen?

    Well, get rid of that other stuff you put in there, and only use this rect:


    fullscreenrect = CRect( 0,0, GetSystemMetrics(SM_CXSCREEN),
    ...
  12. Replies
    5
    Views
    11,847

    Re: Reading image into char array

    Use unsigned char if you're reading in full bytes.
  13. Re: How to let a CFrameWnd based SDI application start in full screen?

    Replace NULL with &CWnd::wndTopMost. This will knock the taskbar out of the way.
  14. Replies
    7
    Views
    2,990

    Re: Uninitialized variables checking?

    A tool that can make changes to the source code wouldn't be unreasonable, as it could just set everthing to zero.
  15. Replies
    7
    Views
    2,990

    Re: Uninitialized variables checking?

    Thanks, I understand, but I was hoping for a way to do it programmically, as I have to go through a couple hundred source files
    by myself.
  16. Replies
    7
    Views
    2,990

    Uninitialized variables checking?

    In Visual Studio, under C/C++ -> Code Generation -> Basic Runtime Checks, it has settings to do basic
    runtime checking for uninitialized variables.
    ...
  17. Replies
    0
    Views
    1,352

    case insensitive strstr for TCHARs

    Apparently, the runtime library doesn't have a case insensitive strstr function, so I had to write one myself.

    I took the old one and just replaced everything with TCHARs.
    Is there anything...
  18. Replies
    6
    Views
    692

    Re: md5 is not giving accurate result

    I'm almost positive MD5 require keys that are multiples of 8, not 4.
    But, might want to double-check that.
  19. Re: TimeStamp and printing a string to a text file

    Don't use strtok. It's not thread-safe. Just zero out the last character in the string.
  20. Replies
    2
    Views
    1,099

    Re: Add button to OPENFILENAME dialog?

    Thanks for reply.



    I can avoid clipping by adding more space at the bottom, but I noticed that the default "Help" button is
    not clipped when it is exactly in the same position as my button. ...
  21. Replies
    2
    Views
    1,099

    Add button to OPENFILENAME dialog?

    I'm trying to add my own button to the OPENFILENAME dialog as a template, and it seems to work,
    however, there's two small problems.

    The first problem is that the button is being clipped by the...
  22. Replies
    10
    Views
    1,013

    Re: compiler refues to inline my function

    Try putting these lines around it:



    #pragma optimize( "", off )
    __forceinline int Gain(int in, int mq)
    {
    return (in * mq) >> 9;
    }
    #pragma optimize( "", on )
  23. Replies
    4
    Views
    1,101

    Re: A question regarding RegSetValueEx

    Windows registry strings are natively stored as UTF-16.

    If your project is compiled as Unicode, then I would definitely follow the guidelines.
    This is what I do:
    DWORD cbData = (_tcslen(str)+1)...
  24. Re: Loading wavefront obj file into an indexed vertex array...

    This isn't even a complete face since you only list one vertex.

    Try this:



    struct face {

    int num_indices;
    int *vertex_indices; // dynamically allocated (num_indices)
  25. Replies
    2
    Views
    676

    Re: Visual C++ 2005 redistributable

    You only need one. And the one you need depends on what updates your Visual Studio app is using.

    #1 -> you have fresh install of VS2005. You have never updated it before, and don't care to...
Results 1 to 25 of 255
Page 1 of 11 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center