|
There's an example in MSDN Magazine this month (certainly on the MSDN website) about using the BITS (Background Intelligent Transfer I believe) API included within Windows 2000/XP. It provides it within the context of an application updater and seems extremely simple.
I'd recommend just building it yourself, if you only need simple functionality (i.e. download and replace existing files) then it can't be too difficult.
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
It is interesting that you post that. I found a link to InstallSite.org earlier today which had links to two articles. The MSDN BITS article and one on DevX. Since I had a requirement for Win98 the BITS didn't work. The DevX article looked pretty cool. It just downloads the files based off of an XML file. I have been setting it up this evening. It seems to work well. Some of the files are date-based hence my question in the lounge.
DevX Article - It is in VB.NET but it works well anyway.
|
|
|
|
|
How can i get the icons desktop position.
thanks
|
|
|
|
|
I'm working on a form editor a.k.a like in Visual Studio and sharpdevelop. I save the forms out as xml mainly using to the .ToString methods and then try to convert them back on load.
I thought this would be the way to do it:-
Dim PInfo As PropertyInfo = ty.GetProperty(Nde.Name)<br />
If Not PInfo Is Nothing Then<br />
Dim t As Type = PInfo.GetType()<br />
PInfo.SetValue(ctrl, (CType(Nde.Value, PInfo.GetType())), Nothing)<br />
End If
but CType and DirectCast do not accept PInfo.GetType() . They demand a hand coded type e.g. CType(Value, Integer) . Does anybody know of a way to do this?
I look for the TagName via reflection :- Dim PInfo As PropertyInfo = ty.GetProperty(Nde.Name) and it returns fine, so it's found the property. But how do I then convert the value to the correct Type so I can set the property value?
Demo XML:
<code><VISIBLE>True</VISIBLE>
<Text>Caption :</Text>
<TextAlign>1</TextAlign></code>
|
|
|
|
|
which bit of "C# discussion board" did you not understand?
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
You lot know more about 'advanced' stuff. I always pick your lots brains. But I just realised that you don't have to explicitly cast you lucky sods
|
|
|
|
|
actually in c# you do have, a great example
float r, x, y;
x = 10f;
y = 2f;
r = (float)Math.Pow(x, y);
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Have a look at Convert.ChangeType .
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
I have tried to convert a C# project into an UML diagram by using the reverse engineer function provided by the Visual Studio .NET, i.e. by selecting the function in the Project -> Visio UML -> Reverse Engineer. However, it does not generate any diagram. Instead of it, it has generated a static model which contains the class properties used in the project, but I still need to drag and drop the static model to the sheet in order to create the UML diagram.
Is there any method that it can automatically generate an UML diagram from a C# project without any drag and drop action?
If anyone would help me about this problem, I would be appreciate it very much.
Best regards,
|
|
|
|
|
don't think so, it reverses engineers the model - its up to you how you want to draw it.
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
I see. Thank you for your help.
Sincerely,
Frankie Leung.
|
|
|
|
|
Does anyone know where can I get source code for median filter in C
Thanks
|
|
|
|
|
What are you filtering ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
I am doing scanning of pixels and replace the middle pixels with the median of all its value.
Doing filtering of noise in image like bitmap or JPEG etc.
|
|
|
|
|
My series of image processing articles in C# on this site includes a noise filter, if I remember correctly.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
Hello,
I want to display text in a label vertically. Can anybody suggest how to do this.
thanks,
Chito
|
|
|
|
|
I dont know if you can use a Windows.Forms.Label to do it. I think you will need to use a StringFormat object and the Graphics class to draw it yourself.
check out this [^] MSDN link. It may be exactly what you need.
What Would Uncle Steve Do?. -Michael Martin
|
|
|
|
|
One thing you can do is to decrease the width of your label to width of a character, and the height of your label to your need! and you will see your text, vertically !
I hope this helps!;)
Regards
|
|
|
|
|
How to prevent messages with AddMessageFilter() method of Application class? "specially ctrl + alt + del"
Regards
|
|
|
|
|
Meisi, It depends on what you are trying to accomplish.
CTR + ALT + DELETE has a very high priority in Windows and is not the easiest to intercept. If you plan on having this form be the only thing a user is allowed to see you might be better off authoring your own GINA in C++ and replacing the one that comes with the system. Look up "gina" on msdn for more info.
What Would Uncle Steve Do?. -Michael Martin
|
|
|
|
|
I've been looking for some sample C# TAPI code and S.S. Ahmed's sample project is the best I've seen for wrapping the TAPI calls in C# and demonstrating how to dial. However, I'd like to figure out how to detect a ring in and get the callerid information so I can update a database with incoming calls. I'm not a TAPI guru and the calls are less than obvious. Is this possible and does anyone have any sample code that demonstrates this? Thanks.
Ron Ward
|
|
|
|
|
Anyone play with this? How? Derived class? What's the base type?
It contains all the facet information when a DataColumn is mapped to an XSD simple element. It would be nice to have this available, but of course it's a protected member. In fact, it's not even documented in MSDN. Would be really handy for what I'm doing.
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|
|
I sort of answered my own question. It's a System.Data.SimpleType class, but it's INTERNAL.
Why do they do this???
Along with DataColumn.XmlDataType, which would have been really useful too!
So how do I snag internal classes??? There must be a way!!!
Jerks. All this useful information, and you can't get at it because they want to keep it for themselves.
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|
|
I want to keep people from recreating my "source" code via the .NET
disassemblers/decompilers that are already out there (Java had this
problem too but at least the variable names weren't the same as the
original when decompiled back to source).
For a scary example of one a .NET Decompiler:
http://remotesoft.com/salamander/index.html
(You can test their disassembler on your own code on this site)
This tool will recreate your original source code minus comments.
I have a question: Has anybody found a way (e.g., a build flag)
to make decompiling of .NET assemblies more difficult besides paying
a $1K for an MSIL obfuscator?
|
|
|
|
|