How do I write a CByteArray type to a registry and load it again?Here is what I tried. Writing was was ok and but loading cannot type case and get a compilation error.
// saving CByteArray to registry CByteArray arBytes; ... pApp->WriteProfileInt(_T("MyRegSection"), _T("MyEntry"), (int)arBytes.GetData()); // loading CByteArray from registry CByteArray arBytes; arBytes = (const unsigned char*)pApp->GetProfileIntA(_T("MyRegSection"), _T("MyEntry"),0);
These might help -> http://www.google.co.in/search?q=write+byte+array+to+registry&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Microsoft MVP - Visual C++
Posts are provided as is without warranties or guaranties.