com - Cannot create VB6 ActiveX dll -
i trying create simple vb6 activex exe , call excel.
in vb6 create activex dll project called bigtrev, using default settings.
i create multiuse class called trev single method containing no code
public sub helloworld() end sub
i make dll , register command line (vb6 registers me did using cmd anyway).
then excel create reference dll in new workbook. has been registered because intellisense knows trev , helloworld.
sub cats() dim derek bigtrev.trev set derek = new bigtrev.trev derek.helloworld end sub
it compiles in excel, when step through it fails in second line, set one. error message "activex component can't create object".
why? have done or similar loads of times many years ago when vb6 used widely, using windows 7 , admin on box.
i suggest registering dll (or exe if that's direction you've chosen) relevant regsvr32.exe. in case, you're registering 32bit dll use in 64bit environment, use 1 hiding out in c:\windows\syswow64.
sadly, don't have excel (shock, horror) , spreadsheet have (libreoffice) 32bit.
Comments
Post a Comment