473,466 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I M Getting The Error User- Defined Type Not Defined

2 New Member
HI ALL,
I m currenly working with a visual basic 6 project.i m new to VB.wen i tried to comile a file i got the error "user defined type not defined".i don know wat appropriate reference to add.i m enclosing the code here.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2. On Error Resume Next
  3.     tries = 1
  4.     Load frmDialog
  5.     Set FRM = frmDialog
  6.     AutoRedraw = LoadResString(107)
  7.     If LoadResString(107) = "0" Then
  8.         Dim obj3 As New Class3  
  9.      obj3.SET_BACKCOLOR Me
  10.         cmdCancelImageButton.Visible = False
  11.         cmdOkImageButton.Visible = False
  12.     End If
  13. End Sub
i m getting an error on Dim obj3 as new class3
i do not know wat dll i m using and wat reference i shld add.
pls help.
thanks
Feb 10 '08 #1
4 1826
mafaisal
142 New Member
Hello
I think The Class Class3 is Not Defines
So cannot able to create object of that
Check that

Faisal

HI ALL,
I m currenly working with a visual basic 6 project.i m new to VB.wen i tried to comile a file i got the error "user defined type not defined".i don know wat appropriate reference to add.i m enclosing the code here.


Private Sub Form_Load()
On Error Resume Next
tries = 1
Load frmDialog
Set FRM = frmDialog
AutoRedraw = LoadResString(107)
If LoadResString(107) = "0" Then
Dim obj3 As New Class3
obj3.SET_BACKCOLOR Me
cmdCancelImageButton.Visible = False
cmdOkImageButton.Visible = False
End If
End Sub

i m getting an error on Dim obj3 as new class3
i do not know wat dll i m using and wat reference i shld add.
pls help.
thanks
Feb 10 '08 #2
debasisdas
8,127 Recognized Expert Expert
have you refereed to class3 ?
Feb 11 '08 #3
lotus18
866 Contributor
Hi

Does your class3 exists?

Rey Sean
Feb 11 '08 #4
nani2717
2 New Member
thank u debasisdas n lotus18.

Actually i m new to new to VB.So can some one pls tell me how to create userdefined types and also how to add reference to it.pls help.
Feb 11 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chefry | last post by:
I'm trying to set up an off the shelf script and keep getting an error. My host set up the mysql on my site and I changed the variables I had to in the settings.php file but I keep getting the...
15
by: sara | last post by:
Hi I'm pretty new to Access here (using Access 2000), and appreciate the help and instruction. I gave myself 2.5 hours to research online and help and try to get this one, and I am not getting...
2
by: Ramesh | last post by:
hi, I have created COM when i try to use that instance in C#.net Wep application i am getting following error message. DBUsingCom is my Component name and BusinessObject as a Class name.can...
4
by: Nick | last post by:
I'm developing an intranet app, and want to get the current user name for logging purposes. I've turned off anonymous access, and turned on windows authentication in the IIS config. The apps...
13
by: dbuchanan | last post by:
Hello, Here is the error message; ---------------------------- Exception Message: ForeignKeyConstraint Lkp_tbl040Cmpt_lkp302SensorType requires the child key values (5) to exist in the...
1
by: vijaykumars | last post by:
+-----------------------------------------------------------------------------+ Summaries: +-----------------------------------------------------------------------------+ Installation...
1
by: Developer | last post by:
Dear Group Member, I am sorry if I have posted this query in wrong group, but since this is connected with ASPO.NET2.0, thought of posting here. I am doing a very simple program where I am...
6
by: David Lozzi | last post by:
Hello there, I'm getting the following error System.NullReferenceException: Object reference not set to an instance of an object. at shopping_bag.GetBagTotals()
5
by: Michael Howes | last post by:
I'm writing a utility to manage a machines *local* accounts in c# I am getting all the users in a specific Group just fine but when I want to get some of the information on each user from their...
3
by: tshad | last post by:
I have a file that I converted from VB.Net to C# that works fine in VB.Net when I compile but not in C# using the same libraries. The error I am getting is: PageInit.cs(9,7): error CS0138: A...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.