Write Data To Embedded resource in Visual C++ RRS feed

  • Question

  • Hi,

    I want at runtime write to resource (embedded in exe) ,but i can't write just read from resource.

    Here is my code:
    System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
    ResourceSet ^ rs = resources->GetResourceSet(System::Globalization::CultureInfo::CurrentUICulture,true,true);
    String ^vm = rs->GetObject("akarmi");
    //reading -working
    ResourceWriter^ rw = gcnew ResourceWriter("myResources.resources");
    //writing but this create a new file near the exe

    Thx for any help!
    Sunday, September 4, 2011 12:27 PM


  • Hi EvoxI,

    Based on my understanding, embeded resources are compiled into your assembly. You cannot write to it.

    Best regards,

    Min Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by EvoxI Tuesday, September 6, 2011 9:03 PM
    Tuesday, September 6, 2011 6:51 AM