Custom entry points on Windows (DllMain; WinMain)

This commit is contained in:
Ginger Bill
2016-12-09 00:07:08 +00:00
parent fa89d2775a
commit 0d69dfcde6
9 changed files with 215 additions and 114 deletions

View File

@@ -18,6 +18,7 @@ main :: proc() {
}
defer win32.FreeLibrary(lib)
proc_handle := get_proc(lib, "some_thing")
if proc_handle == nil {
fmt.println("Could not load 'some_thing'")
@@ -25,5 +26,6 @@ main :: proc() {
}
some_thing := (proc_handle as proc())
fmt.println(some_thing)
some_thing()
}