|
|
thanks for the post, it did help a portion.
I ran into a new problem. My Assembly class also implements an interface. When I try to cast the object to the type of the interface, i get this exception:
The type 'ProjectA.PageBaseOperations' exists in both '{9491320D-D340-4DBD-9D31-99B6FDD80C76}' and '{0EDD5000-CA92-4762-A84D-5F68E055ECCE}'
|
|
|
|
|
Hello,
does somebody know, how to play a mp3 file from stream? not from a file!
AudioVideoPlayback can only play files.
DirectSound is not able to play mp3, but it can open streams..
thanks!
Dirk
|
|
|
|
|
Hope the Article by Giorgi Dalakishvili Here[^] will help you.
And also the article by Kareem Ali Saving from a Stream to a file[^].
Hope this both article will help you and i think if you create the Stream as an exe file means you can run it otherwise you cannot.
Regards,
Satips.
|
|
|
|
|
This is not what I'm looking for...
Its a continous stream from the internet...
|
|
|
|
|
|
The code runs in the thread that called it. If the UI thread called the code, then it runs in the UI thread. If it's called by a child thread, then it runs in the child thread.
|
|
|
|
|
I have an EXE (and not the source code).
And the EXE have a dll as reference to it?
Now I have another version of same dll (same name)
How to make the Exe to point to the newer version of the dll?
|
|
|
|
|
It is not possible, because may be the entry point of new dll file is not the same as older one!
Sojaner!
|
|
|
|
|
Hi everybody
I have a Word file with a picture inside which I saved as HTML filtered. I'm trying to send the Word file and have a little difficulty with it.
I know how to send a regular file but now I want to add to the email a picture which will be seen in the email and not as an attachment.
I know that I should use the "AlternateView" class and "LinkedResources" as the image but I don't know how to combine them together with the Word file itself.
Anybody did something like that or can direct me to a simple sample?
Another question: Is it possible to save a Word file that was opened for the first time and not saved as HTML filtered programmaticlly?
Thanks for any help
|
|
|
|
|
Hi,
I'm developing with Microsoft Visual Studio 2005 Version 8.
I want to create unit tests but can´t do so.
I don't have the new test option in the solution explorer.
Also, I can't add it as a project.
Don't know why, I have done it in other installations.
Do you know how can I add the possibility to create unit tests in C# in Visual Studio 2005?
Do I require the team edition?
Thanks
Martín
|
|
|
|
|
You need the Developer or Tester edition.
only two letters away from being an asset
|
|
|
|
|
|
kontrolakka wrote: Do I require the team edition?
You require Team Developer, Team Tester or Team Suite edition.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
kontrolakka wrote: Do I require the team edition?
For the integrated stuff from Microsoft, yep. Team Edition is the only one with Unittesting integrated.
You might want to look into NUnit[^] as a free alternative.
|
|
|
|
|
Absolutely, it works just fine.
And for simple cases, you can also implement a much simplified test harness yourself,
inside your app (so it searches for TestFixtures and executes them one by one).
|
|
|
|
|
I'm using csUnit, which features a nifty VS2005 plugin, but is otherwise the same as nUnit. You can find it here.
Standards are great! Everybody should have one!
|
|
|
|
|
Don't tell me, tell the OP. I'm on Team System myself, so...
|
|
|
|
|
The good news is that Visual Studio 2008 Pro will have unit tests. However, at the present time it seems that the open source unit test tools (possibly augmented by add-ins) are generally better than what is currently supplied with VS 2005.
Kevin
|
|
|
|
|
I want to get a (int) i=i+1 if I click a button every time ;
that is say , if I click onece i==1;
if I click twice ,i==2; and so on.
thank the one help me!
|
|
|
|
|
Hi Lockepeak,
What do you mean with ' click once ' and click ' twice.
Do you mean single click and double click, because in that case you can easily do :
this.button.Click += new System.EventHandler(this.method1);<br />
this.button.DoubleClick + new System.EventHandler(this.method2);
If you mean click once, and then add 1 to i , you could do :
private void method1(object sender, EventArgs e)<br />
{<br />
i=(i+1);<br />
}
assuming that you int i referenced in your application.
|
|
|
|
|
the answer:
If you mean click once, and then add 1 to i , you could do :
private void method1(object sender, EventArgs e)
{
i=(i+1);
}
assuming that you int i referenced in your application.
the method can't get the right anwser. whatever I click several times the value allways begin value
|
|
|
|
|
well, I'm not sure what you're doing wrong but I just made a test project and it works perfect. Every single time I click the button , 1 is added to int i . What I think the problem is , is that you don't have the integer referenced properly in your application. You have to reference it throughout the entire form so that it remembers the previous value:
namespace Blah<br />
{<br />
public partial class Form1 : Form<br />
{<br />
int i = 0;<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
private void button3_Click(object sender, EventArgs e)<br />
{<br />
i = (i + 1);<br />
MessageBox.Show(i.ToString());<br />
lbl.Text = i.ToString();
}<br />
<br />
}<br />
}<br />
}
if you reference int i anywhere else in the project, it will reset the value as soon as you dispose the messagebox. Intead of the messagebox, you could use a label to see the number increase everytime you click the button.
Hope this helped.
|
|
|
|
|
When the button onclick event fires have this in your code i++;
|
|
|
|
|
Why does the simple exercise below throw a StackOverflowException? I didn't think I was looping or doing anything recursive.
namespace ArrayTests
{
class HasArray
{
public int[] ExampleArray
{
set
{
ExampleArray = value;
}
}
public HasArray()
{
int [] ExampleArray = new int[2] { 1, 2 };
}
}
class Program
{
static void Main(string[] args)
{
HasArray concreteHasArray = new HasArray();
int[] otherArray = new int[2] { 3, 4 };
concreteHasArray.ExampleArray = otherArray;
}
}
}
|
|
|
|