HDTenEightyP/NetNews huggingface dataset:
From: scott@ods.com (Scott Harper)
Subject: Btrieve for Windows (WBTRCALL.DLL)
Organization: Optical Data Systems, Inc.
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 15 Sep 1992 16:09:07 GMT


I'm writing an app that makes use of Btrieve for Windows as a
database.  I'm using the client-based (workstation) version.
I have put all my database interface functions in a DLL.  So 
far, so good.  But now I have a second app that I want to use 
my DLL with.  Either of these apps may or may not be active at 
the same time...  Questions:

1. I make my call to BTRVINIT (WBTRVINIT) in the DLL's LibMain.  
I am assuming this is fine, as long as I can use the same init 
defintion for both apps.  I also assume that I cannot have two
different initialization definitions active at the same time.
Comments?

2. When do I need to call BTRVSTOP (WBTRVSTOP), and from where, or
do I even need to?

In the Btrieve for MS-Windows/Installation and Operation manual, 
page 1-1, it says "In the MS-Windows environment, Btrieve is 
implemented as a single dynamic link library (DLL).  As such, 
Btrieve for MS-Windows is automatically loaded when called and 
unloaded when not in use, without any action by the application 
calling it."

But later, on page 2-16, under "Stopping Btrieve" it says "During
termination processing, the function WBTRVSTOP() should be called
to allow Btrieve to deallocate space that is reserved in the Btrieve
tables for that application."

So I don't know if I should:
   1. Call BTRVSTOP in the shutdown processing of my app(s).
   2. Call BTRVSTOP in my DLL's WEP.
   3. Do nothing.

Also, how does BTRVSTOP relate to the STOP (25) opcode?

Thanks in advance -
-- 
Scott Harper                       Optical Data Systems, Inc.
scott@ods.com                      1101 E. Arapaho Road
(214) 234-6400                     Richardson, TX  75081
Xref: sparky comp.os.ms-windows.programmer.misc:1858 comp.os.msdos.programmer:9379
From: richard@iesd.auc.dk (Richard Flamsholt S0rensen)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer
Subject: String literals exceeds 64Kb under Windows
Date: 15 Sep 92 21:31:20 GMT
Distribution: comp
Organization: Mathematics and Computer Science, Aalborg University


  Question Q202 in c.o.m.p's FAQ reads:

Q202. How do I fix "automatic data segment exceeds 64K" or "stack plus
     data exceed 64K"?

  Good question, indeed.  Good solutions, too: in essence telling you
to move large structures into their own segments.

  This can easily be done, unless it is string literals that causes
your segment bucket to overflow.  In that case the only solution
seems to be to compile the offending module under the huge model (and
I don't mean Brigitte Nielsen).

  All in all very well, *unless* you're developing under Windows,
where it (presumably) won't let you use the huge model!  Well, *I* am
and I'm stuck!  Believe me, I'm really having a hard time squeezing
the static data for an almost 1Mb (ok, with -v) executable with many
debug strings, input/output file format strings, user messages etc
into a single data segment.  Most of the strings sits in very few
modules, but that's no comfort if it's not possible to put those
string literals into a segment of their own.

  Therefore, I now turn to you, dear netters.  Huge models appears
impossible with Windows, #pragma option -zE/F/H makes no difference,
-Ff=whatever just laughs at me etc.  Somebody *must* have had this
problem before me.  I might expect resources or DLLs to be the
answer, but I'd like to know if there is another way.
  I'm using Borland C(++) 3.1 and Windows 3.1.  (note cross-posting).

  Thanks in advance,
	Richard

PS: oh, yes -- if it turns out to be !a-piece-of-cake I'll summarize
any email responses.
--
Richard Flamsholt
richard@iesd.auc.dk
Newsgroups: comp.os.ms-windows.programmer.misc
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Need Algorithm for Fast Bitmaps...
Organization: University of Illinois at Urbana
Date: Thu, 10 Sep 1992 14:43:37 GMT

     Me:
       I am a good C/C++ programmer, but have never actually written a
       windows program, just messed around changing the sample code.
       I'm using MSC++ 7.00

     My problem:
       I have wrote a program for DOS that uses a VIGA card to capture
       a 512x512 24-bit image from VCR, converts it into 512x512x256
       PCX file and saves to disk in about 20 seconds, which took me
       a long time & a LOT of assembly !!

       Now, the Boss Man wants this program in Windows.  I have no fear 
       of programming windows, but I'm not sure how to go about it. Here's
       what I think I need to do.  What I need is suggestions from you
       expert windows programmers !!

       -Read the VIGA data, convert it into a 256 color run length encode
	Device (??Dependat or Independant) Bitmap, instead of PCX.
       -Use a Windows function to display this image into a Window.
       -Use a Windows function to save to a file ??

       Also, should I use DIB, DDB, PCX, BMP or what ?
       Theres so much in the SDK for the various styles.  I think I
       need to use Device Dependant Bitmaps because I will always be
       working with 512x512x256 images and I need speed, since we a
       are digitizeing a lot of these !

       I think I'm going to use the VIEWDIB sample code that comes with
       C 7.00 as a starting point.  Is there better code to use?

-- 
------------------------------------------------------------------------
 John A. Slagel     "My old man used to tell me, before he left this
 j-slagel1@uiuc.edu  shitty world, never chase buses or women- you
                     always get left behind." -The Marlboro Man
Newsgroups: comp.os.ms-windows.programmer.misc
From: rmy@pyuxf.uucp (Robert Yaeger)
Subject: How to get current hInstance? 
Organization: bcr.
Date: Mon, 14 Sep 92 17:34:13 GMT
Keywords: hinstance


Hi,
Does anyone know of a way to get the current value of hInstance without
passing a param or global around.  Does DS always equal it?

Thanks,
-Bob
From: ucosmo@mcl.ucsb.edu (Boris Burtin)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Where are Multimedia Extensions?
Keywords: multimedia, midi
Date: 15 Sep 92 00:08:03 GMT

I was ready to try out some of Petzold's code in PC Mag's "Environments" 
column, and soon realized that I need mmheader.h from the Multimedia Extensions.
I am running Borland C++ 3.0 right now.  Do I need the Extensions from MS?
How much do they cost?  Do they come with C++ 3.1?  

I'd appreciate any help I can get!
--
     - Boris
(cosmo@cs.ucsb.edu)
Newsgroups: comp.os.ms-windows.programmer.misc
From: matts@microsoft.com (Matt Saettler)
Subject: Re: transparent bitmap background?
Date: 14 Sep 92 17:04:57 GMT
Organization: Microsoft Corporation

In article <MUFFY.92Sep12095955@remarque.berkeley.edu> muffy@remarque.berkeley.edu (Muffy Barkocy) writes:
>
>With an icon, you can set the background to be transparent, so that
>whatever is behind it shows through.  I have a bitmap with a white
>background which I would like to be transparent instead of white.  I
>believe that I can do this with the right argument to BitBlt, but I
>don't know what the right value is.  Anyone here know?
>
>Thanks...
>
>Muffy
>--
>
>Muffy Barkocy | muffy@mica.berkeley.edu | wi.4636@wizvax.methuen.ma.us
>~Little round planet/in a big universe/sometimes it looks blessed/
> sometimes it looks cursed/Depends on what you look at, obviously/
> But even more it depends on the way that you see~ - Bruce Cockburn


There is a sample Windows application available via anon. ftp from
ftp.uu.net in vendor\microsoft\multimedia\samples\transblt.zip

This code shows exactly what you want to do.

Matt Saettler/Microsoft Multimedia
----------------
I speak only for myself....
From: yu@ee.ualberta.ca (Stephen Yu)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Borland upgrade phone number
Date: 13 Sep 92 19:58:42 GMT
Organization: University Of Alberta, Edmonton Canada

Does anyone know the toll free number to call in CANADA for upgrading to
Borland C++ 3.1 from 3.0
From: phill@bohra.cpg.oz.au (Phill Solomon)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland's Internet Address??
Date: 8 Sep 92 05:33:31 GMT
Organization: Computer Power Software

(Peter Haller) writes:
> In a previous article, shen@cis.uab.edu (Frank) says:
>
>>Hello, 
>>	Does anyone know Borland's internet address for technical
>>	supports for ms-windows programming?  When I have a programming
>>	question for ms-windows, Do I ask Borland or Microsoft?  I am 
>>	using Borland C++.  
>>
>>	Thanks for helping.
> I don't know of a help service via internet and I just wanted to make a 
> comment anyway...
>
> Remember Borland is in the Compiler business not Windows development support.
> If you call their tech support lines they will tell you this. Your best be for
> Windows programming questions - not compiler or tool problems - are areas like
> this and Compuserve. CI$ provides more access to more programmers and vendors
> than you could imagine. It has proven both valuable and cost effective for
> me. 
>
> PCH
>  
> -- 
> Peter C. Haller				|	'If you do what you

Included in an article about a recent Borland User Group Retreat in the local
user group mag it say Borland has an "experimental" internet accounts for 
bug reports and customer enquires. The addresses are as follows;
bugs@borland.com
customer-service@borland.com

hope this is a help. :-)

Phill.
-- 
Phill Solomon.                              ACSnet : phill@bohra.cpg.oz [.au] 
TODAY IR&D                                  UUCP   : uunet!munnari!bohra!phill
CP Software Export Pty Ltd. (ACN.006640133) FIDONET: 3:633/363 Swinestud 
Division of the Computer Power Group - Melbourne Australia Voice: +61 3 8230222 
Newsgroups: comp.os.ms-windows.programmer.misc
From: R2NVK@VM1.CC.UAKRON.EDU
Subject: whats wrong with this code ?
Organization: The University of Akron
Date: Tue, 15 Sep 1992 18:31:59 GMT

Hi,
 I am relatively new to window programming. I was trying to write text from an
edit control to a file but it doesnt create the file but it creates the file wi
th the name of "chg.$$$". This is the code I had written:
 hFile = OpenFile("data.txt", &OfStruct,OF_CREATE);
  if(hFile < 0)
  {
    sprintf(str, "unable to create file");
    MessageBox(hwnd, str, NULL, MB_OK | MB_ICONEXCLAMATION);
    return(0);
   }
  Any pointers where I am going wrong would be greatly appreciated. Thanks a
lot in advance.
 
nagesh
From: stefan@olson.acme.gen.nz (Stefan Olson)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Re: Setting Client Area to entire screen
Date: 5 Sep 92 17:15:05 GMT
Article-I.D.: olson.tk0rqAMOBh104h
 <1992Aug28.074510.6581@adobe.com> <1992Aug11.233710.18600@u.washington.edu> <1992Sep7.165405.1@tnclus.tele.nokia.fi>

In <1992Sep7.165405.1@tnclus.tele.nokia.fi> swesterback@tnclus.tele.nokia.fi writes:

>The same full screen device is also uses by Microsofts and others installation
>programs. As you may have noticed you can often switch to other programs 
>while the full screen installation program is running (i.e., using alt-tab).

I have written a full screen installation program, and it just has no minimize
box, etc...

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
From: jpennell@axion.bt.co.uk (John Pennell)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Serial port access with AMI bios
Date: 8 Sep 92 08:34:37 GMT
Reply-To: jpennell@axion.bt.co.uk (John Pennell)
Organization: British Telecom Research Labs



I am trying to install 3.0 on a 386SX-25 with AMI BIOS.

Just once, it appeared to work, however, now the mouse doesn't
respond (it is a standard serial mouse).  I am confused because
I have heard rumours that the AMI BIOS causes problems with
serial port access under Windows.  Is this my problem (probably)?

Any suggestions like, does 3.1 have the same problem - much appreciated.

Jon
From: edscl%Solomon.Technet.sg (Christopher Loke)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Custom Control Programming
Date: 9 Sep 92 02:04:45 GMT
Organization: National University of Singapore
X-Newsreader: Tin 1.1 PL5


I am developing some custom controls according to Microsoft standard.But I
have two problems.
1:How can I know the font that the dialogbox is using currently.Because in
  the RC script,programmer can include such command line :"FONT Helv 8".
  and that will affect all controls size and display in this dialogbox.
  The custom control I developed cannot obtain the font information and
  always use system font. How can I solve this problem?

2:In the predefined controls text,you can use a "&" to make focus change fast.
  I do not know who should be responsible for this work,me or Dialog Manager?
  In my custom control,if I press ALT + the char with "&",it cannot work as
  predefined controls! But I only konw my own controls' text and parse the
  "&".  How can I know others? How to handle such situation?

Thank you for your response and help!

                             
			
Wang Bin
From: shite@sinkhole.unf.edu (Stephen Hite)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Selecting and deleting in BCW
Date: 15 Sep 92 12:33:12 GMT
Organization: Univ. of North Florida


During my travels in text editors on windowing systems, there's been
one feature they've all seemed to shared:

   When you select a block of text with the mouse and then either start
   typing *or* press the DEL key, then the selected text will be deleted.
   In the case of typing after a selection, the new text entered will
   replace what was previously selected. 

This is not what happens in BC++ for Windows.  When you mark a section of
text and start typing, the marked text does not get deleted.  When you
mark a section of text and press the DEL key, the text does not get
deleted.  I would like to change this default behavior but I cannot
find out how.

This brings up an inconsitency in the Borland windows-hosted products...

   In Resource Workshop, when you edit a resource as text, the above
   "selection rule" I've stated is followed.  

Next time you're in your favorite word processor on Windows, try what
I've just suggested with the selecting of text and then start to
type or press the DEL key.   I'll bet you the "selection rule" 
holds. 

I would like to suggest to Borland that they change the default behavior
of BCW in regard to the "selection rule" because it is not only 
inconsistent with their Resource Workshop text editing (which does it
the "right way", IMHO) but also a vast majority of text editing and word
processing packages hosted on Windows as well. 


Steve Hite
shite@sinkhole.unf.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: cttan@ntuix.ntu.ac.sg (cttan@ntuix.ntu.ac.sg)
Subject: Debugging Window Application problem
Organization: Nanyang Technological University - Singapore
X-Newsreader: Tin 1.1 PL4
Date: Sat, 12 Sep 1992 01:27:02 GMT

Excuse me if this is a FAQ.

I am having this problem debugging Windows application using remote debugging with serial
link

   The null modem cable is connect to the COM2 of 486 and COM1 of 286.
   When I run WREMOTE and TD(td -w xxx.exe), the Turbo Debugger on the 286 goes into the 
   normal debugging window.  TD then prompt whether me to send the application program 
   over the link.  If I type yes, TD simply hang there.  
   
>   The problem seems to be that the link from 486 to 286 is alright but not vice versa.


Hardware & software used:
  Run Windows and Window application: Compro 486
				      Windows 3.1
				      Borland C++ ver 3.1
				      DOS 5.0
  Run Turbo debugger:		      ALR system 286
				      DOS 5.0

>   How to set up a dual monitor system to debug Windows application?
>   What kind of video adapter do I need?


My email address is cttan@ntuix.ntu.ac.sg.
Please reponse by sending me email.
Thank you very much
From: schmidtg@iccgcc.decnet.ab.com
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Recursion and Windows programming
Date: 8 Sep 92 11:11:39 EST



I am in the process of converting a DOS program to run in the MS Windows
environment and I am having some difficulties.  The program uses a recursive
search routine to find the solution to a problem.  The program also must do
some screen output along the way.  The problem that I am having is in breaking
up the recursive algorithm so that it can be executed piece-meal in the
Windows event driven execution paradigm.  I want to run the algorithm
during idle time processing and so I must only execute a portion each time.
Since a recursive algorithm uses the machine stack, I don't know of an easy
way to save context and restore it between processing without getting down
and dirty.  I'm sure I'm not the only one who has encountered this problem.
How have others solved it?


I hope this isn't an FAQ, my humble apologies if it is.


Regards,


-- Greg Schmidt		schmidtg@iccgcc.decnet.ab.com
From: muffy@remarque.berkeley.edu (Muffy Barkocy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: transparent bitmap background?
Date: 12 Sep 92 09:59:55
Organization: Natural Language Incorporated
Distribution: world
NNTP-Posting-Host: remarque.berkeley.edu


With an icon, you can set the background to be transparent, so that
whatever is behind it shows through.  I have a bitmap with a white
background which I would like to be transparent instead of white.  I
believe that I can do this with the right argument to BitBlt, but I
don't know what the right value is.  Anyone here know?

Thanks...

Muffy
--

Muffy Barkocy | muffy@mica.berkeley.edu | wi.4636@wizvax.methuen.ma.us
~Little round planet/in a big universe/sometimes it looks blessed/
 sometimes it looks cursed/Depends on what you look at, obviously/
 But even more it depends on the way that you see~ - Bruce Cockburn
From: mdewinter@vms.eurokom.ie
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: help: display graph in dlg box (in shaded group)
Date: 8 Sep 92 10:57:05 CET
Organization: EuroKom Conferencing Service

hi,
I need help with displaying graphs in a dialog box
I su  use BC3.0 and both windows versons.
Here is the code fragment:
int FAR PASCAL TestDialog(...)
...
%
...
 switch(message)
 %
  case WM_COMMAND:
   switch(wParam)
   %
    case IDCANCEL:
    case IDOK:
     EndDialog(hdlg,0);
     return FALSE;
    case IDC_DRAW:
     hDrawWindow=GetDlgItem(hdlg,IDC_DRW);
     hdc=GetDC(hDrawWindow);
     ...
     (set map mode, viewport etc...)
     ...
     MoveTo(hdc,0,0);
     LintO(hdc,10,10); /* sorry: LineTo... */
     releaceDC(hDrawWindow,hdc);
     brdeak;
    default:
     break;
   %
   break;
  case WM_INITDIALOG:
   return TRUE;
  defualt;
   return FALSE;
 %
 return FALSE;
%
The code refers to a dialog box in BorDlg style, with a button with
ID IDC_DRAW and a shaded group with ID IDC_DRW.
The % in the code stand for open and close brackets (there is something
going on with my keyboard, so I "lost" some keys).
The above code works just fine under Windows 3.1.
However, under Windows 3.0 it does not work at all. WHY?
I tried before to use the BeginPaint... and EndPaint stuff, but doesn't
work under either Win3.0 or Win3.1

Please reply either to this forum,
or by Eurocom, as a letter to marylene dewinter
or by E-mail to fhcaa79 att location cc1.kuleuven.ac.ba (ba has to be "be")

Thankd;
Guy.
Newsgroups: comp.os.ms-windows.programmer.misc
From: trodgers@nmsu.edu (Thomas Rodgers)
Subject: Windows Bitmaps.
Organization: NMSU Computer Science
Distribution: comp.os.ms-windows.programmer.misc
Date: Wed, 9 Sep 1992 21:24:59 GMT

I have a couple of questions regarding the binary format of your run
of the mill 16 color bitmap under Windows 3.1.

In the Programmers Reference, the call to CreateBitmap takes as
parameters the number of planes in the Bitmap and the number of Bits
per Pixel.  If you are specifying a 16 color bitmap, do you need to
specify 4 bit planes, or 4 bits/pixel?

Also, once a bitmap has been drawn into a MemDC, but before being
BitBlt-ed to the screen, can I continue to manipulate the bmBits data
from the BitMap structure? 

Any help greatly appreciated,
Tom.

Newsgroups: comp.os.ms-windows.programmer.misc
From: wwn8108@tamsun.tamu.edu (Weldon Nash)
Subject: Device Driver Programming
Organization: Texas A&M University, College Station
Date: Mon, 7 Sep 1992 20:35:48 GMT

	OK.  Upon reading "Writing Windows Device Drivers", I learned alot
about how device drivers work but It did not seem to say too much on the
actual structure of the device driver (namely DLL's and stuff like that).
I have seen bits and pieces of info in the Borland on-line help referring to
procedures such as DriverProc() within the DLL and other such stuff but not
a whole lot of info on that.  Another thing that was sort of depressing is 
that it stated in order to write a VxD, I HAD to have the DDK.  I am very
short on money at the presnt and I doubt that my scool would be willing to 
pick one of those up for me.  I was wondering if there was any way possible
to do that with Borland c++ 3.1.  

	In case you're wondering, the device driver I am trying to make
is just an Interupt Service Routine.  However, instead of just putting it
into my program code, I am trying ot learn something new and write it into
a device driver.

	Thanks...

					-Trey

wwn8108@tamsun.tamu.edu
Electrical Engineering Dept
Texas A&M University
Newsgroups: comp.os.ms-windows.programmer.misc
From: mikey@sword.eng.hou.compaq.com (Mike Yonker)
Subject: Re: Qns abt drag/drop & GlobalUnlock
Organization: Compaq Computer Corp.
Date: Tue, 15 Sep 1992 12:20:24 GMT

I do not think that there is any documented way to be a drag-n-drop SERVER in
Windows 3.0 or Windows 3.1.  I think that this is one of the subjects that
Andrew Shulman covers in UNDOCUMENTED WINDOWS (ISBN?) and I also think that a
recent issue of Microsoft Journal or PC Mag had an article on implmenting
drag-n-drop from both ends.

Hope this helps...

MikeY.
From: perkel_j@a1.mscf.upenn.edu (Jeffrey Perkel)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Question about a Petzold exercise
Date: 10 Sep 92 17:22:46 GMT
Organization: University of Pennsylvania

Has anyone noticed a problem with executing the program from the book,
Programming Windows, 3d. ed., by Charles Petzold, PICKFONT.EXE.  I entered
this program, compiled successfully, but get a general protection fault
at runtime.  The window is not even opened!  Has this happened to anyone
else?

Thanks .. .

jeff perkel
perkel_j@a1.mscf.upenn.edu
From: Startup@cup.portal.com (Startup Consulting Company)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Need sleep function that is callable inside a DLL
Date: Wed,  9 Sep 92 21:38:17 PDT
Organization: The Portal System (TM)

I need to get a sleep() function that is callable from within a
DLL and uses WM_TIMER for the wakeup.  Since WM_TIMER requires
a callback function, I am wondering can you put a callback 
function into a DLL?

If yes, then I'm not clear on how to setup the callback inside
the .DLL.  Can someone point me to some sample code?  Since
all invocations of a function in a .DLL share the same data 
segment, would I skip calling MakeProcInstance() and just
pass the address of the callback to SetTimer() directly?

To give some additional background, my .DLL is being called
by Visual Basic, so I can't really put the callback into
anything outside of the .DLL.  If someone already has a 
sleep() function that is callable from within a .DLL I would
appreciate a pointer to the code.  

Jim
Newsgroups: comp.os.ms-windows.programmer.misc