Hello everyone.
I am a long time visitor to these forums, first time post.
Also, long time programmer(Cobol, Business Basic).
I know this program works, But, Is this code safe? Any memory leaks?
The DLL part is simulating what a C language program might be doing.
Thanks for your comments.
I am a long time visitor to these forums, first time post.
Also, long time programmer(Cobol, Business Basic).
I know this program works, But, Is this code safe? Any memory leaks?
The DLL part is simulating what a C language program might be doing.
Code:
#COMPILE DLL "TEST.DLL" DECLARE FUNCTION SysAllocStringByteLen LIB "OLEAUT32.DLL" ALIAS "SysAllocStringByteLen" (psz AS ASCIIZ, BYVAL ulen AS DWORD) AS DWORD SUB TEST(ix AS LONG) EXPORT ix=SysAllocStringByteLen("Testing......", 16) END SUB
Code:
#COMPILE EXE DECLARE SUB TEST LIB "TEST.DLL"(s AS STRING) FUNCTION PBMAIN() AS LONG LOCAL z AS STRING TEST z MSGBOX z END FUNCTION
Comment