T
tshad
I am using VB.Net 2003 and have added an existing file to my project but
can't seem to get the file to compile and my other file is getting errors
when refering to it.
The file starts out:
*******************************************************
Imports System
Imports System.Data
Imports System.Data.SqlClient
Namespace MyFunctions
' DbObject is the class from which all classes in the Data Services Tier
' inherit. The core functionality of establishing a connection with the
' database and executing simple stored procedures is also provided by
' this base class.
' ---
Public Class DbObject
********************************************************
The file has "MyFunctions" as its' namespace and DbObject as the class.
But in my main file I have the following:
**********************************************************
Imports System.Threading
Imports System.Data
Imports System.Data.SqlClient
Imports System.IO
Imports FtsData
Imports MyFunctions
Module Module1
Dim SqlConnection1 As SqlConnection
Public debugging As Boolean = True
Dim strProgress As String
Dim mutexFile As Mutex
Dim strErrors As String
Dim newPosition As Position
Dim myDbObject As New DbObject
******************************************************
I get the errors:
Namespace or type 'MyFunctions' for the Imports 'MyFunctions' cannot be
found.
Type 'DbObject' is not defined.
Why is this? Why won't it build the added file?
Thanks,
Tom
can't seem to get the file to compile and my other file is getting errors
when refering to it.
The file starts out:
*******************************************************
Imports System
Imports System.Data
Imports System.Data.SqlClient
Namespace MyFunctions
' DbObject is the class from which all classes in the Data Services Tier
' inherit. The core functionality of establishing a connection with the
' database and executing simple stored procedures is also provided by
' this base class.
' ---
Public Class DbObject
********************************************************
The file has "MyFunctions" as its' namespace and DbObject as the class.
But in my main file I have the following:
**********************************************************
Imports System.Threading
Imports System.Data
Imports System.Data.SqlClient
Imports System.IO
Imports FtsData
Imports MyFunctions
Module Module1
Dim SqlConnection1 As SqlConnection
Public debugging As Boolean = True
Dim strProgress As String
Dim mutexFile As Mutex
Dim strErrors As String
Dim newPosition As Position
Dim myDbObject As New DbObject
******************************************************
I get the errors:
Namespace or type 'MyFunctions' for the Imports 'MyFunctions' cannot be
found.
Type 'DbObject' is not defined.
Why is this? Why won't it build the added file?
Thanks,
Tom