荔园在线

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

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


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 30 Dec 1998 to 31 Dec 1998 (#1999-1)
发信站: BBS 荔园晨风站 (Sun Jan  3 11:34:25 1999), 站内信件

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

Topics of the day:

  1. <No subject given> (2)
  2. error C2504 : base class undefined
  3. Move Window
  4. GetEffectiveRightsFromAcl

--------------------------------------------------------------------------
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:    Thu, 31 Dec 1998 09:22:50 +0300
From:    Serge Darii <serged@PETROLBANK.COM>
Subject: <No subject given>

Hi Rajesh,



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


Yes, my program is Win32 COM server (*.exe) based on ATL library, and I have
linker option /subsystem :WINDOWS.
I have this problem ONLY  when I compile Win32 Release MinDependency target.
In Win32 Debug mode all are good.

best regards,

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

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

Date:    Thu, 31 Dec 1998 10:34:47 +0300
From:    Serge Darii <serged@PETROLBANK.COM>
Subject: <No subject given>

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01BE34A9.30494C60
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks Dan, all OK!
    -----Original Message-----
    From: Dan Lofquist <danne@POLYMORPH.SE>
    To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
    Date: 31 =E4=E5=EA=E0=E1=F0=FF 1998 =E3. 4:19
   =20
   =20
    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.
   =20
   =20
        -----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:=20
       =20
       =20
        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
       =20
        Serge Darii, Computer Programmer,
        IT Department,  PetrolBank SA,
        Chisinau, Moldova,
        Phone: (3732) 500180
        E-mail: serged@petrolbank.com

------=_NextPart_000_0012_01BE34A9.30494C60
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><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Thanks Dan, all OK!</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
    <DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
    </B>Dan Lofquist &lt;<A=20
    =
href=3D"mailto:danne@POLYMORPH.SE">danne@POLYMORPH.SE</A>&gt;<BR><B>To: =
</B><A=20
    =
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A> =
&lt;<A=20
    =
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A>&g=
t;<BR><B>Date:=20
    </B>31 &auml;&aring;&ecirc;&agrave;&aacute;&eth;&yuml; 1998 =
&atilde;.=20
    4:19<BR><BR></DIV></FONT>
    <DIV><SPAN class=3D812461401-31121998><FONT color=3D#0000ff =
face=3DVerdana=20
    size=3D2>You 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=20
    in 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" =

        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>=20
        Serge Darii<BR><B>Sent:</B> Wednesday, December 30, 1998 1:37=20
        PM<BR><B>To:</B> MSVC@PEACH.EASE.LSOFT.COM<BR><B>Subject:</B>=20
        <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=20
        server) , 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></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0012_01BE34A9.30494C60--

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

Date:    Thu, 31 Dec 1998 11:28:53 +0100
From:    Dirk Germonpre <Dirk.Germonpre@TECTRADE.BE>
Subject: error C2504 : base class undefined

Hello,

I have the following problem : If I make a subclass from CTObject, I get
the following compiler error :=20

error C2504: 'CTObject' : base class undefined on line xxx (I'm working in
Visual Studio 5.0)

My code looks as following :

CTObject.h :=20

        class CTObject {
        ...
        } =20


CTDeliveryGroup.h :

        #include "CTObject.h"

xxx     class CTDeliveryGroup  : public CTObject {
        ...
        }


If I define these classes in the same headerfile, the problem is solved.
But this means that I have to define all classes of an inheritance
hierarchy in the same headerfile.=20
Am I doing something wrong here? I'd like to be able to define subclasses
in different headerfiles.

Thanks in advance.

Dirk Germonpre.

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

Dirk Germonpr=E9 - dirkg@tectrade.be

Tectrade NV
Pieter de Conincklaan 33
B-8200  Brugge
Belgium

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

Date:    Thu, 31 Dec 1998 08:57:19 -0800
From:    Shanmuga S <s_shanmuganathan@YAHOO.COM>
Subject: Move Window

Dear Gurus,

When I move the mouse,
If I want to move a window or a control,
how can I do that.

I tried it, but I am getting two windows.

I was little bit confused.

Can anyone help me ?

Advance Thanks.
Shanmuganathan.S




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Date:    Thu, 31 Dec 1998 11:07:58 -0800
From:    Bill Hunka <wlhunka@HWY97.COM>
Subject: GetEffectiveRightsFromAcl

Environ: nt 4 workstation SP 3, VC 6 sp 1

I have been trying to get the rights of a user for file objects using
GetEffectiveRightsFromAcl. If a user is within a group which has rights then
the function should return those rights. Has anyone else had experience with
this function?

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

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


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

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