comparison src/GvimExt/gvimext.cpp @ 835:8bebcabccc2c v7.0e01

updated for version 7.0e01
author vimboss
date Mon, 17 Apr 2006 22:14:47 +0000
parents 165c628aa9fc
children a49d06539452
comparison
equal deleted inserted replaced
834:5117153003bd 835:8bebcabccc2c
101 // When no path found, use the search path to expand it. 101 // When no path found, use the search path to expand it.
102 if (strchr(buf, '/') == NULL && strchr(buf, '\\') == NULL) 102 if (strchr(buf, '/') == NULL && strchr(buf, '\\') == NULL)
103 strcpy(buf, searchpath(buf)); 103 strcpy(buf, searchpath(buf));
104 104
105 // remove "gvim.exe" from the end 105 // remove "gvim.exe" from the end
106 for (idx = strlen(buf) - 1; idx >= 0; idx--) 106 for (idx = (int)strlen(buf) - 1; idx >= 0; idx--)
107 if (buf[idx] == '\\' || buf[idx] == '/') 107 if (buf[idx] == '\\' || buf[idx] == '/')
108 { 108 {
109 buf[idx + 1] = 0; 109 buf[idx + 1] = 0;
110 break; 110 break;
111 } 111 }
277 // Try to locate the runtime files. The path is used to find libintl.dll 277 // Try to locate the runtime files. The path is used to find libintl.dll
278 // and the vim.mo files. 278 // and the vim.mo files.
279 getRuntimeDir(szBuff); 279 getRuntimeDir(szBuff);
280 if (szBuff[0] != 0) 280 if (szBuff[0] != 0)
281 { 281 {
282 len = strlen(szBuff); 282 len = (DWORD)strlen(szBuff);
283 if (dyn_libintl_init(szBuff)) 283 if (dyn_libintl_init(szBuff))
284 { 284 {
285 strcpy(szBuff + len, "lang"); 285 strcpy(szBuff + len, "lang");
286 286
287 (*dyn_libintl_bindtextdomain)(VIMPACKAGE, szBuff); 287 (*dyn_libintl_bindtextdomain)(VIMPACKAGE, szBuff);
738 PostMessage(hWnd, WM_DROPFILES, (WPARAM)medium.hGlobal, 0); 738 PostMessage(hWnd, WM_DROPFILES, (WPARAM)medium.hGlobal, 0);
739 739
740 return NOERROR; 740 return NOERROR;
741 } 741 }
742 742
743 STDMETHODIMP CShellExt::GetCommandString(UINT idCmd, 743 STDMETHODIMP CShellExt::GetCommandString(UINT_PTR idCmd,
744 UINT uFlags, 744 UINT uFlags,
745 UINT FAR *reserved, 745 UINT FAR *reserved,
746 LPSTR pszName, 746 LPSTR pszName,
747 UINT cchMax) 747 UINT cchMax)
748 { 748 {