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
X

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

@XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
About
Posts
24
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DOS app utilisation question
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    On Windows 98 you could set (in Properties of DOS-window/command shell) whether the DOS-program continues to run or pauses when the DOS-window is not active. I haven't found this option in the XP DOS-Window. Maybe It's still there somewhere. Workaround (maybe): Keep the DOS-window active. :confused: :~

    The Lounge question com

  • I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    toxcct wrote: oh, i've just realized that it's a shareWare... Is somobody still writing obnoxious nagshareware these days? :confused: X|

    C / C++ / MFC csharp c++ visual-studio com

  • Free version of Opera 8, sans ads
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Mathias Buerklin wrote: I emailed them, too. But I didn't get a reply either. Same here. It's probably just a joke. :mad: X|

    The Lounge html com question announcement

  • UNICODE woes
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    The Groinal Rampager wrote: sFontDetails.FaceName = _T("Times New Roman"); i get the error: error C2440: '=' : cannot convert from 'const unsigned short [16]' to 'WCHAR [32]' I was under the impression that the _T macro when used with a string literal should be automatically converted to the WCHAR[] type or the normal char[] type depending on whether i have the line #define UNICODE in my program or not..... what am i missing? < What is the type of 'FaceName'?

    C / C++ / MFC help question

  • Generating boiler-plate code
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Code Generation Network[^]

    The Lounge csharp c++ visual-studio com question

  • Using code released under the LGPL
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Christopher Lloyd wrote: Can anyone give me a simple answer to, I hope, a simple question: Can I use a library released under the LGPL in a commerical product and if I do, does this affect the license I provide with the commerical product in any way? - OK two questions Why don't you just read the license?? :confused:

    The Lounge question

  • std::string
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Kevin McFarlane wrote: Actually it does handle '\t', as I've only specified a default argument. Well, you require the user to define the white spaces for you? This is, at least, not user friendly (answer quickly, which chars are white space? Is '\n' a white space, is '\a'?). Hint: isspace. Agreed, but still seems to work anyway. An questionable answer for a professional software developer. OK, how about this? if (st1 != string::npos) { st2 = s.find_last_not_of(t) + 1; s = s.substr(st1, st2 - st1); } substr() produces a (partial) copy which is assigned (= copied again) to s. You can do it all in place.

    ATL / WTL / STL help c++ question

  • India launches its first cheap PC
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    fakefur wrote: KDE and Gnome on a 128mb computer will be painful regardless of the processor speed. It just isn't enough memory for a modern desktop environment. try Xfce[^]

    The Lounge graphics linux sales json performance

  • Using a #include in a struct
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Maximilien wrote: IMO, anyone coding like that should be fired. No, it's sometimes (rarely) necessary for large table structures.

    C / C++ / MFC question

  • IE7. Huh?
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Before you install this update, we recommend that you:
    - Back up your system

    • Close all open programs

    :):-D:laugh:

    The Lounge question announcement

  • std::string
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Kevin McFarlane wrote: Try Don't! inline string trim_right(const string& source, const string& t = " "){ string str = source; return str.erase(source.find_last_not_of(t) + 1);} 1. You search only for " ", not for white space (e.g. '\t') 2. find_last_not_of() returns npos when no match is found (which is not an appropriate input for erase) 3. You return by value thus duplicating the string unnecessarily. In sum, your 'solution' is incorrect and inefficient, but fine otherwise. :suss:

    ATL / WTL / STL help c++ question

  • Pointer x 3
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Nishant Sivakumar wrote: If it's C code, it's probably alright - the poor buggers didn't have much choice. But if it's C++ code, it's questionable It's questionable anyway because it's a programming question! :|

    The Lounge design question

  • Google Trying To Patent Ads In RSS Feeds?
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Nishant Sivakumar wrote: Google Trying To Patent Ads In RSS Feeds? Google: "Don't be evil" (as evil as Redmond) :laugh::laugh::laugh:

    The Lounge com question

  • Java thread question
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Christian Graus wrote: The big question is, how many other hidden forums are there ? BTW, is there a (hidden) C++ forum at CP? I mean, pure C++, not Visual-, MFC-, STL-, ATL-, CLI-, ... C++. :confused:

    The Lounge question java

  • Is there a #define for Multi-Threading?
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Blake Miller wrote: _MT Defined when /MD or /MDd (Multithreaded DLL) or /MT or /MTd (Multithreaded) is specified. Bingo! Thank you very much! :)

    C / C++ / MFC c++ question

  • Is there a #define for Multi-Threading?
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    berndg wrote: Since it is your process that actually creates those threads, wouldn't you be the best person to know whether or how many threads are in use? It seems a bit hard expecting Microsoft to predict your source code. I want to compile the whole program (my own code + MS code) either in 'single-threaded' or 'multi-threaded' mode. Depending on the threading-mode I want to call different functions. This should be done with macros (what else). To make it work I need a #define similar to

    #define _POSIX_THREADS

    Yes, I can #define my own macro, but that's not the point. What am I missing? ;)

    C / C++ / MFC c++ question

  • dynamic class instantiation in c++?
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    ThinkingPrometheus wrote: first i have to say i need to solve this problem using linux, but i think it's a more c++ related question than linux ... the point is, i don't know how (or if this is possible) instantiate a object where the only knowledge of which object type to use is my configuration string It's not a C++ related question. You need to use C# or Java (Class.forName(..)) to do that. :laugh:

    C / C++ / MFC question c++ wpf linux help

  • Is there a #define for Multi-Threading?
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I know the compiler options for a multi-threaded program in VC++. Is there also a preprocessor #define that indicates multi-threading? So that I can do e.g. something like

    #ifdef _MULTI_THREAD

    define doSomething(x) doSomethingMulti(x)

    #else

    define doSomething(x) doSomethingSingle(x)

    #endif

    C / C++ / MFC c++ question

  • Learning how to parse XML file in C++
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    marcdev wrote: read this[^] I guess he doesn't want to be exposed to the dreadfulness of COM programming. Maybe TinyXml[^] is better suited for his needs (and/or abilities).

    C / C++ / MFC c++ data-structures xml tutorial learning

  • string in switch case
    X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    itkid wrote: I want to use the string argument in switch case statement. Not possible in C and C++.

    ATL / WTL / STL
  • Login

  • Don't have an account? Register

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