답변 고맙습니다.
그런데, 이 문제는 네임스페이스로 해결할 수 없는 것 같습니다.
아래 헤더파일 소스를 보시면 아시겠지만 자신을 부르는 생성자 함수오버로드에서 식별이 안되는 문제이거든요...
해결방법이 없을까요?
조준회 님이 쓰신 글 :
:
http://cbuilder.borlandforum.com/impboard/impboard.dll?action=read&db=bcb_faq&no=37
:
: 김태선 님이 쓰신 글 :
: : 에러 메시지입니다.
: :
: : [C++ Error] GdiplusGraphics.h(61): E2015 Ambiguity between 'Gdiplus::Graphics::Graphics(void *)' and 'Gdiplus::Graphics::Graphics(void *,int)'
: :
: : 에러가 난 곳의 헤더파일 일부분입니다.
: :
: : class Graphics : public GdiplusBase
: : {
: : public:
: : friend class Region;
: : friend class GraphicsPath;
: : friend class Image;
: : friend class Bitmap;
: : friend class Metafile;
: : friend class Font;
: : friend class FontFamily;
: : friend class FontCollection;
: : friend class CachedBitmap;
: :
: : static Graphics* FromHDC(IN HDC hdc)
: : {
: : return new Graphics(hdc); <<=== 요기가 에러를 일으킨 줄입니다.
: : }
: :
: : static Graphics* FromHDC(IN HDC hdc,
: : IN HANDLE hdevice)
: : {
: : return new Graphics(hdc, hdevice);
: : }
: :
: : static Graphics* FromHWND(IN HWND hwnd,
: : IN BOOL icm = FALSE)
: : {
: : return new Graphics(hwnd, icm);
: : }
: :
: : static Graphics* FromImage(IN Image *image)
: : {
: : return new Graphics(image);
: : }
: :
: : Graphics(IN HDC hdc)
: : {
: : GpGraphics *graphics = NULL;
: :
: : lastResult = DllExports::GdipCreateFromHDC(hdc, &graphics);
: :
: : SetNativeGraphics(graphics);
: : }
: :
: : Graphics(IN HDC hdc,
: : IN HANDLE hdevice)
: : {
: : GpGraphics *graphics = NULL;
: :
: : lastResult = DllExports::GdipCreateFromHDC2(hdc, hdevice, &graphics);
: :
: : SetNativeGraphics(graphics);
: : }
: :
: :
: : 보시는 바 같이 별 이상이 없는 것 같은데...
: : 참고로 위 헤더파일은 볼랜드 C++Builder설치시 ../include 폴더에 있던 것입니다.
: : 분명한 참조인데.. 함수오버로드에서 이 경우말고도 가끔 제대로 못찾는 경우가 있는것 같습니다.
: :
: : 어떤 문제일까요?
: : 컴파일러를 패치해야 할까? (현재 pacth4 적용된 상태)
: : 경험 있으시거나 의견이 있으신분 안계신가요?