How to write unmanaged code and how to identify whether the
code is managed / unmanaged ?

Answer Posted / narayansahu

you can only write unmanaged code in c# not in vb.net
you can only call unmanaged code in vb.net. calling and
writing unmanaged code are different things.

To identify whether the code is managed or not open the
file in ildasm in VS.Net Command prompt.
Also you can use a .Net tool called dumpbin, which can be
used to check the headers.

or open the dll in notepad and check for "V e r s i o n".
If you find that, it is managed assembly.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using session?

516


How can we communicate with each server in N-tier Architecture? and what are the methods?

1870


How can we inherit a static variable?

620


What is session management in web application?

638


What is the purpose of master page?

609






Where the assembly is stored in asp.net?

640


Explain the working of passport authentication.

619


What is AutoPostback?

691


Which is better asp.net or php?

617


How do you identify that the page is postback?

627


What is difference between session and application in asp net?

585


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1644


What is asp according to you?

619


Securitywise What are the Enhancements in 2.0?

1575


How you can manage the state of application at the server side in ASP.NET?

668