grimx
Members-
Posts
90 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by grimx
-
c programming problem [solved]
grimx replied to grimx's topic in Command Line, Kernel and Programming
How do i fix it : i tryed int size = strlen(fName) fName = 'backslash n''; -
c programming problem [solved]
grimx replied to grimx's topic in Command Line, Kernel and Programming
doah!!!!!!!! I forgot about that . thanx -
c programming problem [solved]
grimx replied to grimx's topic in Command Line, Kernel and Programming
yes the Hello.txt is in the same dir as my program and i do have read-write access to the file. -
I'm using Anjuta1.2.4 #include <stdio.h> #define fSize 80 void Clear_Input(void); void ReadFile(void); void WriteFile(void); void N_Crypt(void); void D_Crypt(void); int main(void) { char option; int running = 1; while(running) { puts("===========Menu============"); puts("1) ReadFile 2) WriteFile"); puts("3) N_Crypt 4) D_Crypt"); puts("5) Quit"); puts("==========================="); option = getchar(); if((option < '1') || (option > '5')) { Clear_Input(); puts("Invalid Input"); continue; } Clear_Input(); switch(option) { case '1': ReadFile(); break; case '2': puts("WriteFile"); break; case '3': puts("N_Crypt"); break; case '4': puts("D_Crypt"); break; case '5': puts("GoodBye"); running = 0; break; default: puts("Invalid Input"); } } puts("Done"); return 0; } void Clear_Input(void) { while(getchar() != '\n') continue; } void ReadFile(void) { FILE *fp; char fName[fSize]; int letter = 0; printf("Enter File To Read: "); fgets(fName, fSize, stdin); printf("Opening %s ....\n", fName); if((fp = fopen(fName, "r")) == NULL) { printf("Unable To Open ( %s )\n", fName); return; } while((letter = getc(fp)) != EOF) putchar(letter); fclose(fp); printf("\nDone Reading Contents of ( %s )\n", fName); } void WriteFile(void) { } void N_Crypt(void) { } void D_Crypt(void) { } my problem is in the ReadFile(). When i get a file name from the keyboard (say "Hello.txt") it does not open the file, but when i hardcode the filename "Hello.txt", then it reads the file. whats going on.
-
yossarian, yes that worked Thanx.
-
When i use anjuta1.2.4 wizard to create a Gtk2.0 app and try to compile it i get this Auto generating the Project: firstone ... WANT_AUTOCONF_2_5=1 ./autogen.sh **(anjuta:7168): WARNING**:Cannot execute command: "WANT_AUTOCONF_2_5=1" Completed ...sucessful Total time taken: 1 secs and when i try to build it i get this Building source directory of the Project: firstone ... make make: *** Not targets specified and no makefile found. Stop. Completed .. successful Total time taken: 0 secs help.
-
I think i found one, i have Gnome CD Master and it has an option to burn an .iso image. problem solved. One other thang though, Mandriva 2008 will i be free to download cd .iso's??
-
Ok here is what i want to do: I download Mandriva Spring Live CD.iso and i want to burn it to a cd-rw. i checked out that program u suggested and exactly how do i burn the iso image to cd: create a "data cd" or what??
-
I'm using Mandriva 2007 where is an ISO burner/ creator that i can get??
-
i'm looking for a windows emulator, what would be a good one to use on Mandriva 2007 [moved from Software by spinynorman]
-
i got it. see i updated using Easyurpmi , and just know i saw that section on Smarturpmi and updated using it and it worked. Problem solved.
-
i updated all my mirrors (backports and all) and i'm using Mandriva 2007
-
everytime i try to download "amule" using urpmi i get this: Some requested packages cannot be installed: amule-2.1.3-2plf2007.0.i586 (due to unsatisfied libwx_baseu-2.6.so.0) Continue installation anyway? (Y/n) ----- i tryed typing y and nothing happens what do i do?? is there a different p2p program??
-
i've downloaded a few docs from MCC, but where are they?? i checked in the Applications/More Applications/Documention menu, and they are not there. [moved from Everything Linux by spinynorman]
-
yes i have gtk2-devel installed.
-
ok now what do i do next i can login to gnome in console mode, how would i change my themes back?? maybe that will make so i can login to gnome in graphics mode?? or, uninstall gnome then reinstall it, i don't know. well i renamed the gnome files in root and restarted, then tryed to login to gnome and the problem still remains.
-
i can login to kde, and the only way i can login to gnome is through root, How can i be able to login to gnome again with root acces??
-
here is what happend , i downloaded a theme and installed it using the theme manager, and using the theme manager i was switching icons and when i pressed kde low 16 my gnome desktop lost all of my pannels and left just my icons, so i was unable to logout shutdown or even get back to the theme manager, so i hit the power button on my pc tower and turned on my comp again, and when i tried to log back into gnome it flashes the gnome splash screen and takes me back to the login screen. HELP [moved from Installing Mandriva by spinynorman]
-
ok, i will
-
ok i have gtk2.0 installed i got this from the book called "Beginning Linux Programming, Second Edition. by Wrox Press 2003" when i try to compiling this #include <gnome.h> int main (int argc, char *argv[]) { GtkWidget *app; gnome_init ("example", "0.1", argc, argv); app = gnome_app_new ("example", "Window Title"); gtk_widget_show (app); gtk_main (); return 0; } i get this gcc gnome1.c -o example1 `gnome-config --cflags --libs gnomeui` bash: gnome-config: command not found gnome1.c:1:19: error: gnome.h: No such file or directory gnome1.c: In function ‘main’: gnome1.c:5: error: ‘GtkWidget’ undeclared (first use in this function) gnome1.c:5: error: (Each undeclared identifier is reported only once gnome1.c:5: error: for each function it appears in.) gnome1.c:5: error: ‘app’ undeclared (first use in this function) Help
-
yea it was net_applet i needed, but when i did that and tryed to connect to the internet i couldn't using ppp0, i tryed deleting ppp0 and creating another and it still would'nt connect, so i reinstalled Mandriva all over again from scratch and it works fine. so problem solved. i know not to do that again. lol