Expecting answer for my question?

Posted by Gg under ASP.NET on 2/24/2011 | Points: 10 | Views : 1089 | Status : [Member] | Replies : 3
Hi,

I have some question, please clarify me.

1) What is Interoperatability? Where it will use?
2) Is it possible on .net dll in VB 6.0 project?
3) Is it possible on VB 6.0 dll into the .net project?
4) How to register the sattellite assembly?
5) How to stop the creating the instantation in class?

Thanks,
GG




Responses

Posted by: Naimishforu on: 2/24/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi GG,

I really didn't understand any of your question, could you please be more descriptive??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Krkc on: 2/25/2011 [Member] Starter | Points: 25

Up
0
Down
Here are your answers (Breifly)

1) What is Interoperatability? Where it will use?
The interoperability features of .NET allow you to work with existing unmanaged code (that is, code running outside the CLR) in COM components as well as Microsoft Win32® DLLs. It also allows you to use managed components from your unmanaged, COM-based code. These features allow you to choose if and when to migrate existing unmanaged code to .NET.

2) Is it possible on .net dll in VB 6.0 project?
Yes, When a .NET component is called from COM, the runtime again generates a wrapper object to bridge the gap between the environments. In this case, the runtime generates a COM callable wrapper (CCW). The runtime reads the type information for the component from its assembly metadata and generates a compatible CCW. Similar to the RCW, the CCW acts as a proxy between the unmanaged COM code and the managed .NET code.

3) Is it possible on VB 6.0 dll into the .net project?
Yes, When a COM object is called from .NET, the runtime generates a runtime callable wrapper (RCW). The RCW acts as a proxy for the unmanaged object.

4) How to register the sattellite assembly?
Satellite assemblies are for Localization. Here is my fav blog on that.
http://community.devexpress.com/blogs/garyshort/archive/2010/09/28/xaf-module-localizations-stored-in-satellite-assemblies-coming-in-v2010-vol-2.aspx

5) How to stop the creating the instantation in class?
Create Private constructors inside your class.

Please do let me know if you need any more info

Thanks,
Ravi

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/25/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hey Ravi thanks, I got that now :)

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response