Click here to Skip to main content
16,005,169 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Nested function calls and performance Pin
Christian Graus8-Aug-05 13:25
protectorChristian Graus8-Aug-05 13:25 
GeneralLinkage in c++ Pin
Rajesh_K_Sharma5-Aug-05 18:25
Rajesh_K_Sharma5-Aug-05 18:25 
GeneralRe: Linkage in c++ Pin
ursus zeta7-Aug-05 10:33
ursus zeta7-Aug-05 10:33 
GeneralRegister variable Pin
Rajesh_K_Sharma5-Aug-05 18:21
Rajesh_K_Sharma5-Aug-05 18:21 
GeneralRe: Register variable Pin
Christian Graus7-Aug-05 19:15
protectorChristian Graus7-Aug-05 19:15 
GeneralRe: Register variable Pin
raytotti5712-Aug-05 2:43
raytotti5712-Aug-05 2:43 
GeneralRe: Register variable Pin
raytotti5712-Aug-05 3:15
raytotti5712-Aug-05 3:15 
GeneralFactory Question Pin
shrin20005-Aug-05 5:36
shrin20005-Aug-05 5:36 
I was wondering if somebody could tell me how self registering objects work when we use a anonymous namespace and static keywords. Is the registration done during compile time or run-time??

So, if i declare

//Create an Anonymous for the factory to self register frame classes, also such that the scope is limited to this file preventing the compiler from getting confused with methods of other frame types
namespace
{
Frame* createIFrame()
{
return new IFrame;
}

int FrameType = 1;
bool registered = FrameFactory::Instance()->registerFrameFn(1,createIFrame);

}

this code is inserted into the .cpp file of every class that is added new, how does the object registration occur without ever being called explicitly??

GeneralRe: Factory Question Pin
Christian Graus7-Aug-05 19:16
protectorChristian Graus7-Aug-05 19:16 
GeneralRe: Factory Question Pin
shrin20008-Aug-05 5:00
shrin20008-Aug-05 5:00 
GeneralRe: Factory Question Pin
Christian Graus8-Aug-05 13:11
protectorChristian Graus8-Aug-05 13:11 
GeneralRe: Factory Question Pin
Anonymous10-Aug-05 5:33
Anonymous10-Aug-05 5:33 
GeneralRe: Factory Question Pin
shrin200010-Aug-05 5:34
shrin200010-Aug-05 5:34 
GeneralRe: Factory Question Pin
Christian Graus10-Aug-05 10:08
protectorChristian Graus10-Aug-05 10:08 
Generaljpg image Pin
kenloverboy5-Aug-05 4:13
kenloverboy5-Aug-05 4:13 
GeneralRe: jpg image Pin
Anonymous5-Aug-05 13:46
Anonymous5-Aug-05 13:46 
Questionform->show () problem??? Pin
richiemac4-Aug-05 23:30
richiemac4-Aug-05 23:30 
AnswerRe: form->show () problem??? Pin
richiemac5-Aug-05 3:27
richiemac5-Aug-05 3:27 
GeneralC++ Question Pin
DiscoBall 133-Aug-05 10:36
DiscoBall 133-Aug-05 10:36 
GeneralRe: C++ Question Pin
koothkeeper3-Aug-05 11:13
professionalkoothkeeper3-Aug-05 11:13 
GeneralRe: C++ Question Pin
toxcct3-Aug-05 22:22
toxcct3-Aug-05 22:22 
GeneralRe: C++ Question Pin
Anonymous4-Aug-05 8:23
Anonymous4-Aug-05 8:23 
GeneralRe: C++ Question Pin
DiscoBall134-Aug-05 16:30
sussDiscoBall134-Aug-05 16:30 
GeneralArray Pointer math Pin
mikesys3-Aug-05 9:39
mikesys3-Aug-05 9:39 
GeneralRe: Array Pointer math Pin
Christian Graus3-Aug-05 13:24
protectorChristian Graus3-Aug-05 13:24 

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.