Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rob Groves

@Rob Groves
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Send Print Job
    R Rob Groves

    Have you looked at.... http://www.codeproject.com/printing/printing\_wo\_docview.asp?target=print|mfc and http://www.codeproject.com/printing/printingmadeeasy.asp?target=print|mfc

    C / C++ / MFC question c++ career

  • FTP and Ident Server :: Winsock
    R Rob Groves

    This may help..... http://www.faqs.org/rfcs/rfc2228.html Rob.

    C / C++ / MFC sysadmin question

  • EDIT BOX Control-Text alignment...
    R Rob Groves

    RICHEDIT provides right justification, but I'm not sure about Right-To-Left-Reading-Order Cheers, Rob.

    C / C++ / MFC question json help

  • CString parsing
    R Rob Groves

    The quoted article will help I'm sure, but I have found the following 2 approaches to be useful, alone or in combination. 1) The MFC COleDateTime class provides some string parsing capabilities, and you can then check the GetStatus() return code. 2) Alternatively, you could try something like: bool ConvertTimeStr(const CString& TimeStr, CTime& Dest) { int hh, mi, ss; char ch; // ch catches junk beyond end of string if (sscanf(TimeStr, "%d:%d:%d%c", &hh, &mi, &ss, &ch) != 3) return false // now check for valid days of month etc. // The MFC classes can be used to do this. return whatever!! }

    C / C++ / MFC c++ json help

  • I am confused ... Unhandled Exception in server.exe (NTDLL.DLL): 0xC0000008: Invalid Handle.
    R Rob Groves

    You need to be more specific about the problem, without this you will not be able to get help. Reproduce your problem in a few lines of code. In doing so you may solve the problem yourself, but if not you will be able to be more specific and others can help you. Cheers, Rob.

    C / C++ / MFC c++ visual-studio sysadmin help question

  • Changing a project to Statically Link
    R Rob Groves

    You may also need to select project, settings, c++, code generation (from memory) and make sure that the C runtime is also statically linked. Cheers, Rob.

    C / C++ / MFC c++

  • Returning a file name
    R Rob Groves

    RalfPeter wrote: How can I check for the existence of a file in a directory? I need to check it before overwriting the file. Thx, Ralf. Windows, C runtime versions already submitted, but if you are addicted to MFC try the following...

    BOOL FileUtil::FileExists(const CString& strFile)
    {
    CFileStatus fs;
    if (!CFile::GetStatus(strFile, fs))
    return FALSE;
    else
    return TRUE;
    }

    C / C++ / MFC question

  • Build #'s, Version Tracking and such
    R Rob Groves

    I saw something that might meet you needs here, haven't tried it myself though... http://www.codeguru.com/devstudio\_macros/build\_number.shtml

    C / C++ / MFC c++ tutorial question announcement workspace

  • Does this code leaks memory?
    R Rob Groves

    I don't think there are leaks in your code. It could be that the complaint is about the line below //HERE, as your tool has no way of knowing that SafeArrayDestroy() will delete the BSTRs in the array. Also, in my opinion, your calls to ReleaseBuffer() and FreeExtra() are not necessary. Cheers, Rob.

    C / C++ / MFC announcement c++ html performance help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups