Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Classes and Defined Types ...Errors!! Pls help!

Status
Not open for further replies.

Forri

Programmer
Oct 29, 2003
479
MT
Hi

I have a Project group containing three projects! A Standard Exe and ActiveX Dll And another having User Controls!

For the Standard EXE to work with the ActiveX Dll i refernce it through the References button! Then i use

Dim myObject as class1

But when i run (F5) the project i recieve an error stating that the class1 variable was not defined!!??

"User-defined variable not defined" .. or something like that!

On the OCX the same error is given when i try to access an ocx Enum Variable:

myControl.Type = MBUTTON ...this does not work but this

myControl.Type = 0 ...where 0 is the equvenlent of MBUTTON works!!!

Do you have some solutions!!?

Thanks

 
Ok...it worked when i de-referenced the class project and referenced it again!! boqq! maybe it just was a reference thing! thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top