OK, take a deep breath...
Let's say I have a FolderItem in RB, and I have a dylib written in
C++ that calls the POSIX function lstat() (or stat()) to verify the
existence of the file.
lstat() takes a char* argument for the path. But under what Encoding?
Most of the time this works, but not in some cases. In this case I
have a trademark symbol, and ultimately lstat() rejects the char* I
throw at it.
Here's my process:
-I take the AbsolutePath of the folder item
-I convert that into a memoryblock
-I pass that pointer to the dylib as a char*
-That gets passed into lstat()
-lstat() returns -1, and checking it says the path does not exist\
The trademark symbol out of AbsolutePath gets a 3-byte listing
0xA284E2 (forgive my byte order). Apparently lstat() doesn't like
that, but what DOES it like? I'll change to whatever lstat() likes,
but what would you think it likes?
* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte |
| Customer Service Representative, President |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE |
| Willmar, MN 56201 USA |
| |
| 800-8-PRO-EPS Toll Free Order Line (US Only) |
| 320-235-9798 Tech Support, Sampler Questions |
| International Line |
| 360-838-7689 Fax |
| Product Sales: sales@chickensys.com |
| Product Support: support@chickensys.com |
| Sampler Q+A: qa@chickensys.com |
| Web Page: www.chickensys.com |
* * * * * * * * * * * * * * * * * * * * * * * * * * *
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|