An extension can already use the GetDependencies() function to define files in the \data\runtime\ folder which needs to be included, so you can embed a DLL in this manner without the exe crashing.Originally Posted by Greyhill












An extension can already use the GetDependencies() function to define files in the \data\runtime\ folder which needs to be included, so you can embed a DLL in this manner without the exe crashing.Originally Posted by Greyhill
.:::.Joshtek.:::.




I'm still trying to figure this out.
From a previous post:
Let's see if I understand this. On each user's machine, under his user name, each application has a data directory where it can store files? So I found the following path for MMF2:
C:\Documents and Settings\Stephen\Application Data\Clickteam\MMF2 Developer
Answer was yes, but I would need to create this data directory. I still can't figure out how to create this directory, I assume with the file object. How do I get the drive letter (the application will probably be on a server), the users name, etc. I assume I make up th names of the application subdirectory myself. Any help appreciated.
Steve
You should take a look at the File Object's help doc under Expressions / Directories.![]()

I don't know what you don't understand, it sounds easy to do. Just use a "Create a directory" action with the following parameter :
AppDataDirectory$( "File" ) + "YourSubDirName"
If you have to create several levels of sub-directories, for example "YourCompany\YourProduct", use 2 create directory actions:
AppDataDirectory$( "File" ) + "YourCompany"
AppDataDirectory$( "File" ) + "YourCompany\YourProduct"




Yves,
Thanks for your patience and info. I've searched the MMF2 help, the knowledge base, and my notes, but I have not been able to find:
AppDataDirectory$("File") anywhere. So I'm not sure how I should know. Is it some kind of Windows code that I could look up?
I used to have a print out of a doc file on the File object but cannot find it.
I followed your directions and a directory was created. It seemed to type ("File") as shown. Should I be typing something in for "File"?
Tomorrow I will test this on my school's server and see if it works there as it did on my machine.
Thanks,
Steve




OliverPearl,
I've checked the help on MMF 2 and did not find any specific expressions like the one give to me by Yves. Is there a doc file available somewhere else that I should know about? I did not find it either in the MMF 1.5 or MMF 2 help files anywhere.
Steve

AppDataDirectory$ is one of the expressions of the File object. In the expression editor, when you click the Retrieve Data From Object button, right click the File object and look at the Directories sub-menu.
To display quickly the help file of an object, select this object and then select the About tab in its properties and click the Help button.
I was talking about the specific help file of the File object. You can access it by browsing your MMF2 directory: Multimedia Fusion 2 > Help > File.chm
You can also open it from within the Frame Editor. Select the File object and click on 'Help' in the 'About' tab of its properties window.
EDIT: Ha Yves was faster.




Yves,
My apologies. I was right clikcing on the Special and looking at the filenames rather than right clicking on the file object. Now it's obvious. This working full time as a school teacher is getting in the way of the real fun of using MMF 2. Thanks again.
Steve