26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure :- 2.2 VB6 IDE referencing the CCW<br />

(A)How can we make Windows API calls in .<strong>NET</strong>?<br />

Windows API call are not COM based and are invoked through Platform Invoke Services.<br />

strings<br />

42<br />

√<br />

√<br />

√<br />

√<br />

Declare StringConversionType (Function | Sub) MethodName Lib "DllName" ([Args])<br />

As Type<br />

StringConversionType is for what type of conversion should take place.Either we<br />

can specify Unicode to convert all strings to Unicode values, or Auto to convert<br />

according to the .<strong>NET</strong> runtime rules.<br />

MethodName is the name of the API to call.<br />

DllName is the name of the DLL.<br />

Args are any arguments to the API call.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!