Board index » cppbuilder » Error E2352 Migrating from BCB5 to BDS2006
Roberto Meneghini
![]() CBuilder Developer |
Roberto Meneghini
![]() CBuilder Developer |
Error E2352 Migrating from BCB5 to BDS20062007-12-18 06:49:11 AM cppbuilder95 After converting an OCX project created with BCB5 into BDS2006 C++, I'm receiving the following error: [C++ Error] atlcom.h(1877): E2353 Class 'CComObject<TSepSys_GIXImpl>' is abstract because of '__stdcall ISepSys_GIX::get_Visible(short*)=0' The project compiles and links without errors using BCB5. I'm using update 2 of BDS2006. Any suggestions? Thanks, Roberto |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2007-12-18 06:58:17 AM
Re:Error E2352 Migrating from BCB5 to BDS2006
"Roberto Meneghini" < XXXX@XXXXX.COM >wrote in message
QuoteAfter converting an OCX project created with BCB5 into BDS2006 C++, interface. Gambit |
Roberto Meneghini
![]() CBuilder Developer |
2007-12-18 10:52:51 PM
Re:Error E2352 Migrating from BCB5 to BDS2006
Thanks for the prompt response. However, as I mentioned in the previous
message, the project compiled without problems on BCB5. I double-checked that all the files were migrated into the updated project. Following please find and excerpt of the source code where the conflicting function is declared and implemented. Please let me know if you need further information Regards, Roberto // *********************************************************************// // Interface: ISepSys_GIX // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {85394B7E-3C85-4F36-9C69-79A9866D0989} // *********************************************************************// interface ISepSys_GIX : public IDispatch { public: virtual HRESULT STDMETHODCALLTYPE get_Visible(VARIANT_BOOL* Value/*[out,retval]*/) = 0; // [1] : : #if !defined(__TLB_NO_INTERFACE_WRAPPERS) VARIANT_BOOL __fastcall get_Visible(void) { VARIANT_BOOL Value; OLECHECK(this->get_Visible((VARIANT_BOOL*)&Value)); return Value; } "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message Quote
{smallsort} |
Roberto Meneghini
![]() CBuilder Developer |
2007-12-19 12:27:14 AM
Re:Error E2352 Migrating from BCB5 to BDS2006
Just to let you know that I figured out the problem. During the conversion,
TOLEBOOL was changed to VARIANT_BOOL in the TLB but not in the implementation. Once I changed everything to VARIANT_BOOL, the compilation error went away. Regards, Roberto "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message Quote
|
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2007-12-19 02:10:47 AM
Re:Error E2352 Migrating from BCB5 to BDS2006
"Roberto Meneghini" < XXXX@XXXXX.COM >wrote in message
QuoteJust to let you know that I figured out the problem. During the Gambit |