You work as the application developer at Certkiller .com.
You are working on an application and want to use platform
invoke services to call an unmanaged function from managed code.
How will you accomplish the task?
Answer / gaaa
A. Create a class to store DLL functions. Create prototype
methods by using the managed code.
B. Use COM to register the assembly. Reference the managed
code from COM.
C. Export a type library for the managed code.
D. Import a type library as an assembly. Create instances of
COM object.
Answer: A
Explanation: It is good practice to wrap the messy P-Invoke
code with a .net class.
The main benefit is to keep the client code tidy as the
messy and cryptic code will be hidden away. Also better for
maintenance e.g dll name or version changes.
The question explicitly says the unmanaged code should be
called with platform invoke services. Importing\exporting a
type library is relevant for interoperation with COM.
| Is This Answer Correct ? | 0 Yes | 0 No |
Anyone send me list of latest Microsoft certifications and where the dumps available for practice purpose
Name some OU design considerations.
windows file/folder sharing ?
how to create the mutiple ftp site in windows 2000 server
what is the difference between windows 2000 server and 2003 server
I am unable to access other Pc within network without domain. when i am doing to access other Pc within lan like //192.168.1.11 it gives error message like "the network location cannot reached.For information about network troubleshooting, see windows help" what is the solution?
Sir, I need to do my certification course for .NET. Will u provide me the information of how to prepare for the certification test. And also specify me the online books that is useful in studing for .NEt platform
3 Answers Brigade, Microsoft, TCS, TEVTA, Wipro,
i am using window xp professional on my laptop. i have 2 internet connection one is connected on network cable. other one is reliance data card, when i am browsing websites i am getting generic host svchost.exe -- application error the instruction at "0x745f2780" reference memory at "0x00000000". the memory could not be 'read' please tell me solution for that error. how can i resolve it.
Name the AD NCs and replication issues for each NC
I am an employee in one company. I need to do asp.net certification. I am new to this technology and also i am studying it from one month. So please guide me how i can proceed for doing my certification.
What are the GPC and the GPT? Where can I find them?
someone asked me what Microsoft subjects i want to learn? and i said i want to learn Windows and Exchange. so could u tell me what related subjects in windows? and what related subjects in Exchange?