In addition to this I took the call out of the constructor and
added it to a button and when you click on it it says coinitialise was not
called, is this necessary to call from withing a dll?
Cheers,
Matt.
----- Original Message -----
Sent: Friday, December 17, 1999 10:46
AM
Subject: [DUG]: within dll.
I am converting one of my apps to be a dll and one of my
components (derived from timage) is throwing an access violation error when
trying to do the following:
procedure cgetback(a:integer;b:tcolor;c:string); var
v:variant; begin
v:=createoleobject('mjc.nwobject'); { v.getback(a,b,c);}
v:=unassigned; end;
Can anyone see anything obvious, can you create an instance
like this from within a dll? (there are no probs from within an
application).
Cheers,
Matt.
|