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 Chriss Miller 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: *

  • Users: Flappy
  • Content: Threads
  • Order by date
  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

    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...
  5. 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...
  6. 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?
  7. 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...
  8. 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...
  9. 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...
  10. 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
  11. 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...
  12. 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...
  13. Flappy

    kdeveop giving me problems

    Hi, I've written a key generator program in C++ with VI and it compiles no problems at all with g++. The program has a class within it called &quot;Encrypt&quot;. Within KDevelop I created a nice little GUI to control the program instead of having to go to the shell to execute it. Within the...
  14. Flappy

    function pointer within a struct?

    how would i go about having a function pointer within a struct? i've gotten this far and it seems to work but the function doesnt seem to be getting called: struct Page { char* title; ... void (*out)(const char*); } void out(const char* str) { printf(&quot;%s\n&quot;,str); } struct...
  15. Flappy

    return type vector&lt;string&gt; throwing heaps of warnings

    Hi me again, ne1 know why this would be throwing alot of warnings? class blaba { vector<string> dosomething(... , ..); }; vector<string> dosomething(... , ..) { ... }; it only seems to throw warnings when trying to use a return type of vector<string> - any other type of vector its fine...
  16. Flappy

    convert a char array to a string?

    I know I can use .c_str() to convert a string to a char array but what about the other way around?
  17. Flappy

    Need help on simple return types from functions

    I've got some questions about return types from functions... I've written a few programs now in C++ and they are working fine but I'm not sure if they are really programmed properly or not. The only issue that I'm faced with is am I returning valid values/objects that are safe? Like is it...
  18. Flappy

    C++ Newb: Win &amp; Unix Socket Programming

    Hi guys, I've been programming all my CGI scripts in Perl and now want to change over to C++ to speed them up a bit. I've got a simple email submit program that I wrote in Perl and I'm not sure how to go about it in C++, I want to connect to the mail server using sockets but I want the program...
  19. Flappy

    ARRGGG How do i simulate a form post within PERL?

    i just cannot find information on this anywhere! i have a form on a webpage that calls my CGI PERL script, my script processes the passed variables and saves them, but then i need my PERL script to submit a form off to another website. can this be done??????? please help

Part and Inventory Search

Back
Top