Morgan
04-15-2002, 04:13 PM
Is it possible for cooperating applets to share a folder, but not the shared folder?
This might make more sense with an example -- say I have an applet, "XPlayer", that is registered as a content handler for "x" files, like so
<code>ISHELL_RegisterHandler(m_pIShell, HTYPE_BROWSE, "x", AEECLSID_XPLAYER);</code>
Then another application, "LUser" (not in the same module), wants to use "XPlayer" to handle its 'x' files:
<code>ISHELL_BrowseFile(m_pIShell, "test.x");</code>
In the event handler for "XPlayer" I'm able to get the filename from "LUser"
<code>
case EVT_APP_BROWSE_FILE:
filename_ = (const char*)dwParam;
// filename is equal to "test.x"
...
</code>
but that file name does not take into account that the file is in "LUser" directory space.
Other than using the shared folder, is there any way to set it up so that "XPlayer" can get read access to a file located in "LUser" space? Would the answer be different in BREW 1.1?
Any opinions, thoughts, or suggestions are (as always) much appreciated.
This might make more sense with an example -- say I have an applet, "XPlayer", that is registered as a content handler for "x" files, like so
<code>ISHELL_RegisterHandler(m_pIShell, HTYPE_BROWSE, "x", AEECLSID_XPLAYER);</code>
Then another application, "LUser" (not in the same module), wants to use "XPlayer" to handle its 'x' files:
<code>ISHELL_BrowseFile(m_pIShell, "test.x");</code>
In the event handler for "XPlayer" I'm able to get the filename from "LUser"
<code>
case EVT_APP_BROWSE_FILE:
filename_ = (const char*)dwParam;
// filename is equal to "test.x"
...
</code>
but that file name does not take into account that the file is in "LUser" directory space.
Other than using the shared folder, is there any way to set it up so that "XPlayer" can get read access to a file located in "LUser" space? Would the answer be different in BREW 1.1?
Any opinions, thoughts, or suggestions are (as always) much appreciated.