home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!think.com!rpi!newsserver.pixel.kodak.com!ekcolor!dj
- From: dj@ekcolor.ssd.kodak.com (Dave Jones)
- Subject: Re: HELP: BC++ program won't leave mommy
- Message-ID: <1992Nov19.155122.10574@pixel.kodak.com>
- Sender: news@pixel.kodak.com
- Organization: Vonnegut Tent Rentals, Inc.
- X-Newsreader: TIN [version 1.1 PL6]
- References: <19NOV199207262299@zeus.tamu.edu>
- Date: Thu, 19 Nov 92 15:51:22 GMT
- Lines: 34
-
- sam4628@zeus.tamu.edu wrote:
- > Hello,
- > I have a program written in BC++ which is behaving strangely (in the
- > following discussion, please bear in mind that I am a novice Windows
- > programmer: I'm not doing anything fancy, but I could very well be doing
- > something _stupid_!).
- >
- > This program will only run if the BC++ IDE is running. This is true
- > regardless of where I'm running the program (i.e. I'm trying to run it from
- > the file manager, so it shouldn't have any ties to the IDE). It doesn't
- > give any errors, it just doesn't run.
- >
- > The program is a simple data conversion program which basically displays
- > a single dialog box to obtain file names, does its conversion, and exits.
- >
- I'll guess: your dialog box uses controls that are in a Borland DLL and it
- isn't on your PATH. Therefore it cannot be automagically loaded by your
- application, but if the IDE is loaded already then so is the DLL.
-
- This still doesn't sound right: you should get a system modal dialog
- complaining that it "can't find a file, or one of its components". However
- take it as a working hypothesis that the IDE is loading *some* resource that
- your program needs, then try to make the IDE's resources available to your
- program, perhaps one by one (copying them to the program's directory?) until
- you hit something.
-
- Or go back to basics: remove components from your program until it runs, or
- remove all extra stuff and add bits back one by one till you hit the
- problem. Get the search area narrowed down enough and the bug will usually
- be obvious.
-
- --
- ||------------------------------------------------------------------------
- ||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY |
-