Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

C# add resource programmatically (each time want use another external exe file)

$
0
0

Hi all

i have been working with this long time.

but still don't have answer for this.

i think this is related with below inquiry. i saw several answer but dont understand the solution.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/eeb7864b-c7c3-45fb-88c6-1d41985a0b34/how-can-i-add-a-resource-file-to-a-c-project-programatically?forum=vsx

and also ask other site.. check below..

http://stackoverflow.com/questions/30480934/c-sharp-add-resource-programmatically-each-time-want-use-another-external-exe-f

these are several month ago ans still couldn't find answer.

question again here.

/////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////

actually I'm success with using external exe file in my C# program. but new situation is every time i need to change external exe file to my program.

the previous way is ....

step 1. manually add resource

goto properties ==> resource tab ==> add resource ==> add existing file. (then my external exe file is added in resource.

for example : file name is "external.exe"

step 2. in the start of my software ==>

byte[] exeBytes =Properties.Resources.external;

then i can write this exe file and run the software.

but here is the problem that every time i need to use new external exe file.

so step 1 should be changed to programable way., does anyone could help this problem. i read lot a article here and found same topic but still couldn't solve the problem.

can you share example for this???

please help.

Thanks Jo


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>