Click here to Skip to main content
15,914,289 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalget ComboBox item data Pin
zecodela16-Jun-04 17:16
zecodela16-Jun-04 17:16 
GeneralRe: get ComboBox item data Pin
palbano16-Jun-04 17:46
palbano16-Jun-04 17:46 
GeneralRe: get ComboBox item data Pin
RChin16-Jun-04 23:07
RChin16-Jun-04 23:07 
GeneralRe: get ComboBox item data Pin
RChin16-Jun-04 23:17
RChin16-Jun-04 23:17 
GeneralAdding menu-item in window's right click menu Pin
Anonymous16-Jun-04 16:46
Anonymous16-Jun-04 16:46 
GeneralRe: Adding menu-item in window's right click menu Pin
Indivara16-Jun-04 17:59
professionalIndivara16-Jun-04 17:59 
GeneralLose focus window... Pin
uniqueworld16-Jun-04 16:46
uniqueworld16-Jun-04 16:46 
Generalglobal array pls pls help Pin
Anonymous16-Jun-04 16:24
Anonymous16-Jun-04 16:24 
hi guys i hope you can help me i've been stuck for hours now...

i have 2 *.cpp files

file1.cpp has an array of a structure:

struct vertices_structure
{
int array_pos;
int adjacentVerts[20];
};
vertices_structure vert[200];


in file2.cpp i have declared the structure array as extern:

extern vertices_structure vert[];

and now i wanna use the array in a normal way like any other array.
example:

int muh=vert[0].array_pos;

but that doesnt work at all.
there are NO error messages when i compile the code, but i know it doesnt work. i cant use vert[] as normal array either in file1.cpp nor file2.cpp.

cause when i run the debugger the vert[] isnt shown as array but its shown as a pointer. when i delete the row above with "int muh..." from file2.cpp the debugger shows vert[] as array again and everything works normal as its supposed to be.
can someone explain that and helpme here?
GeneralRe: global array pls pls help Pin
nguyenvhn16-Jun-04 17:14
nguyenvhn16-Jun-04 17:14 
GeneralRe: global array pls pls help Pin
John R. Shaw17-Jun-04 13:03
John R. Shaw17-Jun-04 13:03 
Generaldll function calls Pin
Member 19033516-Jun-04 14:54
Member 19033516-Jun-04 14:54 
GeneralRe: dll function calls Pin
palbano16-Jun-04 16:08
palbano16-Jun-04 16:08 
GeneralRe: dll function calls Pin
Member 19033516-Jun-04 16:20
Member 19033516-Jun-04 16:20 
Generalplotting cpu and mem consumption Pin
vvim16-Jun-04 14:32
vvim16-Jun-04 14:32 
GeneralRe: plotting cpu and mem consumption Pin
Antony M Kancidrowski17-Jun-04 1:50
Antony M Kancidrowski17-Jun-04 1:50 
GeneralRe: plotting cpu and mem consumption Pin
vvim18-Jun-04 2:25
vvim18-Jun-04 2:25 
GeneralMenubar problem Pin
group716-Jun-04 13:04
group716-Jun-04 13:04 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 20:51
Anthony_Yio16-Jun-04 20:51 
GeneralRe: Menubar problem Pin
group716-Jun-04 22:43
group716-Jun-04 22:43 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 23:08
Anthony_Yio16-Jun-04 23:08 
Questioninstance name from thread id? Pin
ben216-Jun-04 12:04
ben216-Jun-04 12:04 
AnswerRe: instance name from thread id? Pin
Blake Miller16-Jun-04 13:21
Blake Miller16-Jun-04 13:21 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:02
ben216-Jun-04 15:02 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:12
ben216-Jun-04 15:12 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:17
ben216-Jun-04 15:17 

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.