Charles, i am not using co2 or gxo2, i am using a custom dll caller i made in PowerBASIC to avoid the messageboxes that are displayed with those, because it was displaying messageboxes even with the -m switch. So, the messageboxes must be coming from the dll itself....
This is ny PBCC code:
#COMPILE EXE
#DIM ALL
DECLARE SUB o2_mode LIB "oxygen.dll" ALIAS "o2_mode" (BYVAL m AS LONG)
'DECLARE FUNCTION o2_abst LIB "oxygen.dll" ALIAS "o2_abst" (BYVAL p AS ASCIIZ PTR) AS DWORD ' Asciiz Ptr
DECLARE SUB o2_asmo LIB "oxygen.dll" ALIAS "o2_asmo" (BYVAL p AS ASCIIZ PTR)
'DECLARE SUB o2_basic LIB "oxygen.dll" ALIAS "o2_basic" (BYVAL p AS ASCIIZ PTR)
'DECLARE FUNCTION o2_exec LIB "oxygen.dll" ALIAS "o2_exec" (BYVAL hAddr AS LONG) AS LONG
'DECLARE FUNCTION o2_buf LIB "oxygen.dll" ALIAS "o2_buf" (BYVAL n AS LONG) AS LONG
'DECLARE FUNCTION o2_errno LIB "oxygen.dll" ALIAS "o2_errno" () AS LONG
DECLARE FUNCTION o2_error LIB "oxygen.dll" ALIAS "o2_error" () AS DWORD ' Asciiz Ptr
'DECLARE FUNCTION o2_len LIB "oxygen.dll" ALIAS "o2_len" () AS LONG
'DECLARE FUNCTION o2_prep LIB "oxygen.dll" ALIAS "o2_prep" (BYVAL p AS ASCIIZ PTR) AS DWORD ' Asciiz Ptr
'DECLARE FUNCTION o2_view LIB "oxygen.dll" ALIAS "o2_view" (BYVAL p AS ASCIIZ PTR) AS DWORD ' Asciiz Ptr
FUNCTION PBMAIN () AS LONG
LOCAL FF AS LONG
LOCAL FC AS STRING
LOCAL CL AS STRING
LOCAL SP AS DWORD
LOCAL ER AS ASCIIZ PTR * 255
IF ISTRUE(LEN(DIR$(COMMAND$))) THEN
FF = FREEFILE
ERRCLEAR
OPEN COMMAND$ FOR BINARY AS #FF
IF ERR THEN
STDOUT "File not available: " & $CRLF & COMMAND$
EXIT FUNCTION
END IF
FC = SPACE$(LOF(FF))
GET #FF,,FC
CLOSE #FF
IF ISFALSE(LEN(FC)) THEN
STDOUT "File is empty: " & $CRLF & COMMAND$
EXIT FUNCTION
END IF
CL = "#file """ & TRIM$(PATHNAME$(PATH, COMMAND$), ANY "/\") & "\" & PATHNAME$(NAME, COMMAND$) & ".exe""" & $CR & _
FC
SP = STRPTR(CL)
CALL O2_MODE(9)
O2_ASMO(SP)
ER = O2_ERROR()
IF LEN(TRIM$(@ER, ANY CHR$(0, 32, 34, 10, 13))) THEN
STDOUT TRIM$(@ER, ANY CHR$(0, 32, 34, 10, 13))
ELSE
STDOUT "SUCCESS COMPILING: " & TRIM$(PATHNAME$(PATH, COMMAND$), ANY "/\") & "\" & PATHNAME$(NAME, COMMAND$) & ".exe""
END IF
ELSEIF ISFALSE(LEN(TRIM$(COMMAND$, ANY "0123456789"))) THEN
STDOUT "Filename not provided."
ELSE
STDOUT "File not found: " & COMMAND$
END IF
END FUNCTION