荔园在线

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

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


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 22 Dec 1998 to 23 Dec 1998 (#1998-350)
发信站: BBS 荔园晨风站 (Thu Dec 24 14:42:45 1998), 站内信件

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

Topics of the day:

  1. Performance issues (2)
  2. sql transaction (2)
  3. class templates in C++ (2)
  4. C++ classes (3)
  5. Mastering Visual C++ 6.0
  6. FTP component for MSVC
  7. Windows95-GetCharWidthFloat()?

--------------------------------------------------------------------------
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, 23 Dec 1998 10:00:00 +0530
From:    Aditya Kumar <aditya@TITANIUM.NOIDA.HCLT.COM>
Subject: Re: Performance issues

Timothy Dixon wrote:

> I wouldn't think that it would have an difference that mattered;
> performance is far better approached by using effecient algorithms,
> optimizing loops, and so on than by shaving a few bytes here and there by
> using this trick or that trick.  Even the optimizer should be only a small
> help from a performance standpoint.  Course I could be wrong (I was once
> before, back in 1993 :->)
>
> Do you actually have a performance problem we might help with?

I dont have a real performance problem but I would like to get the best
possible performance . The efiicient algo part is the back end . I knoww about
those . I wanted to know ways of optimising the visual part (GUI ) .

I should have also mentioned that my app has about 90 dialogs , most of them
modeless ; and my application size is 1.4 MB with MFC used as a shared library
and I still havnt done any coding for processing the data . I have just made
the UI part till now ! Maybe now you can  feel why I am talking of
optimization of UI . :-)

Thanks .
Aditya

>
> Tim Dixon, Software Engineer
> PHD, Inc. http://www.phdinc.com
>
> aditya@NOIDA.HCLT.COM on 12/22/98 06:53:36 AM
>
> Please respond to MSVC@PEACH.EASE.LSOFT.COM
>
> To:   MSVC@PEACH.EASE.LSOFT.COM
> cc:    (bcc: Tim Dixon/PHD)
> Subject:  Performance issues
>
> Hi all ,
> Env : VC 5.0 , win95
> Does a larger dialog size have some performance degradation over smaller
> ones ? Does it consume extra memory at runtime ?
> Also , can anyone point me to a link where such performance issues have
> been discussed ?
> Thanks .
> Aditya
> --
> ********************************************************************
> Aditya Kumar                    |    aditya@noida.hclt.com
> HCL Technologies,               |
> Sector 11 , Noida.              |    adi47@hotmail.com
> ## Still looking for something witty to add to my sign ! ##
> ********************************************************************
> --------------------------------------------------------------------------
> 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 .
>
> --------------------------------------------------------------------------
> 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, 23 Dec 1998 10:59:01 +0100
From:    Dan Lofquist <danne@POLYMORPH.SE>
Subject: Re: Performance issues

What you can do is to divide your application in to DLL's and
store parts of your dialogs in the DLL instead of the EXE. That
will reduce your exe and if you use VC6 even the loadtime.

// Dan Lofquist


> I should have also mentioned that my app has about 90 dialogs ,
> most of them
> modeless ; and my application size is 1.4 MB with MFC used as a
> shared library
> and I still havnt done any coding for processing the data . I
> have just made
> the UI part till now ! Maybe now you can  feel why I am talking of
> optimization of UI . :-)

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

Date:    Wed, 23 Dec 1998 11:47:36 +0100
From:    Benjamin Levstek <benjamin.levstek@ADACTA.SI>
Subject: sql transaction

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01BE2E6A.08F29800
Content-Type: text/plain;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

i am using a begin transaction statement. And i am manupulating with =
many users who are trying to update the same table, sometimes even all =
at the same time.Is it becouse the connection is too But sometimes =
statement begin transaction doesn't execute. Why is that??

Thanx

Benjamin Levstek

------=_NextPart_000_0012_01BE2E6A.08F29800
Content-Type: text/html;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

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

<META content=3Dtext/html;charset=3Diso-8859-2 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>i am using a begin transaction =
statement. And i=20
am manupulating with many users who are trying to update the same table, =

sometimes even all at the same time.Is it becouse the connection is too =
But=20
sometimes statement begin transaction doesn't execute. Why is=20
that??</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanx</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Benjamin Levstek</FONT></DIV></BODY></HTML>

------=_NextPart_000_0012_01BE2E6A.08F29800--

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

Date:    Wed, 23 Dec 1998 07:08:51 -0600
From:    Adam Sandoval <Adam.J.Sandoval@UCM.COM>
Subject: Re: sql transaction

I am new to VC++, but from a VB perspective check this:
Are all of the users opening the db on the same record?
Does the db have multiuser, sharing, and ODBC options?

> -----Original Message-----
> From: Benjamin Levstek [SMTP:benjamin.levstek@ADACTA.SI]
> Sent: Wednesday, December 23, 1998 4:48 AM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      sql transaction
>=20
> i am using a begin transaction statement. And i am manupulating with =
many
> users who are trying to update the same table, sometimes even all at =
the
> same time.Is it becouse the connection is too But sometimes statement
> begin transaction doesn't execute. Why is that??
> =A0
> Thanx
> =A0
> Benjamin Levstek

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

Date:    Wed, 23 Dec 1998 17:58:58 +0100
From:    Dirk Germonpre <Dirk.Germonpre@TECTRADE.BE>
Subject: class templates in C++

Hello,

I have two questions :

1)

Can anybody tell me if the following code is correct :

template<class Broker> class VirtualProxy
{
        friend class Broker;

        Broker* GetBroker(){
                return Broker::GetInstance();
        }

}


2)

A template definition has to be expicitely declared "export" to be used in
another translation unit. For example :=20

export template<class T> void out(T) { ... }

I'm using Visual Studio 5.0 as development environment, but the export
keyword doesn't seem to be known by the compiler. How can I solve this?



Thanks in advance.



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

Dirk Germonpr=E9 - dirkg@tectrade.be

Tectrade NV
Pieter de Conincklaan 33
B-8200  Brugge
Belgium

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

Date:    Wed, 23 Dec 1998 18:20:14 +0100
From:    Benjamin Levstek <benjamin.levstek@ADACTA.SI>
Subject: C++ classes

This is a multi-part message in MIME format.

------=_NextPart_000_0197_01BE2EA0.E2AA9DF0
Content-Type: text/plain;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Does anyone know or have c++ classes which works with user interface for =
MS-DOS.

Thanx

------=_NextPart_000_0197_01BE2EA0.E2AA9DF0
Content-Type: text/html;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

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

<META content=3Dtext/html;charset=3Diso-8859-2 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Does anyone know or have c++ classes =
which works=20
with user interface for MS-DOS.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Thanx</FONT></DIV></BODY></HTML>

------=_NextPart_000_0197_01BE2EA0.E2AA9DF0--

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

Date:    Wed, 23 Dec 1998 17:10:42 -0000
From:    "Chanian, Raj K" <ChanianRK@ANC.CO.UK>
Subject: Re: C++ classes

Windows are the wrapper classes for DOS

Raj Chanian
<chanianrk@anc.co.uk>
OO Developer
Boss 2000 Project
ANC Limited
Tel 01782 568 930
visit us at <www.anc.co.uk>

> -----Original Message-----
> From: Benjamin Levstek [SMTP:benjamin.levstek@ADACTA.SI]
> Sent: Wednesday, December 23, 1998 5:20 PM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      C++ classes
>=20
> Does anyone know or have c++ classes which works with user interface
> for MS-DOS.
> =A0
> Thanx

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

Date:    Wed, 23 Dec 1998 17:23:40 -0000
From:    Paulo Jorge Matos <paulomatos@MAIL.TELEPAC.PT>
Subject: Mastering Visual C++ 6.0

What do you think about this book? (Mastering Visual C++ 6.0) Is it worth it
of buying?

Regards,
Paulo Jorge Matos

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

Date:    Wed, 23 Dec 1998 20:42:19 -0000
From:    Cliff Rowley <dozprompt@NOSPLASH.FORCE9.CO.UK>
Subject: Re: C++ classes

This is a multi-part message in MIME format.

------=_NextPart_000_0001_01BE2EB4.BC20A6C0
Content-Type: text/plain;
        charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

There are several available.  Borland (now Inprise) have TubroVision, and
there are also several classes made for the GNU C++ (DOS) compiler available
at www.delorie.com
    -----Original Message-----
    From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Benjamin Levstek
    Sent: Wednesday 23 December 1998 5:20 pm
    To: MSVC@PEACH.EASE.LSOFT.COM
    Subject: C++ classes


    Does anyone know or have c++ classes which works with user interface for
MS-DOS.

    Thanx

------=_NextPart_000_0001_01BE2EB4.BC20A6C0
Content-Type: text/html;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

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

<META content=3Dtext/html;charset=3Diso-8859-2 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3511.1300"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D970424120-23121998><FONT color=3D#0000ff face=3DArial =
size=3D2>There=20
are several available.&nbsp; Borland (now Inprise) have TubroVision, and =
there=20
are also several classes made for the GNU C++ (DOS) compiler available =
at=20
www.delorie.com</FONT></SPAN></DIV>
<BLOCKQUOTE>
    <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>=20
    Benjamin Levstek<BR><B>Sent:</B> Wednesday 23 December 1998 5:20=20
    pm<BR><B>To:</B> MSVC@PEACH.EASE.LSOFT.COM<BR><B>Subject:</B> C++=20
    classes<BR><BR></FONT></DIV>
    <DIV><FONT color=3D#000000 size=3D2>Does anyone know or have c++ =
classes which=20
    works with user interface for MS-DOS.</FONT></DIV>
    <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#000000 =
size=3D2>Thanx</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0001_01BE2EB4.BC20A6C0--

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

Date:    Wed, 23 Dec 1998 21:24:19 +0100
From:    Borut Zagar <Borut.Zagar@BIGFOOT.COM>
Subject: FTP component for MSVC

Hi!
Has anybody did it or knows any FTP component for MSVC or has all the code
to support FTP protocol for console application? I am looking for
implementation that supports passive mode (PASV).
Thanx
                                                        by(e) Borut Zagar
                                                       Made in Slovenia
Email: mailto:Borut.Zagar@bigfoot.com
        mailto:bzagar@hotmail.com
WWW (siFTP): http://www.kiss.uni-lj.si/~k4fr0086

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

Date:    Wed, 23 Dec 1998 17:33:18 -0500
From:    Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: class templates in C++

        Note the embedded comments.  And as always, if you need any more
help, drop me a line.

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> =20
Work: rpickett@NortelNetworks.com <mailto:rpickett@NortelNetworks.com>=20

        -----Original Message-----
        From:   Dirk Germonpre [SMTP:Dirk.Germonpre@TECTRADE.BE]
        Sent:   Wednesday, December 23, 1998 10:59 AM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        class templates in C++

        Hello,

        I have two questions :

        1)

        Can anybody tell me if the following code is correct :

        template<class Broker> class VirtualProxy
        {
                friend class Broker;

                Broker* GetBroker(){
                        return Broker::GetInstance();
                }

        }

        This code is only correct if the class passed in as templated item
"Broker" has a public static method named GetInstance.  My assumption =
is
that this is not the case.  In the above code "Broker" is replaced by =
the
type of data passed in as that template argument, not an instance of =
that
type.  Template arguments are not variable lists like function =
arguments,
they are type lists.

        2)

        A template definition has to be expicitely declared "export" to be
used in
        another translation unit. For example :=20

        export template<class T> void out(T) { ... }

        I'm using Visual Studio 5.0 as development environment, but the
export
        keyword doesn't seem to be known by the compiler. How can I solve
this?

Try using __declspec( dllexport )  instead.  I'm not sure what you are
trying to do, and if this will solve your difficulty, but _export was
replaced with __declspec( dllexport ).


        Thanks in advance.



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

        Dirk Germonpr=E9 - dirkg@tectrade.be

        Tectrade NV
        Pieter de Conincklaan 33
        B-8200  Brugge
        Belgium

=09
------------------------------------------------------------------------=
--
        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, 24 Dec 1998 09:27:58 +0800
From:    hxh <hxh@BD748.PKU.EDU.CN>
Subject: Windows95-GetCharWidthFloat()?

This is a multi-part message in MIME format.

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

Vc5.0 Windows95:
Does Windows95 support function GetCharWidthFloat()?
In the help file the answer is yes, but I can't use it correctly and the =
output of GetLastError() is
120(ERROR_CALL_NOT_IMPLEMENTED //  This function is only valid in =
Windows NT mode.)

If 95 doesn't support, how can I retrieve the precise information of the =
character width in 95?


------=_NextPart_000_0033_01BE2F1F.B17E7920
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.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Vc5.0 Windows95:</FONT></DIV>
<DIV><FONT size=3D2>Does Windows95 support function=20
GetCharWidthFloat()?</FONT></DIV>
<DIV><FONT size=3D2>In the help file the answer is yes, but I can't use =
it=20
correctly and the output of GetLastError() is</FONT></DIV>
<DIV><FONT size=3D2>120(ERROR_CALL_NOT_IMPLEMENTED //&nbsp; This =
function is only=20
valid in Windows NT mode.)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>If 95 doesn't support, how can I retrieve the =
precise=20
information of the character width in =
95?<BR></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0033_01BE2F1F.B17E7920--

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

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


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

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