16 lines
503 B
C
16 lines
503 B
C
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <windows.h>
|
||
|
|
||
|
int
|
||
|
WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pCmdLine, int nCmdShow)
|
||
|
{
|
||
|
char* argument_list[] = { _fullpath(NULL, "recuento\\\\recuento.exe", 3000), NULL };
|
||
|
_putenv_s("DATADIR_RECUENTO", "recuento\\\\resources/");
|
||
|
_putenv_s("GSETTINGS_SCHEMA_DIR", "share\\\\glib-2.0\\\\schemas");
|
||
|
int return_value = execvp(argument_list[0], argument_list);
|
||
|
if (return_value == -1)
|
||
|
printf ("%s\n", strerror(errno));
|
||
|
}
|