473,573 Members | 2,903 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 1524
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鰃ren [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
2912
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...
3
4982
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...
1
17792
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...
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...
2
1501
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
17594
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...
3
1554
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
8366
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...
0
7767
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抣l explore What is ONU, What Is Router, ONU & Router抯 main...
0
8006
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
8196
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...
1
7768
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8058
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...
0
5288
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
3729
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2191
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
1035
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.