Code: Select all
Sub Main()
Print "Hello, world!"
End Sub
Example, cmd.exe > rundll32 example.dll,Main
Code: Select all
Sub Main()
Print "Hello, world!"
End Sub
Code: Select all
#Include Once "windows.bi"
Extern "Windows-MS"
Sub Main() Export
MessageBoxEx(Null, "Hello, world!", "DLL Information", MB_ICONINFORMATION OR MB_OK Or MB_APPLMODAL Or MB_TOPMOST, 1033)
End Sub
End Extern
Thanks! Worked!UEZ wrote: ↑Aug 10, 2022 18:41 Try this:Compile it with parameter -dll -exportCode: Select all
#Include Once "windows.bi" Extern "Windows-MS" Sub Main() Export MessageBoxEx(Null, "Hello, world!", "DLL Information", MB_ICONINFORMATION OR MB_OK Or MB_APPLMODAL Or MB_TOPMOST, 1033) End Sub End Extern