Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » compile error .. CFormView .. VC6 -> VC9sp1 Collapse All
Subject Author Date
JinWoo Jeong Aug 12, 2009 - 12:50 AM

I changed my VC6 Src --> VC9 sp1 Src




In my .h:



class TestView : public CExtWS < CExtWA < CExtAFV < CFormView > > >, public InterfaceXXXX
{ 
	TestView( UINT nResourceID = 0 );
...
}





In my .cpp


TestView::TestView ()
: CExtWS < CExtWA < CExtAFV < CFormView >  > >( nResourceID, (CWnd *)NULL ), InterfaceXXXX( (CObject *)this )
{
}





I get the following compile error:


 


1>d:\Prof-UIS\283\Include\ExtTempl.h(1349) : error C2664: ’CExtAFV<CExtAFVBase>::CExtAFV(__EXT_MFC_SAFE_LPCTSTR,CWnd *)’ : 매개 변수 1을(를) ’UINT’에서 ’__EXT_MFC_SAFE_LPCTSTR’(으)로 변환할 수 없습니다.

1>        with

1>        [

1>            CExtAFVBase=CFormView

1>        ]

1>        정수 계열 형식에서 포인터 형식으로 변환하려면 reinterpret_cast, C 스타일 캐스트 또는 함수 스타일 캐스트가 필요합니다.

1>        d:\Prof-UIS\283\Include\ExtTempl.h(1336) : 클래스 템플릿 멤버 함수 ’CExtWA<CExtWABase>::CExtWA(UINT,UINT)’을(를) 컴파일하고 있습니다.

1>        with

1>        [

1>            CExtWABase=CExtAFV<CFormView>

1>        ]

1>        d:\Prof-UIS\283\Include\ExtTempl.h(238) : 컴파일 중인 클래스 템플릿 인스턴스화 ’CExtWA<CExtWABase>’에 대한 참조를 확인하십시오.

1>        with

1>        [

1>            CExtWABase=CExtAFV<CFormView>

1>        ]

1>        d:\test\TestView.h(13) : 컴파일 중인 클래스 템플릿 인스턴스화 ’CExtWS<CExtWSBase>’에 대한 참조를 확인하십시오.

1>        with

1>        [

1>            CExtWSBase=CExtWA<CExtAFV<CFormView>>

1>        ]


I am using 2.83 on VS2008 SP1


plz kill error.....


 

Technical Support Aug 12, 2009 - 6:36 AM

The CChildView class in the HelpNotes sample application is also derived from the CExtWS < CExtWA < CExtAFV < CFormView > > > template based class and it’s compiled OK by any Visual C++ version and for any platform:

class CChildView : public CExtWS < CExtWA < CExtAFV < CFormView > > >
{
      . . .
};

CChildView::CChildView()
      : CExtWS < CExtWA < CExtAFV < CFormView > > > ( CChildView::IDD, (CWnd*) NULL )
{
}
So, we need to know at least the following 3 things:

1) What is the InterfaceXXXX interface? Did you implemented all the abstract virtual methods of it?

2) The exact Visual Studio version you are using. You can send us a screen shot of you Visual Studio’s About dialog box to the support mail box at this web site or you can insert this screen shot into forum message.

3) Which version of Prof-UIS 2.83 is used in your project? Freeware or Full/Trial?

JinWoo Jeong Aug 12, 2009 - 7:10 PM

 


 


In my .h:



class TestView : public CExtWS < CExtWA < CExtAFV < CFormView > > >, public InterfaceXXXX
{ 
TestView( UINT nResourceID = 0 );
...
}

 



 




In my .cpp



TestView::TestView ( UINT nResourceID /* = 0 */ )
: CExtWS < CExtWA < CExtAFV < CFormView >  > >( nResourceID, (CWnd *)NULL ), InterfaceXXXX( (CObject *)this )
{
}


 


TestView::TestView( UINT nResourceID /* = 0 */ ) <-- Missing ˆˆ;; (In my.cpp)


 


1. No abstract virtual methods , InterfaceXXXX is normal class


2. Visual Studio 2008 9.0.30729.1 SP




3. No Freeware version. my company buy prof-uis 2.83

Technical Support Aug 13, 2009 - 12:56 PM

The CChildView class in the HelpNotes sample application is derived from the same CExtWS < CExtWA < CExtAFV < CFormView > > > template based class. This sample application compiles ok with Prof-UIS 2.83 on the same Visual Studio 2008 with the same SP1 and our Visual Studio 2008 shows exactly the same about box information. We modified the HelpNotes sample application. We made it derived from the new InterfaceXXXX class and it also compiles OK. Here is the modified version of the HelpNotes sample application:

http://www.prof-uis.com/download/forums/tmp/HelpNotes-for-JinWoo-Jeong.zip