Yeah, I changed that code shortly after the initial post to use both the pbstrVal and the StringToWideChar. Still nothing worked.

I've spent over half a day browsing the Goggle groups and the web in general and there is just not enough information out there for passing variable parameters through COM with the Invoke method.

I've done a redesign instead and gone away from events. Instead, I'm going to get the COM user to implement a IDispatch interface, pass it to the automation server, and then the automation server can just call the interface directly.

Phil.

Brian Wrigley wrote:
----- Original Message -----
From: "Phil Middlemiss" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>

  
        Params.rgvarg[1].bstrVal := PWideChar(layermanagerid);
        Params.rgvarg[0].bstrVal := PWideChar(appname);
    

Here you are casting, not converting. Don't you need to use
StringToWideChar?

Brian

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



  
begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to