H
Han Sen
I'm creating a dll that I want to use from word.
The setup copies dll to program folder and registers the dll in the
GAC. This all seems to work fine (file gets copied and registered in
GAC).
In word I register the dll in my vba project (tick it in the register
dialog for my dll - which now refers to the mydll.tlb) and try to run
the dll like this:
sub main()
set t = createobject("mydll.mydll")
Running the code gives me the error:
Run-time error '429':
ActiveX component can't create object
I get the same error if I use:
set t = new mydll.mydll
(when I do the above "new mydll.mydll" I get the mydll reference in
the intellisense, so it must be registered somehow...)
The dll runs just fine from my development pc. It's only on new
machines I get the error.
What could I be doing wrong?
Morten
The setup copies dll to program folder and registers the dll in the
GAC. This all seems to work fine (file gets copied and registered in
GAC).
In word I register the dll in my vba project (tick it in the register
dialog for my dll - which now refers to the mydll.tlb) and try to run
the dll like this:
sub main()
set t = createobject("mydll.mydll")
Running the code gives me the error:
Run-time error '429':
ActiveX component can't create object
I get the same error if I use:
set t = new mydll.mydll
(when I do the above "new mydll.mydll" I get the mydll reference in
the intellisense, so it must be registered somehow...)
The dll runs just fine from my development pc. It's only on new
machines I get the error.
What could I be doing wrong?
Morten