I wonder why the following does not work with Visual studio
typedef struct {
float x, y;
} complexf;
typedef union {
complexf f;
long long d;
} rope;
int main(void)
{
complexf a;
rope z = {a};
}
The error is at line rope z = {a}, cannot convert from complexf to float. If the first member of the union is not a typ...
Hi, I am writing a macro, and I would like to determine if the current line where the cursor resides is a collapsed area or not. Can someone show me a way to do this?
...
I'm trying to develop a cross-platform application using C++ with boost.
I typically program in a *nix environment, where I've always defined 'main' as follows:
int main( const int argc, const char* argv[] )
{
...
}
For this application, I'm starting in the Windows environment, using Visual Studio 2003.
When I try to use boost::pro...
Is there a way to automatically sign a C++ executable generated by Visual Studio 2008? I couldn't find anything similar to the "signing" tab in Properties that exists for managed apps.
Any ideas? I want to automatically sign my executable when it's built (using msbuild command line).
...
I know this has been asked all over the web in various different scenarios, but I can't get a definitive answer, so I though I'd try here.
I'm using VS 2005, with WinForms code. I used to be able to Edit and Continue all over the place, and now, in some projects, I can't type in the code window. I can techincally Edit and Continue, beca...
I'm looking for a VS2008 AddIn or utility that improves on "Find In Files".
The main feature I'm looking for is to show the names of the methods that contain the matching string, preferably in a TreeView.
For example, if I did a search for variable "string1", I'd like to see something similar to the following:
File1.cs
method1
...
I have a C++ console application that I want to deploy using a vs2008 setup project. When I create the setup project and add the output from my console app, the setup project detects that it needs MSVCP90.dll and MSVCR90.dll. When I build the project, those two dlls are included in the .msi file as expected.
When I download and launch t...
When I am debugging within Visual Studio, for some reason when debugging a certain thread, visual studio will just jump around randomly to different threads, I assume this is the default behavior.
How do I change to behavior so it's sits on the same thread?
Why would this behavior be default? It is very annoying.
...
I want to write /img.png on my site and have it rewrite the path to E:/something/else/root/img.png.
I can rewrite the path (and use File.Exist to verify it exist) however the server doesnt find the image. I am using transmit file but that is causing mime problems.
How do i set the virtual path? i am using visual studios 9 (2008).
...
I have a language service that I have built for a custom file type.
In addition, I have created a custom target (build action) within my MSBuild project files. I am however unable to find any way to associate that build action by default to my custom file extension.
For example, if you add a .cs file, the build action defaults to "comp...
Hi there fellow programmers..
i am using Web Browser control in VB.net 2005, the application i wrote shows a webpage on my computer which has 2 text areas, one for input, and the other for output.
my problem is, i need the charset of the whole program to be unicode, coz the charset of the webpage is utf8. and right now, when i process ...
I want to write code in C# for loading printer name in window. But I don't have any ideas to write it.
Can anybody help me to solve this problem?
...
or any of the other search options?
I usually disable all background indexing on my dev machines, but Find in Files feels slower on my latest dev machine when Windows Search is disabled, and I wonder why. I am unable to find any references to whether or not VS can leverage an existing Widows Search index for the files it is searching.
...
string patname ="enter pat name";
patname = "text";
patname = " text pat";
Hi, I want to search "pat" in the above statement using regular expression of visual studio. I tried using Pat{([^a-zA-Z]|$)} this , but it will also search the 2nd line which i really don't want. I want pat to be search inside a string value which starts from "...
We have VS.Net solution with 20 projects in it.
Occasionaly, in VS.NET, when we try to build/debug our solution, we get following error:
Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown
Only way to "fix" this issue is to reopen Visual Studio and then solution build goes well, but again after some time O...
I just use Artistic Style.
What other free tools do you use to tackle repetitive jobs while coding in Visual Studio?
...
Hi,
I have to use a lot of specific variables at my work (like T_ULONG or T_SWORD) and I'd like them to be displayed as variables (blue color or whatever). It's quite annoying to have whole pieces of code in black and white ...
I saw that there were a lot of themes for VS, but these won't solve my problem...
Any clues ? Thanks for read...
We want to run our unit tests on our TFS server. We are running the database, TFS and the build agent on the same machine.
We have set it up and it appears to work up to the point that MStest tries to publish the results to the TFS server.
We get the following error:
The "TestToolsTask" task is using "MSTest.exe" from ......
Invalid ...
I've manually created some classes in the Linq-to-sql designer and when looking in the xx.designer.cs file the class doesn't implement INotifyPropertyChanged interface.
This works if I create the entity by dragging from the server explorer.
Does anyone know why this is and if I am doing something wrong or if there is somewhere to set...
This really isn't programming per se, but is related to Visual Studio..
Anytime I use the + key on my numeric keypad, it increases the current selection. The +/= key works properly. This is only affecting Visual Studio as well..
I checked the Regional settings, and it's set properly.
...