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
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