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 IamaSherpa 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. 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?
  16. benaam

    Reading From A FIle

    hi I have a properties file called info.properties in the following format: Status = on Path = c:/somedir Now from my Code I need to read the above two parameters from this file. How do I do that?Some sample code would be helpful
  17. benaam

    Reading From A File

    hi I have a properties file in the following format: Status = on Path = c:/somedir Now from my Code I need to read from this file the above two parameters. How do I do that?Some sample code would be helpful Thanx in Advance
  18. benaam

    Path Of A FIle

    I am running my application from JWS(java work shop). I have put my source in c:/somedir. When i run my application from JWS it takes c:/Java-WorkShop20/jws/intel- win32/bin/ as the current directory instead my source code directory. SO i want to get the path of my source code(ie c:/somedir) at...
  19. benaam

    Reading from and Writing To a File

    First of all Thanx for the code. I would see whether that is helpful to me. Let me make things more clear. I have a properties file. That file goes this way: Path = &quot;c:/somedir/somefile Now, I need to the valus of the path from this file and write to the file specified in the Path...
  20. benaam

    Reading from and Writing To a File

    I need to log to a file say a.txt the following values: current date,current time,string,string For the path of a.txt, i need to read from a file called info.properties which has a lot of parameters and their values in the following format: Status = on Path = here is the path of the a.txt Now...

Part and Inventory Search

Back
Top