This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <xstring> | |
#include <string> | |
//url编码类 | |
class CUrlEncode | |
{ | |
public: | |
void StringToWstring(std::wstring& szDst, std::string str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
// Constants used to represent the MSI product CODES for all of the runtimes | |
const LPCTSTR _vc2008x86Code = TEXT("{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}"); | |
const LPCTSTR _vc2008x64Code = TEXT("{350AA351-21FA-3270-8B7A-835434E766AD}"); | |
const LPCTSTR _vc2008SP1x86Code = TEXT("{9A25302D-30C0-39D9-BD6F-21E6EC160475}"); | |
const LPCTSTR _vc2008SP1x64Code = TEXT("{8220EEFE-38CD-377E-8595-13398D740ACE}"); | |
const LPCTSTR _vc2010x86Code = TEXT("{196BB40D-1578-3D01-B289-BEFC77A11A1E}"); | |
const LPCTSTR _vc2010x64Code = TEXT("{DA5E371C-6333-3D8A-93A4-6FD5B20BCC6E}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************ Module Header ******************************\ | |
Module Name: CppShellCommonFileDialog.cpp | |
Project: CppShellCommonFileDialog | |
Copyright (c) Microsoft Corporation. | |
The code sample demos the use of shell common file dialogs. | |
This source is subject to the Microsoft Public License. | |
See http://www.microsoft.com/en-us/openness/resources/licenses.aspx#MPL. | |
All other rights reserved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <memory> | |
#include <typeindex> | |
namespace C0xHelper | |
{ | |
class Any | |
{ | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <map> | |
#include <functional> | |
#ifndef WIN32_LEAN_AND_MEAN | |
#define WIN32_LEAN_AND_MEAN | |
#endif | |
#include <windows.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma warning(push, 0) | |
#include .... | |
#pragma warning(pop) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef HRESULT (STDCALL * fnDllGetClassObject)(REFCLSID rclsid, REFIID riid, LPVOID * ppvObj); | |
class CustomFlash | |
{ | |
DWORD m_dwCookie; | |
CLSID m_clsid; | |
CComPtr<IClassFactory> m_spFactory; | |
HINSTANCE m_mod; | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gdiplus::Bitmap* gdiplus_bitmap = Gdiplus::Bitmap::FromFile(headImagePath_.c_str()); | |
bool bOk = (gdiplus_bitmap && Gdiplus::Ok == gdiplus_bitmap->GetLastStatus()); | |
if (!bOk) { | |
return false; | |
} | |
HBITMAP hBmp; | |
if (Gdiplus::Ok != gdiplus_bitmap->GetHBITMAP(Gdiplus::Color::White, &hBmp)) | |
{ | |
return false; |
NewerOlder