HighTechTalks DotNet Forums  

CreateObject

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss CreateObject in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Derek Hart
 
Posts: n/a

Default CreateObject - 01-02-2008 , 11:48 PM






I am just stumped. I use the following type of code from Office apps:

Dim w as object
Set w = CreateObject("iGen.iGenStart")
w.MyProp = "SomeValue"
w.MyMethod
Set w = Nothing

All of a sudden, I can run this code only from MS Access, but not from Word
or Excel. In my vb.net dll file, I have checked "Register for COM interop".
My class looks like this:

<ComClass()> Public Class iGenStart
Public Methods and Properties
End Class

I compile the application, and I do get the type library file. I do see the
type library file under Tools...References in the Office applications. If I
do early binding it works fine to connect to iGen.iGenStart - why would this
not work in some Office applications?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.