473,503 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Class Lib Question

I am building a VB.NET dll to act as a wrapper to a set of
V6 and .net libraries. I have the basic V6 features
working with the exception of this one thing.

I need the object to me able to create multiple intstances
when called using the
set objname=createobject(dllName.dll")
What is happening now is that subsequent calls to the
createobject just picks up the previous instance of the
object and operations second object effect the behavior of
the first.

My New code is simply:
bDB = CreateObject("Objec.class")
wher ebDb is a global object.

I know this is something simple that I am not doing in the
init code, I just do not knwo what it is.
Nov 21 '05 #1
2 943
AFAIK, This create a reference to an existing COM object, it does not
instantiate a new one.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"jack" <ja**@sonomaenterprises.com> wrote in message
news:24****************************@phx.gbl...
I am building a VB.NET dll to act as a wrapper to a set of
V6 and .net libraries. I have the basic V6 features
working with the exception of this one thing.

I need the object to me able to create multiple intstances
when called using the
set objname=createobject(dllName.dll")
What is happening now is that subsequent calls to the
createobject just picks up the previous instance of the
object and operations second object effect the behavior of
the first.

My New code is simply:
bDB = CreateObject("Objec.class")
wher ebDb is a global object.

I know this is something simple that I am not doing in the
init code, I just do not knwo what it is.

Nov 21 '05 #2
That is what I am finding. I even tries to create a
global reference to the object and then when I used it
create a new reference with obj = new gObj, but this did
not work since the gObj's definition was unknown.

I knwo this can be done, either in the definition of the
object in the library.

Has anyone done this before???

Jack
-----Original Message-----
AFAIK, This create a reference to an existing COM object, it does notinstantiate a new one.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"jack" <ja**@sonomaenterprises.com> wrote in message
news:24****************************@phx.gbl...
I am building a VB.NET dll to act as a wrapper to a set of V6 and .net libraries. I have the basic V6 features
working with the exception of this one thing.

I need the object to me able to create multiple intstances when called using the
set objname=createobject(dllName.dll")
What is happening now is that subsequent calls to the
createobject just picks up the previous instance of the
object and operations second object effect the behavior of the first.

My New code is simply:
bDB = CreateObject("Objec.class")
wher ebDb is a global object.

I know this is something simple that I am not doing in the init code, I just do not knwo what it is.

.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2841
by: Bryan Parkoff | last post by:
I find an interesting issue that one base class has only one copy for each derived class. It looks like that one base class will be copied into three base classes while derived class from base...
20
2850
by: modemer | last post by:
Question is as in subject. For example: class BaseClass { public: void func() { do something; } // I don't want this function being overloaded in its inherited class };
1
2254
by: Alfonso Morra | last post by:
if I have a class template declared as ff: (BTW is this a partial specialization? - I think it is) template <typename T1, myenum_1 e1=OK, my_enum_2=NONE> class A { public: A(); virtual...
21
4030
by: Jon Slaughter | last post by:
I have a class that is basicaly duplicated throughout several files with only members names changing according to the class name yet with virtually the exact same coding going on. e.g. class...
0
1418
by: Sebastian Hiller | last post by:
Hello, i'm new to .Net (i'm using VB as language and i'm working in the code-behind mode) and i can't solve the following problem: I have a WebForm and want to Add a UserControl...
6
2105
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
2
1595
by: Chris Puncher | last post by:
Hi. I have a RCW class that was generated by the VS.NET2003 IDE when I added a COM dll reference to my project. This all works fine when I call methods on it. My initial problem is that in...
9
1645
by: needin4mation | last post by:
I have a .aspx file and it's src. I also have a third file, a class that the src references. Everything is in the same directory/folder. Everything has the same namespace. How do I reference the...
43
2039
by: Tony | last post by:
I'm working with GUI messaging and note that MFC encapsulates the message loop inside of a C++ class member function. Is this somehow inherently less robust than calling the message loop functions...
2
1491
by: K Viltersten | last post by:
Suppose there is the following class structure. class S {...} class A : S {...} class B : S {...} class A1 : A {void m(){...}} class B1 : B {void m(){...}} class B2 : B {...} Just to clarify...
0
7076
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
7274
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,...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5576
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,...
1
5005
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
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
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
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.