Click here to Skip to main content
15,929,597 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cstring heap error Pin
Amit Jain23-Aug-01 13:58
Amit Jain23-Aug-01 13:58 
GeneralRe: cstring heap error Pin
Bret Faller23-Aug-01 14:37
Bret Faller23-Aug-01 14:37 
GeneralRe: cstring heap error Pin
Amit Jain23-Aug-01 14:41
Amit Jain23-Aug-01 14:41 
GeneralRe: cstring heap error Pin
Amit Jain23-Aug-01 16:36
Amit Jain23-Aug-01 16:36 
QuestionDirect input 8? Pin
23-Aug-01 10:32
suss23-Aug-01 10:32 
AnswerRe: Direct input 8? Pin
Christian Graus23-Aug-01 12:28
protectorChristian Graus23-Aug-01 12:28 
GeneralRe: Direct input 8? Pin
24-Aug-01 0:23
suss24-Aug-01 0:23 
GeneralBYREF from VB to VC DLL HELP! Pin
23-Aug-01 7:45
suss23-Aug-01 7:45 
So.. i need to send from VB6 a STRUCTURED ARRAY into a VC++ DLL!!

i just prepared this 2 file:

VB6 EXE FILE
------------
public type secondarr
value1 as long
value2 as long
end type

publit type strarr
superarr() as secondarr
value3 as long
end type

Private Declare Function tryout Lib "<myc++lib>" (Byref PArr as strarr) as long

public sub PassArray()
dim myarr(0) as starr
redim myarr(0).superarr(0)
myarr(0).value3=3
myarr(0).superarr(0).value1=1
myarr(0).superarr(0).value2=2
msgbox tryout(myarr(0))
end sub

VC
----
[this is a Dynamic-DLL]
[....]
//only function and struct here

[in h]
struct secondarr
{
int value1;
int value2;
};

struct strarr
{
secondarr* superarr;
int value3;
};

[in cpp]
int tryout(strarr * myarr)
{
return strarr[0].superarr[0].value1; // <-- don't work
return stratt[0].value3; // <-- work correctly...
};


...................

so where is the problem????

i need to read a substructired array but... in this case i only operate on first level of array....

any one has other solution???????

thx....
GeneralCDialog problem on Windows 2000 Pin
Craig Miller23-Aug-01 7:37
Craig Miller23-Aug-01 7:37 
GeneralRe: CDialog problem on Windows 2000 Pin
CodeGuy23-Aug-01 10:52
CodeGuy23-Aug-01 10:52 
GeneralRe: CDialog problem on Windows 2000 Pin
Craig Miller23-Aug-01 12:44
Craig Miller23-Aug-01 12:44 
GeneralCDialogBar buttons. Pin
John Uhlenbrock23-Aug-01 7:22
John Uhlenbrock23-Aug-01 7:22 
GeneralRe: CDialogBar buttons. Pin
Tomasz Sowinski23-Aug-01 7:24
Tomasz Sowinski23-Aug-01 7:24 
GeneralPATH AND REGION : HELP Pin
23-Aug-01 7:21
suss23-Aug-01 7:21 
GeneralRe: PATH AND REGION : HELP Pin
23-Aug-01 7:43
suss23-Aug-01 7:43 
GeneralRe: PATH AND REGION : HELP Pin
Christian Graus23-Aug-01 12:34
protectorChristian Graus23-Aug-01 12:34 
GeneralTracking the mouse Pin
Bret Faller23-Aug-01 7:12
Bret Faller23-Aug-01 7:12 
GeneralRe: Tracking the mouse Pin
CodeGuy23-Aug-01 11:00
CodeGuy23-Aug-01 11:00 
GeneralRe: Tracking the mouse Pin
Bret Faller23-Aug-01 11:25
Bret Faller23-Aug-01 11:25 
GeneralRe: Tracking the mouse Pin
CodeGuy23-Aug-01 11:31
CodeGuy23-Aug-01 11:31 
GeneralRe: Tracking the mouse Pin
Bret Faller23-Aug-01 11:33
Bret Faller23-Aug-01 11:33 
GeneralRe: Tracking the mouse Pin
Bret Faller23-Aug-01 11:46
Bret Faller23-Aug-01 11:46 
GeneralRe: Tracking the mouse Pin
CodeGuy24-Aug-01 3:57
CodeGuy24-Aug-01 3:57 
GeneralRe: Tracking the mouse Pin
Bret Faller24-Aug-01 6:21
Bret Faller24-Aug-01 6:21 
GeneralRIFF file parser Pin
Erik Hammar23-Aug-01 7:00
Erik Hammar23-Aug-01 7:00 

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.