Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Concurrency::streams::streambuf> to const void *

$
0
0
Here is a sample of my code :

auto filebuffer = std::make_shared<streambuf<uint8_t>>();



response.body().read_to_end(*filebuffer);
DWORD length = filebuffer->buffer_size();
IStream *m_istream;
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, length);
LPVOID pData = NULL;
pData = GlobalLock(hMem);
memcpy(hMem,filebuffer , length);

How should i use memcpy??

This is the error i am getting:
IntelliSense: no suitable conversion function from "const std::shared_ptr<Concurrency::streams::streambuf<uint8_t>>" to "const void *" exists

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images