473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Qualifying a .NET object in VB6

I have recently re-written a reference library that I'm guessing was
previously written in either VB6 or C into VB.NET. My goal in doing
this was to be able to just switch my references in my VB6 app from
the old .dll to the new .NET object and then all the syntax would
remain the same.

Example:

Dim MyArray as CustomArray

result = CustomArray.Function

Well the problem is that now that I've created this .NET dll I have to
qualify everything which kind of sucks but I understand why it is
this way. IE:

Dim MyArray as MyNewLibrary.CustomArray

Is there any way that I can modify my .NET class library so that I can
just refer to it from VB6 as CustomArray?

Thanks,

Kris

May 9 '07 #1
2 936
fr********@hotmail.com wrote in news:1178729796.962114.167640
@h2g2000hsg.googlegroups.com:
>
Is there any way that I can modify my .NET class library so that I can
just refer to it from VB6 as CustomArray?
Have you tried: Imports YourNameSpace Here?
May 9 '07 #2
On May 9, 1:15 pm, Spam Catcher <spamhoney...@rogers.comwrote:
franzda...@hotmail.com wrote in news:1178729796.962114.167640
@h2g2000hsg.googlegroups.com:
Is there any way that I can modify my .NET class library so that I can
just refer to it from VB6 as CustomArray?

Have you tried: Imports YourNameSpace Here?
I have checked out some documentation on the Imports keyword but I'm
not sure how I can utilize this in order to accomplish what I would
like. Basically this project is setup as a Class Library compile with
COM Interop and a single class inside. Ideally I want to be able to
instantiate this class without having to reference the library from
WITHIN VB6. Can I accomplish this with Imports and if so, could
someone provide an example in the context of what I provided earlier?

Thanks,

Kris

May 9 '07 #3

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

Similar topics

6
by: lawrence | last post by:
How dangerous or stupid is it for an object to have a reference to the object which contains it? If I have a class called $controllerForAll which has an arrray of all the objects that exist, what...
1
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't...
12
by: Frank Stephan | last post by:
Hi, im using Struts with nested tags for form validation. So I end up with form elements named like this risikenManuell.praemieNeu risikenManuell.praemieNeu .... I would like to do a...
18
by: hzmonte | last post by:
typedef int t_compare_func(const void *, const void *); struct node *tree_search(struct node *root, const void *keyy, t_compare_func *comp) { struct node *cur_item; int result; if (root ==...
0
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
3
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? ...
2
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
5
by: Ben | last post by:
Hi, i would like to have an explanation about this: This works, but i get the message in code-behind: access of shared member,... or nested type through an instance; qualifying expression will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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,...
0
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
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,...

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.