We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// // file: main.pas // uses {+} {$IFDEF MSWINDOWS}Windows,{$ENDIF} {+.} ... ,StrUtils {$IFDEF COM} ,ComObj {$IFDEF FPC},Ole2{$ENDIF}, ActiveX {$ENDIF COM} ; ... {$IFDEF COM} function CreateOLEObject(const ClassName: string): Variant; begin Result := CreateOLEObject(ClassName); end; {$ENDIF COM} ... procedure TForm1.FormCreate(Sender: TObject); begin CoInitializeEx(nil, 0); end; ... procedure Compile(Run, Disassemble: Boolean); ... Compiler.addGlobalFunc('function CreateOLEObject(const ClassName: string): Variant;', @CreateOLEObject); // // file: test\ole.lap // var s: string; xmlDoc: Variant; begin s := 'MSXML2.DOMDocument'; WriteLn('com(1):', s); xmlDoc := VarCreateOLEObject('MSXML2.DOMDocument'); xmlDoc.validateOnParse := True; // *** LINE 8 *** xmlDoc.async := False; xmlDoc := Null; WriteLn('com(1)!', s); end; // // error: // Compilation error: "Operator "Dot" not compatible with types "Variant" and "AnsiString" at line 8, column 9"
Original issue reported on code.google.com by [email protected] on 19 Sep 2011 at 6:59
[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Original issue reported on code.google.com by
[email protected]
on 19 Sep 2011 at 6:59The text was updated successfully, but these errors were encountered: