Print Page | Close Window

StylerBrowser doesn't build for Unicode

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4701
Printed Date: 01 June 2025 at 5:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: StylerBrowser doesn't build for Unicode
Posted By: ABuenger
Subject: StylerBrowser doesn't build for Unicode
Date Posted: 02 August 2006 at 10:30am
VS6 SP6:
 
Samples\Utilities\StylerBrowser\HistoryTree.cpp(547) : error C2664: 'GetUrlCacheEntryInfoExW' : cannot convert parameter 1 from 'unsigned short *' to 'const char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


-------------
Codejock support



Replies:
Posted By: Oleg
Date Posted: 02 August 2006 at 10:50am
Hi,
Seems it is bug of SDK for VC6:
 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/geturlcacheentryinfoex.asp - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/geturlcacheentryinfoex.asp
 
in vc7, 7.1, 8.0
 
it declared as
BOOLAPI GetUrlCacheEntryInfoExW(
    IN LPCWSTR lpszUrl,
    OUT LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
    IN OUT LPDWORD lpdwCacheEntryInfoBufSize,
    OUT LPWSTR      lpszReserved,  // must pass null
    IN OUT LPDWORD lpdwReserved,  // must pass null
    LPVOID         lpReserved,    // must pass null
    DWORD          dwFlags        // reserved
    );
in 6.0 as
 
BOOLAPI
GetUrlCacheEntryInfoExW(
    IN LPCSTR lpszUrl,
    OUT LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
    IN OUT LPDWORD lpdwCacheEntryInfoBufSize,
    OUT LPSTR      lpszReserved,  // must pass null
    IN OUT LPDWORD lpdwReserved,  // must pass null
    LPVOID         lpReserved,    // must pass null
    DWORD          dwFlags        // reserved
    );

 
so you can patch wininet.h in include folder of vc6.0


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net