Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create Dynamically Generated Arrays Pin
LighthouseJ20-Feb-05 8:01
LighthouseJ20-Feb-05 8:01 
GeneralCFtpConnection::GetFile Directory Issues Pin
JimmyGoon19-Feb-05 16:11
JimmyGoon19-Feb-05 16:11 
GeneralRe: CFtpConnection::GetFile Directory Issues Pin
JimmyGoon21-Feb-05 10:46
JimmyGoon21-Feb-05 10:46 
QuestionSIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
...---...19-Feb-05 11:46
...---...19-Feb-05 11:46 
AnswerRe: SIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
Michael Dunn19-Feb-05 11:56
sitebuilderMichael Dunn19-Feb-05 11:56 
GeneralRe: SIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
...---...19-Feb-05 12:13
...---...19-Feb-05 12:13 
AnswerRe: SIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
macrophobia19-Feb-05 17:50
macrophobia19-Feb-05 17:50 
AnswerYour solution Pin
David Nash22-Feb-05 21:25
David Nash22-Feb-05 21:25 
Hi,

Have you managed to solve this problem as yet. If not,
here is your solution....

//////////////////////////////////////////////
//complex1.h
#pragma once

template <class t>
class Complex1
{
public:
Complex1(t _re, t _im) : re(_re), im(_im){}

private:
t re, im;
};

//end of file

and ...

///////////////////////////////
//main.cpp
#include "stdafx.h"
#include "complex1.h"

int _tmain(int argc, _TCHAR* argv[])
{
Complex1 <double>d1(1, 0);

return 0;
}
// end of file

Regards,
David

GeneralMFC + Images + Drawind +Saving Pin
Niewiem19-Feb-05 11:33
Niewiem19-Feb-05 11:33 
GeneralVirtual Keys Pin
CodyDaemon19-Feb-05 11:18
CodyDaemon19-Feb-05 11:18 
GeneralRe: Virtual Keys Pin
Neville Franks19-Feb-05 11:40
Neville Franks19-Feb-05 11:40 
GeneralRe: Virtual Keys Pin
Michael Dunn19-Feb-05 12:03
sitebuilderMichael Dunn19-Feb-05 12:03 
GeneralRe: Virtual Keys Pin
Justin Cobb (Guest Mode)21-Feb-05 7:48
sussJustin Cobb (Guest Mode)21-Feb-05 7:48 
GeneralProcess launching Pin
Masud Alipour19-Feb-05 11:09
Masud Alipour19-Feb-05 11:09 
GeneralRe: Process launching Pin
Michael Dunn19-Feb-05 12:07
sitebuilderMichael Dunn19-Feb-05 12:07 
QuestionRe: Process launching Pin
J.B.22-Sep-08 4:10
J.B.22-Sep-08 4:10 
GeneralExit Error, revisited (updated) Pin
LighthouseJ19-Feb-05 10:18
LighthouseJ19-Feb-05 10:18 
GeneralWhy am i getting this error and how to solve it? Thanks. Pin
shapper19-Feb-05 10:07
shapper19-Feb-05 10:07 
GeneralRe: Why am i getting this error and how to solve it? Thanks. Pin
ThatsAlok19-Feb-05 19:57
ThatsAlok19-Feb-05 19:57 
GeneralWriting File Output Simultaneously Pin
OutlawTornNMT19-Feb-05 9:57
OutlawTornNMT19-Feb-05 9:57 
GeneralRe: Writing File Output Simultaneously Pin
Blake Miller22-Feb-05 6:52
Blake Miller22-Feb-05 6:52 
GeneralAccess Files Pin
Fadhil T Aula19-Feb-05 8:27
Fadhil T Aula19-Feb-05 8:27 
GeneralVisual DSP++ Pin
belame19-Feb-05 6:18
belame19-Feb-05 6:18 
QuestionCOM of shell menu? Pin
includeh1019-Feb-05 6:09
includeh1019-Feb-05 6:09 
AnswerRe: COM of shell menu? Pin
Chris Losinger19-Feb-05 8:13
professionalChris Losinger19-Feb-05 8:13 

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.