荔园在线

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

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


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 17 Dec 1998 to 18 Dec 1998 (#1998-345)
发信站: BBS 荔园晨风站 (Sun Dec 20 19:55:20 1998), 站内信件

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

Topics of the day:

  1. Visual C++ wizard problem (4)
  2. Posts to this list (2)
  3. function inlining , linkage error LNK2001
  4. Strange Toolbar repaint problem
  5. Develop tools (2)
  6. Is VC++ 6.0 Support Cool Menu?
  7. Allowing Hard returns in an edit control.
  8. Printing problem (2)
  9. help for oracle infromation

--------------------------------------------------------------------------
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:    Fri, 18 Dec 1998 14:58:57 +0800
From:    Wong Yek Fu <yfwong@NETWORK2.CS.USM.MY>
Subject: Visual C++ wizard problem

hi:
  Hope you all don;t mind answer me this simple question.
  previously, I developed a winsock application and it works fine. Now,I
got a problem to insert the application which consist of a
class inherited from class CAsyncSocket to my old project. The error
messages is:

  AfxSocketInit' : undeclared identifier
  error C2065: 'IDP_SOCKETS_INIT_FAILED' : undeclared identifier
  error C2504: 'CAsyncSocket' : base class undefined
         and lot more........
For your info, my old project is a MDI application build using the Wizard
but did not choose to support windows socket during the steps by steps
wizard . so, I try to copy the inportant things to the stdafx.h
file like "include afxsock.h" but still fails..
Is there any ways to solve this problem besides re-create a new projects
and choose to include windows socket during the steps by steps wizard
again? please help.
Thanks in advance.

taylo
USM Malaysia

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

Date:    Fri, 18 Dec 1998 18:04:39 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: Visual C++ wizard problem

the most probable omission is including <afxsock.h> in stdafx.h

chances are, adding this will solve your problems, but there could be other
omissions.

rgds,
/david

> -----Original Message-----
> From: Microsoft Visual C++ programmers list
> [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Wong Yek Fu
> Sent: Friday, 18 December 1998 17:59
> To: MSVC@PEACH.EASE.LSOFT.COM
> Subject: Visual C++ wizard problem
>
>
> hi:
>   Hope you all don;t mind answer me this simple question.
>   previously, I developed a winsock application and it works fine. Now,I
> got a problem to insert the application which consist of a
> class inherited from class CAsyncSocket to my old project. The error
> messages is:
>
>   AfxSocketInit' : undeclared identifier
>   error C2065: 'IDP_SOCKETS_INIT_FAILED' : undeclared identifier
>   error C2504: 'CAsyncSocket' : base class undefined
>          and lot more........
> For your info, my old project is a MDI application build using the Wizard
> but did not choose to support windows socket during the steps by steps
> wizard . so, I try to copy the inportant things to the stdafx.h
> file like "include afxsock.h" but still fails..
> Is there any ways to solve this problem besides re-create a new projects
> and choose to include windows socket during the steps by steps wizard
> again? please help.
> Thanks in advance.
>
> taylo
> USM Malaysia
>
> --------------------------------------------------------------------------
> 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:    Fri, 18 Dec 1998 18:14:53 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Posts to this list

I never see any of my posts to this list, regardless of whether they are
replies to other posts. Could anyone please confirm (by mail to
mailto:dud@sydney.net) that they are getting through. Thanks.

/David
--------------
David Roe
Focus Consulting
david@focus-consulting.co.uk
dud@sydney.net

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

Date:    Fri, 18 Dec 1998 02:36:19 -0500
From:    Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: function inlining , linkage error LNK2001

Hello Dirk,

        Let me state the problem a little more clearly.  Normally function
references are resolved by the linker, for example you can have a function
declared in a header, and the definition (or body) of the function in one
cpp file.  When the compiler runs against other cpp files, all it does is
check and make sure you are calling the function correctly according to the
declaration.  So all it needs is a declaration, it doesn't need to know what
your function does, just how to call it properly.  As matter of fact you can
declare a function and never define it, and the compiler will not have a
problem.  But the linker will.  The linker is what "links" calls that are
made in one cpp to the actual definition of the function in another cpp.  So
the linker has to have the body of the called function.  Note the diagram:

// Test1.h

void SomeFunc( int I );


// Test1.cpp
#include "Test1.h"

void SomeFunc( int I )
{
        // whatever
}

Test1.obj contains the actual code for the SomeFunc ( the "//whatever"
section) the compiler checked the definition in the cpp against the
declaration in the h file and saw they matched, so it put the definition in
the Test1.obj file.


// Test2.cpp
#include "Test1.h" // so the compiler can see how SomeFunc is declared
(takes an int and returns a void)

void SomeOtherFunc( int I )
{
        SomeFunc( I );
}

Test2.obj contains the actual code for the SomeOtherFunc that calls
SomeFunc.  The compiler checked the usage of SomeFunc in this Test2.cpp
against the definition in Test1.h and saw that they matched, an int was
being passed in, and a void was expected for return.

Now the linker steps in and looks at the Test 2.obj and sees it needs a
function called SomeFunc.  The linker looks around until it finds it in
Test1.obj.  Then when it writes the exe it puts a jump in the SomeOtherFunc
to jump to the code contained in Test1.obj.

        This is the normal way.  Inlining is a tad bit different.  When you
inline the compiler actually takes the function declared to be inline and
puts its code right where it is called from, so the linker never generates a
jump.  This is why inlining can boost performance.  The CPU doesn't jump all
around in the exe, which is costly, because it also has to jump back
(actually it is called a return, not a jump).  So when you inline the
compiler has to have the code for the inlined function.  The linker does not
generate code, just links code together.  The compiler has to know what
instructions to put in the place of the inline function when you use it.  So
the inline functions need to be in the header file where they are declared.
That way if you are going to use the function inline, you will include the
header file to at least declare the function so the compiler knows what it
looks like, when the compiler sees it is inline, and it is called later, the
compiler generates the code for that function at the time it is called.

        Another little twist.  Ordinary functions are compiled (converted
from C/C++ code to asm) by the compiler at the time the compiler encounters
the definition (body) of the function.  And if no code ever calls the
function the linker will actually throw the code away, it won't end up in
the exe (the linker option /OPT:REF does this for you).  But when you have
an inline function, the compiler doesn't actually compile the inline
function until it finds a piece of code that calls that function.  Then it
will compile it and put it in place there, and there only.  So when the
linker comes along, it actually can't find the function.  It's not in any
obj file.  Because it was "hidden" inside of all the code that called it.
So when you put "inline" in front of a function in a cpp file, that actual
function will not show up in the obj.  The compiler compiles other cpp files
that call that function, and all the compiler does is check to make sure you
are calling the function properly.  The compiler leaves it up to the linker
to find the actual code for that function and link the caller with the code
called.  But the compiler never put the function in any obj file because it
was inline.  So the linker never finds it and gives you this error.

        Well, now that I've spen several years of your life explaining how
compilers and linkers work, here's the quick 5 second fix:  cut the code out
of the cpp file and paste it into it's header file.  Recompile and forget
all about it.

        If you need any more help, drop me a line and I'll be glad to help
you out.

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:   Dirk Germonpre [SMTP:Dirk.Germonpre@TECTRADE.BE]
        Sent:   Thursday, December 17, 1998 4:41 AM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        function inlining , linkage error LNK2001

        Hello,

        I have read the following about function inlining :

        "Similarly, a project that uses function inlining yet defines the
functions
        in a .CPP file rather than in the header file will also get error
LNK2001.
        The header file is included everywhere deemed appropriate, but the
        functions are only inlined when the .CPP file passes through the
compiler.
        Therefore the linker sees the functions as unresolved externals when
used
        in other modules. "

        For example :

        TESTCLS.H
        class testcls {
         public:
          void PublicStatMemFunc1(void);
        };


        CLASFUNC.CPP
        #include "testcls.h"

        inline void testcls::PublicStatMemFunc1(void)
        {
        }


        TEST2.CPP
        #include "testcls.h"
        void main(void)
        {
         testcls testclsObject;
         testclsObject.PublicStatMemFunc1( );   //This needed for compiler
to add
        entry to table of unresolved symbols
                                    //Will cause an LNK2001 because this
module cannot
         }


        What is the solution to this problem?

        Thanks in advance.

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

        Dirk Germonpr? - dirkg@tectrade.be

        Tectrade NV
        Pieter de Conincklaan 33
        B-8200  Brugge
        Belgium


--------------------------------------------------------------------------
        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:    Fri, 18 Dec 1998 16:32:24 +0800
From:    Wong Yek Fu <yfwong@NETWORK2.CS.USM.MY>
Subject: Re: Visual C++ wizard problem

Thanks for your reply david.
But I did include the <afxsock.h> in the stdafx.h.
Could there be any special lines added hiddenly by the wizard that I did
not notice?

taylo

On Fri, 18 Dec 1998, David Roe wrote:

> the most probable omission is including <afxsock.h> in stdafx.h
>
> chances are, adding this will solve your problems, but there could be other
> omissions.
>
> rgds,
> /david
>
> > -----Original Message-----
> > From: Microsoft Visual C++ programmers list
> > [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Wong Yek Fu
> > Sent: Friday, 18 December 1998 17:59
> > To: MSVC@PEACH.EASE.LSOFT.COM
> > Subject: Visual C++ wizard problem
> >
> >
> > hi:
> >   Hope you all don;t mind answer me this simple question.
> >   previously, I developed a winsock application and it works fine. Now,I
> > got a problem to insert the application which consist of a
> > class inherited from class CAsyncSocket to my old project. The error
> > messages is:
> >
> >   AfxSocketInit' : undeclared identifier
> >   error C2065: 'IDP_SOCKETS_INIT_FAILED' : undeclared identifier
> >   error C2504: 'CAsyncSocket' : base class undefined
> >          and lot more........
> > For your info, my old project is a MDI application build using the Wizard
> > but did not choose to support windows socket during the steps by steps
> > wizard . so, I try to copy the inportant things to the stdafx.h
> > file like "include afxsock.h" but still fails..
> > Is there any ways to solve this problem besides re-create a new projects
> > and choose to include windows socket during the steps by steps wizard
> > again? please help.
> > Thanks in advance.
> >
> > taylo
> > USM Malaysia
> >
> > --------------------------------------------------------------------------
> > 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:    Fri, 18 Dec 1998 19:41:23 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: Visual C++ wizard problem

well, AfxSocketInit() is declared in this file and there are minimum #def's
around it.

have you thought of creating the same project again, this time with socket
support, and then "Find in files" for "sock" to see what has been added?

lame suggestions r us,
/david

> -----Original Message-----
> From: Microsoft Visual C++ programmers list
> [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Wong Yek Fu
> Sent: Friday, 18 December 1998 19:32
> To: MSVC@PEACH.EASE.LSOFT.COM
> Subject: Re: Visual C++ wizard problem
>
>
> Thanks for your reply david.
> But I did include the <afxsock.h> in the stdafx.h.
> Could there be any special lines added hiddenly by the wizard that I did
> not notice?
>
> taylo
>
> On Fri, 18 Dec 1998, David Roe wrote:
>
> > the most probable omission is including <afxsock.h> in stdafx.h
> >
> > chances are, adding this will solve your problems, but there
> could be other
> > omissions.
> >
> > rgds,
> > /david
> >
> > > -----Original Message-----
> > > From: Microsoft Visual C++ programmers list
> > > [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Wong Yek Fu
> > > Sent: Friday, 18 December 1998 17:59
> > > To: MSVC@PEACH.EASE.LSOFT.COM
> > > Subject: Visual C++ wizard problem
> > >
> > >
> > > hi:
> > >   Hope you all don;t mind answer me this simple question.
> > >   previously, I developed a winsock application and it works
> fine. Now,I
> > > got a problem to insert the application which consist of a
> > > class inherited from class CAsyncSocket to my old project. The error
> > > messages is:
> > >
> > >   AfxSocketInit' : undeclared identifier
> > >   error C2065: 'IDP_SOCKETS_INIT_FAILED' : undeclared identifier
> > >   error C2504: 'CAsyncSocket' : base class undefined
> > >          and lot more........
> > > For your info, my old project is a MDI application build
> using the Wizard
> > > but did not choose to support windows socket during the steps by steps
> > > wizard . so, I try to copy the inportant things to the stdafx.h
> > > file like "include afxsock.h" but still fails..
> > > Is there any ways to solve this problem besides re-create a
> new projects
> > > and choose to include windows socket during the steps by steps wizard
> > > again? please help.
> > > Thanks in advance.
> > >
> > > taylo
> > > USM Malaysia
> > >
> > >
> --------------------------------------------------------------------------
> > > 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 .
> >
>
> --------------------------------------------------------------------------
> 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:    Fri, 18 Dec 1998 03:51:26 -0500
From:    Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: Posts to this list

Hello All,

        I deeply apologize if you received a rather large email from me to
this list.  I was replying to David and accidently hit send without changing
the To to David's email.  I did an end task on outlook and shut NT down
hoping to catch it before it transmitted it.  But I might have missed it.

        Again, my deepest apologies for whatever trouble this might have
caused you.

Thanks for your understanding,

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:   David Roe [SMTP:dud@SYDNEY.NET]
        Sent:   Friday, December 18, 1998 1:15 AM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        Posts to this list

        I never see any of my posts to this list, regardless of whether they
are
        replies to other posts. Could anyone please confirm (by mail to
        mailto:dud@sydney.net) that they are getting through. Thanks.

        /David
        --------------
        David Roe
        Focus Consulting
        david@focus-consulting.co.uk
        dud@sydney.net


--------------------------------------------------------------------------
        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:    Fri, 18 Dec 1998 13:14:55 +0100
From:    =?iso-8859-1?Q?Anders_W=E5hlin?= <wahlin@ERV.ERICSSON.SE>
Subject: Strange Toolbar repaint problem

Hello.

I have developed a SDI application with MFC using AppWizard. On my computer,
and some others, the toolbar looks ok. But on some other clients the toolbar
looks like a mess. It seems like it gets the image of the last window that
was on the top of it. For example, when I start the app, the toolbar
contains icons and stuff from the desktop.

The thing that differs the computers is that all clients using IE 4 seems to
work but thoose who are using IE 3.x doesn't.

What am I doing wrong?

--
Anders Wahlin
System Manager
IT Operations
Ericsson Mobile Data Design AB

Phone: +46 31 7036394
Fax: +46 31 7036033
E-mail: Anders.Wahlin@erv.ericsson.se

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

Date:    Fri, 18 Dec 1998 04:24:43 -0500
From:    "Swirski, Zbyszek" <Zbyszek.Swirski@AEXP.COM>
Subject: Re: Develop tools

There is another issue we should mention here, it is a 'market value' of
the package knowledge. VC++ expert can earn more and find a job much
easier than Delphi expert.
VB fan (expert) can find a job even easier, but salaries (rates) are
usually lower than VC++. Builder is probably at the bottom of the
'market', however it is much nicer than VC++ (IMHO).
I think that market needs are as following:
        VC++ 45! %
        VB   40%
        Delphi 7%
        Other 5% (like Power Builder, API etc)
        Borland C++ Builder 3%

Regarding packages by themselves I would say VC++ is the most powerful
and most up to date package on the market. VB is very up to date, but
.... I dislike BASIC (in any flavour. VB is missing a lot of programming
abilities which I like, like inheritance on one side and low level
access on the other
Delphi is very good ( I used to love it ), but when you start to go
deeper it starts to annoy you with syntax limitations.
If you have access to all packages I would recommend you to try to write
_the same_ application in all of them and see what suits you the most.
I have chosen VC++ but my wife is using Delphi.
Have fun choosing the right one
Zbyszek Swirski


-----Original Message-----
From: Timothy Dixon [mailto:tdixon@PHDINC.COM]
Sent: Thursday, December 17, 1998 12:50 PM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Re: Develop tools


Yeah, yeah, yeah.  Good textbook answer (and correct, don't
misunderstand:
I do agree).

Since the question asked for opinions, however, I would like to mention
that while we use VC++ here (and C++ builder for building ActiveX
controls
and protptyping), I use Delphi at home for my hobby programming.  This
is
not meant to indicate that Delphi is a "toy tool," just that having used
more tools than I care to count, I simply like Delphi best.






behzad@SUPERONLINE.COM on 12/17/98 05:34:17 AM

Please respond to MSVC@PEACH.EASE.LSOFT.COM

To:   MSVC@PEACH.EASE.LSOFT.COM
cc:    (bcc: Tim Dixon/PHD)
Subject:  Re: Develop tools




This is not a question to be answered just by evaluating the tool,
but rather an evaluation of tool/project combination
Behzad
> >Date:    Wed, 16 Dec 1998 13:24:40 +0800
> >From:    "Lu, Ru-Chuan" <lurc@INAME.COM>
> >Subject: Develop tools
> >
> >Hello all,
> >
> >Database: MS SQL Server
> >
> >There are three development tools, VB, VC & Delphi, which one is
better?
I
> >mean the overall evaluation, speed, develop level, etc...
> >
> >Thanks in advance.
> >
> >Best regards,
> >Ru-Chuan
>
>
------------------------------------------------------------------------
--
> 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 .

------------------------------------------------------------------------
--
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:    Sat, 18 Jul 1998 23:48:02 +0800
From:    Guo Dongdong <guodd@PUBLIC.EAST.CN.NET>
Subject: Is VC++ 6.0 Support Cool Menu?

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01BDB2A6.80AE6530
Content-Type: text/plain;
        charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hi, All!

Does any body know whether VC++6.0 supports Cool Menu or not?=20

Thanks!

------=_NextPart_000_0008_01BDB2A6.80AE6530
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 face=3DArial size=3D2>Hi, All!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Does any body know =
whether VC++6.0=20
supports Cool Menu or not? <BR></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2>Thanks!</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01BDB2A6.80AE6530--

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

Date:    Fri, 18 Dec 1998 11:16:43 -0500
From:    Robert Twitty <rtwitty@USHMM.ORG>
Subject: Re: Develop tools

Technically, DBLibrary is not a tool in the context of the question
stated below.  It is an obsolete library that can be accessed by any of
the development tools mentioned below.  MS reluctantly keeps it around for
legacy purposes, and therefore should not be used for new projects.

The problem with many emails asking "Which is the better tool?" is that
they usually don't state the nature and the delivery time of the project,
which is what really determines the best tool.  For database projects
that require a complex GUI, then RAD tools like Delphi and VB are the best
choice.  For projects that don't require a GUI, such as  CGI
programs used on the web, then VC++ is probably the best choice.  In
addition, if the project will use a browser for the front-end, then one
might consider ASPs or Cold Fusion.

Also, the speed and efficiency of a program is sometimes more dependent on
the programmer's skill level rather than the tool itself.  For example, a
person who knows how to use the ODBC API directly can make a more
efficient and faster program than someone who only knows how to use MFC's
CDatabase and CRecordset classes.

-- bob

On Thu, 17 Dec 1998, Sumtsov Dmitry wrote:

> DBLibrary is the best tool. But one needs to write a shell over dblibrary=
,
> if one works with serious projects.
> ( Sorry for bad English )
>
> > -----Original Message-----
> > From: Erik Magni [SMTP:erik.magni@SESIG.MAIL.ABB.COM]
> > Sent: 17 December 1998 =C7. 11:13
> > To:   MSVC@PEACH.EASE.LSOFT.COM
> > Subject:      Re: Develop tools
> >
> > I must say that I do like VC++, a lot. But when it comes to
> > database stuff Delphi is the ultimate tool. Far better than VC++.
> >
> > /Erik
> >
> > >Date:    Wed, 16 Dec 1998 13:24:40 +0800
> > >From:    "Lu, Ru-Chuan" <lurc@INAME.COM>
> > >Subject: Develop tools
> > >
> > >Hello all,
> > >
> > >Database: MS SQL Server
> > >
> > >There are three development tools, VB, VC & Delphi, which one is bette=
r?
> > I
> > >mean the overall evaluation, speed, develop level, etc...
> > >
> > >Thanks in advance.
> > >
> > >Best regards,
> > >Ru-Chuan
> >
> > -----------------------------------------------------------------------=
---
> > 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:    Fri, 18 Dec 1998 15:09:41 -0400
From:    "Darryl G. Wright" <darrylwright@MYMAIL.COM>
Subject: Allowing Hard returns in an edit control.

I want the user to be able to write a signature in an edit box with returns,
tabs etc. I then want to store that as a single long line - is this
possible? How do I make a multi-line edit control accept returns?

-=< Darryl >=-

----------------------------------
Darryl G. Wright
Programmer / Analyst
B.M. Wilson Associates Ltd.

"I can please only one person per day. Today is not your day.
Tomorrow isn't looking good either." - Dilbert

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

Date:    Fri, 18 Dec 1998 15:01:30 -0500
From:    Sangeeta_Mehta@VANGUARD.COM
Subject: Printing problem

Hi,
     I have been trying to print a file to a printer attached to my LPT1
port, but guess what, I have not been able to do it since the last 2 days.
Please help.  Any sort of suggestions would be greately appreciated.
I get a return code of -1 when I try to execute StartDoc().  The error
message is "The specified port is unknown".

main()
{
     HANDLE pHandle;
     PRINTER_INFO_2 printInfo;
     LPDWORD count;
     BOOL result = OpenPrinter("LPT1",&pHandle,NULL);
     result = GetPrinter(pHandle,2,(LPBYTE) &printInfo,500,count);

     HDC hdc = CreateDC(NULL,printInfo.pDriverName,NULL,NULL);
     DOCINFO docInfo;
     memset(&docInfo, 0, sizeof(DOCINFO));
     docInfo.cbSize = 500;
     docInfo.lpszDocName = "c:\\anand\\tsttime.cpp";

     int i = StartDoc(hdc,&docInfo);

     i = EndDoc(hdc);
     DeleteDC(hdc);
     result = ClosePrinter(pHandle);
     return 0;
}

Thanks
Sangeeta

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

Date:    Sat, 19 Dec 1998 09:29:02 +0800
From:    Mo Xianghai <mxhdwb@ONLINE.SH.CN>
Subject: help for oracle infromation

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01BE2B32.041FBAA0
Content-Type: text/plain;
        charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Dir sir:

I'now study the oracle. I want to know the oracle newsgroups and
some free oracle study guides or e-mail list. but I find it is diffcult =
to get the information like "msnews.microsoft.com" or
msvc@peach.ease.lsoft.com  . Could you help me?

Regards
Shanghai

------=_NextPart_000_0012_01BE2B32.041FBAA0
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 color=3D#000000 size=3D2>Dir sir:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>I'now study the oracle. I want to =
know the=20
oracle newsgroups and</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>some free oracle study guides or =
e-mail list.=20
but I find it is diffcult to get the </FONT><FONT size=3D2>information =
like=20
&quot;msnews.microsoft.com&quot; or</FONT></DIV>
<DIV><FONT size=3D2><A=20
href=3D"mailto:msvc@peach.ease.lsoft.com">msvc@peach.ease.lsoft.com</A>&n=
bsp; .=20
Could you help me?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Regards</FONT></DIV>
<DIV><FONT size=3D2>Shanghai</FONT></DIV></BODY></HTML>

------=_NextPart_000_0012_01BE2B32.041FBAA0--

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

Date:    Sat, 19 Dec 1998 09:14:14 +0530
From:    "Srinivasulu B. D" <BDSrinu@INDOSOFT.STPH.NET>
Subject: Re: Printing problem

make sure ur LPT1 is not connected to other device.

bye

SDB

> ----------
> From:
> Sangeeta_Mehta@VANGUARD.COM[SMTP:Sangeeta_Mehta@VANGUARD.COM]
> Reply To:     Microsoft Visual C++ programmers list
> Sent:         Saturday, December 19, 1998 1:31 AM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      Printing problem
>
> Hi,
>      I have been trying to print a file to a printer attached to my
> LPT1
> port, but guess what, I have not been able to do it since the last 2
> days.
> Please help.  Any sort of suggestions would be greately appreciated.
> I get a return code of -1 when I try to execute StartDoc().  The error
> message is "The specified port is unknown".
>
> main()
> {
>      HANDLE pHandle;
>      PRINTER_INFO_2 printInfo;
>      LPDWORD count;
>      BOOL result = OpenPrinter("LPT1",&pHandle,NULL);
>      result = GetPrinter(pHandle,2,(LPBYTE) &printInfo,500,count);
>
>      HDC hdc = CreateDC(NULL,printInfo.pDriverName,NULL,NULL);
>      DOCINFO docInfo;
>      memset(&docInfo, 0, sizeof(DOCINFO));
>      docInfo.cbSize = 500;
>      docInfo.lpszDocName = "c:\\anand\\tsttime.cpp";
>
>      int i = StartDoc(hdc,&docInfo);
>
>      i = EndDoc(hdc);
>      DeleteDC(hdc);
>      result = ClosePrinter(pHandle);
>      return 0;
> }
>
> Thanks
> Sangeeta
>
> ----------------------------------------------------------------------
> ----
> 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 .
>

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

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


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

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