I am frustrated that it is so difficult to use a custom class in a different custom class. What needs to be done to get this to work? Please help!
Expand|Select|Wrap|Line Numbers
- 'Code snipped from MyLamp.vb
- Option Explicit
- Imports System
- Imports System.Data
- Imports System.Data.OleDB
- Imports MyBulb_NS
- Namespace MyLamp_NS
- Public Class MyLamp
- ...
- private bulb as new MyBulb
- ...
- End Class
- End Namespace
makeMyLamp.bat
------------------------------------
set indir=c:\www\components\MyLamp.vb
set outdir=c:\www\bin\MyLampVB.dll
set assemblies=System.dll,System.Data.dll,System.XML.d ll
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc. exe /t:library /out:%outdir% %indir% /r:%assemblies%
pause
EError from command line
------------------------------------------------
c:\www\components\MyLamp.vb(7) : warning BC40056: Namesp
ace or type specified in the Imports 'MyBulb_NS' doesn't contain any public
member or cannot be found. Make sure the namespace or the type is defined and c
ontains at least one public member. Make sure the imported element name doesn't
use any aliases.
Imports MyBulb_NS