Home All Groups Group Topic Archive Search About

Accessing COM DLL MS Project

Author
30 Aug 2006 8:50 AM
Goofy
HI

Continuing on from my previous post I am trying to access the MP Project COM
Server which is installed with MS Project. However, I get the following
error message, what am I doing wrong.

I have done the following

1.) Added a reference to the DLL
2.) Added an imports statment
3.) Tried to instantiate a new project.

and I get the following error.

An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in MSProject.exe

Additional information: COM object with CLSID
{1019A320-508A-11CF-A49D-00AA00574C74} is either not valid or not
registered.

If I try and register this manually using regsvr32 I get an error saying it
has no entry point. I am obviously missing the plot here and any help would
be appreciated

Thanks

Author
30 Aug 2006 3:21 PM
Dick Grier
Is the COM dll registered (run Regsvr32.exe \path\my.dll)?

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Author
30 Aug 2006 3:32 PM
Goofy
I tried to register it, but it told me there was no entry point although it
found the file it could not register it.


Show quoteHide quote
"Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
news:%238WDvfEzGHA.4104@TK2MSFTNGP02.phx.gbl...
> Is the COM dll registered (run Regsvr32.exe \path\my.dll)?
>
> --
> Richard Grier, MVP
> Hard & Software
> Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
> Edition,
> ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
> 2006.
> See www.hardandsoftware.net for details and contact information.
>
Author
31 Aug 2006 4:53 PM
Dick Grier
I suspect that this means that it is not a COM dll.  Perhaps it is a
standard DLL that you can simply declare and then call?

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.