Einzelnen Beitrag anzeigen

DCoderHH

Registriert seit: 4. Feb 2015
Ort: Hamburg
84 Beiträge
 
Delphi 10 Seattle Professional
 
#3

AW: Maptitude über OLE/COM steuern

  Alt 25. Mär 2015, 08:36
Hi, thank you very much for your reply

We believe you are simply seeing the last error message left over from the application start-up (it tries to load bookmarks but none have been created yet).

The error is unrelated to your custom code.
If I start Maptitude without my application then no error message is displayed.

Perhaps the problem is that the value of the Index option should be an integer, but you are using a but you are using a string
I have changed the line
specSub[2] := '53'; to
specSub[2] := 53;
But the error is the same.

Gisdk.RunMacro raises this EOleException:
Code:
'AddAnnotation returned an error. (1)'
and GetLastError shows the error message as I have written in my first post.
  Mit Zitat antworten Zitat