This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

LMDShellMultiDemo compile issue

edited July 2015 in LMD-Tools
I am using C++ Builder XE7

I was just looking at some of your demo programs, the LMDShellMultiDemo will not compile, I get

Winapi.ShlObj.hpp : E2257 , expected on the following 3 lines

typedef _tagCOMPSTATEINFO TCompStateInfo;

typedef _tagIE4COMPONENT TIE4Component;

typedef _tagCOMPONENT TShComponent;

Thanks for the help!

Comments

  • Hi,

    Please change the order of "include" declarations in LMDShellMultiDemo.cpp like this:

    #define NO_WIN32_LEAN_AND_MEAN
    #include <vcl.h>
    #include <ShlObj.h>
    #pragma hdrstop
    .....

    Eugene,
    LMD Innovative.

  • It compiles fine now, but crashes before it runs.  I am using XE7 which Embarcadero considers version 15.0, which demo am I supposed to be loading, there are 3 available:

    LMDShellMultiDemo_b11
    LMDShellMultiDemo_b12
    LMDShellMultiDemo_b14

    I tried all 3 demos, all 3 crash on this line in vcl.forms.hpp

        /* TCustomForm.Create */ inline __fastcall virtual TForm(System::Classes::TComponent* AOwner) : TCustomForm(AOwner) { }

    Why can't you have compiled demos available?

    Thanks, Doug




  • Hi,

    I've attached for you compiled demo. Don't know why at your side the project fails to run, here I can compile the project without problems.

    Eugene,
    LMD Innovative.
Sign In or Register to comment.