471,605 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

System.Reflection 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 1441
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******@dtgnet.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.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.GetMethodBody 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tom | last post: by
3 posts views Thread by groovyjman21 | last post: by
3 posts views Thread by astruyk | last post: by
16 posts views Thread by Paul Schwann | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

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.