Win32 Ghostscipt Question

Alex Morris alex@datasyst.net
Fri, 2 Nov 2001 12:58:19 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0060_01C1639E.0BD537F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all,

I'm one of those infamous GLLUG lurkers (considering I'm new to Linux =
and recently moved to NC, it's hard to be anything but a lurker...), but =
today I seem to have a problem.  I'm working with GNU GhostScript 6.52 =
on Win2k Pro, and I'm trying to get the DLL to work with some C++ code =
I'm writing.  Basically, I couldn't figure out how to get the =
gsdll32.dll to work properly straight from VB, so I'm writing a C++ DLL =
that wraps all of the functionality of the GhostScript DLL.  However, =
every time that I run the gsdll_init() routine, I get a "Memory Could =
Not Be Read" error -- basically a Win2k GPF.  (I can get the =
gsdll_revision() routine to work, so I know that I'm loading the DLL =
properly, but gsdll_init() crashes the app every time.  I think it has =
something to do with how I'm passing the callback function.)

Does anyone have working C++ (or VB, for that matter) code that runs =
against the GhostScript Win32 DLL?  I spent hours yesterday and today =
reading through GhostScripts docs and scouring Google, but to no avail.  =
If you prefer, I can always email my code to any intersted people.

Thanks,
Alex

------=_NextPart_000_0060_01C1639E.0BD537F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello all,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm one of those infamous GLLUG lurkers =

(considering I'm new to Linux and recently moved to NC, it's hard to be =
anything=20
but a lurker...), but today I seem to have a problem.&nbsp; I'm working =
with GNU=20
GhostScript 6.52 on Win2k Pro, and I'm trying to get the DLL to work =
with some=20
C++ code I'm writing.&nbsp; Basically, I couldn't figure out how to get =
the=20
gsdll32.dll to work properly straight from VB, so I'm writing a C++ DLL =
that=20
wraps all of the functionality of the GhostScript DLL.&nbsp; However, =
every time=20
that I run the gsdll_init() routine, I get a "Memory Could Not Be Read" =
error --=20
basically a Win2k GPF.&nbsp; (I can get the gsdll_revision() routine to =
work, so=20
I know that I'm loading the DLL properly, but gsdll_init() crashes the =
app every=20
time.&nbsp; I think it has something to do with how I'm passing the =
callback=20
function.)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone have working C++ (or VB, =
for that=20
matter) code that runs against the GhostScript Win32 DLL?&nbsp; I spent=20
hours&nbsp;yesterday and&nbsp;today reading through GhostScripts docs =
and=20
scouring Google, but to no avail.&nbsp; If you&nbsp;prefer, I can always =
email=20
my code to any intersted people.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Alex</FONT></DIV></BODY></HTML>

------=_NextPart_000_0060_01C1639E.0BD537F0--