Click here to Skip to main content
16,005,141 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Lauch a local program and pass args. Pin
led mike23-Jun-08 10:01
led mike23-Jun-08 10:01 
AnswerRe: Lauch a local program and pass args. Pin
Thomas Stockwell23-Jun-08 15:22
professionalThomas Stockwell23-Jun-08 15:22 
QuestionTelephone based auto-systems??? Pin
pankazmittal23-Jun-08 5:52
pankazmittal23-Jun-08 5:52 
Questionadd form to a panel Pin
biswajit nayak23-Jun-08 0:18
biswajit nayak23-Jun-08 0:18 
AnswerRe: add form to a panel Pin
Colin Angus Mackay23-Jun-08 1:02
Colin Angus Mackay23-Jun-08 1:02 
AnswerRe: add form to a panel Pin
N a v a n e e t h23-Jun-08 2:37
N a v a n e e t h23-Jun-08 2:37 
AnswerRe: add form to a panel Pin
Thomas Stockwell23-Jun-08 15:25
professionalThomas Stockwell23-Jun-08 15:25 
QuestionCan the name of the implementation file (*.cpp) be different to the name of the header file (*.h) ? Pin
openLG19-Jun-08 9:52
openLG19-Jun-08 9:52 
I create a series of classes that inherit from a prototype class (a class with just virtual functions):

class CBlockPrototype
{
"constructor/destructor"
virtual method1,method2,... = 0;
}

class CBlock1: public CBlockPrototype [...]
class CBlock2: public CBlockPrototype [...]
[...]

I define every class in a different header file (BlockPrototype.h,Block1.h,[...]) but I find very comfortable to implement the same methods of every derived classes in the same cpp file:

method1.cpp contains

CBlock1::method1
{
}

CBlock2::method1
{
}

CBlock3::method1
{
}

[...]

method2.cpp contains

CBlock1::method2
{
}

CBlock2::method2
{
}

CBlock3::method2
{
}

[...]

I try to compile but the linker says me errors: " [...] linker error [...] CBlockX::methodY already defined in methodY.h [...]"

I hope to be clear.

Can someone help me?

Thank you
AnswerRe: Can the name of the implementation file (*.cpp) be different to the name of the header file (*.h) ? Pin
Scott Dorman22-Jun-08 1:39
professionalScott Dorman22-Jun-08 1:39 
QuestionSocket Receive Problems Pin
James Smith19-Jun-08 6:15
James Smith19-Jun-08 6:15 
AnswerRe: Socket Receive Problems Pin
led mike19-Jun-08 6:30
led mike19-Jun-08 6:30 
GeneralRe: Socket Receive Problems Pin
James Smith19-Jun-08 7:34
James Smith19-Jun-08 7:34 
RantRe: Socket Receive Problems Pin
liRetro19-Jun-08 7:46
liRetro19-Jun-08 7:46 
GeneralRe: Socket Receive Problems Pin
James Smith19-Jun-08 8:02
James Smith19-Jun-08 8:02 
GeneralRe: Socket Receive Problems Pin
James Smith19-Jun-08 8:15
James Smith19-Jun-08 8:15 
GeneralRe: Socket Receive Problems Pin
led mike23-Jun-08 8:01
led mike23-Jun-08 8:01 
QuestionInfinite Lifetimes Pin
liRetro19-Jun-08 6:06
liRetro19-Jun-08 6:06 
QuestionRemoting with Interfaces Pin
liRetro19-Jun-08 5:59
liRetro19-Jun-08 5:59 
Questiontransforming a code [modified] Pin
Reza1218-Jun-08 23:08
Reza1218-Jun-08 23:08 
AnswerRe: transforming a code Pin
Pete O'Hanlon19-Jun-08 0:43
mvePete O'Hanlon19-Jun-08 0:43 
QuestionProblem using shared assembly that has a satellite assembly Pin
ctoma200518-Jun-08 22:12
ctoma200518-Jun-08 22:12 
QuestionTypes of JIT Pin
danasegaranea18-Jun-08 21:12
danasegaranea18-Jun-08 21:12 
AnswerRe: Types of JIT Pin
leppie18-Jun-08 21:45
leppie18-Jun-08 21:45 
GeneralRe: Types of JIT Pin
danasegaranea18-Jun-08 22:34
danasegaranea18-Jun-08 22:34 
GeneralRe: Types of JIT Pin
Pete O'Hanlon19-Jun-08 0:44
mvePete O'Hanlon19-Jun-08 0:44 

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.