To recount the issue and resolution:
I was getting the -15 error when i try to use the 8.15 version of the ghost script. When I upgraded it to the latest version (9.10) everything works great. The error occurred "gsapi_init_with_args" method so i am thinking it is something to do with API change on the parameters.
If you decided to load the dll into the memory without actually having the install being there in the system. A method like
Thanks josip for the help.
I was getting the -15 error when i try to use the 8.15 version of the ghost script. When I upgraded it to the latest version (9.10) everything works great. The error occurred "gsapi_init_with_args" method so i am thinking it is something to do with API change on the parameters.
If you decided to load the dll into the memory without actually having the install being there in the system. A method like
gsviewer.Open(@"D:\mytest.pdf", System.IO.File.ReadAllBytes(@"C:\ProgramFiles\ApplicationName\gs32dll.dll"));
will work great. Thanks josip for the help.