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
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
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...
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...
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...
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...
Hi, SwapSwae
Nice to see u r reply in the thread "going to particular folder".
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...
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...
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...
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
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 "abc" in c drive in that there...
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]="cd ";
printf("Enter absolute path for Directory to be...
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]="cd ";
printf("Enter absolute path for Directory to be...
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
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("Date: %s Time: %s\n",datebuf,timebuf);
}
The date and time are in...
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
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...
Hi, SwapSwae
Y'day I tested the code in Turbo c++ 3.0 compiler and the error I am getting is "Null Pointer exception". 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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.