Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What are the steps to follow to use Platform Invoke?
Managed Code and Unmanaged Code related ASP.NET - What are the steps to follow to use Platform Invoke?
✍: Guest
To use platform invoke, follow the following steps:
1. Import the System.Runtime.InteropServices namespace.
2. Declare the unmanaged procedure using the DllImport attribute or the Declare statement.
3. Map the data types of the procedures parameters to the equivalent .NET types.
4. Call the unmanaged procedure and test its return value for success.
5. If the procedure did not succeed, retrieve and handle the exception code using the Marshal object’s GetLastWin32Error method.
2009-03-31, 4976👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...
An application needs to load a library before it starts to run, how to code? One option is to use a ...
What is the purpose of finalization? The purpose of finalization is to give an unreachable object th...
Can you please post OpenLink Endur related FAQ's,tutorials,document s.Thanks
How Is the Width a Parent Element Related to Child Elements? - CSS Tutorials - Understanding Multipl...