Posted By: pjotr987
is it possible to send an char array to a DLL library? - 12/15/12 12:24
hi guys,
i have the following question. i want to send files over network, therefore i have a program that works fine as C++ console program. i provide the ip and the path of the file as parameters. now i wanted to make a function for 3DGS. here is the code for the socket initiation:
DLLFUNC void* start_network(int stat, char* ziel[])
{
if(stat==1)
{
runserver();
}
if(stat==2)
{
runclient(ziel[1],ziel[2]);
}
return 0;
}
first problem:
how to pass a char array to the start_network function. so that i can set the ip and path in 3dgs.
second question:
if it is possible how to initialize and call the start_network function in LiteC.
by the way the server part is working properly, the problem seems to be around char* ziel[] array data exchange.
thanks in advance for any sugestions
i have the following question. i want to send files over network, therefore i have a program that works fine as C++ console program. i provide the ip and the path of the file as parameters. now i wanted to make a function for 3DGS. here is the code for the socket initiation:
DLLFUNC void* start_network(int stat, char* ziel[])
{
if(stat==1)
{
runserver();
}
if(stat==2)
{
runclient(ziel[1],ziel[2]);
}
return 0;
}
first problem:
how to pass a char array to the start_network function. so that i can set the ip and path in 3dgs.
second question:
if it is possible how to initialize and call the start_network function in LiteC.
by the way the server part is working properly, the problem seems to be around char* ziel[] array data exchange.
thanks in advance for any sugestions