Click here to Skip to main content
16,012,107 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OPENGL COLOR Problem Pin
sdfdsfa24-Jul-03 10:17
sdfdsfa24-Jul-03 10:17 
Questionprotect com dll? Pin
novachen23-Jul-03 14:35
novachen23-Jul-03 14:35 
AnswerRe: protect com dll? Pin
Toni7823-Jul-03 15:42
Toni7823-Jul-03 15:42 
Generalmsvcp60.dll dependency Pin
paulb23-Jul-03 13:42
paulb23-Jul-03 13:42 
GeneralRe: msvcp60.dll dependency Pin
Toni7823-Jul-03 14:38
Toni7823-Jul-03 14:38 
Generalproblem retrieving data from list box Pin
Deepak Samuel23-Jul-03 13:33
Deepak Samuel23-Jul-03 13:33 
GeneralRe: problem retrieving data from list box Pin
Ryan Binns23-Jul-03 15:55
Ryan Binns23-Jul-03 15:55 
GeneralRe: problem retrieving data from list box Pin
Deepak Samuel23-Jul-03 23:56
Deepak Samuel23-Jul-03 23:56 
Hi,
Thanks for the help, but it still doesnt seem to work..

when i print out the value of nSel, regardless of the data i selected, it shows zero

CListBox *pList = (CListBox*)GetDlgItem(IDC_LISTBOX1);

int nSel = pList->GetCurSel();

FILE *fptr;

fptr=fopen("mynewfile.txt","a");

fprintf(fptr,"The value is %d",nSel);

fclose(fptr);


Let me tell you, the way I created my list box :
I clicked insert activex control and clicked

ListBox DTC (That was what I wanted)

In the properites box, listbox style shows "DROPDOWN".

Please help me out,
Thanks.

Deepak Samuel
GeneralRe: problem retrieving data from list box Pin
Ryan Binns24-Jul-03 2:10
Ryan Binns24-Jul-03 2:10 
GeneralLoading text into a browser control Pin
HP723-Jul-03 13:14
HP723-Jul-03 13:14 
GeneralIs it possible to use Manifest file in VC6 Pin
Valera24117623-Jul-03 10:07
Valera24117623-Jul-03 10:07 
GeneralRe: Is it possible to use Manifest file in VC6 Pin
AlexO23-Jul-03 10:43
AlexO23-Jul-03 10:43 
GeneralRe: Is it possible to use Manifest file in VC6 Pin
Debs24-Jul-03 0:25
Debs24-Jul-03 0:25 
GeneralCreating un-fragmented files Pin
od@ananzi.co.za23-Jul-03 9:02
od@ananzi.co.za23-Jul-03 9:02 
GeneralRe: Creating un-fragmented files Pin
QuiJohn23-Jul-03 9:14
QuiJohn23-Jul-03 9:14 
GeneralRe: Creating un-fragmented files Pin
AlexO23-Jul-03 9:15
AlexO23-Jul-03 9:15 
GeneralRe: Creating un-fragmented files Pin
David Crow23-Jul-03 9:15
David Crow23-Jul-03 9:15 
GeneralRe: Creating un-fragmented files Pin
John M. Drescher23-Jul-03 9:16
John M. Drescher23-Jul-03 9:16 
GeneralRe: Creating un-fragmented files Pin
Bob Stanneveld23-Jul-03 12:38
Bob Stanneveld23-Jul-03 12:38 
GeneralRe: Creating un-fragmented files Pin
Ryan Binns23-Jul-03 16:06
Ryan Binns23-Jul-03 16:06 
GeneralRe: Creating un-fragmented files Pin
Anders Molin23-Jul-03 13:41
professionalAnders Molin23-Jul-03 13:41 
GeneralRe: Creating un-fragmented files Pin
FlyingDancer23-Jul-03 15:04
FlyingDancer23-Jul-03 15:04 
GeneralRe: Creating un-fragmented files Pin
Ryan Binns23-Jul-03 16:05
Ryan Binns23-Jul-03 16:05 
GeneralRe: Creating un-fragmented files Pin
od@ananzi.co.za23-Jul-03 21:03
od@ananzi.co.za23-Jul-03 21:03 
GeneralAuto application logout Pin
Andrew Allen23-Jul-03 8:54
Andrew Allen23-Jul-03 8:54 

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.