-#ifdef __WXMSW__
- // this writes a root entry to the registry in HKCR.ext
- return m_impl->GetOrAllocateFileTypeFromExtension(ext);
-#else // !__WXMSW__
- // VZ: "static const"??? (FIXME)
- // just make a dummy entry with no writing to file
- static const wxFileTypeInfo fallback[] =
- {
- wxFileTypeInfo("application/x-" + ext,
- "",
- "",
- ext + " format file",
- ext, NULL),
- // must terminate the table with this!
- wxFileTypeInfo()
- };
-
- AddFallbacks (fallback);
- return m_impl->GetFileTypeFromExtension(ext);
-#endif // __WXMSW__/!__WXMSW__
+#if defined(__WXMSW__) || defined(__UNIX__)
+ return m_impl->Associate(ftInfo);
+#else // other platforms
+ wxUnusedVar(ftInfo);
+ wxFAIL_MSG( _T("not implemented") ); // TODO
+ return NULL;
+#endif // platforms