|
-
Mar 17th, 2003, 04:04 AM
#1
Thread Starter
Addicted Member
DLL Error
In my DLL i get the following error during compilation if i pass a form as a parameter to any procedures. The following is an eg..
'The following declaration throws me an error while compiling
Public Sub GetFormName(frm as Form)
Msgbox frm.Name
end sub
'The following declaration does not throw me an error
Public Sub GetFormName(frm as Object)
Msgbox frm.Name
end sub
During compilation of the dll it throws a follwing error.. I do not know how to get rid of it or what is wrong in my DLL generation.. Please help me to solve this problem.. If i change the declaration from a Form to an object it does not throw me an error but it also does not recognise any properties of a valid Form object..
The following is the error it throws....
"Private object modules cannot be used in public object modules as parameters or return types for public procedures, as public data members, or as fields of public user defined types."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|