Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog to Doc or Dialog to View update Pin
29-May-01 7:39
suss29-May-01 7:39 
GeneralRe: Dialog to Doc or Dialog to View update Pin
Christian Graus29-May-01 13:16
protectorChristian Graus29-May-01 13:16 
GeneralGetting links in Internet Explorer Pin
Crocmort29-May-01 6:44
Crocmort29-May-01 6:44 
GeneralRe: Getting links in Internet Explorer Pin
Ghazi H. Wadi29-May-01 7:26
Ghazi H. Wadi29-May-01 7:26 
GeneralDDBs, DIBs and printing Pin
Richard Jones29-May-01 6:37
Richard Jones29-May-01 6:37 
GeneralRe: DDBs, DIBs and printing Pin
Chris Losinger29-May-01 6:49
professionalChris Losinger29-May-01 6:49 
GeneralRe: DDBs, DIBs and printing Pin
Christian Graus29-May-01 13:01
protectorChristian Graus29-May-01 13:01 
GeneralIterating Arrays Pin
29-May-01 6:13
suss29-May-01 6:13 
Hey all. This is a simple question.

I have an array I want to iterate. Its in a for loop, and each item of a 3-Dimensional array needs to be assigned a string from an input file. Unfortunately, I keep getting errors when trying to put a string in an array index. I use this line:

inFile.get(ID[i][0], 7, '|');

ID is the array and i is the for loop index. Here's the error:

error C2664: 'class istream &__thiscall istream::get(char *,int,char)' : cannot convert parameter 1 from 'char' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

I've looked up the error and read everything from arrays to pointers to indexing to mountain goats and can't find the right way to do this. I'd appreciate any help. Thanks.

-Tony
GeneralRe: Iterating Arrays Pin
Michael Dunn29-May-01 9:41
sitebuilderMichael Dunn29-May-01 9:41 
GeneralDriver communicating with a service Pin
DB29-May-01 5:41
DB29-May-01 5:41 
GeneralRe: Driver communicating with a service Pin
Anders Molin29-May-01 9:05
professionalAnders Molin29-May-01 9:05 
GeneralMove the menubar and toolbars permanently in SDI app Pin
29-May-01 5:08
suss29-May-01 5:08 
GeneralWMA File Format Pin
James Spibey29-May-01 4:36
James Spibey29-May-01 4:36 
GeneralRe: WMA File Format Pin
Christian Graus29-May-01 13:03
protectorChristian Graus29-May-01 13:03 
Generalhelp!!! Pin
29-May-01 4:12
suss29-May-01 4:12 
GeneralHandle WM_CHAR in a Dialog Pin
29-May-01 3:55
suss29-May-01 3:55 
GeneralRe: Handle WM_CHAR in a Dialog Pin
Tomasz Sowinski29-May-01 4:01
Tomasz Sowinski29-May-01 4:01 
GeneralRe: Handle WM_CHAR in a Dialog Pin
29-May-01 4:18
suss29-May-01 4:18 
GeneralRe: Handle WM_CHAR in a Dialog Pin
29-May-01 4:20
suss29-May-01 4:20 
GeneralRe: Handle WM_CHAR in a Dialog Pin
Hadi Rezaee29-May-01 16:24
Hadi Rezaee29-May-01 16:24 
GeneralActive X controls in Internet Explorer Pin
Jared Allen29-May-01 3:34
Jared Allen29-May-01 3:34 
GeneralRe: Active X controls in Internet Explorer Pin
Michael Dunn29-May-01 9:43
sitebuilderMichael Dunn29-May-01 9:43 
GeneralRe: Active X controls in Internet Explorer Pin
Jared Allen29-May-01 12:33
Jared Allen29-May-01 12:33 
GeneralGet tree item Pin
hearties29-May-01 3:22
hearties29-May-01 3:22 
GeneralRe: Get tree item Pin
MikeG29-May-01 8:13
MikeG29-May-01 8:13 

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.