SharpReader on Windows 9x

SharpReader (like me) doesn't seem to like Windows 98 or Windows ME. This is going to be hard to fix as I don't have access to a Win98 or WinME system anymore. I upgraded my home system from Windows ME to Windows XP over a year ago and have not looked back since... Does anybody know if there are known issues with .NET running on Win9x? or maybe the issue is with some of the Windows API calls that are made by SharpReader. It uses the following methods in user32.dll:

  public static extern int SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);
  public static extern int PostMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);
  public static extern bool SetForegroundWindow(IntPtr hWnd);
  public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
  public static extern bool IsIconic(IntPtr hWnd);
Do any of these possibly not exist in Windows 9x?

TrackBack URL for this entry: http://www.hutteman.com/scgi-bin/mt/mt-tb.cgi/23
Comments

Luke,

One of the greatest investments I have ever made was in a tool called VMWare, which allows you to run virtual machines on top of your existing OS.

Check it out at http://www.vmware.com.

Posted by Matt Berther at April 7, 2003 1:41 AM

I was just about to make the same comment when I read this via SharpReader... +1 for VMWare.

Posted by Tim Marman at April 7, 2003 6:07 AM

I was just about to make the same comment when I read this via SharpReader... +1 for VMWare.

Posted by Tim Marman at April 7, 2003 6:07 AM

I don't think ShowWindowAsync works on Win9x. Try ShowWindow instead. Also, VirtualPC (www.connectix.com) is less expensive than VMware and just as good.

PS: Awesome product!

Posted by Mike Sax at April 7, 2003 9:37 AM

Based on msdn all Functions are available on Win95 and Higher.
However, Unicode Versions (PostMessage and ShowMessage) only on NT and higher (95/98/Me only with MS Layer for Unicode).

SharpReader rules!

Posted by Bill Stevens at April 7, 2003 10:05 AM

Me again :) - According to the MSDN documentation, ShowWindowAsync is supposed to work under 95. Are you passing any strings in your calls to SendMessage or PostMessage? Depending on which messages you are using you strings may need to be passed in Unicode or Ansi format. You may need to make some additional prototypes for SendMessage and PostMessage and add some MarshalAs(UnmanagedType.LPWStr) or MarshalAs(UnmanagedType.LPTStr) attributes to the parameters.

Posted by Mike Sax at April 7, 2003 7:28 PM
This discussion has been closed. If you wish to contact me about this post, you can do so by email.