Discussion:
Problem with BAppFileInfo
(too old to reply)
W. Boeke
2003-10-16 13:00:37 UTC
Permalink
Hi,

The BeBook documentation for BAppFileInfo is not correct - it should
be part of The Storage Kit/NodeInfo.html, but it is not there. I found
documentation for it in the old R3 doc, and tried to use it as follows:

BAppFileInfo afi(&app);
BMessage msg;
msg.AddString("types","text/plain");
afi.SetSupportedTypes(&msg);

The last statement returns error code B_ENTRY_NOT_FOUND, I don't know
why, and I don't know how to do it better. Any help would be much
appreciated, as usual.

Wouter Boeke
m***@xs4a11.nl
2003-10-16 18:23:34 UTC
Permalink
Post by W. Boeke
The BeBook documentation for BAppFileInfo is not correct - it should
be part of The Storage Kit/NodeInfo.html, but it is not there. I found
BAppFileInfo afi(&app);
What is 'app' ?
Wouter Boeke
2003-10-16 19:03:06 UTC
Permalink
Post by m***@xs4a11.nl
What is 'app' ?
An existing, opened BFile.
m***@xs4a11.nl
2003-10-16 19:20:10 UTC
Permalink
Post by Wouter Boeke
Post by m***@xs4a11.nl
What is 'app' ?
An existing, opened BFile.
Are you sure it opened correctly? Did you call InitCheck() on it?
W. Boeke
2003-10-17 08:34:23 UTC
Permalink
Dear m4rcone,

Please stop giving trivial suggestions. You can be shure that when
I ask a question in this forum I did everything possible to find a
solution myself. The problem in this case is that function
BAppFileInfo::SetSupportedTypes() is not documented in the BeBook,
so all I ask is if somebody knows more about it.

Kind regards,
Wouter Boeke
m***@xs4a11.nl
2003-10-17 17:30:23 UTC
Permalink
Post by W. Boeke
Dear m4rcone,
Please stop giving trivial suggestions.
Fine, you figure it out then. Good luck.
Jøhnny Fävòrítê (it means "genetic antagonism")
2003-10-17 17:29:00 UTC
Permalink
Post by W. Boeke
Dear m4rcone,
Please stop giving trivial suggestions.
Dear Wouter Boeke,

Please stop being a jerk.

Have you not noticed that Marco is one of the few knowledgeable people
who still give a flying fig about BeOS?

And by the way,

*PLONK*
W. Boeke
2003-10-18 08:40:52 UTC
Permalink
Hello friends,

It occurs to me that some of you are rather touchy (which,
according to my dictionary, is the proper translation for
"snel aangebrand" in Dutch). I apologize for the bad feelings
that I caused. In the meantime I still have that problem with
BAppFileInfo ....

Wouter Boeke
Earl Colby Pottinger
2003-10-28 02:44:39 UTC
Permalink
Post by W. Boeke
Dear m4rcone,
Please stop giving trivial suggestions. You can be shure that when
I ask a question in this forum I did everything possible to find a
solution myself. The problem in this case is that function
BAppFileInfo::SetSupportedTypes() is not documented in the BeBook,
so all I ask is if somebody knows more about it.
Kind regards,
Wouter Boeke
It is not a trivial suggestion. The reason he asked is because many bugs
exist in programs because a programmer assumed that something was already
done because it is so simple it could not be missed!

On friday I drove 40 kilometers on a service call only to find that they
forgot to turn the power bar on, when I pointed out the site-admin what the
problem was she said "But the computer and monitor are also plugged in and
working." at which point I noted that the computer and monitor were plugged
directly into the wall socket and the other power cords she saw plugged into
the power bar were for the printer, scanner, speakers, coffee maker and
something that I don't know what it was.

So a $150 plus tax service call because the site admin assumed the power
cords were from the working computer/monitor without doing a five minute
check.

There are no silly questions.

Earl Colby Pottinger
--
I make public email sent to me! Hydrogen Peroxide Rockets, OpenBeos,
SerialTransfer 3.0, RAMDISK, BoatBuilding, DIY TabletPC. What happened to
the time? http://webhome.idirect.com/~earlcp
Loading...