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

  • Users: Timil
  • Order by date
  1. Timil

    REMOTE_ADDR return 127.0.0.1 on W2K?

    I'm actually running a little page with $REMOTE_ADDR The problem is that any computer with NT4 or W9x on it have its own IP well recorded in the $REMOTE_ADDR global. But all W2k computer instead return 127.0.0.1 as remote adress.... Can someone save me??
  2. Timil

    Per-to-per chat problem

    I have a C++ server that keep data on users using the chat applet (username + ip + room). Two client can speak to each other just by sending message to the target IP (other connected, recipient of the message) The problem is that ip resolution is just impossible throught Proxy and Firewall...
  3. Timil

    I can't solve class calling each others function.

    I've to class: class A { public: void start(); void stop(); void calling_function(); } class B { public: void foo(void (*start)(), void (*stop)()); } This may seem stupid, but those are C program part transformed in classes. My question is: Before, only class B exist, and this work...
  4. Timil

    Novice with Linux C question

    OOps :( I also don't think that the pre-compiler will love the #define BASEPORT 0x3FC /*com 1 */ #define BASEPORT 0x2FC /*com 2 */ Both BASEPORT definition may be not allowed. Try to use 2 different name like BASEPORT_COM_1 and _COM_2.
  5. Timil

    Novice with Linux C question

    I do not have gcc but I can see one problem.. And this may solve all others error :) You write: #define BASEPORT 0x3FC /*com 1 */ define BASEPORT 0x2FC /*com 2 */ // <- Miss a '#' Correction #define BASEPORT 0x3FC /*com 1 */ #define BASEPORT 0x2FC /*com 2 */
  6. Timil

    Webpage errors &quot;Want to debug?&quot; How to disable? Please Help!

    I think the question is &quot;When I'm on the Internet and viewing some sites ill-developped. How do I bypass the automatic error detection of VisualStudio?&quot; The answer is &quot;I don't know&quot;
  7. Timil

    Solving external Object definition

    OOps :) Sorry.. Just defined those object in the .cpp containing main :) Work better this way *LOL* Timil, sleepy programmer at work :(
  8. Timil

    Solving external Object definition

    Hum.. What I have not speak about (or maybe I'm not as clear as needed :p): My project have a special aspect. TProgram call all others class CClass1 is a class defining one aspect of the game, like the car pilotes will uses CClass2 is a class defining one aspect of the game, like the car...
  9. Timil

    Solving external Object definition

    Hum.. already tried.. The problem is: I need it in different class, and the first class call activate the &quot;#define&quot; clause, preventing others class to use the defined object.. I want a SINGLE instance of my objet GameLog and SysLog, not to redefine them into each class :( :( Sorry...
  10. Timil

    Solving external Object definition

    I have quite a problem: I use a log class called TLog, whith a constructor: TLog(bool p_view, char* p_insert, char* p_folder, char* p_file_name); P_view: On screen True, else writen in file p_insert: char* to be inserted on the beginning on each line. p_folder: folder where to write the log...
  11. Timil

    Oracle 8i and VSC++ incompatibility

    If I try to use the ofstream.h library, I get the following error at the compilation: << d:\oracle\ora81\oci\include\oratypes.h(278) : error C2378: 'text' : redefinition; symbol cannot be overloaded with a typedef c:\program files\microsoft visual studio\vc98\include\fstream.h(161) : see...
  12. Timil

    Overloading Operators...

    Hem.. now I have the recurrent problem.. It write &quot;Syslog &quot; each time I use the operator <<.. Like in l_log << &quot;Test&quot; << 6548; Result: Syslog TestSyslog 6548.. *Sob :)*
  13. Timil

    Overloading Operators...

    SOLVED: void TFichier::operator<<(char* p_string) { ofstream l_out(&quot;File.txt&quot;, ios::out | ios::app); _donnee = p_chaine; // _donnee is a class value l_out << &quot;SysLog &quot; << _donnee; l_sortie.close(); } Sorry.. it was simple but I miss the point :( :( lol
  14. Timil

    Overloading Operators...

    Yes but.. it does not allow me to transform the (ofstream)l_output << &quot;This string&quot;; to append a file with SysLog This string :( Thank you
  15. Timil

    Overloading Operators...

    Akay.. so I will try again with another explanation (as nothing work :() I want to creat a fonction/class which accept to use the operator<< with a string like this: TOutput l_output; _output.open(&quot;test.fichier&quot;, ofstream::out | ofstream::app); _output<< &quot;Output\n&quot...
  16. Timil

    What means &quot;++&quot; in the C++ name?

    C++ is not a C with some more stuff.. it's just a different langage with ascendancy compatibility with the C langage
  17. Timil

    Overloading Operators...

    I'm searching how to overload the operator<< in a subclass of ofstream (not ostream!) I can't understand why it work with ostream but not with ofstream (and book example are for ostream :()

Part and Inventory Search

Back
Top