Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File management component

0 views
Skip to first unread message

Gunnar

unread,
Oct 19, 2002, 7:16:07 AM10/19/02
to
Hi!

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


Michael Elfial

unread,
Nov 4, 2002, 5:55:12 PM11/4/02
to
Why bother with this?
Get this:

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

0 new messages