Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Flappy

    need help with making a terminal program

    I'm currently making a terminal just for fun and to learn some python :) I'm half way through making this terminal which sends commands to the OS by using commands.getcommand("...") only problem is there doesnt really seem to be any environment there.. eg. environment variables, changing...
  2. Flappy

    accessing elements within a css class

    I'm having problems trying to access properties within an element... when the element is set up like this: <span id="bla" style="color: white; border: 1px solid black">blablabla</span> I am able to access the style properties no problem at all e.g...
  3. Flappy

    Valgrind & ccmalloc reporting garbage with simple hello world program

    Valgrind & ccmalloc are reporting that there is a memory leak with this: #include <iostream> using namespace std; int main(int argc, char** argv) { cout << "Hello World\n"; return 0; } Valgrind says: ==26081== ==26081== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)...
  4. Flappy

    Having problems with fwrite

    Cool thanks Salem, I realised I forgot to write return true the moment after I hit the submit post button [morning]
  5. Flappy

    Having problems with fwrite

    Hi, I havent had much experience with doing random access with fwrite so I'm getting this problem with it. When I write some information to a specific point within the file, it seems to end the file straight after the data I've just written and I lose the rest of the file??.. Heres the code...
  6. Flappy

    http:///?%20 what the?

    I've been running apache for years and had no problem with it until recently.. whenever i try to access a local virtual host i can never get to it eg. i type in: development and i get a not found page and the URL changes to this: http:///?%20development anyone else come across this? maybe...
  7. Flappy

    How to find length of a file?

    Thanks that should do the trick - I'm using stream so I'll use your first example there. I'm using Linux but will eventually port it over to Win32.
  8. Flappy

    How to find length of a file?

    Is it possible to find the length of a file before I read it? so i can just malloc the memory and read the file into it?
  9. Flappy

    Need help with GRUB &amp; slackware 9

    hey it worked! now thats workin i will try putting solaris and debian on :s thanks heaps :)
  10. Flappy

    Need help with GRUB &amp; slackware 9

    I've got WinXP on hda1, Red Hat 9 on hdd6 & Slackware 9.0 on hdd7.. Slackware 9 was the last one I installed but I cant get it up and running - I tried using Lilo but it didnt seem to work.. basicly Lilo has never worked on my machine - not sure why so thats why I'm using GRUB. I can boot to XP...
  11. Flappy

    MySQL &amp; C problem under Linux

    hmmm ok well /var/lib/mysql/mysql.sock must be the proper socket to use as that is the default setting that is in the my.cnf file, but how do I go about changing the /tmp location for my C program ?
  12. Flappy

    MySQL &amp; C problem under Linux

    I've written a few programs in C that access the local MySQL database on my linux system, the problem is this when I run one of my C programs it comes up with this error: Error on connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Then if I edit the socket entry...
  13. Flappy

    createElement &amp; removeChild in IE problems...

    sorry the body tag should be: <body onload=&quot;test()&quot;> also i dont want the DIV tag to be hard coded within the body of the HTML, i want it to be pure javascript driven.. thanks
  14. Flappy

    createElement &amp; removeChild in IE problems...

    i wrote this script to test out the createElement and removeChild functions, it works fine in Mozilla, but in IE, it creates the DIV layer, but when i hit a key to activate the removeChild function it says that the DIV layer does not exist? <html> <head> </head> <script...
  15. Flappy

    is it possible to pass different structures to the one function?

    hmm ok - well its starting to look like it cant be done... i cant see any point in the casting cause as you were saying if you know what you are casting it as then you may as well assign the proper type in the first place.. i think for the time being i'll just add in a switch statement and...
  16. Flappy

    is it possible to pass different structures to the one function?

    ive got a general function that will act apon whatever structure i want to pass to it but is it possible to do that? i tried this: void test(void* obj) { obj->member=.... } the compiler seems to allow the void* obj, but the compiler is giving errors when i try to access members of that function
  17. Flappy

    need help with accessing a char array from a pointer

    oh cool i didnt think of doing it like that :) yea sorry about the typo with the (i+sizeof(char*)) i did mean i*sizeof.. thanks for that! saved me alot of headaches :)
  18. Flappy

    need help with accessing a char array from a pointer

    this has me stumped... ok this is what im trying to do.. i have a structure with alot of char*'s within it - when the user inputs a new value of one of the char* members the program updates that members' value - i've left out the free commands and other stuff to make this code a bit easier for...
  19. Flappy

    How can i reduce compiled file sizes?

    when i do a ls -l thats the size that it reports, no small programs that i've ever compiled have ever come to 32k - usually the average small program compiles to around 10 or 11k im just asking this question because i remember at a place i used to work the C programmer there compiled an advert...
  20. Flappy

    How can i reduce compiled file sizes?

    Hi, I'm running Red Hat 8 and I'm programming in C and C++, but compiled file sizes seem to be a little bit big? eg: int main() { int i=0; } when i compile this with: gcc -O2 test.c -o test the file size is 9748kb - this seems a little bit large for one command - is there a way to reduce...

Part and Inventory Search

Back
Top