Click here to Skip to main content
16,011,611 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: stl map in a DLL... Pin
Jörgen Sigvardsson7-Nov-02 12:00
Jörgen Sigvardsson7-Nov-02 12:00 
GeneralRe: stl map in a DLL... Pin
Tim Smith8-Nov-02 10:11
Tim Smith8-Nov-02 10:11 
GeneralRe: stl map in a DLL... Pin
Jörgen Sigvardsson10-Nov-02 21:34
Jörgen Sigvardsson10-Nov-02 21:34 
GeneralRe: stl map in a DLL... Pin
Joao Vaz11-Nov-02 18:37
Joao Vaz11-Nov-02 18:37 
GeneralRe: stl map in a DLL... Pin
Jörgen Sigvardsson11-Nov-02 21:18
Jörgen Sigvardsson11-Nov-02 21:18 
GeneralRe: stl map in a DLL... Pin
Joao Vaz11-Nov-02 22:06
Joao Vaz11-Nov-02 22:06 
GeneralRe: stl map in a DLL... Pin
Jörgen Sigvardsson11-Nov-02 22:11
Jörgen Sigvardsson11-Nov-02 22:11 
GeneralRe: stl map in a DLL... Pin
Joao Vaz11-Nov-02 22:35
Joao Vaz11-Nov-02 22:35 
Jörgen Sigvardsson wrote:
Got any references to ATL classes? It could be worth the time to investigate the ATL solution.

ATL internals by Chris Sells ... Big Grin | :-D

From the top of my head, something similar like this:

//dumb class optimized away by the compiler in releases builds
template <class T> class _NoMT 
{
public:
static lock() {};
static unlock() {};
};

template <class T = _NoMT > class CMTServices 
{
T* p_;
public:
static lock() {p->lock} ;
static unlock() {p->unlock};
};


template <class T, Class Y= CMTServices> class Xpto 
{

 Y* lock_;
 void foo()
{
 lock_->lock();
 doSomething();
 lock_->unlock();  
}

};


Cool eeh ?

Jörgen Sigvardsson wrote:
It seems as if it's going your way. Good luck on your next job, whatever it may be.

Thanks Big Grin | :-D

Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9

Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

GeneralRe: stl map in a DLL... Pin
Jörgen Sigvardsson11-Nov-02 22:44
Jörgen Sigvardsson11-Nov-02 22:44 
GeneralRe: stl map in a DLL... Pin
Joao Vaz11-Nov-02 22:54
Joao Vaz11-Nov-02 22:54 
GeneralATl problem Pin
Bob Davis6-Nov-02 18:51
Bob Davis6-Nov-02 18:51 
GeneralRe: ATl problem Pin
Christian Graus6-Nov-02 19:04
protectorChristian Graus6-Nov-02 19:04 
GeneralRe: ATl problem Pin
Bob Davis6-Nov-02 19:47
Bob Davis6-Nov-02 19:47 
GeneralRe: ATl problem Pin
Jörgen Sigvardsson7-Nov-02 12:05
Jörgen Sigvardsson7-Nov-02 12:05 
QuestionHelp Me,How to return a Interface from a method? Pin
Bob Davis6-Nov-02 17:39
Bob Davis6-Nov-02 17:39 
AnswerRe: Help Me,How to return a Interface from a method? Pin
Christian Graus6-Nov-02 19:10
protectorChristian Graus6-Nov-02 19:10 
AnswerRe: Help Me,How to return a Interface from a method? Pin
Jörgen Sigvardsson7-Nov-02 12:08
Jörgen Sigvardsson7-Nov-02 12:08 
GeneralRe: Help Me,How to return a Interface from a method? Pin
Anders Molin7-Nov-02 15:22
professionalAnders Molin7-Nov-02 15:22 
GeneralRe: Help Me,How to return a Interface from a method? Pin
Jörgen Sigvardsson7-Nov-02 22:03
Jörgen Sigvardsson7-Nov-02 22:03 
GeneralRe: Help Me,How to return a Interface from a method? Pin
Anders Molin8-Nov-02 1:14
professionalAnders Molin8-Nov-02 1:14 
Generalvector<list struct XXX> Pin
IMiracle5-Nov-02 15:54
IMiracle5-Nov-02 15:54 
GeneralRe: vector<list struct XXX> Pin
Christian Graus5-Nov-02 16:16
protectorChristian Graus5-Nov-02 16:16 
GeneralRe: vector<list struct XXX> Pin
IMiracle5-Nov-02 16:19
IMiracle5-Nov-02 16:19 
GeneralRe: vector Pin
Christian Graus5-Nov-02 16:43
protectorChristian Graus5-Nov-02 16:43 
GeneralRe: vector Pin
Jörgen Sigvardsson7-Nov-02 12:11
Jörgen Sigvardsson7-Nov-02 12:11 

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.