DLLImport for DLL containing ftell and fseek

  • Thread starter Thread starter trellow
  • Start date Start date
T

trellow

Does anyone know what DLL the ftell and fseek functions
are in? I need to use these functions in a C# program. I
know they are not in kernel32.dll.

Thanks in advance,
trellow
 
Hi,

These functions are exported from msvcrt.dll, they are part of the C runtime
libraries. With that out of the way, why do you need to do this, .NET
provides this funtionality through the Stream classes. You can use use the
Position property to access the file pointer location both for get and set.
If you have somehow got a C style stream FILE* handle from some other
library then fair enough.

Hope this helps
 
trellow,

They are not in a DLL, they are in the C runtime library for windows.
If you want to access these functions, you need to create a DLL that will
export the functions and then call the functions in the library. .NET can
only access functions exported in DLLs, not libraries.

Hope this helps.
 
Back
Top