[comp.windows.ms.programmer] Yet more questions on Windows

sbc@netcom.COM (Spencer Clark) (06/26/91)

Hi, everyone.  I'm developing a Windows front end to an existing DOS program.
I have run into two problems.  

1) I have a help document that I load into a buffer created with LocalAlloc.  
I am then able to scroll throught the document, page UP/DOWN, etc. with no 
problem.  Once in a while, especially if there has been rapid repeated 
paging through the document, when I quite the help and the program attemps to
execute the LocalFree function, I get the good ol' SYSTEM ERROR, with the 
pushbuttons CANCEL & RETRY, both of which will shoot me right out of Windows.
I used CodeView to pin point exactly where the error occurs, but I have no 
idea why.

2) The icon I with to use is unfortunately in BMP form.  Is there some utility
that allows one to convert a BMP to ICO format?

Please e-mail me if you can help me with either of these problems.  Thanks!

sbc@netcom.com

ebergman@isis.cs.du.edu (Eric Bergman-Terrell) (06/26/91)

About your Windows front-end to existing DOS application:  I'm curious why
you don't want to port the entire program (that might be easier than a
hybrid approach).

About your problem with the help file - why not convert the file to Windows
help format, compile it (with "hc") and not worry about scrolling pages, etc?
Once you get the hang of the help stuff it's relatively easy to work with...

The Whitewater Resource Toolkit may (I don't know) be able to convert
BMP files to .ICO (maybe someone who's tried cares to comment).

If you can get the help file in ASCII I'd strongly recommend making it a
Windows help file and let WinHelp() do the work.

Terrell