Type: Posts; User: Andrew Hain
Search took 0.01 seconds.
September 15th, 2010, 04:26 AM
I am getting reports of the application that I write sporadically crashing under Windows 7 (more often than similar reports with XP). The program is configured to support memory addresses with the...
March 26th, 2010, 12:19 PM
We have been having trouble with a program running on Windows 7 and we have traced it to this code.
#if (_MSC_VER == 1500)
// XXXX The following...
June 12th, 2009, 04:50 AM
We have been encountering crashes in ATL conversion macros where the ATL library function pointer g_pfnGetThreadACP points not to an actual function but into thin air. The call through...
December 11th, 2008, 03:39 AM
Iím surprised not to see strongly typed enums as I thought they were based on managed C++ enums.
Also, what is the timescale for a future release with the rest of C++0x?
October 12th, 2007, 07:43 AM
We protect some points from interruption with critical sections including the rich text window the analysis thread logs to. Maybe we donít protect enough.
October 11th, 2007, 11:23 AM
We develop a finite element application with a facility for users to abort analysis while it is running. Because the analysis code is not structured to poll a stop flag regularly and needs to clean...
August 31st, 2007, 04:03 AM
Are there any differences in optimisation or preprocessor symbols?
February 9th, 2007, 05:23 AM
We have a multithreaded application using MFC 7.1SP1. It has recently displayed very curious behaviour. When a new IE6 window is opened or the browser navigates to a page with a pop-under, the...
November 7th, 2006, 03:55 AM
Unfortunately, we are currently in beta and are trying to drop in Russian support as unintrusively as possible. We were already intending to use Unicode builds for future releases.
November 6th, 2006, 11:07 AM
We donít support Windows before Windows 2000 and could live with reqiring Russian users to use XP. Unfortunately we want to implement Russian quickly so we donít want to switch to wide characters.
November 6th, 2006, 10:05 AM
I have an application using narrow-character MFC where resource strings used for program output can be switched between multiple languages. I have been asked to support Russian, which requires a...
There is a list at:
Hope that helps.
Our MFC applications have boilerplate initialisation code of the form:
// Parse the command line to see if launched as OLE server
if (RunEmbedded() || RunAutomated())
// Register all OLE...
Data allocated with new and accessed through a pointer is not deleted, but if, instead, you declare a vector:
your memory will be cleaned up for you.
June 26th, 2006, 03:43 AM
Your example will work if you identify your output page as UTF-8. See http://www.cl.cam.ac.uk/~mgk25/unicode.html#web for advice on how to do that.
June 22nd, 2006, 05:38 AM
Will some of the historical baggage in MFC be tidied up?
I am thinking of:
If you use #define NOMINMAX to tame the SDK header files and allow well behaved minimum and maximum functions, you...
June 16th, 2006, 09:48 AM
[QUOTE=Andrew Hain]The define you want is:
#define YY_PROTO (proto) proto [QUOTE]
That should of course read:
#define YY_PROTO(proto) proto
June 16th, 2006, 09:41 AM
The define you want is:
#define YY_PROTO (proto) proto
This is a workround for old C compilers that did not allow you to declare the types of arguments to functions. There was actually never...
June 15th, 2006, 08:51 AM
I assume you are using C rather than C++. In C, if you call an undeclared function, the compiler assumes it returns an int, and then complains that you are converting the int to a pointer. The...
June 14th, 2006, 04:30 AM
Try using std::auto_ptr instead of pointers when you want the memory reclaimed when you go out of scope.
June 13th, 2006, 07:47 AM
You should be using ++n, not n++
From the FAQ: http://www.codeguru.com/forum/showthread.php?t=231052
They have some similarities. The key difference is that with templates you write one implementation, which is the same for all types, but with function overloading you write separate implementations...
There is a library routine strtok() that may be suitable for your needs. Read the documentation carefully as there are various caveats to its use.
Nope that helps.
Instead, you have an issue with uninitialised pointers. It would be better to declare it as std::string and use += instead of strcat.
If you want to manage your strings outside the map, the comparator would look like:
bool Comparator(const char* x, const char* y)
return strcmp(x, y) < 0;
You may find it easier...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!