荔园在线

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

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


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

There are 15 messages totalling 759 lines in this issue.

Topics of the day:

  1. Please forward this message to abuse@simplenet.com
  2. Q: How to create a reusable widget in MFC ?
  3. 回复:      CSocket or CAsyncSocket (2)
  4. Read user attributes from Exchange (2)
  5. Different name on task bar and title bar (2)
  6. TMP Files
  7. How to get to the sleep() function...
  8. Porting 16 to 32bit MSoutlin.vbx problem
  9. help in display
 10. =?iso-8859-1?B?u9i4tDogICAgICBSZTogu9i4tDogICAgICBDU29ja2V0IG9yIENBc3lu?=
     =?iso-8859-1?B?Y1NvY2tldA==?=
 11. How to force to set an ATL control's height
 12. STL & istream problem

--------------------------------------------------------------------------
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:    Thu, 14 May 1998 00:24:02 PDT
From:    Tom Jones <z0001334@HOTMAIL.COM>
Subject: Re: Please forward this message to abuse@simplenet.com

From what I can work out, it seems to be that we are requested to e-mail
abouse@simplenet.com to get them to remove the page


>Date:         Wed, 13 May 1998 13:53:35 -0500
>Reply-To: Microsoft Visual C++ programmers list
<MSVC@PEACH.EASE.LSOFT.COM>
>From: "Michael J. C. Gorecki" <MJGorecki@EARTHLINK.NET>
>Subject:      Re: Please forward this message to abuse@simplenet.com
>To: MSVC@PEACH.EASE.LSOFT.COM
>
>At 19:28 13-05-98 +0100, you wrote:
>>Please forward this message to abuse@simplenet.com.
>>=====================================
>>
>>I would like to complain about some of the content stored on
>>tfifc.simplenet.com.  The specific page that I am talking about is
>>
>>http://tfifc.simplenet.com/enclave.html
>>http://www.tfifc.simplenet.com/wraithz/
>
>*Why the f&ck is this posted here?* If the person is real mad at the
site,
>why post the URL? And why post to a mailing list? _Please take it
off-line_
>Preferably down somewhere around AL where they give a r*t *ss.
>
>Sorry for the comment, we now return you to your regular scheduled
email. :-)
>--
>Mike J. C. Gorecki
>MJGorecki@earthlink.net
>"I am not paranoid, the truth is out there."
>
>--------------------------------------------------------------------------
>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.
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Date:    Thu, 14 May 1998 10:00:56 +0200
From:    Dieter Oberkofler <dtr@LEADINGBITS.AT>
Subject: Q: How to create a reusable widget in MFC ?

Hello to all MFCers!

I was wondering what the "best" method might be to create a widget
(let's say for example a special logarithmic progress indicator) that
should be easily (re)usable and as easy to construct as possible.

I can see several methods of doing this but cannot find any clear
documentation that shows advantages and disadvantages.

(1) I might try to create a OLE, OCX, ActiveX control. This seems quite
complex and to generic especially if I only need to reuse the component
in MFC. I also do not like the to complex interface compared to a nicely
designed class interface.

(2) I can create a child window that is encapsulated in a CWnd derived class
and manage the control as a Window.

(3) I can go for a simple class that just behaves like a CWnd class but
in reality is only a internally defined region of a window that knows how
to redraw itself, to move itself etc.

(4) I can try to create a class that is derived from a "native" control
class but draws itself.

and some other even more unusual methods seem possible ...

Can someone give me some directions on how to compare all this available
methods or point me to some useful existing documentation.
The best would be an available example that shows some or all of this
possibilities.

Regards and thanks for any help in advance

Dieter Oberkofler
Director of Engineering

------------------------------------------------------------------
LEADING BITS GmbH.               Tel        (+43-1) 503 66 44 - 22
Favoritenstrasse 16              Fax        (+43-1) 503 66 44 - 44
A-1040 Vienna                    E-mail         dtr@leadingbits.at
Austria                          Compuserve            100141.1314
------------------------------------------------------------------

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

Date:    Thu, 14 May 1998 10:20:45 +0100
From:    Vasco Veloso <vveloso@NFIVE.COM>
Subject: Re: 回复:      CSocket or CAsyncSocket

Ramonator:

In MFC, it would be something like this:

CSocket socket;
if (socket.Create(0, SOCK_STREAM, "194.65.18.225"))
{
        if (socket.Connect("mail.xpto.com", 110))
        {
                // connected. do whatever you want
                socket.Close();
        }
}

Use your local address in CSocket::Create and then your targets' address
in CSocket::Connect. I believe the latter can receive either an hostname
or an IP. For further info, please consult Microsofts' documentation.

HTH,
Vasco

Ramonator wrote:
>
> Is there some way I can tell whether the info typed in the box is an addres
s
> or a hostname?
> also is there any MFC ways of doing this, that take less code?
>
> thanks
>
> Chuan Huang wrote:
>
> >  LPHOSTENT lpHostEnt ;
> >   lpHostEnt = gethostbyname(strDns);
> > strIp = inet_ntoa(*(LPIN_ADDR)*(lpHostEnt->h_addr_list));
> >
> > DWORD dwIp = inet_addr(strIp);
> >    lpHostEnt = gethostbyaddr((LPSTR)&dwIP , 4, AF_INET);
> > strDns = lpHostEnt->h_name;
> >
> >
--
Vasco Correia Veloso

Research & Development     | Number Five Software

vveloso@nfive.com          | mobile: +351 936 940 579
http://www.cats.pt/vveloso | office: +351 61 860 450
                           | DDI   : +351 61 860 468

"Art is long, life short, judgment difficult, opportunity transient."
 - Goethe, book vii, chap. ix

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

Date:    Thu, 14 May 1998 14:25:55 +0100
From:    Brian Jacobsen <bjacobsen@MERLINHOLM.DK>
Subject: Read user attributes from Exchange

Hi all,

I am trying to get the attributes for all the users on my Exchange
Server. I don't know how to do this, but I found this call
IExchangeManageStore::GetMailboxTable(), which should return a list of
the users. Unfortunate is requires edkmdb.h, and I can't find this
header file. So far I've looked all over MS homepage, MSVC Enterprise
CD's, BackOffice CD's, HotBot, and all I find is references to the file.
Does anyone have an idea where to find this file, or perhaps have a
better way to get the user attributes, maybe IMAPIProp::GetProps()? I
feel like I am banging my head against the wall, so any hint is
appreciated.

TIA

Brian

----------------------------------
Brian Jacobsen
Merlinholm Systems Aps

Email : bjacobsen@merlinholm.dk
Phone : +45 44 88 99 74

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

Date:    Thu, 14 May 1998 14:34:59 +0100
From:    =?ISO-8859-1?Q?Mats M錸hav ?= <mats.manhav@SWIPNET.SE>
Subject: Different name on task bar and title bar

Environment: MSVC 5.0 (sp3) Win NT 4.0 (sp3)
Hello,

Is it possible to have different captions in the Task bar icon of my
program and the MainFrame window. I would like to have a shorter name
in the taskbar icon.

Best regards,
Mats
mailto:mats.manhav@swipnet.se

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

Date:    Thu, 14 May 1998 10:47:21 -0400
From:    "Charles R. Derk, Jr." <CharlieD@ADTAKER.COM>
Subject: TMP Files

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

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

Date:    Tue, 5 May 1998 14:11:23 -0400
From:    "A. F. Cano" <afc@TERI.SUPERLINK.NET>
Subject: Re: How to get to the sleep() function...

>
> To begin with, this prototype appears in the VC 5.0 stdlib.h:
>
> _CRTIMP void __cdecl _sleep(unsigned long);

Yes, I had seen that.  As I said I did go looking into the *.h files...

> So apparently you have other problems beyond an undefined symbol.
> Perhaps your development environment is trashed, somehow, so that it
> can't find the standard libraries?

Well, since they're explicitely enumerated in the makefile and I'm not
using a "development environment", it must be something else.  Once I
found out that if I had wanted to force the unix code into "projects"
I would have had to separate the multiple programs into more than one
project (because of the one target/one project limitation),  I decided
to just use the makefile.

At first, I assumed that the compiler was smart enough to find the
default libs, so I only added wsock32.lib.  It was then that I
encountered this problem.  Thinking that maybe some other non-standard
lib is required, I added /nodefaultlib to the linker options and added
explicitely the c library, as well as kernel32.lib.  There was absolutely
no change in behavior, so it appears that if left on its own, the compiler
does in fact find the default libraries.  I then added other libs that
didn't make any difference.

> [about how close the MS compiler adheres to the standard]

Thanks for this info.

> In this case, you don't have mismatched types--you have an undefined
> external symbol. You need to deal with the error, not gripe about it. I

Well, yes.  That was why I went digging into the *.h files and the
docs.  There, I found out that the new and improved Sleep() is in
kernel32.lib, so I added that to the list of libraries.  Why doesn't this
solve the problem?

> suspect in this case, the issue is NOT with the standard library not
> behaving as expected, but your project's settings not behaving as
> expected. I understand it can be quite frustrating to have to deal with

Well, since I don't have a project (just the makefile and the source
files) it's hard to believe that it could be project settings.  Unless
of course the compiler won't work without some obscure data set from
the GUI interface.

> errors that seem to make no sense (believe me, I've done my fair share
> of head-scratching, "What the HELL is going on here?" debugging), but to
> simply blame Microsoft or the compiler is simply falling back on a
> tired, old cliche--"It must be the compiler", which, loosely translated,

Actually, more exactly the linker, since the program produces perfectly
good *.obj files.  Or maybe not, maybe the output of the compiler is
confusing the linker...  BTW, these programs compile and link just fine
on Solaris and Linux.

> means, "Well, it CAN'T be ME that's the problem...."
>
> You don't have to write everything the MS way--if your code is
> POSIX-compliant, then it should compile flawlessly under VC5. If it's
> not POSIX-compliant, then there's no guarantee it would compile
> flawlessly ANYWHERE--from Solaris to NT to Linux.

See above.

> (Sorry for the rant, but I really despise people blaming the compiler or
> the library for their own mistakes. I've done it many times myself, and
> I've always been wrong.)
>
> Ted Neward
> Contractor, CableData
> C/C++/Java/HTML/Win32 spoken here
>

Well, if you see my mistake, I'd appreciate it if you pointed it out.
After all, that's why I wrote to the list in the first place, to avail
myself of the Windows/NT expertise here.  From my (Unix) point of view,
the code compiles,  the function in question is a standard function,
the relevant libraries (according to the docs) have been included in
the makefile, yet I get the "unresolved external symbol" error message.

Since this code works on Solaris and Linux, what microsoft-specific
detail am I missing?

Augustine Cano

> > -----Original Message-----
> > From: A. F. Cano [SMTP:afc@TERI.SUPERLINK.NET]
> > Sent: Tuesday, May 05, 1998 5:02 PM
> > To:   MSVC@PEACH.EASE.LSOFT.COM
> > Subject:      [MSVC] How to get to the sleep() function...
> >
> > Greetings,
> >
> > I want to compile a series of programs written for Unix under MSVC.
> > I've modified the makefile to include all the non-standard MS
> > libraries,
> > but still I keep getting an undefined external symbol _sleep.  I've
> > looked through the H files and found that according to MS, sleep() is
> > obsolete and I should use Sleep() instead, so I replaced one call to
> > sleep() with Sleep() just to test and I got an undefined _Sleep().
> >
> > The docs say that Sleep() is in kernel32.lib.  Kernel32.lib is
> > explicitely included in the makefile libs list.
> >
> > I've searched old issues of this mailing list and found nothing
> > that would help solve this problem.
> >
> > What is the trick to make Microsoft's compiler/linker work in a
> > standard fashion?  Frankly, if at a lower level Bill & co want
> > to replace sleep() with MS_totally_incompatible_and_a_kludge_because_
> > we_messed_up_our_os_design_sleep(), it should be transparent to
> > the users.  If this is a matter of MS-specific new-fangled types,
> > why can't a few #defines provide for compatibility?  In any case,
> > mismatched types should give you a warning or an error, not an
> > undefined
> > symbol.
> >
> > Anyway, I'm losing my patience.  Why can't a standard library
> > function work as expected? yes... I know pretty much nothing MS
> > does is standard...
> >
> > BTW, this is MSVC++ 5.0 and all libraries are static (no DLLs).
> >
> > Sorry for the rant, any help would be more than welcome.  I would
> > prefer not to have to re-write everything the MS way.
> >
> > Augustine Cano
> >

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

Date:    Thu, 14 May 1998 19:14:53 +0200
From:    Mark Usher <marku@MAGNET.AT>
Subject: Porting 16 to 32bit MSoutlin.vbx problem

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

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

Date:    Thu, 14 May 1998 15:42:48 -0500
From:    Ramonator <ramon@CUTEANDCUDDLY.COM>
Subject: Re: 回复:      CSocket or CAsyncSocket

that is also useful information that I will use later on, but for right now, I
need
functions for DNS lookups, the gethostbyname works good, but when I try
to get the host name by IP address, i get errors.

thanks

Vasco Veloso wrote:

> Ramonator:
>
> In MFC, it would be something like this:
>
> CSocket socket;
> if (socket.Create(0, SOCK_STREAM, "194.65.18.225"))
> {
>         if (socket.Connect("mail.xpto.com", 110))
>         {
>                 // connected. do whatever you want
>                 socket.Close();
>         }
> }
>
> Use your local address in CSocket::Create and then your targets' address
> in CSocket::Connect. I believe the latter can receive either an hostname
> or an IP. For further info, please consult Microsofts' documentation.
>
> HTH,
> Vasco
>
> Ramonator wrote:
> >
> > Is there some way I can tell whether the info typed in the box is an a
ddress
> > or a hostname?
> > also is there any MFC ways of doing this, that take less code?
> >
> > thanks
> >
> > Chuan Huang wrote:
> >
> > >  LPHOSTENT lpHostEnt ;
> > >   lpHostEnt = gethostbyname(strDns);
> > > strIp = inet_ntoa(*(LPIN_ADDR)*(lpHostEnt->h_addr_list));
> > >
> > > DWORD dwIp = inet_addr(strIp);
> > >    lpHostEnt = gethostbyaddr((LPSTR)&dwIP , 4, AF_INET);
> > > strDns = lpHostEnt->h_name;
> > >
> > >
> --
> Vasco Correia Veloso
>
> Research & Development     | Number Five Software
>
> vveloso@nfive.com          | mobile: +351 936 940 579
> http://www.cats.pt/vveloso | office: +351 61 860 450
>                            | DDI   : +351 61 860 468
>
> "Art is long, life short, judgment difficult, opportunity transient."
>  - Goethe, book vii, chap. ix
>
> --------------------------------------------------------------------------
> 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:    Thu, 14 May 1998 14:20:35 -0700
From:    "Neward, Ted" <ted_neward@USCS.COM>
Subject: Re: Read user attributes from Exchange

Is it somewhere in the Exchange Server installation directory? I notice
MS does that now with some of their BackOffice products (SQLServer, MTS,
IIS, etc.)....

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

> -----Original Message-----
> From: Brian Jacobsen [SMTP:bjacobsen@MERLINHOLM.DK]
> Sent: Thursday, May 14, 1998 2:26 PM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      [MSVC] Read user attributes from Exchange
>
> Hi all,
>
> I am trying to get the attributes for all the users on my Exchange
> Server. I don't know how to do this, but I found this call
> IExchangeManageStore::GetMailboxTable(), which should return a list of
> the users. Unfortunate is requires edkmdb.h, and I can't find this
> header file. So far I've looked all over MS homepage, MSVC Enterprise
> CD's, BackOffice CD's, HotBot, and all I find is references to the
> file.
> Does anyone have an idea where to find this file, or perhaps have a
> better way to get the user attributes, maybe IMAPIProp::GetProps()? I
> feel like I am banging my head against the wall, so any hint is
> appreciated.
>
> TIA
>
> Brian
>
> ----------------------------------
> Brian Jacobsen
> Merlinholm Systems Aps
>
> Email : bjacobsen@merlinholm.dk
> Phone : +45 44 88 99 74
>
> ----------------------------------------------------------------------
> ----
> 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:    Thu, 14 May 1998 14:23:14 -0700
From:    "Neward, Ted" <ted_neward@USCS.COM>
Subject: Re: Different name on task bar and title bar

It *might* be as simple as doing a SetWindowText() when IsIconic() =
comes
back as TRUE, but I don't know if being minimized on the taskbar is the
same as being "iconic" in the Windows95 UI shell. (I seem to remember
that it's not.) You might just open a logfile within your app, and note
the X/Y/Width/Height settings of your window every second or so, then
experiment running it to see what the values are when its maximized,
minimized, and so forth.

HTH....

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

> -----Original Message-----
> From: Mats M=E5nhav  [SMTP:mats.manhav@SWIPNET.SE]
> Sent: Thursday, May 14, 1998 2:35 PM
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      [MSVC] Different name on task bar and title bar
>=20
> Environment: MSVC 5.0 (sp3) Win NT 4.0 (sp3)
> Hello,
>=20
> Is it possible to have different captions in the Task bar icon of my
> program and the MainFrame window. I would like to have a shorter name
> in the taskbar icon.
>=20
> Best regards,
> Mats
> mailto:mats.manhav@swipnet.se
>=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:    Thu, 14 May 1998 12:07:41 +0530
From:    "K.V.S.Jagannadha Rao" <jaggu@ECE.IISC.ERNET.IN>
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

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

Date:    Fri, 15 May 1998 08:15:17 +0800
From:    Chuan Huang <chhuang@BLUE.HUST.EDU.CN>
Subject: =?iso-8859-1?B?u9i4tDogICAgICBSZTogu9i4tDogICAgICBDU29ja2V0IG9yIENBc3lu
?=
         =?iso-8859-1?B?Y1NvY2tldA==?=

-----Original Message-----
发件人: Ramonator <ramon@CUTEANDCUDDLY.COM>
收件人: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
日期: 1998年5月15日 3:44
主题: Re: 回复: CSocket or CAsyncSocket


>that is also useful information that I will use later on, but for right
now, I
>need
>functions for DNS lookups, the gethostbyname works good, but when I try
>to get the host name by IP address, i get errors.

    Maybe the Ip not have Dns name ?
>
>thanks
>
>Vasco Veloso wrote:
>
>> Ramonator:
>>
>> In MFC, it would be something like this:
>>
>> CSocket socket;
>> if (socket.Create(0, SOCK_STREAM, "194.65.18.225"))
>> {
>>         if (socket.Connect("mail.xpto.com", 110))
>>         {
>>                 // connected. do whatever you want
>>                 socket.Close();
>>         }
>> }
>>
>> Use your local address in CSocket::Create and then your targets' addres
s
>> in CSocket::Connect. I believe the latter can receive either an hostnam
e
>> or an IP. For further info, please consult Microsofts' documentation.
>>
>> HTH,
>> Vasco
>>
>> Ramonator wrote:
>> >
>> > Is there some way I can tell whether the info typed in the box is
an
address
>> > or a hostname?
>> > also is there any MFC ways of doing this, that take less code?
>> >
>> > thanks
>> >
>> > Chuan Huang wrote:
>> >
>> > >  LPHOSTENT lpHostEnt ;
>> > >   lpHostEnt = gethostbyname(strDns);
>> > > strIp = inet_ntoa(*(LPIN_ADDR)*(lpHostEnt->h_addr_list));
>> > >
>> > > DWORD dwIp = inet_addr(strIp);
>> > >    lpHostEnt = gethostbyaddr((LPSTR)&dwIP , 4, AF_INET);
>> > > strDns = lpHostEnt->h_name;
>> > >
>> > >
>> --
>> Vasco Correia Veloso
>>
>> Research & Development     | Number Five Software
>>
>> vveloso@nfive.com          | mobile: +351 936 940 579
>> http://www.cats.pt/vveloso | office: +351 61 860 450
>>                            | DDI   : +351 61 860 468
>>
>> "Art is long, life short, judgment difficult, opportunity transient."
>>  - Goethe, book vii, chap. ix
>>
>> -----------------------------------------------------------------------
--
-
>> 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 sale
s
>> 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:    Thu, 14 May 1998 03:16:17 +0900
From:    Hai Li <haili@PUBLIC.BTA.NET.CN>
Subject: How to force to set an ATL control's height

Hi,

I want to force to set an ATL control's height, but allow user to change
the width. how to do?

Thanks in advance.

Hai Li
_______________________________________________
Hai Li           mailto:haili@public.bta.net.cn
Zeal SoftStudio (P.R. China)
http://zealsoft.hypermart.net/
http://www.nease.net/~zealsoft/indexc.html
http://members.tripod.com/~zealsoft/
Do you need ActiveX/VBX Controls?
Download sharewares & freewares from my homepage!

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

Date:    Thu, 14 May 1998 18:06:00 -0700
From:    Doug Graham <dgraham@XYPOINT.COM>
Subject: 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

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

End of MSVC Digest - 13 May 1998 to 14 May 1998 (#1998-130)
***********************************************************
--
        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软件 网络书店