荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 29 Dec 1998 to 30 Dec 1998 (#1998-355)
发信站: BBS 荔园晨风站 (Thu Dec 31 15:21:15 1998), 站内信件

【 以下文字转载自 tang 的信箱 】
【 原文由 Automatic 所发表 】
There are 12 messages totalling 796 lines in this issue.

Topics of the day:

  1. file path to be #defined (6)
  2. <No subject given> (3)
  3. LNK2001
  4. How to use ATL to make a WindowsNT Service
  5. Extended DLL and STL

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription/signoff info
and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

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

Date:    Wed, 30 Dec 1998 11:27:57 +0530
From:    Aditya Kumar <aditya@NOIDA.HCLT.COM>
Subject: file path to be #defined

Hi guys ,

ENV : VC 5 , win95

I dont want to hard - code the directory path for a file which I want to
open .
How do I #define it ?

e.g suppose I want to load  "C:\tmp\foo\foo.bmp"

do I write #define FILE_PATH "C:\tmp\foo\
and in code I open the file with FILE_PATH\foo.bmp"

This does not look elegant . Any suggestions ?
TIA .
-- Aditya

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

Date:    Wed, 30 Dec 1998 17:11:00 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: file path to be #defined

if you #define it, you ARE hard coding it. you also need to explain yourself
a little more clearly. do you want to hard code the directory but not the
filename?

some options are:

#define FILE_PATH "C:\\tmp\\foo"
sprintf(szPathname,"%s\\foo.bmp",FILE_PATH);
OpenFile(szPathname);

#define FILE_PATH "C:\\tmp\\foo\\foo.bmp"
OpenFile(FILE_PATH);

#define FILE_PATH "C:\\tmp\\foo\\foo.bmp"
GetPrivateProfileString("Pathnames","BmpFilePath",FILE_PATH,szPathname,MAX_P
ATH,"APPNAME.INI");
<or equivalent code for reading from the registry>
OpenFile(szPathname);

hope this helps.
/david

> -----Original Message-----
> From: Microsoft Visual C++ programmers list
> [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Aditya Kumar
> Sent: Wednesday, 30 December 1998 16:58
> To: MSVC@PEACH.EASE.LSOFT.COM
> Subject: file path to be #defined
>
>
> Hi guys ,
>
> ENV : VC 5 , win95
>
> I dont want to hard - code the directory path for a file which I want to
> open .
> How do I #define it ?
>
> e.g suppose I want to load  "C:\tmp\foo\foo.bmp"
>
> do I write #define FILE_PATH "C:\tmp\foo\
> and in code I open the file with FILE_PATH\foo.bmp"
>
> This does not look elegant . Any suggestions ?
> TIA .
> -- Aditya
>
> --------------------------------------------------------------------------
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription/signoff info
> and archives, see http://peach.ease.lsoft.com/archives/msvc.html .
>

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

Date:    Wed, 30 Dec 1998 01:20:30 -0500
From:    Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: file path to be #defined

Hello Aditya,

        Actually that is hard coding the directory path.  To hard code
something means that while the program runs whatever was hard coded can not
be changed.  If you #define something it can not be changed unless you
recompile.  How about something like this:

// make this global:

const char* pszDefaultDir = "c:\\DefaultDir\\";
char* pszDir = pszDefaultDir; // initialize our directory pointer to be the
default directory

then in your code, let the user enter a directory if they wish and change
the directory to it like this:

pszDir = pszUserDir;


then when you are ready to use it to open a file do like this:

char pszFileName[ MAX_PATH ];
sprintf( pszFileName, "%s\\%s", pszDir, pszUserFileName );
open( pszFileName, .... ); // or whatever you want to do with the full path
to the file

Richard W. Pickett Jr.
Windows NT Server System Engineer
Client / Server, Multithreading, Sockets, IPC
Visual C++, MFC, CASE tools, UML
Are you reading this?
#include "std Disclosure Statement.h"
Home:  nemesis@wku.campus.mci.net <mailto:nemesis@wku.campus.mci.net>
Work: rpickett@NortelNetworks.com <mailto:rpickett@NortelNetworks.com>

        -----Original Message-----
        From:   Aditya Kumar [SMTP:aditya@NOIDA.HCLT.COM]
        Sent:   Tuesday, December 29, 1998 11:58 PM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        file path to be #defined

        Hi guys ,

        ENV : VC 5 , win95

        I dont want to hard - code the directory path for a file which I
want to
        open .
        How do I #define it ?

        e.g suppose I want to load  "C:\tmp\foo\foo.bmp"

        do I write #define FILE_PATH "C:\tmp\foo\
        and in code I open the file with FILE_PATH\foo.bmp"

        This does not look elegant . Any suggestions ?
        TIA .
        -- Aditya


--------------------------------------------------------------------------
        The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
        international's LISTSERV(R) software.  For subscription/signoff info
        and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

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

Date:    Wed, 30 Dec 1998 04:22:15 -0500
From:    "Swirski, Zbyszek" <Zbyszek.Swirski@AEXP.COM>
Subject: Re: file path to be #defined

I agree 100%, just a small doubt - maybe Aditya was asking how to
#define
the string and use it in the concatenation in the more elegant way.
Here it is :

#define PATHNAME "c:\\dir1\\dir2\\"       // note double backslashes!
...
char *file = PATHNAME "file.ext";
...

Anyway - avoid hard coding :-))

Zbyszek

-----Original Message-----
From: Richard Pickett
[mailto:Richard.Pickett.rpickett@NORTELNETWORKS.COM]
Sent: Wednesday, December 30, 1998 6:21 AM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Re: file path to be #defined


Hello Aditya,

        Actually that is hard coding the directory path.  To hard code
something means that while the program runs whatever was hard coded can
not
be changed.  If you #define something it can not be changed unless you
recompile.  How about something like this:

// make this global:

const char* pszDefaultDir = "c:\\DefaultDir\\";
char* pszDir = pszDefaultDir; // initialize our directory pointer to be
the
default directory

then in your code, let the user enter a directory if they wish and
change
the directory to it like this:

pszDir = pszUserDir;


then when you are ready to use it to open a file do like this:

char pszFileName[ MAX_PATH ];
sprintf( pszFileName, "%s\\%s", pszDir, pszUserFileName );
open( pszFileName, .... ); // or whatever you want to do with the full
path
to the file

Richard W. Pickett Jr.
Windows NT Server System Engineer
Client / Server, Multithreading, Sockets, IPC
Visual C++, MFC, CASE tools, UML
Are you reading this?
#include "std Disclosure Statement.h"
Home:  nemesis@wku.campus.mci.net <mailto:nemesis@wku.campus.mci.net>
Work: rpickett@NortelNetworks.com <mailto:rpickett@NortelNetworks.com>

        -----Original Message-----
        From:   Aditya Kumar [SMTP:aditya@NOIDA.HCLT.COM]
        Sent:   Tuesday, December 29, 1998 11:58 PM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        file path to be #defined

        Hi guys ,

        ENV : VC 5 , win95

        I dont want to hard - code the directory path for a file which I
want to
        open .
        How do I #define it ?

        e.g suppose I want to load  "C:\tmp\foo\foo.bmp"

        do I write #define FILE_PATH "C:\tmp\foo\
        and in code I open the file with FILE_PATH\foo.bmp"

        This does not look elegant . Any suggestions ?
        TIA .
        -- Aditya


------------------------------------------------------------------------
--
        The MSVC list is hosted on a Windows NT(TM) machine running
L-Soft
        international's LISTSERV(R) software.  For subscription/signoff
info
        and archives, see http://peach.ease.lsoft.com/archives/msvc.html

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

Date:    Wed, 30 Dec 1998 09:45:10 -0000
From:    Shashi Kant <ShashiK@PEREGRINE.IE>
Subject: Re: file path to be #defined

Just my bit to carry this thread a bit longer...
I would suggest use of the registry to store paths

That way you could change the paths without having to
recompile every time a new path is used.
HTH



-----Original Message-----
From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Swirski, Zbyszek
Sent: Wednesday, December 30, 1998 9:22 AM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Re: file path to be #defined


I agree 100%, just a small doubt - maybe Aditya was asking how to
#define
the string and use it in the concatenation in the more elegant way.
Here it is :

#define PATHNAME "c:\\dir1\\dir2\\"       // note double backslashes!
...
char *file = PATHNAME "file.ext";
...

Anyway - avoid hard coding :-))

Zbyszek

-

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

Date:    Wed, 30 Dec 1998 15:37:03 +0300
From:    Serge Darii <serged@PETROLBANK.COM>
Subject: <No subject given>

This is a multi-part message in MIME format.

------=_NextPart_000_004E_01BE340A.3FB27590
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all!
=20
I have a linker problem with Win32 Release MinDependency.
When I try to compile an ATL project (EXE server) , I receive a message
"LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/ArchCopy.exe : fatal error LNK1120: 1 unresolved =
externals".
This error appeared when I use time.h header for localtime function.
Any my attemption with combination of comple options /ML, /NOD...=20
have no success.
=20
Any ideas?
=20
Thanks in advance,
best regards=20

Serge Darii, Computer Programmer,
IT Department,  PetrolBank SA,
Chisinau, Moldova,
Phone: (3732) 500180
E-mail: serged@petrolbank.com

------=_NextPart_000_004E_01BE340A.3FB27590
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Hi =
all!</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>I have a linker =
problem with=20
Win32 Release MinDependency.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2></FONT><FONT =
face=3D"ARIAL CYR"=20
size=3D2>When I try to compile an ATL project (EXE server) , I receive a =

message</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>&quot;LIBCMT.lib(crt0.obj) : =
error LNK2001:=20
unresolved external symbol _main<BR>ReleaseMinDependency/ArchCopy.exe : =
fatal=20
error LNK1120: 1 unresolved externals&quot;.</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>This error appeared when I use =
time.h header=20
for localtime function.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Any my attemption =
with=20
combination of comple options /ML, /NOD... </FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>have no =
success.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>best regards </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Serge Darii, =
Computer=20
Programmer,<BR>IT Department,&nbsp; PetrolBank SA,<BR>Chisinau,=20
Moldova,<BR>Phone: (3732) 500180<BR>E-mail: <A=20
href=3D"mailto:serged@petrolbank.com">serged@petrolbank.com</A></FONT></D=
IV></DIV></BODY></HTML>

------=_NextPart_000_004E_01BE340A.3FB27590--

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

Date:    Wed, 30 Dec 1998 15:37:28 +0300
From:    Serge Darii <serged@PETROLBANK.COM>
Subject: LNK2001

This is a multi-part message in MIME format.

------=_NextPart_000_0056_01BE340A.4E64D1A0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all!
=20
I have a linker problem with Win32 Release MinDependency.
When I try to compile an ATL project (EXE server) , I receive a message
"LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/ArchCopy.exe : fatal error LNK1120: 1 unresolved =
externals".
This error appeared when I use time.h header for localtime function.
Any my attemption with combination of comple options /ML, /NOD...=20
have no success.
=20
Any ideas?
=20
Thanks in advance,
best regards=20

Serge Darii, Computer Programmer,
IT Department,  PetrolBank SA,
Chisinau, Moldova,
Phone: (3732) 500180
E-mail: serged@petrolbank.com

------=_NextPart_000_0056_01BE340A.4E64D1A0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Hi =
all!</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>I have a linker =
problem with=20
Win32 Release MinDependency.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2></FONT><FONT =
face=3D"ARIAL CYR"=20
size=3D2>When I try to compile an ATL project (EXE server) , I receive a =

message</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>&quot;LIBCMT.lib(crt0.obj) : =
error LNK2001:=20
unresolved external symbol _main<BR>ReleaseMinDependency/ArchCopy.exe : =
fatal=20
error LNK1120: 1 unresolved externals&quot;.</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>This error appeared when I use =
time.h header=20
for localtime function.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Any my attemption =
with=20
combination of comple options /ML, /NOD... </FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>have no =
success.</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=3D"ARIAL CYR" size=3D2>best regards </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Serge Darii, =
Computer=20
Programmer,<BR>IT Department,&nbsp; PetrolBank SA,<BR>Chisinau,=20
Moldova,<BR>Phone: (3732) 500180<BR>E-mail: <A=20
href=3D"mailto:serged@petrolbank.com">serged@petrolbank.com</A></FONT></D=
IV></DIV></BODY></HTML>

------=_NextPart_000_0056_01BE340A.4E64D1A0--

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

Date:    Wed, 30 Dec 1998 17:24:46 +0530
From:    "Nirmala.R." <nirmala.r@BLR.SNI.DE>
Subject: Re: file path to be #defined

Hi,
Why don't u make the directory path as a Environment variable and use
GetEnvironmentVariable(equt. in Win95) to get the path. Concatenate with the
filename and open it. So simple.
Even otherwise, u have to use double slash. It shd. be like this.
#define FILE_PATH "C:\\tmp\foo\\
Nirmala.


Aditya Kumar wrote:

> Hi guys ,
>
> ENV : VC 5 , win95
>
> I dont want to hard - code the directory path for a file which I want to
> open .
> How do I #define it ?
>
> e.g suppose I want to load  "C:\tmp\foo\foo.bmp"
>
> do I write #define FILE_PATH "C:\tmp\foo\
> and in code I open the file with FILE_PATH\foo.bmp"
>
> This does not look elegant . Any suggestions ?
> TIA .
> -- Aditya
>
> --------------------------------------------------------------------------
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription/signoff info
> and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

--
Nirmala.R.,                             E-mail: nirmala.r@blr.sni.de
Senior Systems Engineer,
Siemens Informations Systems Ltd.,      Ph: 852 1122
84, Keonics Electronics City,               852 1123
Hosur Road,                                 852 1124
Bangalore - 561 229.                    Ext: 4284

     "Sometimes, anticipation of the pain is
        more painful than the pain itself"

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

Date:    Thu, 31 Dec 1998 00:22:58 +0800
From:    iban <iban@IHW.COM.CN>
Subject: How to use ATL to make a WindowsNT Service

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01BE3453.B7D56CA0
Content-Type: text/plain;
        charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hi,all
   I am doing a project that running as a WindowsNT Service
I know I can use App Wizard to build the framework using=20
ATL COM Wizard,But I don't know how to write my code in it.
Thanks
Happy New Year!
IBAN BRUCE

------=_NextPart_000_000E_01BE3453.B7D56CA0
Content-Type: text/html;
        charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Dgb2312 http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,all</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp; I am doing a project that running as a =
WindowsNT=20
Service</FONT></DIV>
<DIV><FONT size=3D2>I know I can use App Wizard to build the framework =
using=20
</FONT></DIV>
<DIV><FONT size=3D2>ATL COM Wizard,But I don't know how to write my code =
in=20
it.</FONT></DIV>
<DIV><FONT size=3D2>Thanks</FONT></DIV>
<DIV><FONT size=3D2>Happy New Year!</FONT></DIV>
<DIV><FONT size=3D2>IBAN BRUCE</FONT></DIV></BODY></HTML>

------=_NextPart_000_000E_01BE3453.B7D56CA0--

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

Date:    Wed, 30 Dec 1998 13:43:46 -0600
From:    "Mark A. Glass" <mark.glass@PHILIPS.COM>
Subject: Extended DLL and STL

Can someone tell me if it is possible to export STLs other than vector =
from an extended DLL in MSVC V6. Microsoft states in Article ID: Q16895=
8 "HowTO: Exporting STL components Inside & Outside of a Class" that it=
 is not possible to export any class
template except vector because all the other templates contain nested c=
lasses. The HOWTO was written for version 5.

Thanks,
Mark Glass
Sr. Software Customization  Engineer
Philips Analytical
Mahwah, NJ

Mark.Glass@Philips.com
=

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

Date:    Thu, 31 Dec 1998 01:25:01 -0000
From:    Rajesh R <rajr@FUTURE.FUTSOFT.COM>
Subject: <No subject given>

Hi
Is your progarm is a windows application containing winmain ( not main) ?
If so u should have the linker option /subsystem :WINDOWS.

Regards
R.Rajesh
rajr@future.futsoft.com

-----Original Message-----
From:   Serge Darii [SMTP:serged@PETROLBANK.COM]
Sent:   Wednesday, December 30, 1998 6:07 PM
To:     MSVC@PEACH.EASE.LSOFT.COM
Subject:

Hi all!

I have a linker problem with Win32 Release MinDependency.
When I try to compile an ATL project (EXE server) , I receive a message
"LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/ArchCopy.exe : fatal error LNK1120: 1 unresolved
externals".
This error appeared when I use time.h header for localtime function.
Any my attemption with combination of comple options /ML, /NOD...
have no success.

Any ideas?

Thanks in advance,
best regards

Serge Darii, Computer Programmer,
IT Department,  PetrolBank SA,
Chisinau, Moldova,
Phone: (3732) 500180
E-mail: serged@petrolbank.com
 << File: ATT00007.htm >>

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

Date:    Thu, 31 Dec 1998 02:16:16 +0100
From:    Dan Lofquist <danne@POLYMORPH.SE>
Subject: <No subject given>

This is a multi-part message in MIME format.

------=_NextPart_000_0003_01BE3463.8B966AD0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

You have to remove MIN_CRT something define and then recompile, this is
a known bug in the Visual Studio and is only happening in ATL EXE servers.


    -----Original Message-----
    From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Serge Darii
    Sent: Wednesday, December 30, 1998 1:37 PM
    To: MSVC@PEACH.EASE.LSOFT.COM
    Subject:


    Hi all!

    I have a linker problem with Win32 Release MinDependency.
    When I try to compile an ATL project (EXE server) , I receive a message
    "LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    ReleaseMinDependency/ArchCopy.exe : fatal error LNK1120: 1 unresolved
externals".
    This error appeared when I use time.h header for localtime function.
    Any my attemption with combination of comple options /ML, /NOD...
    have no success.

    Any ideas?

    Thanks in advance,
    best regards

    Serge Darii, Computer Programmer,
    IT Department,  PetrolBank SA,
    Chisinau, Moldova,
    Phone: (3732) 500180
    E-mail: serged@petrolbank.com

------=_NextPart_000_0003_01BE3463.8B966AD0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D812461401-31121998><FONT color=3D#0000ff =
face=3DVerdana size=3D2>You=20
have to remove MIN_CRT something define and then recompile, this=20
is</FONT></SPAN></DIV>
<DIV><SPAN class=3D812461401-31121998><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D812461401-31121998><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>a known bug in the Visual Studio and is only =
happening in=20
ATL EXE servers.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
    <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
    size=3D2>-----Original Message-----<BR><B>From:</B> Microsoft Visual =
C++=20
    programmers list [mailto:MSVC@PEACH.EASE.LSOFT.COM]<B>On Behalf =
Of</B> Serge=20
    Darii<BR><B>Sent:</B> Wednesday, December 30, 1998 1:37 =
PM<BR><B>To:</B>=20
    MSVC@PEACH.EASE.LSOFT.COM<BR><B>Subject:</B> <BR><BR></FONT></DIV>
    <DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Hi =
all!</FONT></DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" =
size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>I have a =
linker problem=20
    with Win32 Release MinDependency.</FONT></DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2></FONT><FONT=20
    face=3D"ARIAL CYR" size=3D2>When I try to compile an ATL project =
(EXE server) ,=20
    I receive a message</FONT></DIV>
    <DIV><FONT face=3D"ARIAL CYR" size=3D2>&quot;LIBCMT.lib(crt0.obj) : =
error=20
    LNK2001: unresolved external symbol=20
    _main<BR>ReleaseMinDependency/ArchCopy.exe : fatal error LNK1120: 1=20
    unresolved externals&quot;.</FONT></DIV>
    <DIV><FONT face=3D"ARIAL CYR" size=3D2>This error appeared when I =
use time.h=20
    header for localtime function.</FONT></DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Any my =
attemption with=20
    combination of comple options /ML, /NOD... </FONT></DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>have no=20
    success.</FONT></DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" =
size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3D"ARIAL CYR" size=3D2>Any ideas?</FONT></DIV>
    <DIV><FONT face=3D"ARIAL CYR" size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3D"ARIAL CYR" size=3D2>Thanks in =
advance,</FONT></DIV>
    <DIV><FONT face=3D"ARIAL CYR" size=3D2>best regards </FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT color=3D#000000 face=3D"Arial Cyr" size=3D2>Serge Darii, =
Computer=20
    Programmer,<BR>IT Department,&nbsp; PetrolBank SA,<BR>Chisinau,=20
    Moldova,<BR>Phone: (3732) 500180<BR>E-mail: <A=20
    =
href=3D"mailto:serged@petrolbank.com">serged@petrolbank.com</A></FONT></D=
IV></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0003_01BE3463.8B966AD0--

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

End of MSVC Digest - 29 Dec 1998 to 30 Dec 1998 (#1998-355)
***********************************************************
--
※ 转载:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店