|
|
some problems
#109857
01/29/07 21:44
01/29/07 21:44
|
Joined: Jul 2006
Posts: 783 London, UK
sheefo
OP
User
|
OP
User
Joined: Jul 2006
Posts: 783
London, UK
|
I have some problems when converting my project to Lite-C: 1. The engine crashes without telling me whats wrong when I use 'file_str_read'. I am not sure if I am doing something wrong? Code:
var filehandle_n; ... filehandle_n = file_open_game("file.txt"); if(filehandle_n == 0){shutdown(ERROR_FILE);return;} file_str_read(filehandle_n, temp_string);
2. I have no idea if DLLs work with Lite-C. I initialize then like normal functions, but I still get errors like "cannot convert ARRAY to FIXED". Can I have an example to declare DLL functions in Lite-C, please? Are my DLLs even compatable with Lite-C, they where with A6.50? Thats about it for now. If I can fix these problems my project will be working nicely (apart from Shaders which I get a message that they are not supported, I guess this is no error, just that Lite-C BETA doesn't support shaders).
|
|
|
Re: some problems
[Re: TWO]
#109862
01/30/07 09:24
01/30/07 09:24
|
Joined: Jul 2006
Posts: 783 London, UK
sheefo
OP
User
|
OP
User
Joined: Jul 2006
Posts: 783
London, UK
|
I have defined temp_string like this "STRING* temp_string = "#1000";" Is this correct?
I am looking into the DLL thingy, thanks jcl.
I noticed another problem, things like "on_p" ... "on_close" don't work any more... whats wrong?
EDIT: I don't know how, but I fixed the 'file_str_read' problem.
Last edited by sheefo; 01/30/07 09:37.
|
|
|
Re: some problems
[Re: sheefo]
#109863
01/30/07 13:47
01/30/07 13:47
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
Expert
|
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
the "on_p" function needs to be in a function. I think this is shown in the "earthball" demo.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
|