Automation Object 's method not be supported?

  • Thread starter Thread starter cok
  • Start date Start date
C

cok

Hi, all

I found a question about Excel 2003, I donn't know whether
it's my mistake.

I develope a Activex Control use ATL, begining, It's work good,
But after I change interface method name, build OK,

the new method name not recognized by VBA.
error code is '438'

why this error happened?

Can anyone give me advice?

thanks
 
Can't say about ATL, but from a VB point of view it sounds like a binary
compatibility issue; you changed the interface, recompiled, new GUID.
So unregister the old control, register the new.
You can add to an interface without breaking compatibility, but not change
the signatures that already exist.

NickHK
 
thanks to NickHK

I insert ActiveX control into excel work sheet using "Insert Object"
the generated name is Log1, when I use the new method of Log interface,
Error happened(438),

But using "Object browser", I found the interface type info was updated
already,

and I do these:
Set Log = CreateObject("ProgID")
Log.newmathod

these work successful,

why the Inserted ActiveX Control cann't work?
weather the Excel cache the Type Infomation of the Control ?
or other reason? , how can I fix this question?

thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top