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

C / C++ / MFC

 
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 
AnswerRe: Noob need help in c pro.. Pin
cue_ball31-Oct-07 21:58
cue_ball31-Oct-07 21:58 
this is what i wrote.. pardon me for such stupid programmin..

#include<stdlib.h>
#include<stdio.h>
#include<io.h>
#include<fcntl.h>
#define EOF (-1)



char passwordchk(char id[],char pw[]);


main()
{
char pw[10];
char id[10];
printf("id:");
gets(id);
printf("\npassword:");
gets(pw);
printf("\nThis if for testing purpose..id=%s\tpw=%s",id,pw);
passwordchk(id,pw);
getchar();
}

char passwordchk(char id[],char pw[])
{
FILE *f;
int i;
int c,count=0;
char buffer[200];
char checker[200];
char id_one[3];
char id_two[3];
char id_three[3];
char one_pw[6];
char two_pw[6];
char three_pw[6];

printf("\nstuff that is pass over to pw function %s,%s\n",id,pw);

f = fopen("passwd.txt", "rt");
while((c=fgetc(f))!=EOF)
{
buffer[count]=c;
count++;
}
printf("\nFrom buffer\n%s",buffer);

fclose(f);
}


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 
AnswerRe: GDIPLUS.h Pin
Hamid_RT31-Oct-07 21:02
Hamid_RT31-Oct-07 21:02 

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.