简体   繁体   中英

How to embed a hex file into a C# Visual Studio project?

I have a Visual Studio C# project windows form. It is a kind of updater, a software interface that I use to upload a hex file into a microcontroller via USB. The user of the software need to click a button to open a window and navigate through PC directories to choose a hex file. I want to change this, I don't want that the user have acccess to the hex file, I want to generate a unique software to a unique hex file, but in a way that the hex file is not visible or acessible outside the software, it stay embeded in the software. My doubt is, how to embed the hex file into the software? Does someone have any tips or sugestions?

You go to Ressources, say Add-Resource, New-File, and that's it. It will generate you a reference to a

  internal static byte[] <resourcename>

in.Resources.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM