Search:
Type: Posts; User: AlanCCC
Search:
Search took 0.01 seconds.
-
December 18th, 2015, 12:22 AM
Hi,tatumbooth,
In the past, I have encountered a similar problem and DataNumen DBF Repair at
https://www.datanumen.com/dbf-repair/
helps to recover all the data in my archive. So I recommend...
-
March 4th, 2015, 02:05 AM
I am developing a Visual C++ application. There is an object called CMyObject, as follows:
typedef CMap<UINT, UINT, void *, void*> CMyMap;
class CMyObject
{
public:
CMyMap...
-
December 9th, 2014, 04:01 AM
I am using C++ new/delete operators to allocate/deallocate the buffers. I think for each allocated buffer, there should be an additional info block stores the size and other info about the buffer....
-
December 9th, 2014, 03:50 AM
I use new to allocate a buffer, as follows:
BYTE *p;
p = new BYTE[20];
If I do NOT store the size of the allocated buffer, how to determine the buffer size via p only?
Thanks
-
December 9th, 2014, 03:48 AM
I use new to allocate a buffer, as follows:
BYTE *p;
p = new BYTE[20];
...
delete p;
-
September 11th, 2014, 10:58 AM
Hi,
Are there any good free or commercial software that can check the C++ code style and find any codelines that violate a given code style specification? For example, whether the codeline is...
-
August 27th, 2014, 05:58 PM
I write a DLL MyDLL.dll with Visual C++ 2008, as follows:
(1) MFC static linked
(2) Using multi-thread runtime library.
In the DLL, this is a global data m_Data shared by two export functions,...
-
July 28th, 2014, 06:02 PM
In my Visual C++ app, I know the total objects(CMyObject) to be allocated is 16728064 and each object is 64 byte, so the total memory to be allocated is 1GB. The memory will be allocated in the...
-
July 25th, 2014, 05:56 PM
I want to override the operator new in a class, as follows:
class CMyclass
{
public:
void* operator new(size_t);
void operator delete(void*);
};
-
July 24th, 2014, 12:02 PM
I want to override new operator in C++, by following the instructions at http://www.cprogramming.com/tutorial/operator_new.html
class CMyclass
{
public:
CMyClass(BOOL...
-
July 24th, 2014, 11:49 AM
I define two classes in C++, as follows:
class CBaseClass
{
…
}
class CDerivedClass : public CBaseClass
{
…
-
Hi,
Is there a function in C/C++ that can check if a given 8-byte data block is a valid double value in the valid range?
Thanks
Alan
-
February 10th, 2014, 05:46 PM
I am using Visual C++ to write an app. I write CMyObject class and may allocate a lot of instances of CMyObject object, so I want to reduce the size of CMyObject class.
What I can figure out to do...
-
February 9th, 2014, 10:11 PM
Hi,
I am using Visual C++ to write an app. One problem is that the application will allocate a lot of object instances of a specific class CMyObject, maybe 400, 000. This will cause “Out of...
-
February 5th, 2014, 11:43 AM
I have a problem in using ATL 7.0 string conversion macros.
My codes looks like this, which uses ATL 3.0 string conversion macros in the past:
Void Myfunc()
{
USES_CONVERSION;
LPSTR lpszA;...
-
January 24th, 2014, 06:25 PM
I use a SEH handler in my code, like this:
__try
{
.. Some codes ...
}
__except(
EXCEPTION_EXECUTE_HANDLER
)
{
TRACE(_T("Exception"));
-
December 22nd, 2013, 06:57 PM
Hi,
I just wonder whether 0xFFFF is a valid Unicode character.
When I using the following code:
CStringW strTempW;
CString strTemp1;
INT_PTR nLen;
-
October 26th, 2013, 05:17 PM
If I using the following codes:
CByteArray Buf;
Buf.SetSize(65536); // preallocate buffer
...
...
-
October 26th, 2013, 01:33 PM
Hi,
I am using CByteArray as a buffer in Visual C++. I want to preallocate nSize memory for for CByteArray, so that later when I try to change the buffer, by calling SetSize, Add, Remove, etc., as...
-
October 7th, 2013, 11:00 AM
Hi,
I get a VC2008 project with full source. How to know whether it supports multithread or not? I think as long as the “Runtime Library” under “C/C++” - “Code generation” category is...
-
July 28th, 2013, 08:47 PM
Hi,
I want to detect the type in a function template, like this:
template <class myType> myType Function (myType a, myType b) {
// Detect the myType
If (myType is int)
{
…
-
June 15th, 2013, 05:26 PM
I am using Visual Studio 2008. I just wonder if there are any library function in Windows SDK or MFC, or from third-parties, that can convert a UTF-8 string into Windows Unicode string(used in...
-
Hi,
I am looking for a simple web-based teamwork publishing system, to trace the bugs of my software project.
The system should:
1. Be hosted on our webserver
2. All the members of a...
-
Hi, I am looking for a function like AfxMessageBox, but will only available in Debug Version, to display some error messages. I have thought of TRACE, but it will only dump the error message in the...
-
Then how to make it work with Word 2007, 2010 and 2013? Does these Word provides type libraries and I can import them with Class Wizard as well?
|
Click Here to Expand Forum to Full Width
|