Click here to Skip to main content
15,949,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debugger won't startup when app crashes Pin
David Crow30-Jun-03 7:32
David Crow30-Jun-03 7:32 
GeneralRe: Debugger won't startup when app crashes Pin
John Oliver30-Jun-03 21:44
John Oliver30-Jun-03 21:44 
GeneralVirtual KeyCodes error: undeclared identifier Pin
fluxt30-Jun-03 5:48
fluxt30-Jun-03 5:48 
GeneralRe: Virtual KeyCodes error: undeclared identifier Pin
valikac30-Jun-03 6:33
valikac30-Jun-03 6:33 
GeneralComparison in Preprocessor Pin
chris_mccc30-Jun-03 4:59
chris_mccc30-Jun-03 4:59 
GeneralRe: Comparison in Preprocessor Pin
João Paulo Figueira30-Jun-03 5:14
professionalJoão Paulo Figueira30-Jun-03 5:14 
GeneralRe: Comparison in Preprocessor Pin
Ryan Binns30-Jun-03 5:14
Ryan Binns30-Jun-03 5:14 
General(URGENT !!!!) Sharing Memory between CV++ 6.0 and VB 6.0 Pin
Carlo30-Jun-03 4:07
Carlo30-Jun-03 4:07 
Hi all,
I have this big problem:
from an exe written in VB i call a function in a Dll written in VC++. This function must allocate an array of structs ant restitute it initializad to the calling process.
To be more clear I'll write what I would do if the exe is in C++:

The struct could be something like this:
struct _Data
{
int Data1;
VARIANT Data2;
};

In the dll there is a function like this:
extern "C" void WINAPI DLLReadArray(_Data **Array)
{
*Array= new _Data[10];

// For example I fill the array elements whith some data
}

from the VC++ exe I would do something like:
void CallDLL()
{
_Data *Array;
DLLReadArray(&Array);

// Some operations on the array elements...

delete[] Array;
}

NOW:
I do not have any idea on how to do the last thing if the exe is written in VB.

The structure in VB could be declared as a Type ???
Type Data
Data1 As Integer
Data2 As Variant
End Type

How to pass the DLL a "pointer" in VB ????

Please, any help would be very very appreciated !!!
thanks all.

Sorry for my poor english.
Carlo Comino
Italy.


GeneralRe: (URGENT !!!!) Sharing Memory between CV++ 6.0 and VB 6.0 Pin
basementman30-Jun-03 4:27
basementman30-Jun-03 4:27 
GeneralRe: (URGENT !!!!) Sharing Memory between CV++ 6.0 and VB 6.0 Pin
Carlo30-Jun-03 5:01
Carlo30-Jun-03 5:01 
GeneralList Control in ATL/WTL Pin
YaronNir30-Jun-03 4:05
YaronNir30-Jun-03 4:05 
GeneralRe: List Control in ATL/WTL Pin
João Paulo Figueira30-Jun-03 4:47
professionalJoão Paulo Figueira30-Jun-03 4:47 
GeneralRe: List Control in ATL/WTL Pin
YaronNir30-Jun-03 4:56
YaronNir30-Jun-03 4:56 
GeneralUsing Windows Access Control in my application Pin
Mike Eriksson30-Jun-03 4:04
Mike Eriksson30-Jun-03 4:04 
GeneralRe: Using Windows Access Control in my application Pin
basementman30-Jun-03 4:32
basementman30-Jun-03 4:32 
GeneralI wrote the buf[] question, Forgot to login Pin
johnstonsk30-Jun-03 4:02
johnstonsk30-Jun-03 4:02 
GeneralRe: I wrote the buf[] question, Forgot to login Pin
Trollslayer30-Jun-03 5:38
mentorTrollslayer30-Jun-03 5:38 
GeneralXP zip Pin
_Magnus_30-Jun-03 4:01
_Magnus_30-Jun-03 4:01 
GeneralRe: XP zip Pin
Neville Franks30-Jun-03 11:53
Neville Franks30-Jun-03 11:53 
GeneralHelp with understanding the use of a buf[] Pin
Anonymous30-Jun-03 4:00
Anonymous30-Jun-03 4:00 
GeneralRe: Help with understanding the use of a buf[] Pin
Trollslayer30-Jun-03 5:37
mentorTrollslayer30-Jun-03 5:37 
GeneralRe: Help with understanding the use of a buf[] Pin
johnstonsk30-Jun-03 6:20
johnstonsk30-Jun-03 6:20 
QuestionCustom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl30-Jun-03 3:07
Dominik Reichl30-Jun-03 3:07 
AnswerRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Ryan Binns30-Jun-03 4:12
Ryan Binns30-Jun-03 4:12 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl30-Jun-03 6:28
Dominik Reichl30-Jun-03 6:28 

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.