|
Check out Base64 in System.Cryptography (I think thats what its called...)
you'll get an array of bytes which will be the original file. all you have to do is then stream that out to your file and name it right.
// Rock
|
|
|
|
|
CLaW wrote:
Check out Base64 in System.Cryptography
Thanks CLaW, will give it a bash.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Brian Delahunty wrote:
one of my boys on the inside instead of the outside
benjymous wrote:
All the male CP inhabitants cross their legs in unison
|
|
|
|
|
Paul
If you want to create a file readable by Excel, I suggest that you create a CSV file. Then you can open it in Excel and save as XLS. The XLS format is too complicated to generate via code unless you have some kinda API for doing that
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
Hey, I've got a quick question about a quirk with the dotnet SDK that I'm seeing on my machine here at work. I just want to know if anyone has seen/heard of it....
It seems that performance even for console apps is abysmal. The canonical 'Hello, World' takes between 5-10 seconds to run (!). I just figured the performance was bad because I'm running a PII 350 here at work, but I noticed the CPU didn't go nuts and memory consumption didn't go up, so it appeared to be waiting for something.
I poked around on USENET and some people had seen the same thing. Someone said they had the same problem just when they were connected to their LAN, otherwise they were OK. I tried unplugging my box and performance was great, almost instant for the Hello World app. Another person said to add a local user to your box called ASPNET. (?) I tried this and this seemed to fix the problem also.
Has anyone heard of this? Do you know if there is a KB article or anything from MS regarding it?
|
|
|
|
|
I've heard this as well... but never witnessed it.
I don't remember hearing anything specific from MS on the issue, tho I believe that they are looking into it.
very strange bug indeed.
|
|
|
|
|
Windows operating system's file name is not case-sensitive.
I have a directory which path is "C:\Test\SubDirectory",
but now i can only get the string "c:\test\subdirectory",
i want to get its origial path.
so i use the following code:
DirectoryInfo dir = new DirectoryInfo("c:\test"); \\i get this string from "c:\test\subdirectory"
DirectoryInfo[] dirInfo = dir.GetDirectories();
foreach(DirectoryInfo temp in dirInfo)
{ //but the temp.FullName are all begian with string "c:\test" .
// what i want to get is "C:\Test"
.....
}
because i can't get right result.
I change my code as following:
DirectoryInfo dir = new DirectoryInfo("C:\");//i just can be sure of the driver name in uppercase
DirectoryInfo[] dirInfo=dir.GetDirectories();
foreach(DirectoryInfo temp in dirInfo)
{
.....//i can get string "C:\Test\SubDirectory " after i get String "C:\Test"
}
I find out that service DirectoryInfo.GetDirectories() just add file name after its object's attribute named "FullName" .
If the object's "FullName" is not case-sensitive. I can't get subdirectories' right path use service GetDirectories();
To get the right path, i had to extract subdirectory begin with Driver.It's not a efficient way.Who can give me some efficient way?
|
|
|
|
|
Yes, I see what you mean....
Here's a nice way to trick it into forcing the FS supplied name instead of yours:
DirectoryInfo dir = new DirectoryInfo(new DirectoryInfo("c:\\test").GetDirectories(".")[0].FullName);
MessageBox.Show(dir.FullName);
|
|
|
|
|
How to use DirectShow with C# ?
Does anybody know ?
Thanks
|
|
|
|
|
This want work. cunsharp does not support dx or any nondotnet stuff. Isnt it stupid - yes it is.
~~~VBABE~~~
|
|
|
|
|
|
DirectX is a COM based library so you should be able to use it with .NET and the interop layer.
|
|
|
|
|
Agreed.
I did hear that there will be a DirectX.NET edition coming out sometime too. Not sure when though.
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
I have tried to find out how to do frame grabbing (DirectShow ) from a webcam, but it seems to be a bit tricky. I can not find any useful hint somewhere
|
|
|
|
|
|
I create a default webservice in vs.net, when i press "run", it will invoke ie to open the asmx file, but the ie always wants me to download instead of open as a webservice!
Thank you for your help!!!!
I'm amumu, and you?
|
|
|
|
|
The asmx file will return an XML document. If you open it with IE it will display the document. You have to use a Webservice client (object) to test it out.
|
|
|
|
|
Can you give me a example about it?
I input "http://localhost/webservice1/service1.asmx" in my ie address bar, but ie then let me to download the file instead of display the document you mentioned above.
I'm amumu, and you?
|
|
|
|
|
|
I had that same problem, it was caused by me intalling IIS after the .NET framework. Do you even have IIS installed? If you do just try and reinstalling the .NET framework.
|
|
|
|
|
I got it
You can use "aspnet_regiis -i" to register asp.net to iis instead of reinstalling it.
I'm amumu, and you?
|
|
|
|
|
This is a serious and difficult question.
I am making an addin for visual studio .net ide. This add-in will (when done) allow one to dock a MSN Instant Messenger Conversation window into the ide.
I thought of two solution to the problem, but dont know how to do it:
1. Scan all windows when a msn instant messenger conversation window is found, get it somehow, and convert it into a vs.ide toolwindow (so you can dock it)
2. Create an addin for msn instant messenger, so you can right click on contact and choose "Start chat in visual studio". >> When someone does this, it should send a handle of the window to the visual studio addin. (I think this solution would be very nice, But have no clue how to send the handle over to the vs.ide addin)
Some of the Problems I face:
The vstudio addins are supposed to be com addins and also activex. So, I found a "host" addin made in managed c++. (Included with visual studio extensibility sample 'docking window', and also with vs addin "Resource editor" on this website)
ANY help would be very helpfull
Thanks in advance.
|
|
|
|
|
I think we should support Sun and their Java initiative since is is basically free. java.sun.com
Microsoft seem to have sponsored this site so hard that there are no competing technologies available...
sayonara
|
|
|
|
|
.NET SDK is also free.
I vote pro drink
|
|
|
|
|
loluyoyanongog wrote:
I think we should support Sun and their Java initiative since is is basically free. java.sun.com
Java is free - and worth every penny. As has been pointed out, the .NET framework and the compiler are also free.
loluyoyanongog wrote:
Microsoft seem to have sponsored this site so hard that there are no competing technologies available...
This site is mostly about C++, which Microsoft has no control over.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Christian Graus wrote:
Java is free - and worth every penny.
Thanks for the quote!
/me runs away
James
"Java is free - and worth every penny." - Christian Graus; June 20, 2002
|
|
|
|