question about lib 
Author Message
 question about lib

I want use a API function,CreateFile,which is in Kernel32.lib,How to do for
using it ?


Mon, 28 Mar 2005 11:42:41 GMT  
 question about lib
Import the function using the DLLImport attribute...

You'll have to re-create the Security Attributes structure and marshal it
correctly also.

However. Why not use one of the .NET file API's?

Bob.

--
xRay tools Professional Windows Forms componenets at amazing prices.
http://www.bobpowell.net/xray_tools.htm
Buy the tool and get source code in VB or C#

Buy my book, C# and the .NET framework...
http://www.amazon.com/exec/obidos/ASIN/067232153X/bobpowelnet

See my book recommendations...
http://www.bobpowell.net/recommendations.htm

Check out the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm


Quote:
> I want use a API function,CreateFile,which is in Kernel32.lib,How to do
for
> using it ?



Mon, 28 Mar 2005 14:17:22 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. DLL question - no .lib file when I compile

2. Stupid question about Lib files, PLEASE help!

3. Question for LIB files.

4. How to get rid of odbc32.lib odbccp32.lib

5. Beta 2: Mfcdload.lib and atldload.lib missing

6. To Cursor Lib or not to Cursor Lib

7. Microsoft C run-time lib LLIBCE.LIB

8. CONFLICT - Global Var of a .LIB Vs Global Var of a program which uses the LIB

9. Convert a MS Lib into a Borland Lib

10. convert 16 bit lib to 32 bit lib.

11. Differentiate LIB file for static library and LIB file for DLL

12. Fdectsp.lib and decLib.lib

 

 
Powered by phpBB® Forum Software