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

Search:

Type: Posts; User: SkyNetTo

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Compiler error in Visual Studio 2005 (C++)

    #ifndef _UNICODE_RANGE_INCLUDE_
    #define _UNICODE_RANGE_INCLUDE_
    #include <tchar.h>

    struct UnicodeRangeSpec
    {
    const unsigned int start_;
    const unsigned int end_;
    };
  2. Replies
    15
    Views
    2,501

    Re: Getting the user directory names in w32

    GetWindowsDirectory
  3. Replies
    6
    Views
    1,737

    Re: std::make_pair

    std::pair<LONG,LONG> WinTraits::GetSize() const
    you have choosen not to modify any class member by placing that const in red, but you have just modified one.
  4. Replies
    44
    Views
    4,286

    Re: [RESOLVED] ftream

    You forgot to clear the eof and/or fail bit of stream


    int main()
    {
    std::string word;
    std::fstream file_to_fix ("c:\\path_to_file.txt", (std::fstream::in | std::fstream::out));

    if...
  5. Replies
    7
    Views
    2,252

    Re: Reading a file using istream_iterator

    Quick test on a real file.


    #include <iostream>
    #include <fstream>
    #include <iterator>
    #include <string>

    class line {
    std::string data;
  6. Replies
    2
    Views
    1,383

    Re: CListCtrl: which rows are visible?

    What about this?:
    http://msdn.microsoft.com/en-US/library/cxwwzx1z&#37;28v=VS.80%29.aspx



    taken from MSDN
    .........

    int index = GetTopIndex();
    int last_visible_index = index +...
  7. Replies
    4
    Views
    526

    Re: college assingment..please help

    @Skizmo
    Waiting for your patent Click message :)
  8. Re: Random string generation not working fine?

    have you used srand() at the top of the program?
  9. Replies
    15
    Views
    4,084

    Re: GDI+ MeasureString and character width

    If it is scaled I'm afraid you get what is scaled not the actual size. So my idea doesn't apply :(
  10. Replies
    15
    Views
    4,084

    Re: GDI+ MeasureString and character width

    A quick idea:
    Can't you copy what's on the DC of the RichEditControl in an image and apply a mask in that image to remove the background? Than you just have to Draw an image over an image preserving...
  11. Replies
    7
    Views
    4,528

    Re: Application crashes, AfxWinMain?

    Do you use any third party dll in your code? Same problem happened to me once with a third party dll. Had to recreate manually a .lib file for my compiler (the one provided causes me this).
  12. Re: Is there a way to convert a MS-DOS console window to an SDI window?

    This way.


    ON_REGISTERED_THREAD_MESSAGE(WM_STDIO_COMMAND, &CQuickWinApp::OnStdioCommand)
  13. Replies
    20
    Views
    3,508

    Re: version.h and unicode

    dunno, its up to you. It returns a non-const TCHAR string winch in UNICODE version is wchar_t.
  14. Replies
    20
    Views
    3,508

    Re: version.h and unicode

    one or more of there variables is/are still a std::string and not a std::wstring.


    m_pLanguageInformation->m_wLanguage

    m_pLanguageInformation->m_wCodePage

    refcstrKey
  15. Replies
    20
    Views
    3,508

    Re: version.h and unicode

    strsTemp << _T("\\StringFileInfo\\")
    << std::setw(4) << std::setfill(_T('0'))
    << std::hex
    << m_pLanguageInformation->m_wLanguage
    <<...
  16. Replies
    20
    Views
    3,508

    Re: version.h and unicode

    use std::wstringstream and u're OK.
    http://msdn.microsoft.com/en-us/library/3e8f34fb&#37;28v=vs.71%29.aspx

    Also use the wide version of string literals


    L"\\StringFileInfo\\"


    or
  17. Replies
    20
    Views
    3,508

    Re: version.h and unicode

    what is strsTemp? Is it a stringstream beacause std::string does not have a member functions called str().
  18. Replies
    3
    Views
    377

    Re: Remove odd function

    what's wrong with remove_if?
    http://www.cplusplus.com/reference/algorithm/remove_if/

    Can't you just use that?
  19. Re: AfxMessageBox pops up several time on Keydown

    Same problem here, but it comes with a solution
    http://www.codeguru.com/forum/showthread.php?t=368630
  20. Replies
    9
    Views
    3,748

    Re: Correct way to truncate a std::string

    Another option if you have a C++0x compiler is using string::pop_back
    http://www.cppreference.com/wiki/string/basic_string/pop_back
  21. Replies
    12
    Views
    6,250

    Re: maximum cmd line length

    In windows you can implement something like this:

    http://www.flounder.com/console_threads.htm

    No polling involved.
  22. Replies
    12
    Views
    6,250

    Re: maximum cmd line length

    so buffer holds up to 256 chars?
    Quick test:


    #include <stdio.h>
    #include <string.h>

    int main(int argc, char **argv)
    {
    char buffer[1024] = {0};
  23. Replies
    28
    Views
    5,047

    Re: CString thread safety questions

    What happens if PostMessage fails? You have a memory leak.
    Place this correction:


    CString* pStr = new CString;
    pStr->Format(_T("Some message"));
    if(!::PostMessage(hWndMainThread,...
  24. Replies
    12
    Views
    6,250

    Re: maximum cmd line length

    This page says another thing:

    http://support.microsoft.com/kb/830473/en-us?fr=1

    On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the...
  25. Replies
    10
    Views
    4,062

    Re: generating a sequence 1, 12, 123, 1234, ...

    Oops sorry, didn't know that was a homework, i'm deleting the code.
Results 1 to 25 of 184
Page 1 of 8 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