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 strongm 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. leela74

    c to c++..

    Hi, Is it possible to access database through c program. If yes how? Or otherwise if I use the vc++ compiler... Can I join two programs one is pure c code copiled in vc++ and the other is vc++ code accessing database.... Thanks in advance Sridhar
  2. leela74

    repeating the folder name...

    Hi, SwapSwae Once again thanks alot.. these mistakes really making me something to learn and think alot...and u r the one who is saving all the time... man it really working... I was trying for strcat instead of strcpy.... Once again thanks... Have a Nice Time Sridhar
  3. leela74

    repeating the folder name...

    Hi, SwapSwae, U have got the problem... and the problem is.. as u explained... When first time prog runs, the path is "C:\\SwapC" and then we concatenate the name of file to it making it look something like this "C:\\SwapC\\abc.txt", Now when u return bk to the same u...
  4. leela74

    folder and accessing file..

    Hi, SwapSwae The following iis the code... # include <stdio.h> # include <string.h> # include <stdlib.h> #include <malloc.h> FILE *fp,*fs; int main() { //char name[8], command[20]=&quot;md &quot;; char path[18]; char name[8]; char cont = 'y'; // char drv; // char abc[20] = &quot;\&quot...
  5. leela74

    folder and accessing file..

    Hi, SwapSwae Morning!. I understood corrctly of what u said. I have declared the same way as u said. The error message I am getting when I am assigning path is.. E:\Sridhar\Opening Device\devopen.cpp(279) : error C2440: '=' : cannot convert from 'char [7]' to 'char [18]' There is no context in...
  6. leela74

    folder and accessing file..

    Hi, SwapSawe Really u r special for me... As I have made some mistakes which is almost unrecognisable and in a confusing position and u r the one who showed me the way. Thanks for that. Now again the same as u said I have created a while loop and I am saying false in the end so that the loop...
  7. leela74

    folder and accessing file..

    Hi, Once again... Yeah u r right. I have not declared enough space for the path... Now the code is working fine.. sometimes small things gives lot of problems... Now I have one more doubt... I am keeping my main() loop never ending.. in the sense the main keeps on working... when this...
  8. leela74

    folder and accessing file..

    Hi, SwapSwae Nice to see u r reply in the thread &quot;going to particular folder&quot;. Yeah u r right I am getting 99% every time and unable to get what I want... Now today I got the code as u suggested and only one error in this code is it couldn't able to allocate sufficient memory...
  9. leela74

    going to a particular folder...

    This is fine but I want this to be dynamic i.e everytime the folder name changes and so as the file name. How can I say dynamically to open a file in a particular folder... One way is dynamically pass the folder name and file name into a temp variable and concatenate and open a file. Till...
  10. leela74

    going to a particular folder...

    Hi, SwapSwae Nice to see u r reply... It is even teaching me alot and I am learning after I started this program. To recap I will tell u what I need.... I want to open a file which is existing in a specific folder. Say for eg. in C drive I have a file abc.txt under the folder abc.. I want to...
  11. leela74

    to get date and time....

    Hi, SwapSawe Its a simple thing but I tried and still trying to replace the remaining part with NULL but not succeeded.... Still unable to replace with NULL What could be wrong... Sridhar
  12. leela74

    going to a particular folder...

    Hi, SwapSawe Bit confused with the code. I am unable to move to that folder where this abc.txt exists... The code is just exiting with out any message. To recap what I need is... I want to open a file in a particular folder..For eg. there is a folder &quot;abc&quot; in c drive in that there...
  13. leela74

    going to a particular folder...

    Hi, I am facing a problem to go to a particular folder ad access a file.. The code goes like this... # include <stdio.h> # include <string.h> # include <stdlib.h> FILE *fp,*fs; int main() { char name[8]; char command[20]=&quot;cd &quot;; printf(&quot;Enter absolute path for Directory to be...
  14. leela74

    going to a particular folder...

    Hi, I am facing a problem to go to a particular folder ad access a file.. The code goes like this... # include <stdio.h> # include <string.h> # include <stdlib.h> FILE *fp,*fs; int main() { char name[8]; char command[20]=&quot;cd &quot;; printf(&quot;Enter absolute path for Directory to be...
  15. leela74

    to get date and time....

    Hi, I came to know with strrchr() function at what place the / character is... but I couldn't able to replace it with NULL How do I do this.... Thanks in advance Sridhar
  16. leela74

    to get date and time....

    Hi, With the following program I amgetting date and time in a buffer. #include <time.h> #include <stdio.h> void main(void) { char datebuf[9]; char timebuf[9]; _strdate(datebuf); _strtime(timebuf); printf(&quot;Date: %s Time: %s\n&quot;,datebuf,timebuf); } The date and time are in...
  17. leela74

    creating a folder

    Hi, Is there any possibility to check if the folder exists in a drive. For eg. in c drive I have a folder c:\abc. The application should check the existence of abc if it is not there then create a folder if it is there give an error message.. Thanks in advance Sridhar
  18. leela74

    reading a file

    Hi, SwapSwae It is working fine after changing the code. Is there any possibility to change the file name with some more additions... like in the file name I have to add date and time suppose for eg. abc is the file name I want to adddate and time in the format ddmm and HHMM then the file name...
  19. leela74

    reading a file

    Hi, SwapSwae Y'day I tested the code in Turbo c++ 3.0 compiler and the error I am getting is &quot;Null Pointer exception&quot;. Then I changed the code and brought all the contents after the If found == 'n' to found == 'y' and now I am able to create a file with the available name. But still I...
  20. leela74

    reading a file

    Hi, SwapSawe Thanks alot for the changed code. The code is working fine and asking the code to be entered. When I enter the code I am getting the earlier message...The memory instruction can not be read... The instruction at 0x00405eb8 referenced memory at 0xccccccc the memory could not be...

Part and Inventory Search

Back
Top