Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSend values from Exe to Browser Pin
tgm.arjun093-Jul-09 16:59
tgm.arjun093-Jul-09 16:59 
AnswerRe: Send values from Exe to Browser Pin
David Crow3-Jul-09 17:35
David Crow3-Jul-09 17:35 
AnswerRe: Send values from Exe to Browser Pin
Hamid_RT4-Jul-09 0:00
Hamid_RT4-Jul-09 0:00 
QuestionConstructor Exception Pin
hpjchobbes3-Jul-09 9:08
hpjchobbes3-Jul-09 9:08 
AnswerRe: Constructor Exception Pin
Stuart Dootson3-Jul-09 9:26
professionalStuart Dootson3-Jul-09 9:26 
QuestionIE automation [modified] Pin
eoloe3-Jul-09 8:08
eoloe3-Jul-09 8:08 
AnswerRe: IE automation Pin
Stuart Dootson3-Jul-09 8:47
professionalStuart Dootson3-Jul-09 8:47 
Questionsimple template question Pin
minkowski3-Jul-09 6:53
minkowski3-Jul-09 6:53 
Hi,

I typed in the following code and found it to compile and run ok (using VS 2003).
<br />
#include < iostream ><br />
using namespace std;<br />
   <br />
template <class T , class U> void  swapa(T & a, U & b)<br />
{<br />
	cout << a << " " << b;<br />
}<br />
 <br />
int main()<br />
{   <br />
<br />
   int x = 3;<br />
   const double y =5.234;<br />
   swapa < int , const  /* should'nt the "double" be explicitly stated here? */  > (x, y);<br />
     <br />
   return 0;<br />
}<br />


I am surprised of this as I did not declare the type explicitly in the invocation of swapa() where the comment is. Can someone pls explain?

Many thanks!
QuestionRe: simple template question Pin
CPallini3-Jul-09 7:56
mveCPallini3-Jul-09 7:56 
AnswerRe: simple template question Pin
Stuart Dootson3-Jul-09 8:39
professionalStuart Dootson3-Jul-09 8:39 
QuestionSockets trouble in Visual Studio 2008 Pin
Manmohan293-Jul-09 5:07
Manmohan293-Jul-09 5:07 
AnswerRe: Sockets trouble in Visual Studio 2008 Pin
«_Superman_»3-Jul-09 5:10
professional«_Superman_»3-Jul-09 5:10 
AnswerRe: Sockets trouble in Visual Studio 2008 Pin
Stuart Dootson3-Jul-09 5:31
professionalStuart Dootson3-Jul-09 5:31 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Manmohan293-Jul-09 9:10
Manmohan293-Jul-09 9:10 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Stuart Dootson3-Jul-09 9:21
professionalStuart Dootson3-Jul-09 9:21 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Manmohan293-Jul-09 9:39
Manmohan293-Jul-09 9:39 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Stuart Dootson3-Jul-09 9:53
professionalStuart Dootson3-Jul-09 9:53 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Manmohan293-Jul-09 10:21
Manmohan293-Jul-09 10:21 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Stuart Dootson3-Jul-09 10:28
professionalStuart Dootson3-Jul-09 10:28 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Stuart Dootson3-Jul-09 10:31
professionalStuart Dootson3-Jul-09 10:31 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
Manmohan293-Jul-09 10:48
Manmohan293-Jul-09 10:48 
GeneralRe: Sockets trouble in Visual Studio 2008 Pin
SquiZZlo31-Aug-09 14:48
SquiZZlo31-Aug-09 14:48 
AnswerRe: Sockets trouble in Visual Studio 2008 Pin
SquiZZlo1-Sep-09 5:11
SquiZZlo1-Sep-09 5:11 
QuestionMake print dialog for CHtmlView modal? Pin
Keith Worden3-Jul-09 4:58
Keith Worden3-Jul-09 4:58 
Questionhow to show a .ico file at the window title bar Pin
Rajib Podder3-Jul-09 4:35
Rajib Podder3-Jul-09 4:35 

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.