Created
February 6, 2018 02:21
-
-
Save lukexie/0d685b324f6375338ee4bc38bfb94890 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int gsdll_callback(int message, char* str, unsigned long const) { return 0;} | |
int main(int argc, char* argv[]) | |
{ | |
int rc; | |
args[0] = "gsdll32-test.exe"; | |
args[1] = "-dBATCH"; | |
args[2] = "-dNOPAUSE"; | |
args[3] = "-dDEVICE=pdfwrite"; | |
rc = gsdll_init(gsdll_callback, NULL, argct, args); | |
fprintf(stdout, "gsdll_init returns %d\n", rc); | |
if (!rc) rc = gsdll_exit(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment