Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TXT-File Pin
Joan M5-Dec-02 1:04
professionalJoan M5-Dec-02 1:04 
Generaldatabase problem Pin
udayGovekar4-Dec-02 23:43
udayGovekar4-Dec-02 23:43 
GeneralIMSAdminBase Pin
Hans Ruck4-Dec-02 23:36
Hans Ruck4-Dec-02 23:36 
GeneralRe: IMSAdminBase Pin
Michael P Butler4-Dec-02 23:55
Michael P Butler4-Dec-02 23:55 
GeneralRe: IMSAdminBase Pin
Hans Ruck5-Dec-02 0:07
Hans Ruck5-Dec-02 0:07 
GeneralRe: IMSAdminBase Pin
Michael P Butler5-Dec-02 0:14
Michael P Butler5-Dec-02 0:14 
GeneralRe: IMSAdminBase Pin
Hans Ruck5-Dec-02 0:25
Hans Ruck5-Dec-02 0:25 
GeneralRe: IMSAdminBase Pin
Michael P Butler5-Dec-02 0:35
Michael P Butler5-Dec-02 0:35 
GeneralRe: IMSAdminBase Pin
Hans Ruck5-Dec-02 0:46
Hans Ruck5-Dec-02 0:46 
GeneralVC++ Template problem Pin
tom764-Dec-02 23:25
tom764-Dec-02 23:25 
GeneralRe: VC++ Template problem Pin
Christian Graus4-Dec-02 23:31
protectorChristian Graus4-Dec-02 23:31 
GeneralRe: VC++ Template problem Pin
tom764-Dec-02 23:42
tom764-Dec-02 23:42 
GeneralRe: VC++ Template problem Pin
Christian Graus5-Dec-02 6:28
protectorChristian Graus5-Dec-02 6:28 
GeneralRe: VC++ Template problem Pin
tom765-Dec-02 7:04
tom765-Dec-02 7:04 
GeneralRe: VC++ Template problem Pin
Christian Graus5-Dec-02 7:25
protectorChristian Graus5-Dec-02 7:25 
Oh, I thought you were trying to do a swap. This is an add, and I'm not sure it has any value over simply adding without the function call. It will not compile if the type in question does not have an operator +. Because your return type is 'int' it also will not compile unless the template argument is a number, and it will give warnings because it will strip floating point numbers down to an int.

Swap would look like this ( except you'd add the template arguments being stripped by the site because neither of us checked 'show message as-is' )

template
void Temp1(X &A, X &B)
{
X Var;
Var = A;
B = A;
A = Var;
}

Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralFrame Control Pin
jmgir4-Dec-02 22:50
jmgir4-Dec-02 22:50 
QuestionHow to put my working application's icon in the notification area? Pin
julych4-Dec-02 22:26
julych4-Dec-02 22:26 
AnswerRe: How to put my working application's icon in the notification area? Pin
viliam4-Dec-02 23:52
viliam4-Dec-02 23:52 
GeneralVisual C++ 7 and Windows'98 Pin
julych4-Dec-02 22:24
julych4-Dec-02 22:24 
GeneralRe: Visual C++ 7 and Windows'98 Pin
Christian Graus4-Dec-02 22:54
protectorChristian Graus4-Dec-02 22:54 
GeneralRe: Visual C++ 7 and Windows'98 Pin
Tim Smith5-Dec-02 2:10
Tim Smith5-Dec-02 2:10 
GeneralCDatabase Open Pin
MFC is the Best4-Dec-02 21:42
MFC is the Best4-Dec-02 21:42 
GeneralRe: CDatabase Open Pin
Michael P Butler4-Dec-02 22:55
Michael P Butler4-Dec-02 22:55 
GeneralRe: CDatabase Open Pin
MFC is the Best4-Dec-02 23:41
MFC is the Best4-Dec-02 23:41 
GeneralPassing handle to other classes... Pin
p833704-Dec-02 21:23
p833704-Dec-02 21:23 

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.