Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing _TLB file : Issue with Dispinterface #235

Open
shekhardelphi opened this issue Jun 25, 2020 · 1 comment
Open

Importing _TLB file : Issue with Dispinterface #235

shekhardelphi opened this issue Jun 25, 2020 · 1 comment

Comments

@shekhardelphi
Copy link

Hi,
I am trying to import type library _TLB.pas file but whenever it encounter dispinterface it gives the error and does not proceed further.
Error :
Exception Exception in module CMDimp.exe at 000DE5C3.
Expecting Token ';' but token '[' found
Previous tokens : 'IMyDISP = DISPINTERFACE [ ' At postion: 487:5.

so in order to fix the problem i need to change dispinterface declaration. Please find the existing code snippet and the modified one in order to compile.

Exiting :

IMyCBDisp = dispinterface
    ['{1F6XX8C8-1511-4EZ6-B370-A105M1F7A86D}']
    function Method1(Text: OleVariant): HResult; dispid 1;
    function Method2 (var Res: OleVariant;): HResult; dispid 2;
  end; 

Modified
IMyCBDisp = dispinterface;

Please help in resolving this as i find very limited very limited documentation for it.

Regards,
Shekhar

@pult
Copy link

pult commented May 25, 2021

maybe so:
dispinterface => interface

IMyCBDisp = interface
['{1F6XX8C8-1511-4EZ6-B370-A105M1F7A86D}']
procedure Method1(Text: OleVariant); safecall;
procedure Method2 (var Res: OleVariant): safecall;
end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants