荔园在线

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

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


发信人: tang (独孤九剑), 信区: Program
标  题: MSVC Digest - 14 May 1998 to 15 May 1998
发信站: BBS 荔园晨风站 (Sat May 16 22:43:35 1998), 转信

There are 18 messages totalling 1048 lines in this issue.

Topics of the day:

  1. help in display
  2. TMP Files (3)
  3. How can I unsubscribe from this mailinglist? (2)
  4. Porting 16 to 32bit MSoutlin.vbx problem (2)
  5. New Version of VC++
  6. <No subject given>
  7. RDO and VC++
  8. STL & istream problem (5)
  9. SQL Server for VC++ (2)

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 13:54:32 +0800
From:    Lim Chern Sing <singlim@PL.JARING.MY>
Subject: Re: help in display

May be DIB method helps.
Load the raw data to memory, get or create BITMAPINFO structure for the raw
data. Get pointer to BITMAPINFOHEADER, get a pointer to the raw data, use
StretchDIBits() to blit it to screen.
I think this is valid only for uncoded data. Hope this helps

regards
Chern Sing

-----Original Message-----
From: K.V.S.Jagannadha Rao <jaggu@ECE.IISC.ERNET.IN>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: Friday, May 15, 1998 7:21 AM
Subject: help in display


>hello anybody,
>
>i have got a image file which is in 'raw' format.
>i have used CBITMAP class to display it.
>is ther any other way to display this without converting it into a bitmap?
>
>kindly help i am stuck since i need something which displays very fast for
>my application.
>
>regards jaggu
>
>--------------------------------------------------------------------------
>The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
>international's LISTSERV(R) software.  For subscription info and archives,
>see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
>information, see http://www.lsoft.com or write to SALES@LSOFT.COM.
>

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

Date:    Fri, 15 May 1998 10:47:17 +0000
From:    Burkhard Kloss <Burkhard_Kloss@GBCCMAIL.LEHMAN.COM>
Subject: Re: TMP Files

     Try using the

        FILE * tmpfile();

     function - the files are automatically deleted. Alternatively, some
     stern discipline should also do the trick :)

        Burkhard


______________________________ Reply Separator _________________________________

Subject: TMP Files
Author:  "Charles R. Derk; Jr." <CharlieD@ADTAKER.COM> at Internet
Date:    14/05/98 10:47


The app that we're developing has a bad habit of leaving 67MB temp files
in the temp directory each time the program is run (not to mention tons
on 0k files).  Does anyone know if there is some function that will
delete resources (such as tmp files) created by the app while the
program is terminating?

Thanks,


----------------------------
Charles R. Derk, Jr.
Software Developer, GraphX, Inc.
http://www.adtaker.com
Voice:(610) 797-5515 x131 Fax:(610)797-8740

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 11:17:12 +0200
From:    "A. op de Weegh" <a.op.de.weegh@NLSIGN.NL>
Subject: How can I unsubscribe from this mailinglist?

This is a cryptographically signed message in MIME format.

--------------msC3F24510FC1CFA597FD0C25E
Content-Type: multipart/mixed; boundary="------------71020CBBBA12A9B0B1F60CC9"

This is a multi-part message in MIME format.
--------------71020CBBBA12A9B0B1F60CC9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Silly me, I lost the first mail I got from the mailinglist server. Now,
I don't know how to unsubscribe from this mailinglist. Please help ;-)

Alexander.

--
A. op de Weegh
NLsign B.V.
http://www.nlsign.nl

P.O. Box 5120
2000 GC  Haarlem
The Netherlands
Phone: +31 (0)23 - 531 70 80
Fax:   +31 (0)23 - 534 54 77
Date:    Fri, 15 May 1998 15:42:39 +0530
From:    Pavan Kumar Chekuri <Pavan@INDOSOFT.STPH.NET>
Subject: Re: Porting 16 to 32bit MSoutlin.vbx problem

        Hi

        Visual Basic supports conitional compilation for 16 Bit and 32
Bit controls.  I am not sure  but I think Visual C++ too supports
this.Check it out.


        Pavan.







> Hi
>
> First post to the list, hope someone can help me out.
> I'm porting an app to Win32. I have overcome most stumbling blocks and
> this
> seems to be the last.
> Some of the forms have used the MSoutlin.vbx control. The target code
> is to
> be a 16 and 32 bit version, so I will need to keep is so that the
> 16bit
> control compiles, but replace it for the 32bit version.
>
> The question is, how do I do this with the vbx control. Do I have to
> make
> two forms, one for 16bit and one for 32bit ? or am I overlooking
> something
> thats a little simpler ?
>
> Mark
>
> ----------------------------------------------------------------------
> ----
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.
>

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

Date:    Fri, 15 May 1998 15:50:20 +0530
From:    Shakthimani <shakthi@USA.LTINDIA.COM>
Subject: Re: How can I unsubscribe from this mailinglist?

This is a multi-part message in MIME format.
--------------177A369BD3FBD6C7C26F3568
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

You may leave the list at any time by sending a "SIGNOFF MSVC" command to
LISTSERV@PEACH.EASE.LSOFT.COM. You can also tell LISTSERV how you want it
to confirm the  receipt of messages you  send to the list. If  you do not
trust the system, send a "SET  MSVC REPRO" command and LISTSERV will send
you a copy of your own messages, so that you can see that the message was
distributed and  did not get  damaged on the way.  After a while  you may
find that this is getting annoying,  especially if your mail program does
not tell you  that the message is  from you when it informs  you that new
mail has arrived from MSVC. If you send a "SET MSVC ACK NOREPRO" command,
LISTSERV will mail  you a short acknowledgement instead,  which will look
different in  your mailbox  directory. With most  mail programs  you will
know  immediately that  this is  an acknowledgement  you can  read later.
Finally,  you can  turn off  acknowledgements completely  with "SET  MSVC
NOACK NOREPRO".
bye
shakthi

A. op de Weegh wrote:

> Silly me, I lost the first mail I got from the mailinglist server. Now,
> I don't know how to unsubscribe from this mailinglist. Please help ;-)
>
> Alexander.
>
> --
> A. op de Weegh
> NLsign B.V.
> http://www.nlsign.nl
>
> P.O. Box 5120
> 2000 GC  Haarlem
> The Netherlands
> Phone: +31 (0)23 - 531 70 80
> Fax:   +31 (0)23 - 534 54 77
>
>   ------------------------------------------------------------------------
>
>   Alexander op de Weegh <a.op.de.weegh@nlsign.nl>
>   NLsign B.V.
>
>   Alexander op de Weegh
>   NLsign B.V.      <a.op.de.weegh@nlsign.nl>
>   P.O. Box 5120    Work: +31 (0)23 - 531 70 80
>   Spaarne 17       Fax: +31 (0)23 - 534 54 77
>   Haarlem          Netscape Conference Address
>   2000 GC          Netscape Conference DLS Server
>   The Netherlands
>   Additional Information:
>   Last Name  op de Weegh
>   First Name Alexander
>   Version    2.1



--------------177A369BD3FBD6C7C26F3568
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Shakthimani .L
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Shakthimani .L
n:              .L;Shakthimani
org:            Larsen&Toubro Information Technologies Ltd
adr:            SakiVihar Road,Powai;;;Mumbai;Maharastra;;India
email;internet: shakthi@usa.ltindia.com
title:          Software Engineer
tel;work:       8581401/1411
tel;home:       7663088
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------177A369BD3FBD6C7C26F3568--

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

Date:    Fri, 15 May 1998 16:16:45 +0530
From:    Pavan Kumar Chekuri <Pavan@INDOSOFT.STPH.NET>
Subject: Porting 16 to 32bit MSoutlin.vbx problem

> Hi
>
> Visual Basic supports conditional compilation for 16 Bit and 32 Bit
> controls.  I am not sure  but I think Visual C++ too supports
> this.Check it out.
>
>
> Pavan.
>
>
>
>
>
>
>
> Hi
>
> First post to the list, hope someone can help me out.
> I'm porting an app to Win32. I have overcome most stumbling blocks and
> this
> seems to be the last.
> Some of the forms have used the MSoutlin.vbx control. The target code
> is to
> be a 16 and 32 bit version, so I will need to keep is so that the
> 16bit
> control compiles, but replace it for the 32bit version.
>
> The question is, how do I do this with the vbx control. Do I have to
> make
> two forms, one for 16bit and one for 32bit ? or am I overlooking
> something
> thats a little simpler ?
>
> Mark
>
> ----------------------------------------------------------------------
> ----
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.
>
>

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

Date:    Fri, 15 May 1998 11:16:25 +0300
From:    Behzad <behzad@SUPERONLINE.COM>
Subject: New Version of VC++

Hi,

Does anybody know when the new version of VC++ is coming out ?
I have got version 5.00 but it has been a while now.

Behzad Karim
behzad@superonline.com

-----Original Message-----
From: ShashiK@Peregrine.ie <ShashiK@PEREGRINE.IE>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: 莂rmba, May齭 13, 1998 12:05
Subject: Re: Other OCX Language Versions


Behzad,I am sorry that no one on this list seems to knwo the answer to your
question-
neither do I ;-)
But you could try writing to Microsoft Support, or run a web search for your
OCX.
and look up any language specific implementations are available.

HTH
shashi
-----Original Message-----
From:   Behzad [SMTP:behzad@SUPERONLINE.COM]
Sent:   Wednesday, May 13, 1998 10:21 AM
To:     MSVC@PEACH.EASE.LSOFT.COM
Subject:        Other OCX Language Versions

Env:Win95 , VC++ 5.00,

I need to find a Turkish language version of MSCAL.OCX , I do not know if
such a thing is available at all ?
Could someone share some information on this subject ?
Do I have to write my own OCX ?

Regards,

Behzad Karim
behzad@superonline.com

>

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 18:40:26 +0530
From:    Pavan Kumar Chekuri <Pavan@INDOSOFT.STPH.NET>
Subject: <No subject given>

  Hi

  Visual Basic supports conditional compilation for 16 Bit and 32 Bit
  controls.  I am not sure  but I think Visual C++ too supports
  this.Check it out.

  Pavan.

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

Date:    Fri, 15 May 1998 15:30:11 +0200
From:    Marek Sembol <prosys@GRENDEL.CZ>
Subject: Re: TMP Files

Hi,
what about using FILE_FLAG_DELETE_ON_CLOSE in CreateFile.
Ing. Marek Sembol,=20
phone: +420 659 71 33 94  home: +420 603 45 18 96
prosys@grendel.cz
RTS s.r.o. Vrchlickeho 2, 737 01 Cesky Tesin, CZ

----------
> From: Charles R. Derk, Jr. <CharlieD@ADTAKER.COM>
> To: MSVC@PEACH.EASE.LSOFT.COM
> Subject: TMP Files
> Date: 14. kv=ECtna 1998 16:47
>=20
> The app that we're developing has a bad habit of leaving 67MB temp =
files
> in the temp directory each time the program is run (not to mention =
tons
> on 0k files).  Does anyone know if there is some function that will
> delete resources (such as tmp files) created by the app while the
> program is terminating?
>=20
> Thanks,
>=20
>=20
> ----------------------------
> Charles R. Derk, Jr.
> Software Developer, GraphX, Inc.
> http://www.adtaker.com
> Voice:(610) 797-5515 x131 Fax:(610)797-8740
>=20
> =
-------------------------------------------------------------------------=
-
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and =
archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV =
sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 10:16:13 -0400
From:    "Charles R. Derk, Jr." <CharlieD@ADTAKER.COM>
Subject: Re: TMP Files

Well,

The problem is that I'm not calling CreateFile at all.  I think this is
an issue with SQL server or ODBC.  My app will run with Oracle or SQL
Server, and when I run it using Oracle as a database, these 67MB files
are not created.  I did a search thru my whole project, and CreateFile
was not found.

I placed the code that Burkhard suggested in ExitInstance, and it IS
deleting the files now... but still, our customers will have to have
about 100 MB free disk space before they run the program (OUCH!)

Thanks!
-Charlie-

-----Original Message-----
From: Marek Sembol [mailto:prosys@GRENDEL.CZ]
Sent: Friday, May 15, 1998 9:30 AM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Re: TMP Files


Hi,
what about using FILE_FLAG_DELETE_ON_CLOSE in CreateFile.
Ing. Marek Sembol,=20
phone: +420 659 71 33 94  home: +420 603 45 18 96
prosys@grendel.cz
RTS s.r.o. Vrchlickeho 2, 737 01 Cesky Tesin, CZ

----------
> From: Charles R. Derk, Jr. <CharlieD@ADTAKER.COM>
> To: MSVC@PEACH.EASE.LSOFT.COM
> Subject: TMP Files
> Date: 14. kv=ECtna 1998 16:47
>=20
> The app that we're developing has a bad habit of leaving 67MB temp
files
> in the temp directory each time the program is run (not to mention
tons
> on 0k files).  Does anyone know if there is some function that will
> delete resources (such as tmp files) created by the app while the
> program is terminating?
>=20
> Thanks,
>=20
>=20
> ----------------------------
> Charles R. Derk, Jr.
> Software Developer, GraphX, Inc.
> http://www.adtaker.com
> Voice:(610) 797-5515 x131 Fax:(610)797-8740
>=20
>
------------------------------------------------------------------------=

--
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

------------------------------------------------------------------------=

--
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and
archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV =
sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 12:55:28 -0500
From:    "Rolando Romero Acosta." <roly@SOFTEL.COLOMBUS.CU>
Subject: RDO and VC++

I have MSVC ++ 5.0 and I need execute a stored procedure from a remote
SQL Database, but I can't.

DAO don't allow me to do it and I'm thinking that RDO does, but I don't
know how RDO works with  VC++.

--
========================================
Rolando Romero acosta. (Ingeniero Informatico.)
Email:  roly@softel.colombus.cu
Empresa Productora y Comercializadora de Software.
Calle 194 y 7ma Siboney. Playa. Ciudad de la Habana.
CUBA.                        Telefonos: (53-7)21-8082
Fax: (53-7)33-6123                     (53-7)21-8003 ext 140.
========================================

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

Date:    Fri, 15 May 1998 10:40:22 -0700
From:    "Neward, Ted" <ted_neward@USCS.COM>
Subject: Re: STL & istream problem

First problem: There are actually *two* IOStreams libraries in VC5--the
one that shipped with VC4, and the "new" one mandated by the Standard.
Don't believe me? Open up iostream.h, and iostream from the include
directories. The <iostream> version is the one wrapped within the
namespace std, and the name "istream" is actually a typedef for
"basic_istream<char, std::char_traits<char> >". So when you forward
declare it as "class istream", that's not the same as
"basic_istream<char, std::char_traits<char> >", and the compiler
complains. It's not really an "STL" issue, per se, but most likely just
a difference of opinion within the code on which IOStreams library you
want to use. (The difference of opinion comes in because string includes
<istream> which is the Plauger/templatized implementation of IOStreams.)

Ted Neward
Contractor, CableData
C/C++/Java/HTML/Win32 spoken here

> -----Original Message-----
> From: Doug Graham [SMTP:dgraham@XYPOINT.COM]
> Sent: Friday, May 15, 1998 2:06 AM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      [MSVC] STL & istream problem
>
> Can some one help me with an "istream : redefinition; different basic
> types" problem?
>
> In my .h file I am including the STL map, list and string.  I am also
> declaring "using namespace std."
>
> I have to reference a class in a library that does not use STL.  So I
> have a forward declaration for this class in my .h.
>
> When I compile my .cpp I get a redefinition error on the forward
> declarations istream and ostream in the library file.  Why?
>
> Is the compiler getting confused on which istream and ostream to use
> because I am using STL in my project and the library does not use STL?
>
> Any help appreciated.
>
> Doug
>
> ----------------------------------------------------------------------
> ----
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 18:16:17 GMT
From:    "Frank R. Brown" <frank@ARBITRAGE.COM>
Subject: Re: STL & istream problem

Thank you for the info...  I had just been wondering about a similar
problem myself.

Just to clean things up, I have a bunch of code that started out in
mscv++ 2.0 land.  Do I expect it to be safe (and wise) just to change
all my #include <iostream.h>, &c., to #include <iostream>, and add
using namespace std; to my files?
                                          Frank R. Brown

"Neward, Ted" <ted_neward@USCS.COM> wrote:

>First problem: There are actually *two* IOStreams libraries in VC5--the
>one that shipped with VC4, and the "new" one mandated by the Standard.
>Don't believe me?...

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

Date:    Fri, 15 May 1998 11:14:00 -0700
From:    Doug Graham <dgraham@XYPOINT.COM>
Subject: Re: STL & istream problem

Thanks Ted.

I believe you.  I went and looked at both headers.

The istream forward declare is in a library I can't change.  However, I
can change the forward declare to the library class in my project.  So
I tried changing the forward declare to a #include and sure enough that
.cpp file in my project now compiles.

The funny thing is the same offending library class is forward declared
elsewhere in my project and compiles without complaint.  This all seems
capricious to me.

Doug

----------
From:  Neward, Ted [SMTP:ted_neward@USCS.COM]
Sent:  Friday, May 15, 1998 10:40 AM
To:  MSVC@PEACH.EASE.LSOFT.COM
Subject:  Re: STL & istream problem

First problem: There are actually *two* IOStreams libraries in VC5--the
one that shipped with VC4, and the "new" one mandated by the Standard.
Don't believe me? Open up iostream.h, and iostream from the include
directories. The <iostream> version is the one wrapped within the
namespace std, and the name "istream" is actually a typedef for
"basic_istream<char, std::char_traits<char> >". So when you forward
declare it as "class istream", that's not the same as
"basic_istream<char, std::char_traits<char> >", and the compiler
complains. It's not really an "STL" issue, per se, but most likely just
a difference of opinion within the code on which IOStreams library you
want to use. (The difference of opinion comes in because string
includes
<istream> which is the Plauger/templatized implementation of
IOStreams.)

Ted Neward
Contractor, CableData
C/C++/Java/HTML/Win32 spoken here

> -----Original Message-----
> From: Doug Graham [SMTP:dgraham@XYPOINT.COM]
> Sent: Friday, May 15, 1998 2:06 AM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      [MSVC] STL & istream problem
>
> Can some one help me with an "istream : redefinition; different basic
> types" problem?
>
> In my .h file I am including the STL map, list and string.  I am also
> declaring "using namespace std."
>
> I have to reference a class in a library that does not use STL.  So I
> have a forward declaration for this class in my .h.
>
> When I compile my .cpp I get a redefinition error on the forward
> declarations istream and ostream in the library file.  Why?
>
> Is the compiler getting confused on which istream and ostream to use
> because I am using STL in my project and the library does not use
STL?
>
> Any help appreciated.
>
> Doug
>
>
----------------------------------------------------------------------
> ----
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

-----------------------------------------------------------------------
---
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and
archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 11:28:57 -0700
From:    "Neward, Ted" <ted_neward@USCS.COM>
Subject: Re: STL & istream problem

It does to me, too. Although I have seen compilers allow things through
when they shouldn't; for example, BC 4.5 would do some funny things if
you passed around instances of a class
forward-declared-but-never-fully-defined on some occasions. I don't know
why, or the exact semantics of how it happened, but it threw my project
lead for a REAL loop when it happened.

Ted Neward
Contractor, CableData
C/C++/Java/HTML/Win32 spoken here

> -----Original Message-----
> From: dgraham@xypoint.com [SMTP:dgraham@xypoint.com]
> Sent: Friday, May 15, 1998 7:14 PM
> To:   MSVC@PEACH.EASE.LSOFT.COM; ted_neward@USCS.COM
> Subject:      RE: STL & istream problem
>
> Thanks Ted.
>
> I believe you.  I went and looked at both headers.
>
> The istream forward declare is in a library I can't change.  However,
> I
> can change the forward declare to the library class in my project.  So
>
> I tried changing the forward declare to a #include and sure enough
> that
> .cpp file in my project now compiles.
>
> The funny thing is the same offending library class is forward
> declared
> elsewhere in my project and compiles without complaint.  This all
> seems
> capricious to me.
>
> Doug
>
> ----------
> From:  Neward, Ted [SMTP:ted_neward@USCS.COM]
> Sent:  Friday, May 15, 1998 10:40 AM
> To:  MSVC@PEACH.EASE.LSOFT.COM
> Subject:  Re: STL & istream problem
>
> First problem: There are actually *two* IOStreams libraries in
> VC5--the
> one that shipped with VC4, and the "new" one mandated by the Standard.
> Don't believe me? Open up iostream.h, and iostream from the include
> directories. The <iostream> version is the one wrapped within the
> namespace std, and the name "istream" is actually a typedef for
> "basic_istream<char, std::char_traits<char> >". So when you for
ward
> declare it as "class istream", that's not the same as
> "basic_istream<char, std::char_traits<char> >", and the compile
r
> complains. It's not really an "STL" issue, per se, but most likely
> just
> a difference of opinion within the code on which IOStreams library you
> want to use. (The difference of opinion comes in because string
> includes
> <istream> which is the Plauger/templatized implementation of
> IOStreams.)
>
> Ted Neward
> Contractor, CableData
> C/C++/Java/HTML/Win32 spoken here
>
> > -----Original Message-----
> > From: Doug Graham [SMTP:dgraham@XYPOINT.COM]
> > Sent: Friday, May 15, 1998 2:06 AM
> > To:   MSVC@PEACH.EASE.LSOFT.COM
> > Subject:      [MSVC] STL & istream problem
> >
> > Can some one help me with an "istream : redefinition; different
> basic
> > types" problem?
> >
> > In my .h file I am including the STL map, list and string.  I am
> also
> > declaring "using namespace std."
> >
> > I have to reference a class in a library that does not use STL.  So
> I
> > have a forward declaration for this class in my .h.
> >
> > When I compile my .cpp I get a redefinition error on the forward
> > declarations istream and ostream in the library file.  Why?
> >
> > Is the compiler getting confused on which istream and ostream to use
> > because I am using STL in my project and the library does not use
> STL?
> >
> > Any help appreciated.
> >
> > Doug
> >
> >
> ----------------------------------------------------------------------
> > ----
> > The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> > international's LISTSERV(R) software.  For subscription info and
> > archives,
> > see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> > sales
> > information, see http://www.lsoft.com or write to SALES@LSOFT.COM.
>
> ----------------------------------------------------------------------
> -
> ---
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 11:38:59 -0700
From:    "Neward, Ted" <ted_neward@USCS.COM>
Subject: Re: STL & istream problem

Depends on what your code is doing. If you're just *using* the various
IOStreams classes, then yes, it's no problem to convert over. I've never
run into an issue where something written to work with the "old"
IOStreams library didn't work with the "new" IOStreams library. If
you're writing your own IOStreams-derived classes (as I've done now, for
four different compiler/platforms), though, you're best off holding off
on flipping over to the "new" library until you have to, since it'll
necessitate a COMPLETE rewrite of your streambuf/istream/ostream-derived
classes, in most cases. OTOH, if you've written an IOStreams extension
class, the "new" library will probably come pretty easy to you....

Anybody interested in the "new" IOStreams stuff, feel free to email me.
It's basically the same old IOStreams, except they templatized it on two
parameters--the type to stream out (char vs. wchar_t being the two most
popular uses), and the way that type behaves (this is the
"char_traits<>" template).

Ted Neward
Contractor, CableData
C/C++/Java/HTML/Win32 spoken here

> -----Original Message-----
> From: Frank R. Brown [SMTP:frank@ARBITRAGE.COM]
> Sent: Friday, May 15, 1998 7:16 PM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      Re: [MSVC] STL & istream problem
>
> Thank you for the info...  I had just been wondering about a similar
> problem myself.
>
> Just to clean things up, I have a bunch of code that started out in
> mscv++ 2.0 land.  Do I expect it to be safe (and wise) just to change
> all my #include <iostream.h>, &c., to #include <iostream>, and
add
> using namespace std; to my files?
>                                           Frank R. Brown
>
> "Neward, Ted" <ted_neward@USCS.COM> wrote:
>
> >First problem: There are actually *two* IOStreams libraries in
> VC5--the
> >one that shipped with VC4, and the "new" one mandated by the
> Standard.
> >Don't believe me?...
>
> ----------------------------------------------------------------------
> ----
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Fri, 15 May 1998 16:15:27 -0700
From:    Doug Graham <dgraham@XYPOINT.COM>
Subject: SQL Server for VC++

This may be a little off list.

Can anyone tell me where to find instructions for installing SQL Server
on a single PC (NT Workstation).  I want to start writing programs
around SQL Server.  To do this I want to be able to work on a single
PC.  When I install SQL Server now I have trouble getting it right.
 Like I can't see my server which should be my PC.  I have a few books
but they don't cover this type of install.

Any help appreciated.

TIA, Doug

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

Date:    Fri, 15 May 1998 16:23:01 -0700
From:    "Neward, Ted" <ted_neward@USCS.COM>
Subject: Re: SQL Server for VC++

If you installed it on your PC without an error, you need to (if it's an
NT Workstation) start the SQLServer services. Control Panel | Services,
and the SQLServer services will (I bet) be all set to "manual". Set them
to "Automatic", and they should start up.

Don't know if it's 95; never tried that. (What would be the point?)

Ted Neward
Contractor, CableData
C/C++/Java/HTML/Win32 spoken here

> -----Original Message-----
> From: Doug Graham [SMTP:dgraham@XYPOINT.COM]
> Sent: Saturday, May 16, 1998 12:15 AM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      [MSVC] SQL Server for VC++
>
> This may be a little off list.
>
> Can anyone tell me where to find instructions for installing SQL
> Server
> on a single PC (NT Workstation).  I want to start writing programs
> around SQL Server.  To do this I want to be able to work on a single
> PC.  When I install SQL Server now I have trouble getting it right.
>  Like I can't see my server which should be my PC.  I have a few books
> but they don't cover this type of install.
>
> Any help appreciated.
>
> TIA, Doug
>
> ----------------------------------------------------------------------
> ----
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription info and
> archives,
> see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV
> sales
> information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

End of MSVC Digest - 14 May 1998 to 15 May 1998 (#1998-131)
***********************************************************
--
        There are these few times I feel lonely for you.
        But I know this shade of blue will soon pass through!
        I must be strong without you by my side!
        I can see forever you are my light.

※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


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

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