1.3 support xp?

Nov 8, 2013 at 9:33 AM
Edited Nov 8, 2013 at 9:49 AM
Hi, I am using casablanca in xp.
When I run sample bingrequest on xp, I has error like below,

cannot find HttpCancelHttpRequest in HttpApi.dll

but HttpCancelHttpRequest API is not supported in XP.

casablanca support XP?
Thank you in advance.
Nov 8, 2013 at 6:33 PM
Hi:

Casablanca supports XP for http client, HttpCancelHttpRequest is the http server API. Running bingrequest sample does not need to use any server apis.

Please give me more details how you compile the bingrequest sample, what is your OS version and VS version, so we can take a deep look.

Thanks
Nov 14, 2013 at 9:22 AM
It is not working on XP, the same error.
Build environment: windows 8, Visual Studio 2012 Update 3, Platform toolset - Visual Studio 2012 - Windows XP (v110_xp).
Nov 14, 2013 at 9:39 AM
Reply to my self. The problem is that the nuget package does not contain the xp targeting library.
Nov 14, 2013 at 5:47 PM
Hi GOre01,

Yes you are absolutely right we didn't include the XP libs and binaries in our Nuget package yet. We will fix this soon.

Thanks,
Steve
Nov 14, 2013 at 7:17 PM
Hi,
I'm trying to use Casablanca on Windows XP (many of our customers have Widows XP) -
and I've also received message "cannot find HttpCancelHttpRequest in HttpApi.dll".

I've done:
  1. Download SDK for Visual Studio 2012 (https://casablanca.codeplex.com/downloads/get/743698)
  2. Link /lib/x86/release/cpprest_xp_1_3.lib
  3. use /bin/x86/release/cpprest110_1_3.dll
  4. run on Windows XP
  5. message displayed: cannot find HttpCancelHttpRequest in HttpApi.dll
Is there any other way to fix this, let me know, please.

Thanks,
Dorota.
Nov 14, 2013 at 7:22 PM
First in vs2012 you need to target the xp platform toolset.
Next, if you link the cpprest_xp_1_3.lib , then you need to be used the cpprest110_xp_1_3.dll.
And finally, do not use the preconfigured *.props files to target the Casablanca reference. The settings provided does not correct for xp targeting.
Nov 14, 2013 at 10:26 PM
Hi Dorota,

Yes GOre01 is right. To target XP you need to use a different lib and dll. Link to cpprest_xp_1_3.lib and utilize cpprest110_xp_1_3.dll.

We will have the Nuget package straightened out here to include and take care of XP automatically for you in our 1.4.0 release. Until then you can manually do so with the binaries from our MSIs right here on CodePlex.

Sorry for the inconvenience.
Thanks,
Steve