Amol Joshi
Amol Joshi

Reputation: 541

vb 6 compile error 'user-defined type not defined'

There is error 'user-defined type not defined' I got in vb 6 when I was tried to compile the code. can anybody tell me what I need to do to solve this error. following is the line for which I got the error

objINI As clsMPT_INI_COnfig

Upvotes: 0

Views: 1030

Answers (2)

UnhandledExcepSean
UnhandledExcepSean

Reputation: 12804

Add the class file that contains that class back to the project.

Upvotes: 1

Hatem
Hatem

Reputation: 493

You are trying to create an instance of clsMPT_INI_COnfig. You have to create it as a class or to make sure that you have imported the correct libraries which have this class.

clsMPT_INI_COnfig is not VB pre-defined class. So it cannot be called implicitly without targeting its original source.

Upvotes: 1

Related Questions