Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVB Scripting in MFC Pin
soundman3229-Apr-04 1:21
soundman3229-Apr-04 1:21 
GeneralRe: VB Scripting in MFC Pin
David Crow29-Apr-04 2:04
David Crow29-Apr-04 2:04 
GeneralRe: VB Scripting in MFC Pin
Mike Dimmick29-Apr-04 2:22
Mike Dimmick29-Apr-04 2:22 
QuestionDon't we have any article on Dialogic based project??? Pin
Jigar Mehta29-Apr-04 0:51
Jigar Mehta29-Apr-04 0:51 
AnswerRe: Don't we have any article on Dialogic based project??? Pin
Trollslayer29-Apr-04 1:01
mentorTrollslayer29-Apr-04 1:01 
GeneralRe: Don't we have any article on Dialogic based project??? Pin
Michael P Butler29-Apr-04 2:50
Michael P Butler29-Apr-04 2:50 
AnswerRe: Don't we have any article on Dialogic based project??? Pin
Michael P Butler29-Apr-04 2:46
Michael P Butler29-Apr-04 2:46 
Questioncan we know whether our dll is registered or not Pin
softp_vc28-Apr-04 23:46
softp_vc28-Apr-04 23:46 
AnswerRe: can we know whether our dll is registered or not Pin
David Crow29-Apr-04 2:08
David Crow29-Apr-04 2:08 
GeneralRe: can we know whether our dll is registered or not Pin
softp_vc30-Apr-04 23:23
softp_vc30-Apr-04 23:23 
GeneralSTL Deque Container - question Pin
CoolVini28-Apr-04 23:38
CoolVini28-Apr-04 23:38 
GeneralRe: STL Deque Container - question Pin
Paul Ranson29-Apr-04 0:24
Paul Ranson29-Apr-04 0:24 
GeneralRe: STL Deque Container - question Pin
CoolVini29-Apr-04 4:31
CoolVini29-Apr-04 4:31 
GeneralRe: STL Deque Container - question Pin
Paul Ranson29-Apr-04 11:22
Paul Ranson29-Apr-04 11:22 
GeneralRe: STL Deque Container - question Pin
CoolVini29-Apr-04 22:34
CoolVini29-Apr-04 22:34 
GeneralHTML Dialog question ... Pin
Hadi Rezaee28-Apr-04 23:29
Hadi Rezaee28-Apr-04 23:29 
GeneralDll & Vectors Pin
Bernhard28-Apr-04 23:10
Bernhard28-Apr-04 23:10 
I have got the following situation (VC6)
i have got two dll's each exporting functions like this

void fun1 (std::vector<int>& vec);

The calling function passes an empty vector.. it is filled in the dll.. and the dll passes the filled vector back.

One dll works perfectly fine. The other dll has got the following problem:
After leaving the function which called the dll - function (when the passed vector leaves the scope)
there is a runtime bug, which says that a debug assertation failed.. and that the following expression failed:
_CrtIsValidHeapPointer(pUserData)

One the one hand i do understand, why this could be (allocating memory in another process and freeing it in the other)..
but WHY does this technique work happily with one dll, and why not with the other dll ?

Any ideas ?
Thanks in advance,
bernhard


"Just looking for loopholes." W. C. Fields
American actor, 1880-1946, explaining why he was reading the Bible on his deathbed.
GeneralRe: Dll &amp; Vectors Pin
Anonymous29-Apr-04 0:05
Anonymous29-Apr-04 0:05 
GeneralRe: Dll &amp; Vectors Pin
Mike Dimmick29-Apr-04 0:21
Mike Dimmick29-Apr-04 0:21 
GeneralRe: Dll &amp; Vectors Pin
Antony M Kancidrowski29-Apr-04 3:20
Antony M Kancidrowski29-Apr-04 3:20 
GeneralProblem choosing collection&#8230; Pin
anderslundsgard28-Apr-04 22:53
anderslundsgard28-Apr-04 22:53 
GeneralRe: Problem choosing collection&#8230; Pin
David Crow29-Apr-04 2:13
David Crow29-Apr-04 2:13 
GeneralChildFrame and Menu Pin
amit_k_gupta28-Apr-04 22:52
amit_k_gupta28-Apr-04 22:52 
GeneralRound dialog drawing question Pin
YaronNir28-Apr-04 22:45
YaronNir28-Apr-04 22:45 
GeneralRe: Round dialog drawing question Pin
ohadp28-Apr-04 23:52
ohadp28-Apr-04 23:52 

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.