Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

LMDShellMultiDemo compile issue

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

  • 4 Comments sorted by Votes Date Added
  • 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.
    rar
    rar
    LMDShellMultiDemo.rar
    636K
Sign In or Register to comment.