Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import cpp.*;
// Windows only.
// Compile with "-D no_console" for best effect
@:cppFileCode("#include <windows.h>")
class MessageBox
{
public static function main()
{
var messageBox:cpp.Function< Pointer< Void > ->
ConstCharStar ->
ConstCharStar ->
Int -> Int, cpp.abi.Winapi > =
Function.getProcAddress("User32.dll", "MessageBoxA");
messageBox(null, "Hello, World!", "Hxcpp MessageBox", 0);
// This will actually print out if you have started from a console (not double-click)
trace("Sneaky trace");
}
}

View File

@ -0,0 +1,4 @@
-main MessageBox
-cpp cpp
-D no_console
-cmd start cpp/MessageBox.exe