borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Creating A User Control)Next Topic (OCX creation) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : Custom Control Error: 'Not a Valid interface or implements'
Poster Message
ketur patel
Level: Guest


icon Custom Control Error: 'Not a Valid interface or implements'

     I'm upgrading msflexgrid with some more features. Now i wish to add my own event in my usercontrol. so i used declaration 'EVENT xxx' syntax to define the event & used 'RaiseEvent xxx' method to fire the event. I have created a group of projects (one with ocx i'm creating & one for testing ocx). Now when i try to run testing project, it works ok & fires event correctly. Then i compiled it to ocx file. now i tried it in new project & used ocx file that i had compiled on same pc. now it generates 'VB6 caused an invalid page fault in module <unknown> at <address>' error instead of firing event. This was done in pure VB6 only (without any servicepacks/addins). Now i did installed servicepack5 for vb6. This time, it generates error when i try to run testing project (one which is grouped with ocx project). The error is 'Not a Valid interface or implements'. If i remove code from testing project (event code), it generates same invalid page fault error as above.

     Plz. help me out of this.

04-09-2003 at 04:08 AM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Custom Control Error: 'Not a Valid interface or implements'

Hi Ketur,

What is the campatability setting of your ActiveX project? The error you are getting looks like the one when you compile an ActiveX dll and have this setting to No Compatibility (or, Project Compatibility sometimes)

Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

01-10-2003 at 03:28 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : Custom Control Error: 'Not a Valid interface or implements'
Previous Topic (Creating A User Control)Next Topic (OCX creation) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder