C# PInvoke flushall not giving any output, return value is 2 -
i trying follow simple tutorial on c# pinvoke, , created following program should output test string.
[dllimport("msvcrt.dll", callingconvention = callingconvention.cdecl)] public static extern int puts(string c); [dllimport("msvcrt.dll", callingconvention = callingconvention.cdecl)] internal static extern int _flushall(); public static void main() { puts("test"); int x = _flushall(); console.readkey(); }
when run program, don't see output in console window, or output window in visual studio.
the return value _flushall call 2. have not yet been able find reference on msvcrt.dll see functions/entry points available, , return values mean.
Comments
Post a Comment