I'm trying to write a file management component in C++ to use with ASP. The
component is supposed to open a file, write some text to it and then close
it.
The problem is that the component is not able to open the file. I have
written the following method in the component:
STDMETHODIMP CFM::TestFile(int *foo)
{
FILE *fp;
if ((fp=fopen("test.txt","w")) == NULL){
*foo = -1;
return 99;
}
fprintf(fp,"test\ntest");
fclose(fp);
return S_OK;
}
Any suggestions on what I am doing wrong?
/G
http://www.newobjects.com/prodct/Category/63
and do with the files whatever you want from ASP. Well its free not fully
documented yet but I can be asked for help :)
"Gunnar" <gu...@gunni.org> wrote in message
news:X9bs9.297$h%5.8...@newsb.telia.net...