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: :~
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Posts
-
DOS app utilisation question -
I created an add-in for Visual C++ 6, please give me some comments and suggestions ^_^toxcct wrote: oh, i've just realized that it's a shareWare... Is somobody still writing obnoxious nagshareware these days? :confused: X|
-
Free version of Opera 8, sans adsMathias Buerklin wrote: I emailed them, too. But I didn't get a reply either. Same here. It's probably just a joke. :mad: X|
-
UNICODE woesThe 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'?
-
Generating boiler-plate code -
Using code released under the LGPLChristopher 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:
-
std::stringKevin 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.
-
India launches its first cheap PC -
Using a #include in a structMaximilien wrote: IMO, anyone coding like that should be fired. No, it's sometimes (rarely) necessary for large table structures.
-
IE7. Huh?Before you install this update, we recommend that you:
- Back up your system- Close all open programs
:):-D:laugh:
-
std::stringKevin 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:
-
Pointer x 3Nishant 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! :|
-
Google Trying To Patent Ads In RSS Feeds?Nishant Sivakumar wrote: Google Trying To Patent Ads In RSS Feeds? Google: "Don't be evil" (as evil as Redmond) :laugh::laugh::laugh:
-
Java thread questionChristian 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:
-
Is there a #define for Multi-Threading?Blake Miller wrote: _MT Defined when /MD or /MDd (Multithreaded DLL) or /MT or /MTd (Multithreaded) is specified. Bingo! Thank you very much! :)
-
Is there a #define for Multi-Threading?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? ;) -
dynamic class instantiation in c++?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:
-
Is there a #define for Multi-Threading?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
-
Learning how to parse XML file in C++ -
string in switch caseitkid wrote: I want to use the string argument in switch case statement. Not possible in C and C++.