Hi!
>I thought that when you compiled the COM application into a DLL it automatically runs.
>
>Am I wrong?
Yes.
>If so, how to you create the COM object? I tried:
>
> goApp=CREATEOBJECT("ImpactCOM")
>
>It didn't work
If the project name is 'MyProj' and the class name is 'ImpactCOM', than DLL COM object call will look like following:
goApp = CreateObject("MyProj.ImpactCOM")
Than you can call its methods:
? goApp.SomeMethod()
When you want to use that DLL on another computer, you require to copy it there and use "REGSVR32 path\MyProj.DLL" command to register it, otherwise you will get the "Class not registered" error.
HTH.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.