This commit is contained in:
Dante
2026-05-22 11:54:15 -07:00
parent 05f197c291
commit b47ea35fe4
935 changed files with 1016163 additions and 1 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