git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25382
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#if defined(__WIN32__) && !defined(__WXWINCE__) && wxUSE_OLE
if ( (flags & wxPATH_NORM_SHORTCUT) )
{
wxString filename;
if ( (flags & wxPATH_NORM_SHORTCUT) )
{
wxString filename;
// files\myapp.exe) that includes spaces needs to be enclosed in
// quotation marks."
// files\myapp.exe) that includes spaces needs to be enclosed in
// quotation marks."
-#if defined(__WIN32__) && !defined(__WXWINCE__)
+#if defined(__WIN32__) && !defined(__WXWINCE__) && wxUSE_OLE
// The following lines are necessary under WinCE
// #include "wx/msw/private.h"
// #include <ole2.h>
// The following lines are necessary under WinCE
// #include "wx/msw/private.h"
// #include <ole2.h>
#if defined(__WXWINCE__)
#include <shlguid.h>
#endif
#if defined(__WXWINCE__)
#include <shlguid.h>
#endif
bool wxFileName::GetShortcutTarget(const wxString& shortcutPath, wxString& targetFilename, wxString* arguments)
{
bool wxFileName::GetShortcutTarget(const wxString& shortcutPath, wxString& targetFilename, wxString* arguments)
{
-#ifdef __WXWINCE__
- // Doesn't compile on WinCE yet
- return FALSE;
-#else
wxString path, file, ext;
wxSplitPath(shortcutPath, & path, & file, & ext);
wxString path, file, ext;
wxSplitPath(shortcutPath, & path, & file, & ext);
}
psl->Release();
return success;
}
psl->Release();
return success;