Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++/VB Memory Allocation Pin
Anton A. Loukine24-Nov-03 5:49
Anton A. Loukine24-Nov-03 5:49 
GeneralRe: C++/VB Memory Allocation Pin
David Crow24-Nov-03 5:56
David Crow24-Nov-03 5:56 
GeneralRe: C++/VB Memory Allocation Pin
Anton A. Loukine24-Nov-03 6:07
Anton A. Loukine24-Nov-03 6:07 
GeneralRe: C++/VB Memory Allocation Pin
igor196024-Nov-03 12:09
igor196024-Nov-03 12:09 
GeneralRe: C++/VB Memory Allocation Pin
Anton A. Loukine25-Nov-03 2:45
Anton A. Loukine25-Nov-03 2:45 
GeneralRe: C++/VB Memory Allocation Pin
igor196025-Nov-03 6:51
igor196025-Nov-03 6:51 
GeneralRe: C++/VB Memory Allocation Pin
igor196025-Nov-03 7:23
igor196025-Nov-03 7:23 
GeneralRe: C++/VB Memory Allocation Pin
igor196026-Nov-03 7:08
igor196026-Nov-03 7:08 
I've just realized that you basically have a BUG in your code.
If you are using default VB calling conventions then you are passing refference to l from VB to QrgAlloc => therefore your QrgAlloc function should be declared and implemented like that:
short _stdcall QrgAlloc( long* l)<br />
{<br />
double* dArray = new double[ 2 ];<br />
dArray[ 0 ] = 2.34;<br />
dArray[ 1 ] = 2.55;<br />
*l = (long)dArray;<br />
return 1;<br />
}




"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralRe: C++/VB Memory Allocation Pin
Mike Dimmick24-Nov-03 5:56
Mike Dimmick24-Nov-03 5:56 
QuestionGet docking location of a control bar? Pin
Francis B.24-Nov-03 3:24
Francis B.24-Nov-03 3:24 
GeneralFolder Hide Pin
zichun24-Nov-03 2:49
zichun24-Nov-03 2:49 
GeneralRe: Folder Hide Pin
David Crow24-Nov-03 2:55
David Crow24-Nov-03 2:55 
GeneralProblem with WriteFile Pin
Deepak Samuel24-Nov-03 2:41
Deepak Samuel24-Nov-03 2:41 
GeneralRe: Problem with WriteFile Pin
David Crow24-Nov-03 3:00
David Crow24-Nov-03 3:00 
GeneralRe: Problem with WriteFile Pin
Deepak Samuel24-Nov-03 3:41
Deepak Samuel24-Nov-03 3:41 
GeneralRe: Problem with WriteFile Pin
Roger Allen24-Nov-03 4:27
Roger Allen24-Nov-03 4:27 
GeneralRe: Problem with WriteFile Pin
Adam Gritt24-Nov-03 3:21
Adam Gritt24-Nov-03 3:21 
Generalpointer to member function Pin
El'Cachubrey24-Nov-03 2:14
El'Cachubrey24-Nov-03 2:14 
GeneralRe: pointer to member function Pin
David Crow24-Nov-03 2:24
David Crow24-Nov-03 2:24 
GeneralRe: pointer to member function Pin
Antti Keskinen24-Nov-03 2:41
Antti Keskinen24-Nov-03 2:41 
GeneralRe: pointer to member function Pin
Michael Dunn24-Nov-03 4:44
sitebuilderMichael Dunn24-Nov-03 4:44 
Generalmodeless dialog Pin
viliam24-Nov-03 2:07
viliam24-Nov-03 2:07 
GeneralRe: modeless dialog Pin
jhwurmbach24-Nov-03 2:22
jhwurmbach24-Nov-03 2:22 
GeneralRe: modeless dialog Pin
valikac24-Nov-03 5:45
valikac24-Nov-03 5:45 
Generalwww.itbooksearch.com.Huge IT ebook resources,You need not amazon any more. Each $4. Pin
Anonymous24-Nov-03 2:02
Anonymous24-Nov-03 2:02 

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.