🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1372

Borland C++ and the SDK Generic application

#1372
From: sampson david 58163
Date: Fri, 22 Feb 1991 14:29
49 lines
2490 bytes
OK, so what am I doing wrong?   Thought I'd start with that part first.

I've installed Borland C++, copied the Generic application from the MS
SDK sources disk into a brand new subdirectory, and I can't get the
thing to link properly.  BTW I can compile the Borland demo program so
I suspect the problem is in the project file "environment" as I've set
it up.

Here's what I did:

1) Created a new PRJ file called generic.
2) Added Generic.c, Generic.h, Generic.rc and Generic.def to it.
3) Under Options/Application, I chose "Windows App"
4) Under Options/Compiler/Entry/Exit Code I have "Windows ALL
   functions xportable" set
5) Under Options/Environment/Editor, I set the default extension to C
6) I selected Compile/Make EXE file

I get 6 link errors, each of the following form:

"Linker Error: _hInst defined in module GENERIC.C is duplicated in
module GENERIC.C"

The same message is displayed about the _InitApplication,
_InitInstance, WinMain, MainWndProc, and About functions.


Since Borland C++ stores the information needed to compile a program
in the PRJ file, I suspect that I haven't set something properly.
I know they HAVE to be able to compile the simplist SDK program........

Anybody run across this problem yet?????

dfs
--

                                          A new world record
                                          in the javalin throw
                                                
    /                                          /
   /                                          I
-------------------------------------------------


David Sampson                                         Harris Corporation
dsampson@x102a.ess.harris.com                   Gov't Aerospace Systems Divison
uunet!x102a!dsampson                                  Melbourne, Florida

-------------------------------------------------------------------------------
Technical Details
Message-ID: <DSAMPSON.91Feb22092909@x102a.harris-atd.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!prism!mailer.cc.fsu.edu!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!trantor!dsampson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!prism!mailer.cc.fsu.edu!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!trantor!dsampson
From: dsampson@x102a.harris-atd.com (sampson david 58163)
Newsgroups: comp.windows.ms.programmer
Subject: Borland C++ and the SDK Generic application
Message-ID: <DSAMPSON.91Feb22092909@x102a.harris-atd.com>
Date: 22 Feb 91 14:29:09 GMT
Sender: news@trantor.harris-atd.com
Distribution: na
Organization: Harris Gov't Aerospace Systems Division
Lines: 49