|
Hi,
I have a small C# code snippet which i want to Unit test in VSTS 2008 .The problem is i am unable to find teh Unit Testing option in VSTS 2008.
I have searched and didnt get a answer for that.
In VS2008 and 2005 we can access Unit Test from Test Menu,but i cant seem to find teh similar in VSTS 2008.Can anybody provide any links.
Thanks in advance.
modified on Monday, October 6, 2008 10:42 AM
|
|
|
|
|
how to run external applications in c#
|
|
|
|
|
|
abiniyam wrote: how to run external applications in c#
System.Diagnostics.Process
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
how to run exterrnal applications in c#
|
|
|
|
|
Do you want to do this twice?
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
leppie wrote: Do you want to do this twice?
for (int i = 0 ; i < 2; i++)
{
Process.Start(...);
}
|
|
|
|
|
Hi,
I am trying to recreate a perl script in C# but have a problem creating a checksum value that a target system needs.
In Perl this checksum is calculated using the unpack function:
while (<package>) {
$checksum += unpack("%32C*", $_);
}
$checksum %= 32767;
close(PACKAGE);
}
where PACKAGE is the .tar file input stream
I need to replicate this in C# but can't find a means of replicating that unpack function.
All help appreciated!
(I know there are much better checksum calculations available but can't change target system so can't change calculation)
|
|
|
|
|
|
i need to know how to run flash file inside c#
|
|
|
|
|
Hi
You may try the followign steps:
First you want to add the "Flash" control to the Toolbox:
1) Right-click on the Toolbox, choose "Add/Remove items..."
2) Select the "COM Components" tab
3) Scroll down to "Shockwave Flash Object" and make sure it's ticked
4) Click OK
5) Drag the "Shockwave Flash Object" from the toolbox onto the Form (just like any other control)
6) Righ-click on the new object and select "Properties" to show the custom properties panel.
Please note:
You may not want to hard-code the URL for the moview or file in the properties dialog, so try setting the "Movie" property to something like Application.StartupPath + "\\MyMovie.swf"
If you want to talk to the Flash movie from C# then you need to use the "SetVariable" method
If you want to talk to the host Windows Forms app from Flash, use FSCommand... you'll need to add an event handler in your Windows Forms.
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
3 Approaches:
1) Use a COM object that is meant to be used for swf/flv files.
2) Use a converter to convert the swf or flv file into a XAML compliant code file.
3) Integrate a web browser into the application that navigates to the swf or flv file. Keep in mind that the end-user must have the flash player installed for it to work with the web browser control.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
hi all!
i'm new to c#. i have a class Item
public class Item
{
ProductName = "";
Quantity = 0;
}
and want to make its array i.e Item[] please help me....
|
|
|
|
|
Item[] myItems = new Item[numberOfElements];
|
|
|
|
|
thanks for reply....
please provide some details i also do this
Item[] it = new Item[5];
but when i try to access its properties it can't
it.ProductName // error occur here Object reference not set to an object...
|
|
|
|
|
fmlove wrote: it.ProductName // error occur here Object reference not set to an object
That's correct. It isn't set to a reference of an object. All you have done is created an array. You haven't populated it with anything.
To populate it you have to set each element with an instance of the class. For example:
it[0] = new Item();
|
|
|
|
|
fmlove wrote: and want to make its array i.e Item[] please help me....
Item[] item = { new Item(), new Item() }; This creates array with two items.
|
|
|
|
|
Colin Angus Mackay has given you the correct answer to your question above.
However, it's increasingly rare to need to have an array. Normally all we need is a collection in which case I'd recommend a generic list (from System.Collections.Generic).
public List<item> itemCollection = new List<item>();
You'll find that itemCollection has just about everything you'll need to manage the collection including the ToArray() method if you do need your items in an actual array.
Edit: damn these html tags screwing up the generics!
modified on Monday, October 6, 2008 8:35 AM
|
|
|
|
|
It's actually:
List<item> itemCollection = new List<item>();
I'm sure that's how you originally typed it, but you forgot to turn the pointy brackets into escaped characters.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I got there in the end after about 4 edits. Chris could do with the auto html tag thing having some common exclusions built in.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
DaveyM69 wrote: Chris could do with the auto html tag thing having some common exclusions built in.
It's been suggested.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I want to get all the IP Address of systems and others(ie,IP Cameras) connected in the Network through my system(ie Client device of the same network)
Thanks in Advance
Smitha
|
|
|
|
|
And the question is what exactly? Did you try to google for it??
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
try downloading a sample of a chat application here in codeproject. All have that routine, it´s simply i really dont remember, you will find it at first look (often commented)
you should try also use "try catch" in your application to avoid unknown clients (with no ip) to connect to server
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
How do the filtering of files in the WebBrowser. NET? I wish they control does not availed image files jpg, gif, swf ...
|
|
|
|