ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Compiler Error after Migration 8.7.6 to 13.7.0 and C++ Builder Tokyo to Athens
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Flo1989

Germany
7 Posts

Posted - Mar 04 2025 :  08:25:09  Show Profile  Reply
Hi,

we currently migrated our project from ImageEn 8.7.6 to 13.7.0 and C++ Builder from Tokyo 10.2 to Athens 12.2

I updated the path to ImageEn in Project options.

I get this compiler error:
[bcc32 Fehler] Iexwindowsfunctions.hpp(250): E2040 Deklaration nicht ordnungsgemäß abgeschlossen

I can not figure out why this happens. Because its in the ImageEn source. Does anyone know how i can fix this?

Thank you very much,
Florian

xequte

38919 Posts

Posted - Mar 05 2025 :  22:10:48  Show Profile  Reply
Hi Florian

Sorry, I've not see this error before. We will need to investigate.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Flo1989

Germany
7 Posts

Posted - Mar 06 2025 :  08:02:23  Show Profile  Reply
Hi,

here a more detailed output.
[bcc32 Fehler] Iexwindowsfunctions.hpp(249): E2040 Deklaration nicht ordnungsgemäß abgeschlossen
Vollständiger Parser-Kontext
MDT.cpp(10): #include MDT.h
MDT.h(72): #include MDT_Forms\Graphic_Element_Form\Message_ParameterWindow.h
Message_ParameterWindow.h(77): #include MDT_Controls\MDT_CustomImageControl.h
MDT_CustomImageControl.h(31): #include C:\ProgramData\ImageEn13_7\Delphi12Athens\imageenview.hpp
imageenview.hpp(42): #include C:\ProgramData\ImageEn13_7\Delphi12Athens\Iexwindowsfunctions.hpp
Iexwindowsfunctions.hpp(35): namespace Iexwindowsfunctions

I also tried to delete all ImageEnViews, headers and #pragma links for ImageEn. With that i can compile successfully. But if i add an ImageEn afterwards the Error will pop up again.

When i create a new Project and add ImageEnView it will compile successfully!

Regards,
Florian
Go to Top of Page

xequte

38919 Posts

Posted - Mar 10 2025 :  20:32:43  Show Profile  Reply
Hi Florian

Do you have any third party units that define consts like DBT_DEVICEARRIVAL or DEVICEQUERYREMOVE?

Does replacing the iexWindowsFUnctions.hpp with the following make any difference?

attach/xequte/2025310203236_iexWindowsFunctions.zip
4.36 KB

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Flo1989

Germany
7 Posts

Posted - Apr 02 2025 :  04:36:23  Show Profile  Reply
Hi Nigel,

sry for the late response, but i was working on another project the last weeks.

So, replacing the iexWindowsFUnctions.hpp works.
I get redefinition warnings W8017 with DBT_* definitions:
- DBT_DEVTYP_OEM
- DBT_DEVTYP_DEVNODE
- DBT_DEVTYP_VOLUME
- DBT_DEVTYP_PORT
- DBT_DEVTYP_NET

included from dbt.h

Regards,
Florian
Go to Top of Page

xequte

38919 Posts

Posted - Apr 02 2025 :  19:44:52  Show Profile  Reply
Thanks for letting us know, Florian,

What is the source of dbt.h?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: