New Post: From COM IStream to concurrent::streams::istream
Hi Pierre, Yes everything you have here looks good. One thing to note, in your Write method, the call to putn is asynchronous so it might not actually be completed by the time you return and you...
View ArticleNew Post: Linux 64 bit compilation errors
Hi G, Fundamentally, this is an issue we're aware of (thus the TFS 579628 tracking identifier). For now, the best workaround is to follow standard C++ practice and place all header includes at the top...
View ArticleNew Post: files over 4GB
Hi Gery, Yes you are absolutely correct! It looks like we are missing initializing the high order portion of the offset indicating the position when greater than 32bits. Your fix looks correct. We do...
View ArticleNew Post: Assigning 64bit values
I can check to see if a value is 64bit and get it as a 64bit value but I dont see how to assign a 64bit value to a web::value item. The constructors only take double, int32_t. Does anybody know how to...
View ArticleNew Post: Assigning 64bit values
Well the answer is to just assign the value as needed. I was thrown off earlier by not being able to directly assign an "unsigned long" value but having to cast it through "uint32_t". The example I...
View ArticleNew Post: How to iterate arrays in 2.0 and get the key
In 1.4 I could look at iter->first to get the key and iter->second to get the value but I cant figure out how to get the key for an iterator to figure out which value it is.
View ArticleNew Post: How to iterate arrays in 2.0 and get the key
Hi Ryland42, One of the major changes we've made in Casablanca 2.0 is to change the underlying storage for arrays to use a standard STL vector. The iterators returned from begin() and end() are into...
View ArticleNew Post: How to iterate arrays in 2.0 and get the key
I need to find the text key (foo below):"foo":42 for the iterator values. It does look like "as_object()" would give me an iterator of <String, web::value>.
View ArticleNew Post: How to iterate arrays in 2.0 and get the key
Hi again, Ok, so if you have a JSON document like{ "foo" : 42, "bar" : 97 } then you're dealing with a JSON object. To manipulate a JSON object, you should use the as_object() method on a json::value...
View ArticleNew Post: How to iterate arrays in 2.0 and get the key
The document looks like this: {"gameInfo": [ { "id":1,"name":"foobar" }, { "id":2,"name":"barfood" } ] } I need to be able to see that the item Im iterating over has a key of "id" and another one with...
View ArticleNew Post: How to iterate arrays in 2.0 and get the key
So for a document like you proposed (which has an array of objects):{ "gameInfo" : [ { "id" : 1, "name" : "foo" } ] } You would iterate over the elements of the array, then iterate over the elements of...
View ArticleNew Post: How to cancel file upload and download task
Hi kavyako, I would like to know if there is any update on this issue since the latest post (Nov 19, 2013). In our current application we need to be able to cancel the data transfer request. If there...
View ArticleNew Post: How to cancel file upload and download task
Hi Matheus This request was to implement cancellation for upload and download requests on the client side. In our 2.0.0 release, we have added support for request cancellation through...
View ArticleNew Post: How to get the redirected URL?
I'm fetching a document that can contain relative URLs. Since the original request may be redirected, I need to know the URL actually used to fetch the resource to turn those relative URLs into...
View ArticleCommented Feature: support statically linked runtime [18]
I think as you know if you are linking against this library and you are not using dynamically linked runtime you might see weird behaviors or even crash (have no idea what's going on since it's not a...
View ArticleNew Post: How serialize/deserialize a JSON vector of data structure record?
Hi, I am trying to use Json to serialize/de-serialize vector of json record. I am new at this JSON. How do you serialize/de-serialize entire json vector into stream? Thank YouMike Example:...
View ArticleNew Post: How to cancel file upload and download task
Hi Kavya, Thanks for your quick response. Our target is Windows desktop. The tests codes were helpful, but I still can't cancel/stop my download. I think the biggest issue is that I need to process the...
View ArticleNew Post: C++ REST SDK for RHEL
Hi Guys, I have a requirement to develop C++ REST webserver in RHEL. After some initial search i found that C++ REST SDK can be used to integrate with C++ application. The project description mentioned...
View ArticleNew Post: C++ REST SDK for RHEL
Hi Guys, I have a requirement to develop C++ REST webserver in RHEL. After some initial search i found that C++ REST SDK can be used to integrate with C++ application. The project description mentioned...
View Article