HDTenEightyP/NetNews huggingface dataset:
From: martin@iastate.edu (Martin R Calsyn)
Subject: Re: Win31, BC++3.1 and Btrieve
Keywords: btrieve, bc++, requester
Organization: Iowa State University, Ames, IA
Date: Tue, 12 Jan 1993 21:33:59 GMT

In article <JUERGEN.69.0@hugo.rz.fh-ulm.de> JUERGEN@hugo.rz.fh-ulm.de (Juergen Mueller) writes:
>
>Is there anybody using Borland C++ 3.1, Windows 3.1 and Novell's Btrieve?

Yup.

>I have the problem that I can't call Btrieve-Functions from Windows 
>applications even if I've loaded the requester before Windows?

If you load the DOS requestor, you'll be able to use Btrieve from apps
that operate from DOS boxes, but not native windows apps.  Btrieve for
DOS uses an interrupt protocol that is not available to Windows apps.

To use Btrieve with Windows apps, you have to obtain the Btrieve for
Windows kit from Novell.  In this kit you get the Btrieve DLL and
assorted configuration programs.  The Btrieve engine for Windows is
closer to multi-user Btrieve than it is to single-user DOS Btrieve.  I
can't recall the exact price, but I believe is was around $300US.

-- 
Martin R. Calsyn                                   martin@iastate.edu
Software Architect, Project Vincent                PP ASEL, AOPA, EAA	
Iowa State University Computation Center           voice: (515) 294-9889 
Ames, Iowa 50011                                   fax:   (515) 294-1717
From: csyew@ecst.csuchico.edu (YewSim Cheah)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: [HELP] Usage of BITMAPINFOHEADER structure.
Date: 12 Jan 93 08:34:04 GMT
Organization: California State University, Chico
NNTP-Posting-Host: cscihp.ecst.csuchico.edu

Hi,

What is the significant use of biXPelsPerMeter and 
biYPelsPerMeter in BITMAPINFOHEADER structure ?

Thank you for any reply to this post.

-- 
   __     *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  / __\  /_           name: YewSim Cheah.  alias: Xie Yaosen.
 / /__`\//_//   / campus: California State University, Chico. 
/_,__/_//_, \/\/           internet: csyew@ecst.csuchico.edu.
Newsgroups: comp.os.ms-windows.programmer.misc
From: erik@turtle.psych.umn.edu (Erik Arthur)
Subject: Loading Bitmaps from Resource Editor (TPW 1.5)
Organization: University of Minnesota, Minneapolis
Date: Wed, 6 Jan 1993 20:50:44 GMT

Hello,

I am writing a solitare type game and have a couple of questions about
loading bitmaps from a *.res file.  I have been loading the bitmaps
sequentially into a single variable of type HBitmap when the program
needs to display them.  The problem is that I don't think that the
HBitmap variable is being reused properly.  When I exit the application,
a certain percentage of the windows resources reported by the Program
Manager are gone.  What does the program need to do in order to reuse
the variable?  When I use DeleteObject, the program crashes with a stack
error.  Should I just load all of the bitmaps into an array?
I am using TPW 1.5

Thanks in advance,

Erik Arthur	erik@turtle.psych.umn.edu
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: modifying a variable in a Windows .EXE without re-linking???
Date: 4 Jan 93 16:04:18 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1993Jan3.205027.28520@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:

>position of a variable in the .EXE, knowing the offset etc into
>a segment like DGROUP.  I'm using Borland C++ 3.1.

Ah, but as soon as someone sees what you're doing (in a debugger)
he can do it himself; that copy protection would break in three
seconds blank.

A _slightly_ better approach would be to encrypt various (code)
parts of the .EXE with, say, a CRC taken of the data set AND the
variable, as key.

Cheers,

							/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  "You NEVER hide the menu bar. You might go about and change the color
  of it to the background color, but you never HIDE the menu bar."
                      -- Tog
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Should I use large memory model anyway? 
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:18:09 +0000

In article <1993Jan6.193801.27741@neptune.inf.ethz.ch> skimmel@iiic.ethz.ch writes:

>I have a question about the large memory model. 
>
>MS and others (Petzold) warn to use the large memory model. On the other
>hand I read that using the large memory model will make your
>code more easily portable to Windows NT.
>
>What I heard so far about the disadvantages of the large memory model
>is not enough to stop me to try it. 
>
>We do not need multiple instances of our application and do not 
>have to support Windows 3.0. (not even Standard Modus)
>
>But on the other hand we want at least part of our application (the
>non-GUI part) to be easily portable to other platforms, and the 
>whole application to be easily portable to Windows NT.
>
>Have I missed certain important considerations about the large memory 
>model? Do you know of any literature that is more encouraging about
>using the large memory model and explains more about it?
>
>Thank you
>                Stefan
>
>
>Stefan Kimmel                 | skimmel@inf.ethz.ch
>Siemens-Albis I/49            | S=kimmel;OU1=eates;P=siemenszh;A=arcom;C=ch
>Albisriederstr. 245
>CH 8047 Zuerich Switzerland   | Tel:  +41 1 495 49 35
>
>

If you're using either Microsoft C++ v7 or Borland C++ v3.1 there's no
reason at all why you shouldn't use large model any more.  The reason the
warnings were originally given related to Real Mode Windows, and the fact
that the older C compilers generated FAR data segments in Large model,
which made the application single instance.

Use one of the modern compilers and you'll be quite safe.  Your app will
still run multiple instance, and you'll be able to allocate memory using
the standard C "malloc" routine.
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: martin@patricia.verfahrenstechnik.uni-stuttgart.de (Martin Hepperle)
Subject: Re: Recommend any Fortran Compliers for Windows
Organization: Institute A for Mechanics, University of Stuttgart, Germany
Date: Tue, 12 Jan 1993 15:16:39 GMT

In article <TkF9wB2w165w@wacss.anixter.com> vince_m@wacss.anixter.com (Vince Mammoliti) writes:
>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.
>
I am currently using Microsoft FORTRAN 5.1, which works quite well
under Windows, no more memory problems.
This compiler generates 16-bit code only.
The trouble is that the programs run slower than under plain MS-DOS,
I would be interested in the speedup provided by 32-bit compilers
like WATCOM-FORTRAN. Is this compiler worth the extra money ?

Martin.
________________________________________________________

      Martin J. Hepperle          MMMMMMMMMMMMH   HHH
     Universitaet Stuttgart       M   MMM   MMH   HHH
       Pfaffenwaldring 9          M   MMM   MMHHHHHHH
     D-7000 Stuttgart 80          M   MMM   MMH   HHH
 Germany, Europe, World, Universe M   MMM   MMH   HHH
     PLEASE USE THIS RETURN ADDRESS ONLY:
    martin@mecha2.verfahrenstechnik.uni-stuttgart.de
________________________________________________________

Newsgroups: comp.os.ms-windows.programmer.misc
From: cdb@codex.oz.au (Cameron Bromley)
Subject: Displaying (large) bitmaps without flicker
Organization: Codex Software Development Pty Ltd
Date: Thu, 7 Jan 93 14:15:31 GMT

Hi,

I'm doing some simple animation in my app.  I have an array of HBITMAPS which  
are displayed one after the other (on a WM_TIMER) using BitBlt.  The problem  
is, there is a noticable 'flicker' when the bitmaps are re-drawn, although in  
different spots.  It's hard to describe in words, but I'm pretty sure it's  
because the video retrace is happening right in the middle of the BitBlt.

In the bad old days (before Windows) you could query the video card hardware  
and wait for a re-trace to begin and then update the video ram, the end result  
being 'flicker free' graphics. 

Does anybody know the solution under Windows?

Thanks,

Cam.
-- 
---------------------------------------------------------------
Cameron Bromley                      Internet: cdb@codex.com.au
Codex Software Development Pty. Ltd. Fax +61-3-696-6757
PO Box 293, Albert Park, VIC, 3206   Australia                 
Newsgroups: comp.os.ms-windows.programmer.misc
From: mavmav@mksol.dseg.ti.com (michael a vincze)
Subject: Re: Loading Bitmaps from Resource Editor (TPW 1.5)
Organization: Texas Instruments
Date: Thu, 7 Jan 1993 00:27:39 GMT

In article <1993Jan6.205044.24863@news2.cis.umn.edu>, you write:
|> Hello,
|> 
|> I am writing a solitare type game and have a couple of questions about
|> loading bitmaps from a *.res file.  I have been loading the bitmaps
|> sequentially into a single variable of type HBitmap when the program
|> needs to display them.  The problem is that I don't think that the
|> HBitmap variable is being reused properly.  When I exit the application,
|> a certain percentage of the windows resources reported by the Program
|> Manager are gone.  What does the program need to do in order to reuse
|> the variable?  When I use DeleteObject, the program crashes with a stack
|> error.  Should I just load all of the bitmaps into an array?
|> I am using TPW 1.5
|> 
|> Thanks in advance,


I'm not sure if this going to work, however I have encountered the
aforementioned crashes as well.

The problem is that you are trying to delete an object that has not been
created.  In order to overcome this, in your Init constructor initialize all
HBitmaps to nil (ie: QueenOfHearts := nil;.)  Then in your Done destructor test
to see if the variable is nil, and if not then you know that you have
created (allocated space for) that object (ie: if QueenOfHearts <> nil then
DeleteObject (QueenOfHearts).)  Sorry if my syntax is incorrect.

Hope this helps.

Best regards,
Mihcael Vincze
ma@asd470.dseg.ti.com


Newsgroups: comp.os.ms-windows.programmer.misc
From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
Subject: Calling C from VB--Debug??
Date: Tue, 5 Jan 1993 00:37:44 GMT
Organization: Hewlett-Packard Laboratories Palo Alto,CA
X-Newsreader: TIN [version 1.1.4 PL6]

I'm using Microsoft QuickC to write DLL's which I call from Visual
Basic 2.0.  Is there a way to do source-level debugging in the C
code after it's called from VB?  (Yes, I've already used the debugger
from within QuickC by having a little main() routine call the DLL
from C, but now that that worked I'm having problems getting VB to
call it correctly, and I thought having the debugger alive might
help.)
Thanks,

***********************************************************************
* George Yefchak                          Hewlett-Packard Laboratories*
* Internet: yefchak@hpl.hp.com            P.O.Box 10350               *
* CompuServe: 73607,1625                  Palo Alto, CA 94303-0867    *
*   NOT SPEAKING FOR HP                   415-857-4793                *
***********************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: ahaus@dke.uni-linz.ac.at (Andreas Hausleitner)
Subject: filecopy
Keywords: filecopy
Reply-To: ahaus@dke.uni-linz.ac.at
Organization: Johannes Kepler Universitaet
Date: Mon, 11 Jan 1993 15:27:00 GMT

I`ve written a program to copy files under windows. On a local station it works always well, but if I use it under Novell Lite 1.1 to copy the file to another station, then three of five files have some wrong bytes.
comp.exe program of ms-dos although says that the two files are indetical.

Does anybody know whats going wrong.

Thanks for help!

Andt

ahaus@gup.uni-linz.ac.at
From: rberteig@shelley.u.washington.edu (Rolf Berteig)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Disp 24bpp on 8bpp system?
Date: 11 Jan 93 19:18:56 GMT
Article-I.D.: shelley.1ish70INNco6
Organization: University of Washington, Seattle
NNTP-Posting-Host: shelley.u.washington.edu

>   Is there anyway to display a 24bpp DIB on a 256 color SVGA without
>   implementing the code for color quantization?  I wrote some code to
>   convert 24bpp images into 8bpp DIBs, but it takes around 10 seconds
>   for a 512x512 DIB, and I just wonder if there is a better way.

A quick way to do this with results better than bliting (getting the 
20 system colors) but with quality still lacking is to create a standard
256 color pallet and an inverse pallet (with say 2^5 entries). To display 
an image, for every pixel you take the 8 bits for red,green,blue and shift 
right 3 bits (now you have 15 bit color) and use this number as an index 
into your inverse color map. Your inverse color map then gives the closest 
fit to your standard pallet. Now you are ready to blit your device dependent
8 bits per pixel bit map.

Rolf Berteig
rberteig@u.washington.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: markt@rocky.ndhm.gtegsc.com (Mark Tsombakos)
Subject: VB, Arnet, and DLL
Organization: GTE/SCSD - Needham Heights, MA
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 4 Jan 1993 17:41:50 GMT

Hello all,

I'm relatively new to Visual Basic, so kindly bear with me.  We've purchased
a serial communications card from Arnet (the Smartport Lite) that has eight
serial ports.  We also bought the Communication Developer's Kit that is
designed to let you develop applications for Windows.

My question:  The Comm Developers Kit comes with a .DLL file, but VB refuses
to access it ("Error loading DLL" or something like that).  According to the
tech support at Arnet, they do not support Visual Basic, but they DO support C.
As I understand it, VB should be able to use it anyway.

Their Tech Support also told me they DO have clients who have been able to
get the board to work with Visual Basic and without the SDK.  (This is exactly
what I'm hoping to do).

Any help?  Anyone?  Replies via Email are welcomed.

Thanks, 
Mark

--
Mark Tsombakos
GTE - Special Systems
markt@rocky.ndhm.gtesc.com
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Drawing Borland OWNERDRAW button faces...
Date: 12 Jan 93 00:05:12 GMT
Organization: PE-Nelson

In article <2B50DAA1.53C8@tct.com>, jeff@tct.com (Jeff Witzer) writes:
|> I am trying to respond to the WM_DRAWITEM message for Borland OWNERDRAW 
|> buttons.  I have the following questions:
|> 
|> 1)  How do I tell if the button is pushed or not?  I need to know this to
|>     redraw the button face pushed or not.  lpdis->itemAction and 
|>     lpdis->itemState do not seem to give this information.

Yes, they do, although the text in the reference could be clearer.  If the
ODA_SELECT bit in lpdis->itemAction is set then draw the button as "pushed
in" if the ODS_SELECTED bit is set in lpdis->itemState, otherwise draw it
as "normal".


|> 2)  How can I draw text to the face of the button in either black or dark 
|>     gray AND a light gray background within the text?  I would like to use
|>     something with the power of DrawText () so I can horizontally and 
|>     vertically center the text on the button.  I can draw black text on a 
|>     white background, but this looks funky on a gray button face.

The best thing to do is output in TRANSPARENT mode so that you don't have
to know what the button face color is.  Use SetBkMode() to set this.  You
could also use SetBkColor() to setup the text background yourself.


|>     
|> 3)  How do I tell if the button is ENABLED or not?  I would like to draw gray
|>     text (see #2) if the button is disabled.

Well, the ODS_DISABLED bit in lpdis->itemState will be set if the button
should be drawn as disabled.  You could always use the IsWindowEnabled()
function also.


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Xref: sparky comp.os.ms-windows.programmer.misc:4875 alt.lang.basic:1035
From: tope@enea.se (Tommy Petersson)
Newsgroups: comp.os.ms-windows.programmer.misc,alt.lang.basic
Subject: VB and scaling
Keywords: VB
Date: 12 Jan 93 13:15:08 GMT
Reply-To: tope@enea.se (Tommy Petersson)
Organization: Enea Data AB, Sweden
Uucp-Path: mcvax!kth!sunic!enea.se!tope

We have an application written in Visual Basic for use on normal
VGA (640*480) monitors. More and more people have 800*600,
1024*768 or bigger screens, so it would be fine to dynamically
take that into account.

It's easy to get the actual resolution by a GDI call, but then -
what should one do? If I for instance have a window with a listbox,
vertical and horizontal scrollbars and on button - and want to have
the listbox as large as possible - how do I do? Scale? Or what?
Tips and tricks? Possible problems?

A little harder thing (?): An input form with combo boxes, text input and
lots of everything. If you want to fill up a large part of the screen,
(but not really have the window maximized) and have all proportions
correct (including the font) - how do you do? One global setting /
loop through the controls and change / one separate call for every
control that should be changed?

Thanks for any answers,

-- 
=============================================================================
 Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
=============================================================================
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Help Compiler
Organization: Energy, Mines, and Resources, Ottawa
Date: Thu, 7 Jan 1993 18:45:54 GMT

In article <1993Jan7.140359.6629@crd.ge.com> deitsch@sol.crd.ge.com writes:
>Is there any way to create Windows Help files with Borland.  I
>have seen that a Help Compiler comes with SDK, but I have already
>purchased BC++3.1.  
>
>If Borland doesn't provide one, can the Help Compiler be purchased
>separately from Microsoft?
	Borland C++ comes with HC.EXE, the Help Compiler.  Use
	Word for Windows, WordPerfect for Windows or any other
	WP that can export a file as .RTF.  You then compile
	the .RTF file with HC and it makes a .HLP file.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Big Global Arrays in DLL's? (Borland C) 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 6 Jan 1993 20:39:10 +0000

In article <bsm.9.0@utrcv1.res.utc.com> bsm@utrcv1.res.utc.com writes:

>I need to have a big (very big, maybe 300K) global array in a DLL.
>
>It seems to be telling me I can't have more than 32K in my global array.
>
>Is there any way I can do what I'm trying to?  I'm using Borland C.
>
>Thanks for any information!
>---------------------------------------
>Any opinions expressed here are mine alone,
>and are not those of my employer or anyone else.
>
>Brian McCarthy
>United Technologies Research Center
>East Hartford, Connecticut
>(203)727-7638
>bsm@utrc.utc.com
>---------------------------------------
>

Any data which you declare global in an application of DLL goes into the
default data segment which is limited to a total of 64k in size.  This 64k
includes all global variables, strings, stack (in the case of an
application, etc).

What you should do is have a *pointer* as a global variable, and allocate
memory using the Windows global memory functions.

ie,
    #include <windowsx.h>

    char huge *hpData;
    hpData = (char huge *) GlobalAllocPtr( GMEM_MOVEABLE | GMEM_ZEROINIT,
                                           300*1024 );

This will allocate a 300k array and store its address in the huge pointer
"hpData".  Note, incidentally, that if you allocate a block of memory >128k
in size and treat it as an array of items, each item must be an exact
power of 2 bytes in size, otherwise you'll run into segment boundary problems.

GlobalAllocPtr is a macro in "windowsx.h".  It just does a "GlobalAlloc"
followed by a "GlobalLock".  There's no problems with keeping memory locked
in protected mode windows, so it's easier to do it this way.
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: gsl@mlb.dmt.csiro.au (Geoff Lamb)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Running DOS app with command line options
Date: 11 Jan 93 05:30:12 GMT
Organization: CSIRO Division of Manufacturing Technology, Melbourne, Australia


I would like make my windows program run the following DOS command :

	rsh %1 "sendmail %2 %3 %4" < %5

I have created a batch file with this command and a pif file to run it.

My problem is that I can get the thing to run using WinExec() with no command
line options (the %1's ) but I can't see how I can get the command options in.
I have tried the LoadModule() function but it apparently only likes true Windows
programms and not pif's.

Does anyone out there know how I can get the command line options to work? 

Any suggestion would be apprieciated (Any suggestions on how to improve my 
spelling might help too :-) )

Thanks in advance
Geoff Lamb


-- 
Geoff Lamb, CSIRO Div of Manufacturing Tech,     Phone: +61 3 487 9295
Locked Bag No. 9, Preston, Vic, 3072, Australia. Fax: +61 3 484 0878
Internet: gsl@mlb.dmt.csiro.au                  
Segmentation fault (core dumped)
Newsgroups: comp.os.ms-windows.programmer.misc
From: mjb@netcom.com (Martin Brown)
Subject: getting valid drives?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 5 Jan 1993 02:23:16 GMT

Is there a specific function that can return all the valid drives on machine,
and or network?  Or do you have to use GetDriveType and go through the alphabet?

Will DOS allow non-consecutive drive designations, i.e., A,B,C,F ?

Thanx for any ideas?

-- 

                                   - mjb -

                                mjb@netcom.com
From: muffy@remarque.berkeley.edu (Muffy Barkocy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: keeping an MDI child maximized
Date: 8 Jan 93 12:22:00
Organization: Natural Language Incorporated
Distribution: world
NNTP-Posting-Host: remarque.berkeley.edu


I have an MDI application which has several children.  One particular
child is frequently maximized by the user.  When they select another
child, though, the maximized child is sized back to its previous size.
This is annoying, as they then have to re-maximize it.  Is there some
way that I can tell it to stay maximized until the user resizes it
explicitly?

Thanks...

Muffy
--

Muffy Barkocy                      | ~Never had a lot of faith in human beings/
muffy@mica.berkeley.edu            |  but sometimes we manage to shine/like a
"amorous inclinations"? Aha! I'm   |  light on a hill beaming out to space/from
not "not straight," I'm *inclined*.|  somewhere hard to find~ - Bruce Cockburn