Welcome![Sign In][Sign Up]
Location:
Search - MultiByteToWideChar

Search list

[Windows Develop怎样获取快捷方式所指向的目标文件名

Description: 怎样获取快捷方式所指向的目标文件名? HRESULT hres IShellLink* psl HRESULT hres IShellLink* psl char szGotPath[MAX_PATH] char szDescription[MAX_PATH] WIN32_FIND_DATA wfd OleInitialize(0) hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl) if (SUCCEEDED(hres)) { IPersistFile* ppf hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf) if (SUCCEEDED(hres)) { WCHAR wsz[MAX_PATH] char lpszLinkFile[MAX_PATH] //这里存放的是快捷方式的路径 if(MultiByteToWideChar(CP_ACP, 0, lpszLinkFile, -1, wsz, MAX_PATH)==0) return hres = ppf->Load(wsz, STGM_READ) if (SUCCEEDED(hres)) { hres = psl->Resolve(m_hWnd, 0) if (SUCCEEDED(hres)) { hres = psl->GetPath(szGotPath, MAX_PATH, (WIN32_FIND_DATA*)&wfd, SLGP_SHORTPATH)-Get the path file of the Shortcut, using IShellLink.
Platform: | Size: 3317 | Author: | Hits:

[Communication中文内码转换源码

Description: 在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。-reading MSDN found as long as the magic MultiByteToWideChar and LCMapString two functions, it can simply to achieve different internal code conversion. To allow programmers to use more convenient, the authors prepared a CChineseConvertor category, packaging of all Chinese within yards of the conversion function. Readers can direct the inclusion of such MFC, using it is also extremely easy. For further details, please see ChineseConvertor.h and ChineseConvertor.cpp source code.
Platform: | Size: 2146 | Author: 王正 | Hits:

[Windows DevelopChineseConv

Description: 中文分为简体、繁体两种内码,另外还有统一码,如果要在不同码之间转换,需要有一个对应表格,程序编写起来非常繁琐,而且更要有内码对照表格。笔者,在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。
Platform: | Size: 2167 | Author: liuguixue | Hits:

[Windows Developchartest

Description: wchar_t和char互相转换的例子,例子中应用了MultiByteToWideChar和WideCharToMultiByte两个函数
Platform: | Size: 2470519 | Author: 赵军 | Hits:

[Windows Develop怎样获取快捷方式所指向的目标文件名

Description: 怎样获取快捷方式所指向的目标文件名? HRESULT hres IShellLink* psl HRESULT hres IShellLink* psl char szGotPath[MAX_PATH] char szDescription[MAX_PATH] WIN32_FIND_DATA wfd OleInitialize(0) hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl) if (SUCCEEDED(hres)) { IPersistFile* ppf hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf) if (SUCCEEDED(hres)) { WCHAR wsz[MAX_PATH] char lpszLinkFile[MAX_PATH] //这里存放的是快捷方式的路径 if(MultiByteToWideChar(CP_ACP, 0, lpszLinkFile, -1, wsz, MAX_PATH)==0) return hres = ppf->Load(wsz, STGM_READ) if (SUCCEEDED(hres)) { hres = psl->Resolve(m_hWnd, 0) if (SUCCEEDED(hres)) { hres = psl->GetPath(szGotPath, MAX_PATH, (WIN32_FIND_DATA*)&wfd, SLGP_SHORTPATH)-Get the path file of the Shortcut, using IShellLink.
Platform: | Size: 3072 | Author: | Hits:

[Communication中文内码转换源码

Description: 在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。-reading MSDN found as long as the magic MultiByteToWideChar and LCMapString two functions, it can simply to achieve different internal code conversion. To allow programmers to use more convenient, the authors prepared a CChineseConvertor category, packaging of all Chinese within yards of the conversion function. Readers can direct the inclusion of such MFC, using it is also extremely easy. For further details, please see ChineseConvertor.h and ChineseConvertor.cpp source code.
Platform: | Size: 2048 | Author: 王正 | Hits:

[Windows DevelopChineseConv

Description: 中文分为简体、繁体两种内码,另外还有统一码,如果要在不同码之间转换,需要有一个对应表格,程序编写起来非常繁琐,而且更要有内码对照表格。笔者,在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。 -Divided into Simplified Chinese, Traditional two types of code, in addition to Unicode, if you want to switch between different codes, the need for a corresponding form programming is very tedious, but also have a form of control code. The author, in reading in MSDN and found that as long as MultiByteToWideChar妙用LCMapString two functions can be simple to realize different code conversion. In order to allow programmers to use more convenient, I prepared a CChineseConvertor category, packing all the Chinese code conversion function. Readers can be added directly in the MFC such, is also very easy to use. For further details, please ChineseConvertor.h and ChineseConvertor.cpp View the source code.
Platform: | Size: 2048 | Author: liuguixue | Hits:

[Windows Developchartest

Description: wchar_t和char互相转换的例子,例子中应用了MultiByteToWideChar和WideCharToMultiByte两个函数-wchar_t and char conversion examples of each other, for example, the application of the two functions MultiByteToWideChar and WideCharToMultiByte
Platform: | Size: 2469888 | Author: 赵军 | Hits:

[OtherSGIP1.2.0.10.DEMO

Description: 用c++编写的的中国联通SGIP协议,内容挺全。 MultiByteToWideChar WideCharToMultiByte CString CFile CFileException CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu SetWindowText SetTimer IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon PostMessage PostQuitMessage GetLastError CTime wsprintf KillTimer WinExec GetPrivateProfileString WritePrivateProfileString SetTextColor CAsyncSocket -With c++ Prepared by the China Unicom SGIP agreement, the contents of the whole ting. MultiByteToWideChar WideCharToMultiByte CString CFile CFileException CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu SetWindowText SetTimer IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon PostMessage PostQuitMessage GetLastError CTime wsprintf KillTimer WinExec GetPrivateProfileString WritePrivateProfileString SetTextColor CAsyncSocket
Platform: | Size: 646144 | Author: tw | Hits:

[Windows DevelopANSItoUnicode

Description: 通过L这个宏来实现和通过MultiByteToWideChar函数实现转换。-Through L to achieve the macro and conversion through the MultiByteToWideChar function.
Platform: | Size: 1024 | Author: darwinlin | Hits:

[CommunicationFunnComHelp

Description: 是本人的一个正式项目中所做的测试工程源码。主要功能是通过串口与板子的GSM模块进行通讯,进行收发短信的程序。内容有:串口设置,GB2312与UNICODE编码转换,PDU编解码(此部分大部分借鉴了网友的代码),AT指令发送。因内部使用了MultiByteToWideChar、WideCharToMultiByte字符转换函数,所以不能直接向嵌入式程序中移植。想要做这方面移植的请参考与本人上传的另一个资源“ HZTableComHelp.rar”-Is my project done by a formal evaluation of the source. Main functions of the board through the serial port and the GSM communication modules for the process to send and receive text messages. Are as follows: serial port settings, GB2312 with UNICODE encoding conversion, PDU codecs (most of this part of the code from the User), AT commands to send. Due to the internal use of the MultiByteToWideChar, WideCharToMultiByte character conversion function, it is not embedded directly to the transplant procedure. Want to do in this regard please refer to the transplant and the other resources I uploaded " HZTableComHelp.rar"
Platform: | Size: 98304 | Author: 叶木公 | Hits:

[Software EngineeringMultiByteToWideChar

Description: 很多初學者從 VC++ 6.0 升級到 VC++ 2005 的時候, 經常發現到原本在 VC++ 6.0 版順利編譯並執行的程式突然無法編譯了. 像以下這個簡單的例子:-hhfghfhhh
Platform: | Size: 29696 | Author: tim | Hits:

[Button controlButton-tansparent

Description: Button-tansparent: LoadImage CPoint CWnd CButton GetActiveWindow GetCapture SetFocus SetCapture CRect GetClientRect PtInRect ReleaseCapture CDC CPen CBrush FrameRect FillRect GetSysColor SelectObject LineTo DrawFocusRect CString GetWindowText OffsetRect CFont SetTextColor SetBkColor DrawText DrawState SendMessage SetWindowText ZeroMemory MultiByteToWideChar CComboBox DragAcceptFiles DragQueryFile LocalAlloc LocalFree DragFinish CStringArray CClientDC SaveDC GetSystemMetrics RestoreDC GetFileType GetPath DeleteObject CStatic MessageBeep SetBkMode GetStockObject RedrawWindow SetCursor SetWindowLong CreateFontIndirect IsWindow GetWindowRect-Button-tansparent: LoadImage CPoint CWnd CButton GetActiveWindow GetCapture SetFocus SetCapture CRect GetClientRect PtInRect ReleaseCapture CDC CPen CBrush FrameRect FillRect GetSysColor SelectObject LineTo DrawFocusRect CString GetWindowText OffsetRect CFont SetTextColor SetBkColor DrawText DrawState SendMessage SetWindowText ZeroMemory MultiByteToWideChar CComboBox DragAcceptFiles DragQueryFile LocalAlloc LocalFree DragFinish CStringArray CClientDC SaveDC GetSystemMetrics RestoreDC GetFileType GetPath DeleteObject CStatic object as usual the MessageBeep SetBkMode the GetStockObject the RedrawWindow the SetCursor the SetWindowLong the CreateFontIndirect the IsWindow the GetWindowRect
Platform: | Size: 1742848 | Author: cici | Hits:

[GUI DevelopCUseSKin

Description: How to use skin control: LoadImage CPoint CWnd CButton GetActiveWindow GetCapture SetFocus SetCapture CRect GetClientRect PtInRect ReleaseCapture CDC CPen CBrush FrameRect FillRect GetSysColor SelectObject LineTo DrawFocusRect CString GetWindowText OffsetRect CFont SetTextColor SetBkColor DrawText DrawState SendMessage SetWindowText ZeroMemory MultiByteToWideChar CComboBox DragAcceptFiles DragQueryFile LocalAlloc LocalFree DragFinish CStringArray CClientDC SaveDC GetSystemMetrics RestoreDC GetFileType GetPath DeleteObject CStatic MessageBeep SetBkMode -How to use skin control: LoadImage CPoint CWnd CButton GetActiveWindow GetCapture SetFocus SetCapture CRect GetClientRect PtInRect ReleaseCapture CDC CPen CBrush FrameRect FillRect GetSysColor SelectObject LineTo DrawFocusRect CString GetWindowText OffsetRect CFont SetTextColor SetBkColor DrawText DrawState SendMessage SetWindowText ZeroMemory MultiByteToWideChar CComboBox DragAcceptFiles DragQueryFile LocalAlloc LocalFree DragFinish CStringArray CClientDC SaveDC GetSystemMetrics RestoreDC GetFileType GetPath DeleteObject CStatic MessageBeep SetBkMode
Platform: | Size: 9329664 | Author: cici | Hits:

[OS programCharConvert

Description: 通过调用封装API函数WideCharToMultiByte和MultiByteToWideChar,实现ANSI/UTF-8/Unicode编码格式的相互转换。-By calling the API function package WideCharToMultiByte and MultiByteToWideChar, to achieve ANSI/UTF-8/Unicode encoding format conversion.
Platform: | Size: 6144 | Author: 蓝蜻蜓 | Hits:

CodeBus www.codebus.net