Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Networking API Pin
helsten217-Aug-02 11:39
helsten217-Aug-02 11:39 
GeneralRe: Networking API Pin
dlhson17-Aug-02 9:04
dlhson17-Aug-02 9:04 
GeneralRe: Networking API Pin
helsten217-Aug-02 9:57
helsten217-Aug-02 9:57 
GeneralControlling iostream display behaviour. Pin
oRion16-Aug-02 20:45
oRion16-Aug-02 20:45 
GeneralRe: Controlling iostream display behaviour. Pin
Sijin17-Aug-02 1:21
Sijin17-Aug-02 1:21 
GeneralRe: Controlling iostream display behaviour. Pin
oRion17-Aug-02 2:37
oRion17-Aug-02 2:37 
GeneralRe: Controlling iostream display behaviour. Pin
Sijin18-Aug-02 20:51
Sijin18-Aug-02 20:51 
General.fon file format Pin
surbinsho16-Aug-02 18:59
surbinsho16-Aug-02 18:59 
GeneralRe: .fon file format Pin
Roger Allen19-Aug-02 5:04
Roger Allen19-Aug-02 5:04 
GeneralRe: Invalidate problem Pin
Daniel Ferguson16-Aug-02 21:14
Daniel Ferguson16-Aug-02 21:14 
GeneralRe: Invalidate problem Pin
Zayax16-Aug-02 23:07
Zayax16-Aug-02 23:07 
GeneralRe: Invalidate problem Pin
Anonymous17-Aug-02 4:12
Anonymous17-Aug-02 4:12 
GeneralRe: Invalidate problem Pin
dlhson17-Aug-02 9:09
dlhson17-Aug-02 9:09 
Questionhow to get access to accept null values through code? Pin
nss16-Aug-02 17:09
nss16-Aug-02 17:09 
AnswerRe: how to get access to accept null values through code? Pin
Todd Smith16-Aug-02 17:32
Todd Smith16-Aug-02 17:32 
GeneralRe: how to get access to accept null values through code? Pin
nss16-Aug-02 18:08
nss16-Aug-02 18:08 
GeneralRe: how to get access to accept null values through code? Pin
nss16-Aug-02 18:13
nss16-Aug-02 18:13 
GeneralA strange compiler error C2440 Pin
IFREETA16-Aug-02 13:56
IFREETA16-Aug-02 13:56 
Here is my program.I compile it in Visual C++ .Net(VC7) and get a C2440:
<br />
// All needed headers were included.<br />
#include "stdafx.h"<br />
<br />
<br />
<br />
using namespace std;<br />
<br />
<br />
class b<br />
{<br />
protected:<br />
	int id;<br />
<br />
public:<br />
	b( int i )<br />
		:<br />
	id(i)<br />
	{<br />
		cout << "ctor of id:" << id << " was called." << endl;<br />
	}<br />
<br />
	~b()<br />
	{<br />
		cout << "dtor of id:" << id << " was called." << endl;<br />
	}<br />
<br />
	b( const b & x)<br />
		:<br />
	id(x.id)<br />
	{<br />
	}<br />
<br />
	const b operator=( const b & x )<br />
	{<br />
		id=x.id;<br />
		return *this;<br />
	}<br />
<br />
		<br />
};<br />
<br />
typedef auto_ptr<b>	pb;<br />
typedef vector<pb>	vpb;<br />
<br />
<br />
int main( void )<br />
{<br />
	pb	t(new b(1));<br />
<br />
	vpb v;<br />
<br />
	v.push_back( t );// //error C2440: 'initializing' : cannot convert from 'const pb' to 'std::auto_ptr<_Ty>' with [ _Ty=b ]<br />
<br />
	return 0;<br />
}

Is it a bug of VC7 or anything wrong in my codes?

You don't know what you've got till it's gone.
GeneralRe: A strange compiler error C2440 Pin
Daniel Lohmann16-Aug-02 21:34
Daniel Lohmann16-Aug-02 21:34 
GeneralRe: A strange compiler error C2440 Pin
Stuart Dootson17-Aug-02 0:30
professionalStuart Dootson17-Aug-02 0:30 
GeneralRe: A strange compiler error C2440 Pin
Daniel Lohmann17-Aug-02 11:27
Daniel Lohmann17-Aug-02 11:27 
GeneralRe: A strange compiler error C2440 Pin
IFREETA17-Aug-02 1:57
IFREETA17-Aug-02 1:57 
GeneralRe: A strange compiler error C2440 Pin
dlhson17-Aug-02 9:12
dlhson17-Aug-02 9:12 
GeneralNot so simple Pin
IFREETA17-Aug-02 3:28
IFREETA17-Aug-02 3:28 
GeneralRe: Not so simple Pin
Daniel Lohmann17-Aug-02 11:30
Daniel Lohmann17-Aug-02 11:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.