Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CreateObject with specific constructor Pin
Stuart Dootson16-Jul-09 0:46
professionalStuart Dootson16-Jul-09 0:46 
QuestionRe: CreateObject with specific constructor Pin
sangbl16-Jul-09 1:44
sangbl16-Jul-09 1:44 
Thank you for your answer, but my problem is another one:

CTestObj ist derived from CObject.
So I can create the objekt with new, like
"CObject* pTestObj = new CTestObj( 5 )"

But I will create the object with the runtimeclass-pointer (CRuntimeClass* pRTC).
This pointer knows the type of the class and I can create the object with the
CreateObject-function.
CObject* pObj = pRTC->CreateObject();

The CreateObject-function calls the standard-constructor.
Can I call another constructor during creation with runtimeclass-pointer?
The next line did not compile but maybe you can modify it:

CObject* pMyObj = new pRTC( 5 );

At the time of creation, I only know the runtimeclass-pointer and the transfer
parameter (5).

In my program the transfer parameter is a big class. So I will save time during creation.

Do you have an idea?
QuestionANSI to UTF8 (dynamic mem alloc?) Pin
Souldrift15-Jul-09 22:36
Souldrift15-Jul-09 22:36 
AnswerRe: ANSI to UTF8 (dynamic mem alloc?) Pin
CPallini15-Jul-09 22:57
mveCPallini15-Jul-09 22:57 
GeneralRe: ANSI to UTF8 (dynamic mem alloc?) Pin
Souldrift16-Jul-09 2:13
Souldrift16-Jul-09 2:13 
QuestionHow to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Ahmad9915-Jul-09 22:31
Ahmad9915-Jul-09 22:31 
AnswerRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian15-Jul-09 22:34
professionalRajesh R Subramanian15-Jul-09 22:34 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Madhu_Rani24-Jul-09 3:23
Madhu_Rani24-Jul-09 3:23 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian24-Jul-09 6:13
professionalRajesh R Subramanian24-Jul-09 6:13 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Madhu_Rani26-Jul-09 20:30
Madhu_Rani26-Jul-09 20:30 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian26-Jul-09 23:27
professionalRajesh R Subramanian26-Jul-09 23:27 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Madhu_Rani27-Jul-09 19:14
Madhu_Rani27-Jul-09 19:14 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian27-Jul-09 23:55
professionalRajesh R Subramanian27-Jul-09 23:55 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Madhu_Rani28-Jul-09 0:16
Madhu_Rani28-Jul-09 0:16 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian28-Jul-09 0:32
professionalRajesh R Subramanian28-Jul-09 0:32 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Madhu_Rani28-Jul-09 0:40
Madhu_Rani28-Jul-09 0:40 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
EliottA28-Jul-09 2:41
EliottA28-Jul-09 2:41 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Manas Bhardwaj28-Jul-09 3:19
professionalManas Bhardwaj28-Jul-09 3:19 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian28-Jul-09 3:56
professionalRajesh R Subramanian28-Jul-09 3:56 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
EliottA28-Jul-09 3:58
EliottA28-Jul-09 3:58 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
CPallini26-Jul-09 23:49
mveCPallini26-Jul-09 23:49 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. [modified] Pin
Madhu_Rani27-Jul-09 19:08
Madhu_Rani27-Jul-09 19:08 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Rajesh R Subramanian27-Jul-09 23:58
professionalRajesh R Subramanian27-Jul-09 23:58 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Madhu_Rani28-Jul-09 0:07
Madhu_Rani28-Jul-09 0:07 
GeneralRe: How to access a remote machine from a local machine and perform basic function like execute and close the remote machine's application. Pin
Manas Bhardwaj28-Jul-09 3:17
professionalManas Bhardwaj28-Jul-09 3:17 

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.