新问题:关于GDI+提示Ambiguity between 'Graphics' and 'Gdiplus::Graphics'的,请教高手
按照下边的做法却出现后边描述的情况,请各位给个解决方案,谢谢
==================================================
#include <algorithm>
using std::min;
using std::max;
#include <Gdiplus.h>
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
using namespace Gdiplus;
象这样排列包含文件就行了
======================================================
#include <algorithm>
using std::min;
using std::max;
#include <Gdiplus.h>
的前边又会自动添加
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>------主要是这个,因为我用了speedbutton
或者使用了image装载jpeg的话就会报这个错:Ambiguity between 'Graphics' and 'Gdiplus::Graphics'
然后编译仍然通不过,请问该如何解决呢
/////////////////////////////////////////////////////////////////
可以重新定义一下,比方说
typedef Gdiplus::Graphics GpGraphics-------找到这个方法,但不知添加在哪个地方合适。。。。。。