MSPSDK: HTTP API sample won't compile in VC++  
Author Message
ece_07





PostPosted: Visual C++ General, MSPSDK: HTTP API sample won't compile in VC++ Top

Hi there, I read about the scope of this forum. I believe my question applies because it involves the Platform SDK...

I've been trying to compile the HTTP API samples found under "C:\Program Files\Microsoft Platform SDK\Samples\NetDS\http\server" and "C:\Program Files\Microsoft Platform SDK\Samples\NetDS\http\serviceconfig".

None of this source code works. First of all the typcasting is all wrong, the different methods of typecasting and calling between C and C++ keep conflicting. When you compile what is originally a .c as a .cpp (you pretty much have to) you get errors.

The funny part is that the files are originally written in C, but inserted in the documentation is a little note that says "C++".

Anyway, I don't have a problem with going through the files and making the required changes. It's just that this is code distributed by MS (I know, I read the disclaimer, code not supported). The Windows Sockets 2 source code included on the SDK works just fine,

Does anybody here program HTTP How did you overcome this




Visual C++11  
 
 
Mike Danes





PostPosted: Visual C++ General, MSPSDK: HTTP API sample won't compile in VC++ Top

Not sure how this relates with Visual C++, it's more of Platform SDK. If you post some code and error sample maybe we will be able to help finding the problem or confirm that the samples are broken.

Anyway since a new SDK (http://www.microsoft.com/downloads/details.aspx FamilyID=c2b1e300-f358-4523-b479-f53d234cdccf&DisplayLang=en) is out probably you should use it. I tried the http related samples from it and they seem to compile fine.


 
 
ece_07





PostPosted: Visual C++ General, MSPSDK: HTTP API sample won't compile in VC++ Top

Thank you, I had no idea about this new SDK. I guess it's for .NET. Did the old Platform SDK support .NET I thought it did. Now that I have the new SDK do I still need the old one Anyways, all is well, thanks for your help.

 
 
Damien Watkins - MSFT





PostPosted: Visual C++ General, MSPSDK: HTTP API sample won't compile in VC++ Top

Hello

Re: MSPSDK: HTTP API sample won't compile in VC++

(As Mike said) such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups.

OTP

Thanks

Damien