473,761 Members | 8,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Reflecti on questions

Hi,
I have two questions about Reflection. One I think I know the answer
to but will ask anyway.

1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?

2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?

Dec 9 '05 #1
2 1543
Hi Douig,
1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?
Nope.
2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?
Nope.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Doug" <dn******@dtgne t.com> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com... Hi,
I have two questions about Reflection. One I think I know the answer
to but will ask anyway.

1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?

2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?

Dec 9 '05 #2
>1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?
In v2.0 of the framework you can, using the new
MethodBase.GetM ethodBody method.

2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?


If you want to reflect on a VB6 binary, then no you can't do that.
Reflection requires metadata only available in managed executables.

If you want to use Reflection from VB6, I guess that would be possible
through COM interop.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Dec 9 '05 #3

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

Similar topics

5
451
by: Andre | last post by:
I have two questions; 1) When executing the sub routine "TestStructure", I'm trying to update the member "intTyres" in the structure "structureCar" dynamically using System.Reflection. The code executes, but the value does not change, nor is there an exception thrown. 2) Read comments in sub routine "TestIntegerProperty"
1
2928
by: Brian | last post by:
I've looked through the previous posts on this one and have verified permissions and location of my Dlls, but I am still getting an exception when I try to Load an assembly. The directory where my Dlls are located give the ASPNET user full control, and all Dlls used by the Assembly in question are in the local folder with the rest of the web application Dlls. Could someone take a look at my error and shed some light on this?
3
5006
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
1
17828
by: Patrick | last post by:
Has been trying to get an ASP.NET DLL's modification date/time for the "release date/time" to be displayed on the page's footer Using: System.Reflection.Assembly asm=System.Reflection.Assembly.GetExecutingAssembly(); appVer = asm.GetName().Version.ToString(); // get the location of our executing assembly System.IO.FileInfo inf = new System.IO.FileInfo(asm.Location);
1
789
by: Tom | last post by:
Having some trouble with my assembly running another assembly, and I am starting to suspect this may be a windows bug or a framework bug. Everything works fine on my development workstation (XP Pro, FW 1.1). When I copy the binary assemblies to the server machine (2000 Server SP4, FW 1.1) where the apps will be run, I have problems...specifically: Unhandled Exception: System.TypeLoadException: Could not load type <vendor type here>...
2
1519
by: @@Worker | last post by:
can someone write a sample here? thanks "Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> дÈëÏûÏ¢ÐÂÎÅ:%23VUjBemeGHA.1204@TK2MSFTNGP02.phx.gbl... > Use the system.Reflection namespce, specifically, the PropertyInfo class. > For details, see: > > http://msdn2.microsoft.com/en-us/library/system.reflection.propertyinfo.aspx >
3
17615
by: groovyjman21 | last post by:
Hi, I am using FXCop on my c# project and it is complaining about signing the assembly with a strong name key. All the documentation I can find says to do: using System.Reflection; .... namespace Foo Which is fine, except that I need to add a reference in my Project to the System.Reflection.dll assembly and I can't find it. I have .NET
3
1559
by: astruyk | last post by:
Is there a way to add an Attribute to an existing type? Like say I wanted to add a to the List<inttype, how would I go about doing that? Also is there any way to attach Attributes to types at runtime?
16
8395
by: Paul Schwann | last post by:
Hi group, I am relatively new to C# (although I have a lot of programming excperience in other languages like Java and C). Currently I am searching for a solution to this problem: Suppose you have 3 methods A, B and C. All of them shall be run threaded (I/O tasks) and one after another. I can create a thread and schedule one method just like:
0
9522
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8770
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
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
3
2738
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.