|
What's wrong with the copy function ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
One reason could be that it's blocking the calling thread while it's working without any progress update.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Try using StreamReader, StreamWriter classes in namespace System.IO.
In framework 2.0 you can use the function ReadAllBytes and WriteAllBytes in namespace File.
|
|
|
|
|
As alexey_n already suggested, you can use StreamReader/Writer.
You create a byte[] buffer and fill it with data from the source file. Then you write the buffer to the target stream.
Repeat as long as the source stream hasn't reached its end.
Btw. if you really want a replacement for Copy, do not forget to set the file properties (modification date for example) after copying the content. The FileInfo class has what you need for this task.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
How should I read in a binary file so that I can FTP upload it?
|
|
|
|
|
how to play Flash in C# 2005(WindowsApplication)
-- modified at 21:36 Tuesday 11th April, 2006
|
|
|
|
|
There's a ton of articles on google.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It seems your reply requires too much user effort
|
|
|
|
|
Yeah, that's what I've come to expect.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can anyone tell me how do I add a .Net FCL Control to my C# project.
The problem that I am getting is that I have made a control in C# by selecting the project type as "Windows Control Library", In this project I am using just a Listbox and I have not made this project as a Component.
Then I make another C# project and on its toolbar I select "Choose Item" by right clicking my mouse button. On that I see a window which shows a list of .Net Framework Class Library Components and COM components, but since my project is not a Component I don't see my control in that list.
After that I tried adding the dll of my control in the references folder of my Client project, I was able to add that dll as a reference but the problem is that since my control is a visible control, I would like to see the Listbox which this control contains, whenever I use the control in my project.
I want my Control to appear on the tolbox of my client project, I was unable to do that?I was able to implement a class as a component, and use it as a control in my client, this worked perfectly fine and I saw my Class control on the toolbox of my C# client after I selected Choose
Item on the toolbox.
Please let me know what should I do regarding this issue?
|
|
|
|
|
Did you try browsing and selecting your dll after right clicking on the ToolBox and selecting Choose Item? That should work.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|
|
Can anyone tell me how to create a Visible Control and add it to a C# form?
|
|
|
|
|
Do you mean adding controls in run time or design time?
Can you explain more question?
|
|
|
|
|
I need to draw line(arrow) between 2 controls in a panel,
this line outside from and income to control Bounds,when move that
control by mouse the line follow the control
--------
this line can be over the control
|
|
|
|
|
You draw lines in your paint method handler. You can get the position of the controls from the controls themselves and then draw your line, using DrawLine on the Graphics object passed into the paint event.
Moving your controls via the mouse is another issue.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
how can i copile C# projects (with VS 2005) for netFrameWork 1.1 ...
i intstalled Vs2005 and so netframework2 installed .. so every projects for netfr..2 .. and dont work with only netFrame..1.1
??
(sorry for my bad English )
|
|
|
|
|
There's no easy way as far as I know, this did come up a few days ago in one of CP's forums but I can't remember which (I think it was this one).
I seem to remember that there is a build of MSBuild (no pun intended) that targets .NET 1.x and since the VS2005 solution files (or project files) are glorified MSBuild files then you can build the solution with MSBuild targetting .NET 1.x.
But unless you write some form of macro or add-in I don't think that there's a way to accomplish this from within VS2005 but you can do it outside the environment.
Ed
|
|
|
|
|
oo this bad for me.. thank ou Ed .. and any other solution for this.. i will wait..
-- modified at 17:17 Tuesday 11th April, 2006
|
|
|
|
|
Why do you need to run stuff under 1.x if you have 2.x?
Ed
|
|
|
|
|
yippie i found .. thanks Ed.. but this is lon long way.. no other way , so i will try this.
(i tagged with code so any adv. link bla bla)
http://weblogs.asp.net/israelio/archive/2005/06/08/410811.aspx
-->> this boy reads this info from msdn blogs [until now i will search from there,, this is better way.. and offcourse i will write what i learned ]
you ask: Why do you need to run stuff under 1.x if you have 2.x?
i will show my projects to my friends,teasher and others.. we are using 2003 in school and the computers dont have netfr..2.x and i have no permission to install vs 2005 ..
thats why i need this..
thanks
-- modified at 17:28 Tuesday 11th April, 2006
|
|
|
|
|
If you're using the full copy of VS2005 and not the express versions then you could write a macro which calls MSBuild to build it targetting .NET 1.x, then map a keyboard shortcut to this macro so that at a keypress you can build the .NET 1.x version.
Of course you need to make sure you don't use any of the new classes available in .NET 2.0.
Ed
|
|
|
|
|
I think this might be possible, but because of the difference in the compilers between 1.1 and 2.0 and the framework it may prove to be a challenge.
One method to get around this, is to compile the project using the 2.0 compiler and forcing the compiled 2.0 assembly to run using 1.1 when 2.0 is absent. To do this, add this section to your App.config file:
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>
Regards, Graham
|
|
|
|
|
microsoft developers says interesting words [this is stupid i think:a pruduct cant running at older versions. ]
their soutions are long long ...
Have you seen my MSBuild Toolkit yet?all links are bad in m!cro$oft blogs.
-- modified at 2:31 Wednesday 12th April, 2006
|
|
|
|
|
|
Hi everybody
I am developing an aplication to conect with a Microsoft Access database. I need to know wich drivers i need to install in a PC with Windows ME, to make this software functional, because i install yet the .net framework, but when the application tries to connect to the database, it throw an exception.
|
|
|
|