OSDN Git Service

lvNoリンク機能追加
[nlite/nlite.git] / nlite / nlite_common.cpp
1 #include "stdafx.h"
2 #include "nlite_include.h"
3
4
5
6 namespace nlite{
7
8 Property nliteProperty; 
9
10
11  VOID nlite::UnexpectedErrorMessageShow(LPCTSTR headMessage,LPCTSTR summary,UINT line,LPCTSTR fileName,LPCTSTR function){
12         tstring errMessage;
13         errMessage = headMessage;
14         errMessage += TEXT("\91z\92è\82³\82ê\82Ä\82¢\82È\82¢\83G\83\89\81[\82ª\94­\90\82µ\82Ü\82µ\82½\81B\83A\83v\83\8a\83P\81[\83V\83\87\83\93\94z\92u\83t\83H\83\8b\83_\82É\8dì\90¬\82³\82ê\82½\83\8d\83O\83t\83@\83C\83\8b\82ð\93n\82µ\82Ä\82à\82ç\82¦\82é\82Æ\8aJ\94­\8eÒ\82ª\94ñ\8fí\82É\8aì\82Ñ\82Ü\82·");
15         errMessage += TEXT("\r\n\83G\83\89\81[\83\81\83b\83Z\81[\83W:");
16         errMessage += summary;
17         DebugOutW(fileName,function,line,DUMPING__DEBUGER__ | LINEFEAD__DEBUGER__ ,ERRORMODE__DEBUGER__,TEXT("%s"),summary);
18         ::MessageBox(NULL,errMessage.c_str(),TEXT("\91z\92è\82³\82ê\82Ä\82¢\82È\82¢\83G\83\89\81["),MB_ICONERROR | MB_OK);
19         
20
21
22          return;
23  }
24
25  HINSTANCE OpenURL(HWND hwnd,const GeneralProperty &gp,LPCTSTR url ,INT nShowCommand){
26
27          HINSTANCE rslt;
28
29         if(gp.browserPath.Length() == 0){
30
31                 rslt = ShellExecute(hwnd, NULL, url, NULL, NULL, nShowCommand);
32
33         } else{
34
35                 rslt = ShellExecute(hwnd, NULL, gp.browserPath, url, NULL, nShowCommand);
36
37         }
38
39         return rslt;
40
41  }
42  
43
44 const CApplicationInfo * appInfo = NULL;
45
46 }