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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by benaam

  1. benaam

    Problem with GD of PERL

    HI, I am drawing a bar graph with 6 bars using GD of PERL. I am even displaying the values on top of the graphs. My code is as follows: #!/usr/local/bin/perl5 use GD::Graph::bars; use CGI qw(:standard); my $cgi = new CGI; my $title = $cgi->param('title'); #$title="Bar Graph&quot...
  2. benaam

    Java Applets on Local M/c

    You can check that in the Java Console of your browser
  3. benaam

    Header Files

    My A.cpp is #include &quot;A.h&quot; writeFile() { cout<<&quot;hello&quot;<<endl; } and in A.h I defined writeFile as a static method. Now in my B.cpp goes as follows: #include &quot;A.h&quot;; int main() { A::wirteFile(); } I put all the header files and .cpp files in the same directory...
  4. benaam

    Header File in C++

    1300.1 Hi All I am a novice to C++. So dont know anything about it. Now i have written a .cpp file say A.cpp and want to include it in B.cpp. Initially what I was doing was just including A.cpp in B.cpp but later I found out that it is not the right way. But i am unable to figure out how to...
  5. benaam

    problem with ofstream

    I have got a strange problem.I have the following code: I have a static method in X.cpp which is as follows: void X::log() { if(fs.is_open() == 0) { fs.open(&quot;log.txt&quot;,ios::app); fs<<&quot;hello&quot;; } else fs<<&quot;hello&quot;; } } I...
  6. benaam

    Static Variable in C++

    I have the follwing class defined in X.cpp class X { public: static bool bl_PropFile; void static writeToFile() { if(bl_PropFile == true) { // do something } else if(bl_PropFile == false) { // do something } } }; bool MonitorCode::bl_PropFile...
  7. benaam

    Configuration File in C++

    Are there any ways of reading the config file from my program at runtime?
  8. benaam

    Configuration File in C++

    HI, Whats the configuration file called in C++ to get runtime parameters? For eg its called properties file in JAVA with extension .properties. This properties file is used to get run time parameters to be specified by the client. What is it in C++? And how to read from this configuration File...
  9. benaam

    File Streams

    HI How do i check in C++ whether a directory exists or not? If exists does it have write permissions? How do I do the above checks? Some sample code will helpful Thanx in Advance
  10. benaam

    String Problem

    Hi How to convert from char arrays to strings? For eg: in my program I have declared as follwing: char c[20] = &quot;hello&quot;; String s; Now i want to get the value of c into s. How do I do that? Sample code would be useful Thanx in Advance
  11. benaam

    Date problem

    Hi All How do i get the current date in &quot;yyyy/mm/dd hh:mm:ss&quot; format? And how do I get the time difference between two dates?I want to get the difference in hours
  12. benaam

    Concept OF UDP in C++

    Sorry. Its Not ColdFusion. Rather its C++.
  13. benaam

    Concept OF UDP in C++

    Q)Does ColdFusion support UDP?If yes then asnwer my next question. Q) I have a client and server. I need to send some data packets from client to the server using UDP. The server then receives the packets. Now dont ask me y am I using UDP when its not reliable. Y cant u use TCP/IP? But thats...
  14. benaam

    Concept of UDP in ColdFusion

    Does ColfFusion support UDP?If yes then how do we send Data packets in ColdFusion using UDP?
  15. benaam

    IP ADDRESS

    Hi I have got an application.This application has a method which is called by many other applications.How to get the IP Address of the application calling this method?

Part and Inventory Search

Back
Top