sure, but posting on the forum would permit everybody to aknowledge on the subject...
however, i just found smth interresting on that point, so i think i have enough infos for the moment to realize this.
actually, i am expecting to separate the parser of my VisualCalc into its own class, but deported toward a new DLL.
but as i never made MFC DLLs, and never called DLL into a MFC program, i don't know how to do this.
but as i said to Alok, a teacher gave me today a good tutorial on the subject, so i'll try it when i have some time (on evening)...
now, you say you're familiar with dynamic loaded library ; i accept any advice on that coding, even if i found how to solve my problem...
I recommend using something like a clone smart pointer instead of a share_ptr. A clone pointer doesn't share it's pointer, so you can copy it from one part of the container to another, without having multiple parts of your container pointing to the same data.
See following link: http://www.codeproject.com/vcpp/stl/clone_ptr.asp[^]
The above clone pointer not only will transfer from one part of the container to the next, but it also has many of it's operators dereferencing the pointer, so it acts like a concrete type.
Horses for courses, really - in this case, you're right, you'd likely be better off using copyies of the data. There are, of course, other times when (for whatever reason) you don't want to be copying stuff around.
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
i'm trying to re-write a code from MFC to WTL but that seems not to work so... for exemple:
CString str(_T("some text"));
That has worked in MFC; with WTL, i have the message:
error C2440: 'initialisation' : impossible to convert from 'ATL::CString' to 'std::basic_string<_Elem,_Traits,_Ax>'
Can someone help me?
string st = (LPCTSTR)str;
the same problem... if i use wstring, it works. The problem is that i'm obliged to wotk with string,and to convert from wstring to string, i really don't know how!!