[Gambas-user] Events in Gambas non-graphic project
Trorrr [Héctor Fernández]
trorrr at ...397...
Sat Apr 24 00:20:22 CEST 2004
Hello, i'm writing a console version of a server for a
messaging protocol that is already written on Gambas
with a graphical Form. I need to program the console
version to make a non-X system server.
I create a new project and then i unmark gb.qt. The
init procedure is then STATIC PUBLIC SUB Main(). I
mark gb.net component to allow networking but if i
compile this simple code:
PRIVATE Server AS ServerSocket
PRIVATE Client AS Object[]
STATIC PUBLIC SUB Main()
DIM cadena AS String
Client=NEW Object[]
Server=NEW ServerSocket AS "Server"
Server.Type=Net.Internet
END
it shows the message "Dynamic symbols cannot be used
in static function" in the Client=NEW Object[] line
when i compile. Isn't possible to use events in
command-line projects? Thanks.
______________________________________________________________________
Correo Yahoo! - 6MB, más protección contra el spam ¡Gratis!
http://correo.yahoo.es
More information about the User
mailing list