Page 1 of 1

string < and > doesn't work

PostPosted: Thu Jul 19, 2012 2:38 pm
by CashCow
Try:

disp("A" < "B" );
disp( "14" < "32" );
disp( "32" < "14" );
disp( "14" > "32" );
disp( "32" > "14" );

as examples...

We found a workaround, by the way, by doing

dll strcmp( CRTDLL, "strcmp", false, int, string s1, string s2);

thus "pulling" strcmp into Phantom as a function and using it instead.

Incidientally your documentation does not say anywhere how the memory is managed for DLL functions that return strings, although you have specified that it can return them.