Click here to Skip to main content
15,890,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExecuteQuery of CDatabase not working Pin
prithaa31-Oct-07 22:09
prithaa31-Oct-07 22:09 
QuestionRe: ExecuteQuery of CDatabase not working Pin
David Crow1-Nov-07 3:10
David Crow1-Nov-07 3:10 
AnswerRe: ExecuteQuery of CDatabase not working Pin
prithaa1-Nov-07 23:06
prithaa1-Nov-07 23:06 
QuestionRe: ExecuteQuery of CDatabase not working Pin
David Crow2-Nov-07 2:35
David Crow2-Nov-07 2:35 
QuestionUpdating resource in yourself Pin
LiveShell31-Oct-07 22:06
LiveShell31-Oct-07 22:06 
AnswerRe: Updating resource in yourself Pin
Paresh Chitte31-Oct-07 22:39
Paresh Chitte31-Oct-07 22:39 
GeneralRe: Updating resource in yourself Pin
LiveShell31-Oct-07 23:10
LiveShell31-Oct-07 23:10 
QuestionNoob need help in c pro.. Pin
cue_ball31-Oct-07 21:54
cue_ball31-Oct-07 21:54 
Hi guys.. wanna ask abt a question on c programming.. no c++ or c# but didnt find the right place to post this.. so here goes..

Currently doing a project on c,
aim is to retrived certain field from a .txt file..
my question is do i need to create a structure for that txt file..
if not.. how do i skip a field when readin from a .txt file.??

etc of what in the .txt file
[clientA] [id] [password]
[clientB] [id] [password]

i wanna retrieve the id and password only..

so far i only wanna to opent eh file and print all the info out..
can i use fscanf to do it.

tks guys

the problem i face nw is that the info in the txt file is of different length.
etc.. the clientA name can be 10char n b is 15 char.

i manage to read the strinf from the .txt file and store it into a array[200];
i was tinkin to try to seprate the id and password and store them into different array and use strcmp to check with the user input.

etc from .txt
peter 1111 abcdef
michard 1112 cccbefj

so im tryin to get the id ( 1111 and 1112) out and password abcdef and cccbefj

but im really having a hard time doing so..

AnswerRe: Noob need help in c pro.. Pin
cue_ball31-Oct-07 21:58
cue_ball31-Oct-07 21:58 
AnswerRe: Noob need help in c pro.. Pin
John R. Shaw31-Oct-07 22:20
John R. Shaw31-Oct-07 22:20 
GeneralRe: Noob need help in c pro.. Pin
cue_ball31-Oct-07 22:33
cue_ball31-Oct-07 22:33 
GeneralRe: Noob need help in c pro.. Pin
John R. Shaw1-Nov-07 12:50
John R. Shaw1-Nov-07 12:50 
AnswerRe: Noob need help in c pro.. Pin
Iain Clarke, Warrior Programmer1-Nov-07 2:26
Iain Clarke, Warrior Programmer1-Nov-07 2:26 
GeneralRe: Noob need help in c pro.. Pin
Robert Surtees1-Nov-07 14:40
Robert Surtees1-Nov-07 14:40 
AnswerRe: Noob need help in c pro.. Pin
Vijjuuu.1-Nov-07 2:43
Vijjuuu.1-Nov-07 2:43 
AnswerRe: Noob need help in c pro.. Pin
David Crow1-Nov-07 3:21
David Crow1-Nov-07 3:21 
QuestionHow to get a device's firmware Serial Number? Pin
kcynic31-Oct-07 21:07
kcynic31-Oct-07 21:07 
AnswerRe: How to get a device's firmware Serial Number? Pin
codn1-Nov-07 1:04
codn1-Nov-07 1:04 
QuestionAbout CImageList Pin
fantasy121531-Oct-07 20:40
fantasy121531-Oct-07 20:40 
AnswerRe: About CImageList Pin
Naveen31-Oct-07 20:51
Naveen31-Oct-07 20:51 
AnswerRe: About CImageList Pin
Hamid_RT31-Oct-07 21:02
Hamid_RT31-Oct-07 21:02 
QuestionRe: About CImageList Pin
fantasy121531-Oct-07 21:46
fantasy121531-Oct-07 21:46 
AnswerRe: About CImageList Pin
Hamid_RT1-Nov-07 1:07
Hamid_RT1-Nov-07 1:07 
Question[Message Deleted] Pin
purplee8531-Oct-07 19:57
purplee8531-Oct-07 19:57 
AnswerRe: GDIPLUS.h Pin
Naveen31-Oct-07 20:22
Naveen31-Oct-07 20:22 

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.