Click here to Skip to main content
16,012,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Not able to make entries into vista operating system using reg... functions Pin
hariakuthota2-Sep-08 19:38
hariakuthota2-Sep-08 19:38 
GeneralRe: Not able to make entries into vista operating system using reg... functions Pin
bob169726-Sep-08 5:33
bob169726-Sep-08 5:33 
Questionhow to duplicate object with type_info ? Pin
pedefetoll2-Sep-08 2:52
pedefetoll2-Sep-08 2:52 
AnswerRe: how to duplicate object with type_info ? Pin
Cedric Moonen2-Sep-08 3:02
Cedric Moonen2-Sep-08 3:02 
GeneralRe: how to duplicate object with type_info ? Pin
Gary R. Wheeler2-Sep-08 3:10
Gary R. Wheeler2-Sep-08 3:10 
GeneralRe: how to duplicate object with type_info ? Pin
Cedric Moonen2-Sep-08 3:14
Cedric Moonen2-Sep-08 3:14 
GeneralRe: how to duplicate object with type_info ? Pin
Gary R. Wheeler2-Sep-08 3:45
Gary R. Wheeler2-Sep-08 3:45 
GeneralRe: how to duplicate object with type_info ? Pin
pedefetoll9-Sep-08 0:24
pedefetoll9-Sep-08 0:24 
Cédric,

Thank you for your answer.
But I think it's more difficult.

classA is the base class for all my messages (objects exchange through mailslots).
classB, classC, etc have herited from classA (they are more sophisticated messages).

My function called "Duplicate" function is in reality a function to send a message of classB, C, etc to SEVERAL mailslots (several destination).
So, I want to "give" my sophisticated message reference with its type (which is typeid( xVar)) to my function, wich will do a loop in order to duplicate the given message as necessary as to send it to ALL the mailslots.
It's the destination thread which delete the object after processing.
So, I want to "clone" the object, but the parameter of the function is of type "classA" (which is common to all types), and the type is only known by TYPEID.

Is there a possibility to do that ?

Best regards
GeneralRe: how to duplicate object with type_info ? Pin
pedefetoll9-Sep-08 2:46
pedefetoll9-Sep-08 2:46 
GeneralRe: how to duplicate object with type_info ? Pin
Cedric Moonen10-Sep-08 5:57
Cedric Moonen10-Sep-08 5:57 
Questionsetup package creation and deployment Pin
AnithaSubramani2-Sep-08 2:10
AnithaSubramani2-Sep-08 2:10 
AnswerRe: setup package creation and deployment Pin
_AnsHUMAN_ 2-Sep-08 2:13
_AnsHUMAN_ 2-Sep-08 2:13 
GeneralRe: setup package creation and deployment Pin
AnithaSubramani2-Sep-08 2:23
AnithaSubramani2-Sep-08 2:23 
GeneralRe: setup package creation and deployment Pin
_AnsHUMAN_ 2-Sep-08 2:49
_AnsHUMAN_ 2-Sep-08 2:49 
AnswerRe: setup package creation and deployment Pin
sashoalm2-Sep-08 5:57
sashoalm2-Sep-08 5:57 
GeneralRe: setup package creation and deployment Pin
AnithaSubramani3-Sep-08 20:19
AnithaSubramani3-Sep-08 20:19 
GeneralRe: setup package creation and deployment Pin
sashoalm3-Sep-08 20:59
sashoalm3-Sep-08 20:59 
GeneralRe: setup package creation and deployment Pin
AnithaSubramani4-Sep-08 0:43
AnithaSubramani4-Sep-08 0:43 
Questionsend message to view Pin
coding_ram2-Sep-08 2:06
coding_ram2-Sep-08 2:06 
AnswerRe: send message to view Pin
_AnsHUMAN_ 2-Sep-08 2:11
_AnsHUMAN_ 2-Sep-08 2:11 
GeneralRe: send message to view Pin
coding_ram2-Sep-08 2:56
coding_ram2-Sep-08 2:56 
QuestionTimer Pin
knowvc2-Sep-08 1:43
knowvc2-Sep-08 1:43 
AnswerRe: Timer Pin
Rane2-Sep-08 1:47
Rane2-Sep-08 1:47 
GeneralRe: Timer Pin
knowvc2-Sep-08 1:53
knowvc2-Sep-08 1:53 
QuestionRe: Timer Pin
David Crow2-Sep-08 3:35
David Crow2-Sep-08 3: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.