Isn't it true that every assert statement can be translated to an Assert.IsTrue, since by definition, you are asserting whether something is true or false?
Why is it that test frameworks introduce options like AreEquals, IsNotNull, and especially IsFalse? I feel I spend too much time thinking about which Assert to use when I write unit...
I had originally created a windows form to be a dialog of my projects main form. Now the dialog is getting complex enough that it needs to be started in its own process. Is there a way to do this in code or do i need to create a new project and link my files to it?
...
I am receiving this error
>GXRenderManager.obj : error LNK2001: unresolved external symbol "private: static class GXRenderer * GXRenderManager::renderDevice" (?renderDevice@GXRenderManager@@0PAVGXRenderer@@A)
The following is my code...
GXDX.h
class GXDX: public GXRenderer {
public:
void Render();
void StartUp();
};
GXGL....
The Object browser doesn't tell where the object came from.
...
I recently installed Platform builder 7 by Microsoft. It is a plug-in for VS2008.
The plug-in adds the following menu:
I want to remove several items from this menu and I would also like to add some button from it to a toolbar. The problem is that when I do customize I only get "advanced command placeholder" shortcut for the whole bunc...
I have installed Visual Studio 2010 Premium RTM (not a trial) and would like to run the Visual Studio 2010 Ultimate Trial for a while.
What is the fastest way to switch to Ultimate trial and back again to the Premium?
My best idea:
not uninstalling the Premium edition.
running the Microsoft Visual Studio 2010 Ultimate Trial - Web Ins...
I would like to switch my application to LARGEADDRESSAWARE. One of issues to watch for is pointer arithmetic, as pointer difference can no longer be represented as signed 32b.
Is there some way how to find automatically all instances of pointer subtraction in a large C++ project?
If not, is there some "least effort" manual or semi-auto...
My company recently upgraded from IE 6 to IE 8. My site does not render properly. I wanted to make sure my .net version was fixed before I started to try to fix a problem. I think my web.config file says i'm using 3.5, but if I get an error when running the app I get this:
Version Information: Microsoft .NET Framework Version:2.0.50727....
Hi,
Let's imagine you have an asp.net page in front of you full of input elements, user controls and panels etc. And you are asked to modify a specific textBox and you do not know where that textBox stands in your project.
Most of the time I use FireBug and try to see the Id of that element but it is not the best way all the time.
So...
The problem is the following: the codebase have many files with multiple blocks compiled conditionally for each of target platforms using the #if defined(...) directive. Since the typical programmer is working mainly on one of the platforms it is quite hard to read and navigate the code with these large blocks of inactive code blocks eve...
I try to write line by line data but. if i run my application. writng last text1 data in script.txt
private void button1_Click(object sender, EventArgs e)
{
System.IO.TextWriter tw;
tw = new StreamWriter("C:/Script.txt");
tw.WriteLine(textBox1.Text);
tw.Close();
}
...
Hi SO gurus.
I would like to try to automize some recurrent job when i develop asp.net application.
For example, for each <asp:button> I create, I would like to insert the classical code
onomouseover="...something"
onmouseout=" ..something-again.."
Is there a way to automatically add this code "piece" in vs 2008?
Some key combin...
VS 2010 becomes unresponsive randomly. A look into process monitor shows it waits in a loop on RegQueryValue operation on HKLM\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 001\Name key. Why does Visual Studio need to do this? Is there a way to get around this?
Have tried resetting devenv and stopping Windows Cryptography ...
I checked out a post similar to this but the linkage was different the issue was never resolved. The problem with mine is that for some reason the linker is expecting there to be a definition for the base class, but the base class is just a interface. Below is the error in it's entirety
c:\users\numerical25\desktop\intro todirectx\godfi...
How can i do below without assign null value "Tex=null"?
static void Main(string[] args)
{
FileInfo f = new FileInfo("C:/temp/Arungg.txt");
StreamWriter Tex;
Tex = null;
if (!f.Exists)
{
f.CreateText();
}
else
{
...
I am trying to address this issues because I can not seem to find a good resource online that does so.
I do not fully understand the issue cause I never got it resolved so I will try to describe it as best as possible.
Awhile ago I had an issue where headers were being ignored because "They were called once already and therefore when ...
if i try to add below data to any text file Error occyred: "NullReferenceException was unhandled." Error occurs in Tex.Writeline(li) . . . .
Detail: Object reference not set to an instance of an object.
public void WriteScript(List myTextList)
{
FileInfo f = new FileInfo(@"C:\temp\Scripts.txt");
Stream...
I have a solution with just under 100 projects in it, a mix of C++ and C# (mostly C#). When working in VS2005, the working set of Visual Studio is considerably smaller than that of VS2010.
I was wondering if there are some things that can be turned off, so I can develop in VS2010 under 32-bit OS without running out of memory.
...
I've recently installed Windows 7. After opening my old C# project in visual studio I noticed that my buttons are too small (button text doesn't fit). Why did Microsoft increase the standard font size (well, font size is still set to 8, but it's somehow bigger now)? Can I fix it somehow, without correcting all my buttons etc. manually?
...
In my situation, my company services many types of customers. Almost every customer requires their own Business Logic. Of course, there will be a base layer that all business logic should inherit from. However, I'm going back and forth on architecting this--either in one dll for all customers or one dll for each.
My biggest point of con...