Printing problem W98 - Knowledge Base Article - 322090

  • Thread starter Thread starter Kristof Nachtergaele
  • Start date Start date
K

Kristof Nachtergaele

Hi,

I'm trying to implement Knowledge Base Article - 322090 into my code to be
able to send data directly to a pos printer. This works fine under win XP,
but when I try the same printer under W98 it fails to print. The openprinter
function fails, but when I try to get the error with getlasterror it just
states that the last command completed succesfully.

The printer is correctly connected, if I print from notepad or so, it works,
and if i send data to lpt1 from dos it also prints.

Anyone have any clue on what might be going on?

Thanks,
Kristof
 
* "Kristof Nachtergaele said:
I'm trying to implement Knowledge Base Article - 322090 into my code to be
able to send data directly to a pos printer. This works fine under win XP,
but when I try the same printer under W98 it fails to print. The openprinter
function fails, but when I try to get the error with getlasterror it just
states that the last command completed succesfully.

The printer is correctly connected, if I print from notepad or so, it works,
and if i send data to lpt1 from dos it also prints.

Use this method to get the error number:

<http://msdn.microsoft.com/library/e...ervicesmarshalclassgetlastwin32errortopic.asp>
 
I've got the error number now, it's 120 and the associated message is that
"this function is only valid in Win32 mode" (translated from dutch)

Any clues to what might be happening here ?
 
Kristof Nachtergaele said:
I've got the error number now, it's 120 and the associated message is
that "this function is only valid in Win32 mode" (translated from
dutch)

Any clues to what might be happening here ?


In my MSDN library version, error 120 is:

"This function is not supported on this system."
 
Back
Top