HDTenEightyP/NetNews huggingface dataset:
From: Steve_Goyette@mindlink.bc.ca (Steve Goyette)
Subject: Undefined Dynalink HELP
Organization: MIND LINK! - British Columbia, Canada
Date: Fri, 8 Jan 1993 01:06:07 GMT

Hi All,

        I am trying to modify the printer setup by calling the ExtDeviceMode
function.  Problem is that on some machines I get an Undefined DYNALINK
message.  Does anybody know what this is?  Here is the code fragment that I
am using:

        char szPrinter[64],
szSysDir[128],szFullDriver[256],*szDriver,*szDevice,*szOutput;
        HANDLE hDriver;
        DEVMODE DevMode;
        LPFNDEVMODE lpDeviceMode;

        GetProfileString("windows","device","",szPrinter,64);
        szDevice = strtok(szPrinter,",");
        szDriver = strtok(NULL,",");
        szOutput = strtok(NULL,",");

        GetSystemDirectory(szSysDir,128);
        lstrcpy(szFullDriver,szSysDir);
        lstrcat(szFullDriver,"\");
        lstrcat(szFullDriver,szDriver);
        lstrcat(szFullDriver,".DRV");

        hDriver = LoadLibrary(szFullDriver);
        if (hDriver != NULL)
        {

                lpDeviceMode =
(LPFNDEVMODE)GetProcAddress((HINSTANCE)hDriver,"ExtDeviceMode");
                if (lpDeviceMode)
                        (* lpDeviceMode)
(HWindow,(HINSTANCE)hDriver,&DevMode,szDevice,szOutput,NULL,NULL,DM_PROMPT |
DM_UPDATE);
        }
        else
                MessageBox(HWindow,"Could not load driver
file.","Error",MB_OK | MB_ICONEXCLAMATION);

--
------------------------------------------------------------------------------

Steve Goyette                    |       Email : Steve_Goyette@MindLink.BC.CA
Software Engineer                |       Cserve: 71763,1435
Abstract Automation Limited      |       Phone : (604) 421-8864
                                 |       Fax   : (604) 421-7722 (Call first)
-------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: modifying a variable in a Windows .EXE without re-linking???
Organization: Energy, Mines, and Resources, Ottawa
Date: Sun, 3 Jan 1993 20:50:27 GMT

I want to distribute my application with a 'lock' to the data set
provided with it, i.e. it can't be used for any other data sets.
Rather than put a key in the data set and in the program, it is
sufficient to lock the .EXE to a file of a certain size.  I have
a global variable:
	static long int lockfilesize=-1L;

If this is -1, then the app can be used with any file, otherwise
the file size must be the same as lockfilesize.

Now, I really don't feel like re-linking the program with a different
value of lockfilesize tied to each data set distributed, so is there
a way of modifying this value in an already-linked .EXE, but not
allowing anyone else to do it?

I was hoping to do this perhaps with the map file produced by the
linker but I don't know what I'm looking for, i.e. how do I find the
position of a variable in the .EXE, knowing the offset etc into
a segment like DGROUP.  I'm using Borland C++ 3.1.

Although I'm sure there are many ways to hack this, I would prefer
a formal solution which is all 'up-front', so I can automate it
somehow using a .BAT file.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: stillson@mitre.org (Ken Stillson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DPMI: win30 vs win31 ?!
Date: 6 Jan 93 20:38:10 GMT
Organization: The MITRE Corporation


Hello.  I've got an application that uses direct DPMI interfacing, 
and it seems to work fine with win 3.0, but crashes instantly under 3.1.

Can anyone give me some hints as to the DPMI implementation differences
that could cause complete failure? 

The assembly language instruction it's crashing on (this is according to
turbo debugger, which I'm not sure works completely when the application is
shifting into and out of protected mode...) is:
	arpl [bx-1a],sp			[note ds=ss]

I'm not even familiar with that op..  I take it that it's a new 386 or 386
protected mode command.

[btw, I'm working on getting GNU demacs to work for windows 3.1, if anyone
 out there is interested... ]

Thanks!  Please e-mail reply to stillson@mitre.org

Talk to ya sooner,

	- Ken Stillson

--
                                                                ____
panic: cannot read .signature file for stillson@mitre.org       \  /
Abort, Retry, Ignore, Explode?                                   \/
From: babb@sciences.sdsu.edu (J. Babb)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: File format of Cardfile program.
Followup-To: comp.os.ms-windows.programmer.misc
Date: 5 Jan 1993 01:47:05 GMT
Organization: SDSU - LARC
Distribution: world
NNTP-Posting-Host: larc.sdsu.edu

Hi all,
  I'd like to import all the info in my cardfile (168 cards) into a
database. I don't wanna do all that re-typing! If I knew  the format, I
think I could write sumpn' quick and dirty in less time than it would take
to re-type. If you know it, lemme know!
Thanx,
Jeff.
Newsgroups: comp.os.ms-windows.programmer.misc
From: tmc@spartan.ac.BrockU.CA (Tim Ciceran)
Subject: .ICO File Format Specifications
Organization: Brock University, St. Catharines Ontario
Date: Tue, 12 Jan 1993 05:36:45 GMT

Does anyone happen to have the Windows .ICO file format specifications
handy? I understand that the September issue of the Microsoft Systems
Journal has this listed in an article concerning resource file formats,
but I've been unable to find the issue anywhere.

I'm basically interested in converting .ICO files to alternative bitmap
formats, so any insights would be particularly helpful.

Thanks in advance,

TMC
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: how narrow can I make a window?
Organization: Compaq Computer Corp.
Date: Mon, 11 Jan 1993 15:25:05 GMT

In article <1993Jan10.064047.3230@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
...stuff describing window deleted...
>I would like to be able to allow the user to make this window as narrow
>or as wide as required, i.e. narrow enough to exclude the colour labels
>or wide enough to see the labels in case the data file being viewed
>has data levels like 1234567.  In other words - adjust width to suit
>your taste.
>

Hmm, you could create the window without a caption or system menu.
That should let you size the window freely.  if you need either
of these, you can draw them yourself and fake the calls.  There is
an example of this in Microsoft Systems Journal a few issues back.

--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: aj639@cleveland.Freenet.Edu (Michael Cox)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Good Book for VB Pro.
Date: 7 Jan 1993 23:25:09 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: aj639@cleveland.Freenet.Edu (Michael Cox)
NNTP-Posting-Host: slc4.ins.cwru.edu


Does anyone have a good book to recommend for use with the Visual BASIC
Professional package?  I am an experienced programmer, but not with VB or
Windows.

Mike
-- 
Okay, look for AmoNER #6 on: ux1.cso.uiuc.edu in /amiga/amoner
nic.funet.fi in /pub/amiga/programming/amos  AND wuarchive.wustl.edu
Je suis venu ici pour macher du chewing-gum et pour botter des fesses.
Et maintenant, je n'ai plus de chewing-gum . . .
From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: GlobalAlloc questions ...
Date: 5 Jan 93 17:10:37 GMT
Organization: Oakland University, Rochester MI.

Being posted for a friend; followup to center03@cps201.cps.cmich.edu
--------------------------------------------------------------------

I'm having some ... difficulties ... with global memory allocation.
The correct flag for memory that will be allocated by one task and freed
by another is GMEM_SHARE, right?  Do any other flags need to be present?
I'm having messages like:

GlobalUnlock: Object usage count underflow
GLOBALFREE+15: Invalid global memory object

I just perused the code, and every Lock has an Unlock, and the allocs are
with the GMEM_SHARE.  Comments?

Also, in another project, there's a possibility that a memory object
gets locked and then passed to another process, which then locks it,
uses it, unlocks it and frees it.  Is this legal (ie, 2x locking, with
only 1 unlock, and then attempt to free?)  Should there be an unlock
before it's passed?  It sounds bizarre, so I thought I'd ask ...

Last, seeing the message cracker for GlobalAllocPtr, it seems that MSoft
decided that it's all right to allocate and lock memory and leave it
locked (for 3.1, assumably).  If I'm writing a 3.0 app, should I not
use this?  Even if the application is pmode only?

Thanks for any help ...
Brad Wilson
center03@cps201.cps.cmich.edu
-- 

---
bcmatusz@vela.acs.oakland.edu
"Use DEVICE=EXXON to screw up your environment."
From: bkph@wheat-chex.ai.mit.edu (Berthold K.P. Horn)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: OF_VERIFY, SHARE etc
Date: 7 Jan 93 16:59:29 GMT
Organization: MIT Artificial Intelligence Lab
NNTP-Posting-Host: wheat-chex.ai.mit.edu


How can one get OF_VERIFY to really work? 
-----------------------------------------

I want to be able to tell whether a file has changed since I last looked at it.
OpenFile with OF_VERIFY doesn't seem to do the right thing --- that is,
it never returns HFILE_ERROR.   I do something like:

    if ((hFile = OpenFile(OpenName, &OfStruct,	
        OF_REOPEN | OF_VERIFY | OF_SHARE_DENY_NONE)) == HFILE_ERROR) { 

I'v tried various variations of this, including (LPSTR) NULL in place of
OpenName (string with the file name), leaving off the OF_REOPEN etc.

Now I have to resort to _fstat to check length and date/time, since 

I suppose I could directly compare the four reserved bytes in OfStruct,
which seem to be some kind of file date/time code.  But then that may
change in future...


How can one tell whether SHARE has been loaded?
---------------------------------------------

If it is not, then I don't have to worry about getting `Sharing Violations'
when I open a file WITHOUT specifying OF_SHARE_DENY_NONE or
OF_SHARE_DENY_READ/WRITE/EXCLUSIVE.


Berthold K.P. Horn
Cambridge, Massachusetts, USA
From: kim@Software.Mitel.COM (Kim Letkeman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Opinions on Microsoft QuickC for Windows?
Date: 4 Jan 93 14:16:04 GMT
Distribution: na
Organization: MITEL Public Switching, Kanata, Ontario, Canada
In-reply-to: whedon@netcom.com's message of 31 Dec 92 22:00:17 GMT

In article <1992Dec31.220017.20342@netcom.com> whedon@netcom.com (Bill Whedon) writes:

| In article <1992Dec30.191610.3685@pony.Ingres.COM> bonobo@Ingres.COM (David Victor) writes:
| >Has anyone out there had much experience with QuickC for Windows?  I was
| >just wondering if I could get an opinion as to its usefulness.  Are there
| >other CASE tools which blow away QuickCase:W?
| >
| I use QCWIN for prototyping prior to full build under MSC/C++ 7.0,
| and have upgraded the QuickCase:W to the full product.  There is no
| better prototyping setup I've found.  There are CASE tools which are
| less expensive than Case:W, but none better, or, IMNSHO, even as
| good.  The Borland crowd will, of course, disagree.  That is their
| mission, and I respect it, if not their opinions, to which they are
| entitled.

Well, having not used QuickCase:W, I cannot share an opinion on it, to
which I am entitled, and for which you will have no respect anyway.
But, since it is my mission to do so, I'll share an opinion on another
product.

Protogen is getting better all the time and does a pretty good job of
banging out an application in any of the major languages and
application framework packages you might care to use.  And the price
is quite good. Most importantly, you can get a rather nice C++ program
from it. (QuickCase:W may be able to do this as well, but that doesn't
help much when using Quick C.)

| Actually, though, dollar for dollar, you won't get a better deal
| than QC with QC:W, no matter how hard you try.

Dollar for dollar there's probably no better deal than a Lada. But
would you want to drive one every day?

I expect that Turbo C++ for Windows and Protogen are a pretty good
value as well.
--
Kim Letkeman	kim@Software.Mitel.COM
--
Kim Letkeman	kim@Software.Mitel.COM
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
From: ronb@burklabs (Ron Burk       )
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Dynamic GUI libraries
Date: 11 Jan 93 06:29:29 GMT
Organization: Burk Labs, Redmond WA

> I have been looking for a GUI tool (eg a C++ class library) which
> allows you to build the UI dynamically (ie at runtime).

I don't know of anything that precisely fits your request (assuming
you've looked at interactive prototypers that then generate code). 
However, you might take a look at "GUILD".  It seems to be kinda like a
Visual Basic for C/C++.  You paint the user interface interactively much
like with VB, and you can call functions in your application that
you registered with the tool.  A key point is that the functions can
be in your .exe, you don't have to put it in a DLL to be callable.

 GUILD Products Incorporated
 1301 Shoreway Road
 Belmont, CA 94002
 (415) 593-3200
 FAX (415) 595-8158

Disclaimer: I've just looked at their demos, this is not a product
recommendation.


[Ron Burk   -|-   Windows/DOS Developer's Journal]
[ronb@rdpub.com uunet!rdpub!ronb, BIX rlburk, CIS 70302,2566]
[Member of the League for Programming Freedom.  Info: league@prep.ai.mit.edu]
Newsgroups: comp.os.ms-windows.programmer.misc
From: pw1@irz305.inf.tu-dresden.de (Petra Wallisch)
Subject: Windows display interface documentation
Reply-To: pw1@irz305.inf.tu-dresden.de (Petra Wallisch)
Organization: Free University of Berlin, Germany
Date: Wed, 6 Jan 1993 14:54:51 GMT


I'm looking for a detailed description of the Windows display interface (that
one where you put your VGA, CGA, EGA, ... driver for your video card).
If anybody knows that documentation or any literature about that interface,
please mail to the above given address.

Thanks,
     Petra
Newsgroups: comp.os.ms-windows.programmer.misc
From: hill@netcom.com (Tom Hill)
Subject: Re: timer resolution
Keywords: timer ms
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Wed, 13 Jan 1993 03:14:41 GMT

In article <1993Jan12.221148.693@muug.mb.ca> gbrandt@muug.mb.ca (Gregor Brandt) writes:
>I need help with the windows timer resolution.   Petzold says its limited
>to the PC clock resolution, which appears to be true.  I however need
>something more accurate, in the range of 5 ro 15ms.  Can anybody help
>me?
> 
>Gregor
>
For resolution down to around a millisecond, try timeBeginPeriod and 
timeSetEvent in the multimedia developer's kit (included with c7.0).

For the best time (not callback) information, the Virtual Timer Device
provides an api for reading the 8253, which gives about 1/1.19Mhz 
resolution (minus overhead).

Tom Hill
From: fgd3@nifty.UUCP (Fabbian G. Dufoe, III)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re:  Help needed with BC++ 3.0 Windows Programming without OWL
Date: 12 Jan 93 00:11:36 EST
Distribution: world
Organization: Fabbian G. Dufoe, III

In article <115310002@hpcuhe.cup.hp.com> defaria@hpcuhe.cup.hp.com (Andy DeFaria) writes:
>>   to just try plain C and the API to start.  I bought Petzold's
>>   book (it's VERY good, although a bit pricey).  It was exactly
>>   what I needed, but it may be too slow for you if you already
>>   are experienced with event-driven programming in X.  For me,
>>   it was my first taste of it.
>
>Who's Petzold and what is the name of his book?  My book is called _Developing

   Charles Petzold, Programming Windows 3.1.  It's one of the books
recommended in your Borland C++ documentation.  It costs about $50 for the
book and the included disk of source code.  The source code is designed to
work with either Borland or Microsoft C++.

--Fabbian G. Dufoe, III
   350 Ling-A-Mor Terrace South   | GEnie:    F.DUFOE3
   St. Petersburg, Florida  33705 | internet: fgd3%nifty@tct.com
   813-823-2350                   | uucp:     ...tct!deep6!nifty!fgd3

Newsgroups: comp.os.ms-windows.programmer.misc
From: nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps)
Subject: Re: BC++ "BorDlg" problem
News-Software: VAX/VMS VNEWS 1.41    
Organization: National University of Singapore Dept. of Computer Sc.
Distribution: na
Date: Fri, 8 Jan 1993 23:29:00 GMT

In article <1idetiINNssf@uwm.edu>, ajgd@miller.cs.uwm.edu (Andrew J G Delzer) writes...
>     I'm using Borland C++ 3.1 and have the following problem
>utilizing the Resource Workshops BWCC "Borland Window Custom
>Controls.
>     When I create a dialog box using the BWCC class "BorDlg"
>and link it with "brc <filename>".  Then when I run the program
>and execute the dialog box, it is not displayed unless I have 
>Borland C++ or Resource Workshop running or have LOADBWCC.EXE 
>loaded.  If any of these three are running the dialog box is
>displayed, but if none of them are running the box is not 
>displayed.
> 
>     Am I missing some basic #include or what?  
>     Any Ideas or suggestions would be greatly appreciated.
> 

	you need to add BWCC.LIB to your project.
	this problem had me scratching my head for a few days,
	till I read the solution in BorlandC++ : A Developer's Guide.


>     Andrew J.G. Delzer
>     AJGD@Miller.CS.UWM.EDU
> 
> 
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Getting rid of Help Engine on WM_SYSCOMMAND ?! 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Thu, 7 Jan 1993 19:35:24 +0000

In article <1993Jan7.162242.7587@tandem.com> stu@Tandem.COM writes:

>I have an application with associated help.  When the user exits
>the application via the File|Exit command, I call WinHelp() with
>HELP_QUIT in order to cause the help engine to close its window
>and exit.  This works just fine.
>
>However, if the use exits via the close menu item on the windows
>system menu, I can't get rid of the darn help engine!
>
>I've tried processing the WM_SYSCOMMAND message and looking for
>the SC_CLOSE event; I process it just fine, call WinHelp() with
>HELP_QUIT but the help engine stays around!
>
>I started trying commercial window applications and have found
>that all Microsoft applications exhibit the same behavior I'm
>experiencing.  Borland applications such as the Resource
>Workshop and the IDE however, correctly dispose of the help
>engine no matter how they are exited!
>
>Anyone have the magic cookie recipe to get rid of help after
>a System Menu close ?????
>
>Thanks!
>Stu
>

All I do is call WinHelp( ..... HELP_QUIT ) during the processing of the
WM_DESTROY message of my main window.  This gets called no matter *how*
the application ends, so it should always be OK.  After reading your
message I've tested my own apps, and the help window goes away exactly
as it should.
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: vince_m@wacss.anixter.com (Vince Mammoliti)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Recommend any Fortran Compliers for Windows
Date: Mon, 11 Jan 93 16:44:28 EST
Organization: Anixter Canada Inc.

Can anyone recommend any Fortran Compliers and/or Development packages
That I am able to recompile a ton of Fortran source code once written
on a Vax.


*****************************************************************************
       Anixter Canada Inc.           User: Vince Mammoliti  
      Mississauga, Ontario	    Voice: (416) 897-5665 Fax: (416) 897-6236
   Service Is Our Technology     Internet: vince_m@wacss.anixter.com
****************************************************************************
From: stefan@olson.acme.gen.nz (Stefan Olson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Help - How to wite .hlp files
Date: Wed, 13 Jan 93 07:52:00 +1200

In <726601564snz@chrism.demon.co.uk> chris@chrism.demon.co.uk (Chris Marriott) writes:
>Help files are written using a word processor, then compiled using a 
>program called the "Help Compiler".  You need a word processor capable of
>producing "RTF" files, of which the best is probably Word for Windows.

I am writing a tool to write help files under Windows.  I may release
a public beta in the next few weeks if there is enough interest....

You WILL not need any other programs (other than the help compiler)
to compile help files with my tool.

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
From: ting@XAIT.Xerox.COM (Hungtau Ting)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: HELP!! C++ static data member in DLLs
Keywords: C++, DLL, VB
Date: 8 Jan 93 22:48:22 GMT
Reply-To: ting@xait.xerox.com
Organization: Xerox Advanced Information Technology

Hi,

The C++ static data in DLLs will not work properly as stated in Borland C++
Programmer's Guid, page 336:

	Through a DLL's functions, all applications using the DLL have
	access to that DLL's global data.  A particular function will use
	the same data, regardless of the application that called it. If you
	want a DLL's global data to be protected for use by a single
	application, you would need to write that protection yourself.
                                       ------------------------------

	The DLL itself does not have a mechanism for making global data
	available to a single application.  If you need data to be private
	for a given caller of DLL, you will need to dynamically allocate
                                                 -----------------------
	the data and manage the access to that data manually.  Static data
	---------------------------------------------------
	is global to all callers of a DLL.

Since our UI is built with Visual Basic (v2.0) which only works with DLL
and was ported from SUN UNIX/C++ (a lot of static data), we have to "write
that protection ourselves".

Someone out there in the netland should have delt with this problem already.
So, If you're the someone, would you please email me any info that might help?

Thanks,

Hungtau Ting
Software Engneer
XAIT

ting@xait.xerox.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: tarun@psyclops.psyc.queensu.ca (Tarun Kripalani)
Subject: Converting bitmaps to icons
Organization: Dept. Of Psychology,  Queen's University,  Kingston
Date: Wed, 6 Jan 1993 17:52:14 GMT

Is there a way for one to convert bitmaps to
icons? Admittedly, a complex bitmap when reduced
to icon size would lose a lot of detail but one
could still get some idea of the original image.
 
TIA.

-- 

Tarun Kripalani 
e-mail:   tarun@psyclops.psyc.queensu.ca

____________________________________________________________________________
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)