Skip to content

Commit 2148ca1

Browse files
committed
Updated the sample from WRL to WIL
1 parent 0873500 commit 2148ca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebView2Sample/HelloWebView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include <string>
66
#include <tchar.h>
77
#include <wrl.h>
8+
#include <wil/com.h>
89
// include WebView2 header
910

10-
1111
using namespace Microsoft::WRL;
1212

1313
// Global variables
@@ -24,7 +24,7 @@ HINSTANCE hInst;
2424
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
2525

2626
// Pointer to WebView window
27-
static ComPtr<IWebView2WebView> webviewWindow;
27+
static wil::com_ptr<IWebView2WebView> webviewWindow;
2828

2929
int CALLBACK WinMain(
3030
_In_ HINSTANCE hInstance,

0 commit comments

Comments
 (0)