Click here to Skip to main content
16,014,838 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To customize the editor to show class member Pin
KASR121-May-08 1:48
KASR121-May-08 1:48 
QuestionHttp Post using c++ Pin
Hannes Smit20-May-08 23:02
Hannes Smit20-May-08 23:02 
AnswerRe: Http Post using c++ [modified] Pin
Rajesh R Subramanian20-May-08 23:11
professionalRajesh R Subramanian20-May-08 23:11 
GeneralRe: Http Post using c++ Pin
Hannes Smit20-May-08 23:35
Hannes Smit20-May-08 23:35 
AnswerRe: Http Post using c++ Pin
prasad_som20-May-08 23:11
prasad_som20-May-08 23:11 
QuestionOleLoadPicture() function not loading .jpg files with color mode CYMK Pin
Priya_Sundar20-May-08 23:02
Priya_Sundar20-May-08 23:02 
QuestionUsing .Net tlb in VC++ 6.0 Pin
Shivarudrayya H20-May-08 20:41
Shivarudrayya H20-May-08 20:41 
QuestionGdplus::operator new problem (already include mygdiplus.h) [Solved] Pin
followait20-May-08 20:25
followait20-May-08 20:25 
When I wrote:
Bitmap *p=new Bitmap(w,h);
In debug mode, it reports an error(VC9):
error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments

Though, I've include mygdiplus.h instead of gdiplus.h.
Here is the content of mygdiplus.h(copied from msdn), what's the problem?Confused | :confused:

#ifndef _MY_GDIPLUS_H_
#define _MY_GDIPLUS_H_

#define iterator _iterator

#ifdef _DEBUG

namespace Gdiplus
{
	namespace DllExports
	{
		#include <GdiplusMem.h>
	};

#ifndef _GDIPLUSBASE_H
#define _GDIPLUSBASE_H
	class GdiplusBase
	{
	public:
		void (operator delete)(void* in_pVoid)
		{
			DllExports::GdipFree(in_pVoid);
		}

		void* (operator new)(size_t in_size)
		{
			return DllExports::GdipAlloc(in_size);
		}

		void (operator delete[])(void* in_pVoid)
		{
			DllExports::GdipFree(in_pVoid);
		}

		void* (operator new[])(size_t in_size)
		{
			return DllExports::GdipAlloc(in_size);
		}

		void * (operator new)(size_t nSize, LPCSTR lpszFileName, int nLine)
		{
			return DllExports::GdipAlloc(nSize);
		}

		void operator delete(void* p, LPCSTR lpszFileName, int nLine)
		{
			DllExports::GdipFree(p);
		}

	};
#endif // #ifndef _GDIPLUSBASE_H
}
#endif // #ifdef _DEBUG

#include <gdiplus.h>
#undef iterator

#endif


modified on Wednesday, May 21, 2008 2:48 AM

AnswerRe: Gdplus::operator new problem (already include mygdiplus.h) Pin
Cedric Moonen20-May-08 20:35
Cedric Moonen20-May-08 20:35 
GeneralRe: Gdplus::operator new problem (already include mygdiplus.h) [modified] Pin
followait20-May-08 20:40
followait20-May-08 20:40 
QuestionRe: Gdplus::operator new problem (already include mygdiplus.h) Pin
Rajkumar R20-May-08 20:56
Rajkumar R20-May-08 20:56 
GeneralRe: Gdplus::operator new problem (already include mygdiplus.h) Pin
followait20-May-08 21:01
followait20-May-08 21:01 
GeneralRe: Gdplus::operator new problem (already include mygdiplus.h) Pin
Rajkumar R20-May-08 21:03
Rajkumar R20-May-08 21:03 
GeneralRe: Gdplus::operator new problem (already include mygdiplus.h) Pin
followait20-May-08 21:13
followait20-May-08 21:13 
Questionmy application is blocked in startup in vista Pin
vicky0000020-May-08 20:19
vicky0000020-May-08 20:19 
QuestionCode doesn't work, constructor problem [Solved] Pin
followait20-May-08 19:32
followait20-May-08 19:32 
AnswerRe: Code doesn't work, constructor problem Pin
Rajkumar R20-May-08 20:20
Rajkumar R20-May-08 20:20 
GeneralRe: Code doesn't work, constructor problem [modified] Pin
followait20-May-08 21:11
followait20-May-08 21:11 
GeneralRe: Code doesn't work, constructor problem Pin
Rajkumar R20-May-08 21:26
Rajkumar R20-May-08 21:26 
GeneralRe: Code doesn't work, constructor problem Pin
followait20-May-08 22:16
followait20-May-08 22:16 
GeneralRe: Code doesn't work, constructor problem Pin
Rajkumar R21-May-08 0:23
Rajkumar R21-May-08 0:23 
GeneralRe: Code doesn't work, constructor problem Pin
followait21-May-08 4:16
followait21-May-08 4:16 
QuestionHow can i hide that arrow button in date time picker control Pin
varun0120-May-08 19:21
varun0120-May-08 19:21 
AnswerRe: How can i hide that arrow button in date time picker control Pin
Rajkumar R20-May-08 19:34
Rajkumar R20-May-08 19:34 
QuestionCleaning unwanted items from registry through coding Pin
Le@rner20-May-08 18:46
Le@rner20-May-08 18:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.