Type: Posts; User: John E
Search took 0.13 seconds.
Hi guys. This is way out of my league but I thought someone here might have some ideas...
Apparently there are various methods (GetSystemInfo() / GetLogicalProcessorInfoEx() etc) which can return...
April 17th, 2014, 10:19 AM
Yeah, I must admit I'm seriously contemplating that. If I rewrite it in C++ it'll most likely work first time. And even if it doesn't, at least I know I'll be able to fix it !
I don't understand...
April 17th, 2014, 08:18 AM
Hi OReubens. I'm not very familiar with Perl but I assumed that's what its system command did?
I found this new set of perl statements. These ones work in Windows 7 and Windows XP - but not for...
April 16th, 2014, 12:14 PM
Bumping this question as a new problem has come to light....
The perl system command seems to work - AND - if the launched program outputs any text, I can see the text in my command prompt...
April 14th, 2014, 08:10 AM
Thanks OReubens. I swapped my original order and tested on Win7 and Win8.1 (where it now appears to work on both). I haven't tried XP yet but hopefully that'll work too. :thumb:
April 14th, 2014, 06:17 AM
Interesting, thanks for the tip... I modified the code to look like this:-
BOOL bConsole; FILE *pStdOut = 0, *pStdErr = 0;
HANDLE hStdOut =...
April 14th, 2014, 01:34 AM
A few years ago I asked a question about how to attach a DOS console to a Windows app (i.e. so that if the app was launched from a DOS console, the user would be able to see printf output etc). In a...
April 4th, 2014, 05:11 AM
In the end I deleted all the 'build generated' files (.suo / .ncb / .exp / .ilk / .pdb etc). Then I did a Clean, followed by a full Rebuild of the project. Voila! It seems to have worked! Many thanks...
April 3rd, 2014, 05:41 AM
I've encountered a really bizarre problem this morning. I've been using VS2005 for many years without any problems. This morning I needed to rebuild a library called gdk-pixbuf which I've built many...
April 2nd, 2014, 09:18 AM
Thanks 2kaud. I should have mentioned that I need to keep the solution portable if possible - so something cross-platform would be preferable.
[Edit...] this turned out to be due to a logic...
April 2nd, 2014, 07:28 AM
I'm working with some code that uses the environment array _environ. It contains a few sections which look like this:-
char** the_environ = _environ;
for (size_t i = 0;...
March 30th, 2014, 05:25 AM
Hi Igor, you're in the right area but that's not exactly what's happening....
To give some background, I'm converting an app that was written by somebody else. The app was originally written for...
March 29th, 2014, 05:56 PM
Does anyone happen to know what kind of programming problem causes the above error dialog? I've always been curious about it.
AFAIK it isn't cause by an unhandled exception (an unhandled exception...
March 21st, 2014, 05:03 AM
I'm building somebody else's source code and I'm constantly getting compiler warnings like this:-
To be fair, I don't seem to be getting any problems at run time but I was curious to find out...
March 19th, 2014, 10:06 AM
By the law of averages alone, I guess that must be right - but you'd be amazed at how many people think they work better at night when in fact, they don't. Musicians are probably the classic example....
March 19th, 2014, 03:06 AM
It might sound old fashioned but for me, the secret to productivity lies in the old adage, "early to bed, early to rise". If I were to start work at 9:00am it would probably be 8:00pm by the time I...
March 17th, 2014, 03:36 AM
I just solved one of my other problems too (the taskbar appearing on all my monitors). If you right-click the taskbar and select 'Properties' there's an option to turn this feature off, so that the...
March 11th, 2014, 10:58 AM
March 10th, 2014, 05:51 AM
Ah, of course! Thanks Victor :thumb:
March 10th, 2014, 04:45 AM
I came across the following code today and I was a bit surprised that it worked:-
std::string func_A ()
static std::string x;
March 7th, 2014, 02:12 AM
Steve / Brad etc...
I think we all understand that the last big upgrade caused some irritating problems which have been difficult to resolve - BUT...
To quote probably the best example, I've...
March 6th, 2014, 02:02 PM
Many thanks Steve. One more thing...
I don't know if it's still the case - but immediately after the "upgrade" users suddenly needed to set a 'limit' on how far back a search would go. The default...
March 6th, 2014, 01:37 PM
Yep, you're absolutely right. Typing that text into Google brings up a whole bunch of results (all of them perfectly valid).
Why can't we make searching work any more on this site? It seemed...
March 6th, 2014, 12:59 PM
If I try to run an advanced search for posts containing the word declpsec and my own user name (John E) it only throws up 1 x result. But I'm pretty certain I've used the word declspec in more than...
February 27th, 2014, 01:22 AM
Yeah, or I suppose the other option is to add one of those "captcha" utilities to our form. Although they can be annoying for a genuine user I can fully understand why they've become so popular. What...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.