if you want to see Hello World!... try this hack
hw.s=programparameter(0)
if not hw.s
hw.s="Hello World!"
endif
ProcedureDLL ConsoleWrite(t.s)
stdout=GetStdHandle_(#STD_OUTPUT_HANDLE)
written.l
msg.s=t.s+Chr(13)+Chr(10)
size.l=Len(msg.s)
res=WriteFile_(stdout,@msg.s,size, @written, #Null)
res ...
Search found 2 matches
- Tue May 25, 2010 11:04 am
- Forum: Coding Questions
- Topic: "hello, world" purely in FASM for PureBasic?
- Replies: 10
- Views: 4048
- Tue May 25, 2010 7:26 am
- Forum: Coding Questions
- Topic: Execute a function contained in a variable
- Replies: 16
- Views: 5405
Re: Execute a function contained in a variable
a little update:
Structure STRPROCENTRY
lpProcAddress.l
szProcName.s
EndStructure
Global NewList SG_Procedures.STRPROCENTRY()
ProcedureDLL SG_CallProc(szName.s)
Shared SG_Procedures.STRPROCENTRY()
ForEach SG_Procedures()
If LCase(szName) = SG_Procedures()\szProcName
CallFunctionFast(SG ...
Structure STRPROCENTRY
lpProcAddress.l
szProcName.s
EndStructure
Global NewList SG_Procedures.STRPROCENTRY()
ProcedureDLL SG_CallProc(szName.s)
Shared SG_Procedures.STRPROCENTRY()
ForEach SG_Procedures()
If LCase(szName) = SG_Procedures()\szProcName
CallFunctionFast(SG ...