prostang
asked on
visual studio 2010
I have searched and tried many solutions and am at my wit's end. I am not a heavy programmer, but I can get things done. I am writing a program that I wish to include files that will be copied to a specified directory when the application is executed. Let's say a binary file named printme.plt needs to be copied from a solution directory (C:\program files\myCompnayName\Resour ces\ to C:\temp.
I have added printme.plt to the Resources folder and can call it in code. The issue is that it is viewed as an array. When I test to see what my.resources.printme.plt(0 ) is, I get "208". Can someone help me with what I am doing wrong?
TIA.
Prostang
I have added printme.plt to the Resources folder and can call it in code. The issue is that it is viewed as an array. When I test to see what my.resources.printme.plt(0
TIA.
Prostang
ASKER
Idle_Mind,
I read what you posted and the link, but I don't get it. According to what I understand, the array that vb is reading from my resource, I can use File.WriteAllBytes to create a file and write all that data into it? What is the purpose of doing this? Why create a file, when one already exists? <mind fuzzy>
I read what you posted and the link, but I don't get it. According to what I understand, the array that vb is reading from my resource, I can use File.WriteAllBytes to create a file and write all that data into it? What is the purpose of doing this? Why create a file, when one already exists? <mind fuzzy>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have that. I thought Visual Studio w/ .net would allow me to package everything and then refer to it for copy and manipulation. Thanks.
>I have that
You have a setup project?
You have a setup project?
ASKER
I have another application that I use to package the application and checks for updates.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That is what I have done in the past, but I thought I could include everything in the application. I need to spend more time with VS2010 and get to know what I can and cannot do with installation packages.
ASKER
Not really a new solution, but it was pointed out that I continue on the path I have been on.
http://msdn.microsoft.com/en-us/library/system.io.file.writeallbytes.aspx