473,586 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLL Loading......

Good morning.
Im building a little utility that load dll and show me all his properties
and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll
, the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.
Nov 16 '05 #1
6 4492
You cannot load non .Net DLL's in this manner. The DLL must have metadata
and legacy DLL's don't.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Organza" <el*****@hotmai l.com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Good morning.
Im building a little utility that load dll and show me all his properties
and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll , the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.

Nov 16 '05 #2
You can try to use the Low-level unmanaged reflection API, this can be found in the .NET Framework samples under the Tools directory.
--
Nadav
http://www.ddevel.com
"Organza" wrote:
Good morning.
Im building a little utility that load dll and show me all his properties
and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll
, the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.

Nov 16 '05 #3
You can use TLBINF32.dll in system32 directory to read non .Net dll's tlb
information.
The article below maybe help you understand more.

"
Visual Basic: Inspect COM Components Using the TypeLib Information Object
Library
"
December 2000, MSDN Magazine

"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > дÈëÏûÏ¢ÐÂÎÅ
:#l************ *@TK2MSFTNGP10. phx.gbl...
You cannot load non .Net DLL's in this manner. The DLL must have metadata
and legacy DLL's don't.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Organza" <el*****@hotmai l.com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Good morning.
Im building a little utility that load dll and show me all his properties and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6

dll
, the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.


Nov 16 '05 #4
I cant find it.
can you direct me to online resources???
thanks!
"Nadav" <Na***@discussi ons.microsoft.c om> wrote in message
news:47******** *************** ***********@mic rosoft.com...
You can try to use the Low-level unmanaged reflection API, this can be found in the .NET Framework samples under the Tools directory. --
Nadav
http://www.ddevel.com
"Organza" wrote:
Good morning.
Im building a little utility that load dll and show me all his properties and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll , the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.

Nov 16 '05 #5
Look at '...\FrameworkS DK\Tool Developers Guide\docs\'
You may need to download the Framework SDK...
--
Nadav
http://www.ddevel.com
"Organza" wrote:
I cant find it.
can you direct me to online resources???
thanks!
"Nadav" <Na***@discussi ons.microsoft.c om> wrote in message
news:47******** *************** ***********@mic rosoft.com...
You can try to use the Low-level unmanaged reflection API, this can be

found in the .NET Framework samples under the Tools directory.
--
Nadav
http://www.ddevel.com
"Organza" wrote:
Good morning.
Im building a little utility that load dll and show me all his properties and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll , the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.


Nov 16 '05 #6
I was aware of this for COM but the original poster didn't mention COM
except by inference to vb6 DLL which I should have guessed I suppose :-(
--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Alan" <li***@channel. com> wrote in message
news:ed******** *****@TK2MSFTNG P11.phx.gbl...
You can use TLBINF32.dll in system32 directory to read non .Net dll's tlb
information.
The article below maybe help you understand more.

"
Visual Basic: Inspect COM Components Using the TypeLib Information Object
Library
"
December 2000, MSDN Magazine

"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > дÈëÏûÏ¢ÐÂÎÅ
:#l************ *@TK2MSFTNGP10. phx.gbl...
You cannot load non .Net DLL's in this manner. The DLL must have metadata
and legacy DLL's don't.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Organza" <el*****@hotmai l.com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Good morning.
Im building a little utility that load dll and show me all his properties and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading

vb6 dll
, the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFr om("c:/utils.dll");

Thanks.



Nov 16 '05 #7

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

Similar topics

3
8487
by: Roy Wang | last post by:
hi, My problem is how to determining when the XML file has loaded using javascript. I loaded an xml file using javascript in a web page. The code below is loading the xml file for IE: this.xmlDoc= new ActiveXObject("Microsoft.DomDocument"); this.xmlDoc.load(url);
4
3735
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just did a preload script. But then the user has to sit for 5 minutes waiting for 63 images to download! My images are about 640x480 and average 100kb. Is...
2
2043
by: christopher.secord | last post by:
I would like have a little "loading..." tab not unlike the one that gmail uses and I would like to display that tab while an ajax call is made. The javascript to display the tab works. The javascript to hide the tab works. But when I put the two together inside the function that calls the ajax service, they don't work. What seems to...
6
3115
by: Curious George | last post by:
I have a page that takes about 10 seconds to load the first time it is run. I would like to first display a little animated gif telling the user that the page is loading. How do I do this with .NET? I used to create a loading layer at the top of the page. Flush the layer to the buffer.
5
12225
by: John Richardson | last post by:
I've been bothered for some time about my DataGrid not populating my rows very quickly. I have about 10K rows loading into the grid. I create a datatable dt with 2 columns, an ID and a display. The ID is a member of the keys array. I then create a DataView dv over the table, and sort it by Display and ID column (in case of duplicate...
2
1971
by: Rob | last post by:
I was working on a project and everything was going fine, then all of a sudden the form set as my startup object stopped loading. I tried setting some others as the startup object, and some of my forms will load and others won't. Those that won't load at startup don't load with the Show or ShowDialog command either. Can anyone give me a...
3
2605
by: Holmes | last post by:
Hello Ran into a bit of a problem here and have now exhausted my resources to getting this working What I am trying to do is load and show a simple vb form with a listbox in it Dim frm_nc_code As New frm_nc_sen frm_nc_code.Show( Well what I want to have happen is it loads the form then shows all of the controls on the form (especially...
2
2984
by: Jean Pierre Daviau | last post by:
When I have something like this in a js file. listeImg = new Array(); listeImg = new Image(w,h); listeImg.src = "centre1.jpg"; etc Are the images loaded after the page is loaded? In the same time? Before the page is loaded? The browser decision? If the visitors goes, before the procedure is over, to another page having a link to the...
3
6250
by: matdumsa | last post by:
Hi there!!! I'm wondering what I've did wrong here... I try to do a gmail-like "loading" red square at top right... Here is my code: <div id=loading style=display:none;background-color:#FF0000;position:absolute;right:0px;top:0px><b><font color=white><p style=text-decoration:blink;>Loading</p></b></font></div>
5
10335
by: toffee | last post by:
Hi all, I've seen a really cool effect which i would like to use on an intranet site. Am referring to the 'LOADING..' animation you see when switching pages. I've seen it somewhere on a website that was using php (cant remember the url). I've tried googling but came up with nothing - so does anyone know what function of php allows to...
0
7912
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8216
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.