Click here to Skip to main content
16,004,761 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Push button Pin
Prakash Nadar17-Dec-03 19:22
Prakash Nadar17-Dec-03 19:22 
GeneralRe: Push button Pin
J.B.17-Dec-03 21:26
J.B.17-Dec-03 21:26 
GeneralRe: Push button Pin
Prakash Nadar17-Dec-03 21:39
Prakash Nadar17-Dec-03 21:39 
GeneralRe: Push button Pin
J.B.17-Dec-03 21:47
J.B.17-Dec-03 21:47 
GeneralRe: Push button Pin
Prakash Nadar17-Dec-03 23:20
Prakash Nadar17-Dec-03 23:20 
GeneralIShellExtInit and IContextMenu; Pin
Bo Hunter17-Dec-03 15:36
Bo Hunter17-Dec-03 15:36 
GeneralRe: IShellExtInit and IContextMenu; Pin
Dinesh Ahuja19-Dec-03 2:20
Dinesh Ahuja19-Dec-03 2:20 
General<vector> destructor problem Pin
aqzhao17-Dec-03 15:22
aqzhao17-Dec-03 15:22 
I have an exporting function in a dll and have to use a
<vector> pointer as parameter.

"
extern "C" __declspec( dllexport ) unsigned int func
(vector<int>* const vIndex)
{
for(int i=0; i<n; i++)
="" vindex-="">push_back(i);
}
"

calling application will call the function as follow:
"
....
vector<int> vIndex;
unsigned int iResult = func(&vIndex);
....
"

I am using Vstudio.net 2003
If I use MFC in a shared dll and Runtime library
with /MDd option on both DLL and calling application,
everything is fine. If I use MFC in a static library and
Runtime library with /MTd option on both DLL and calling
application, there's a problem in the vector destructor,
desctructor could not deallocate the memory.

Could someone help me? This is an emergency!!!
Thank you.
GeneralRe: &lt;vector&gt; destructor problem Pin
Phil Martin17-Dec-03 16:48
professionalPhil Martin17-Dec-03 16:48 
Generalid3 tag for wma file Pin
qdping17-Dec-03 14:03
qdping17-Dec-03 14:03 
GeneralRe: id3 tag for wma file Pin
Christian Graus17-Dec-03 15:19
protectorChristian Graus17-Dec-03 15:19 
GeneralRe: id3 tag for wma file Pin
qdping17-Dec-03 16:26
qdping17-Dec-03 16:26 
GeneralRe: id3 tag for wma file Pin
Christian Graus17-Dec-03 16:28
protectorChristian Graus17-Dec-03 16:28 
GeneralRe: id3 tag for wma file Pin
qdping17-Dec-03 16:39
qdping17-Dec-03 16:39 
GeneralRe: id3 tag for wma file Pin
Bob Stanneveld17-Dec-03 21:13
Bob Stanneveld17-Dec-03 21:13 
GeneralRe: id3 tag for wma file Pin
qdping17-Dec-03 21:31
qdping17-Dec-03 21:31 
GeneralRe: id3 tag for wma file Pin
Bob Stanneveld18-Dec-03 21:14
Bob Stanneveld18-Dec-03 21:14 
GeneralRe: id3 tag for wma file Pin
qdping18-Dec-03 21:55
qdping18-Dec-03 21:55 
GeneralRe: id3 tag for wma file Pin
Bob Stanneveld19-Dec-03 4:44
Bob Stanneveld19-Dec-03 4:44 
QuestionHow to initialize SDI Doc/View interface from MFC-based dll Pin
JoeSchmoe00717-Dec-03 13:36
JoeSchmoe00717-Dec-03 13:36 
QuestionHow to call a dll from MFC SDI application? Pin
Binayak17-Dec-03 13:00
Binayak17-Dec-03 13:00 
AnswerRe: How to call a dll from MFC SDI application? Pin
Prakash Nadar17-Dec-03 16:46
Prakash Nadar17-Dec-03 16:46 
General..\\..\\help in remembering what all this means Pin
Steve Messer17-Dec-03 12:55
Steve Messer17-Dec-03 12:55 
GeneralRe: ..\\..\\help in remembering what all this means Pin
Terry O'Nolley17-Dec-03 13:27
Terry O'Nolley17-Dec-03 13:27 
GeneralRe: ..\\..\\help in remembering what all this means Pin
Steve Messer17-Dec-03 14:19
Steve Messer17-Dec-03 14:19 

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.