May 20, 2024, 03:03:25 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


SYSTEM statement in Aurora?

Started by Doc, July 05, 2006, 12:54:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Doc

Hello Paul (or anyone else who wants to jump in here  ;) )

Using Aurora, I'm trying to resurrect a really old "fun project" that I originally started in IBasic, which brought a couple of questions to mind.

Is there yet an equivalent option available for the "SYSTEM" statment in IB?

Also, can Aurora source code be compiled from the command prompt?


I've searched the forum without finding anything helpful, so apologise in advance if either answer has already been given elsewhere around here.

-Doc-

Ionic Wind Support Team


Here is the Aurora equivelent.


global sub main()
{
system("notepad.exe","test.txt");
}

DECLARE IMPORT,ShellExecuteA(UINT hwnd,pointer pOp,pointer pFile,pointer pParam,pointer pDir,int nShow),UINT;

SUB SYSTEM(STRING command, OPT STRING param)
{
ShellExecuteA(0,"open",command,param,0,1);
}


You can compile from the command line, but it's a complex procedure since you need to call the compiler, assembler and linker in the proper order. 

Paul.
Ionic Wind Support Team

Doc


Zen

Yes its not too hard. Perhaps using a batch file or one of the GPL MAKE programs. Aurora Live basicly calls each seperate program and opens a pipe to listen to the compulers output etc.

Lewis

ExMember001

why when i use system("charmap.exe");  in my Onmenupick  i got this error?
Compiling Resources
Compiling...
Popotte.src
File: C:\Documents and Settings\Martin\Mes documents\Aurora source\Popotte.src (394) Warning: undeclared function 'system'
C:\Documents and Settings\Martin\Mes documents\Aurora source\Popotte.src:394: error: symbol `system' undefined
C:\Documents and Settings\Martin\Mes documents\Aurora source\Popotte.src:518: error: phase error detected at end of assembly.
Error(s) in assembling "C:\Documents and Settings\Martin\Mes documents\Aurora source\Popotte.asm"

ive try to declare it but doesnt work too.

ExMember001

ok i understand lol... forget that :)