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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -