I have a project that requires that I run some code when the application closes. The application is only a single form that hides itself almost immediately after execution, so the only way it can be closed is by manually terminating it with the task manager.
If I use the onclose event, will it be called in this case? Also, can someone p...
I'm seeing some weird behaviour debugging my C# code - I cant post my exact code but essentially I have a partial abstract base class that defines an Execute method:
public abstract partial class MyBase
{
public abstract void Execute();
protect static object SomeMethod()
{
object aaa = OtherClass.GetObject();
...
I am confused. Sometimes when I initiate my window, the Handle returned is good. and sometimes its not. Here is my code
void GXRenderManager::InitWindows()
{
WNDCLASSEX wndcex;
wndcex.cbSize = sizeof(WNDCLASSEX);
wndcex.style = CS_HREDRAW | CS_VREDRAW;
wndcex.lpfnWndProc = GXRenderManager::WndProc;
wndcex.cbCls...
I am having issues retrieving a swapchain and device from directx. further info is in the code
void GXDX::StartUp(HWND* mainWindow,int w, int h)
{
//width and height are members of GXDX
width = w; //contains the width
height = h; //contains the height
this->mainWindow = mainWindow; // Is a handle to the main window. i...
I tried to enable Code Analysis in my Visual C++ 9 project. When I build the project Visual Studio only compiles common.cpp, emits a set of warnings and stops without proceeding to other .cpp files.
How do I make Visual Studio analyze all the .cpp files?
...
I want to add a hypertext (basically a link to my website) in the FinishedDialog of the Visual Studio setup/deployment project for my app.
Can anyone suggest me how can I do so?
I was thinking of adding the url in the UpdateText property of the Finished Dialog. But I cannot get a hyperlink just by that.
Any suggestions?
Kapil
...
Can I set the default-option of "Copy Local" in Visual Studio to False? In most times, when I add a dll as dependency of a project, I want the Copy Local property set to False. Per default, it is True. Is there a way to change the default behaviour of Visual Studio? (2008)
...
Hi, everyone. I have an advanced T4 question and I'm hoping someone can help.
I've created a SQL-like DSL, and the scripts are saved in '.satsql' files in my C# projects, like so;
// contents of myqueries.satsql
SELECT <column t1.Id> FROM <table mytable t1>
I have a .tt file which loads the file and attempts to parse it. If it fails,...
I am having a very odd problem with Visual Studio 2010. After using it for a while, the statement completion comes up in what looks like a vertical IME mode. Nothing I type ever gets to the document, hitting esc gets rid of the box, but any typing brings it right back up. Restarting VS fixes it for a while.
I have uninstalled all langua...
I started getting the error, "error C2059: syntax error : 'default argument'" for a line of code that declared a function with a string argument that was given a default parameter. This was obviously a bit frustrating, as the error message was not exactly enlightening (I know it's a 'default argument'!), and the exact declaration would ...
Hi,
I'm using Visual Studio 2008 and I split my text editor into two vertical text editors. I thought it would be useful to have a macro that re-size the active text editor to take up most of the screen but I haven't gotten very far. I get an error whenever I try to change the width oh a text editor.
DTE.ActiveWindow.Width = 800
And I...
Is it possible, through Visual Studio, to flatten Files with a Build Action of 'Content'?
Currently if I have the content in a folder then the folder is created. I need the file to be moved up to the root directory on build. Is the only way an xcopy?
...
Our development team has a number of semi-technical users that act as intermediaries between our developers and domain experts. One of their tasks is building forms using a very clumsy, antiquated system that makes their job much harder than it should be.
I'd quite like to create toolbox controls similar to the standard HTML controls th...
I copy and pasted some code that increments an enum:
myenum++;
This code worked fine as it was compiled in VS.NET C++ 2003
I am now developing in VS 6.0 and get the error:
error C2676: binary '++' : 'enum
ID' does not define this
operator or a conversion to a type
acceptable to the predefined operator
How can I get t...
Is there a way to quickly maximize (and then restore) Visual Studio 2010 panels? For instance, I'd like to temporarily maximize the Output window or unit test results window. In Eclipse, I would just double-click the window tab but in VS, this undocks the window.
The desired behavior is: double-click to maximize the window, then double-...
Hi
Question: How to display the mouse hover over tooltip in VS2010 using a keyboard shortcut?
Ctrl Shift Space gives some detail on overloads..
Cheers
Dave
public ActionResult About()
{
return View();
}
...
Today I noticed that C#'s String class returns the length of a string as an Int. Since an Int is always 32-bits, no matter what the architecture, does this mean that a string can only be 2GB or less in length?
A 2GB string would be very unusual, and present many problems along with it. However, most .NET api's seem to use 'int' to con...
Hi,
I released a product to customers several weeks ago and now have an update.
I have database folder\files that are kept when the product is uninstalled.
Now when the the new version is installed it overwrites these files, Although I had set the properties: Permanment = true
Am I missing something?, or perhaps a condition needs to b...
I am debuging with Visual Studio 2010. I want to see the raw memory bytes in the Debug Memory window. But I noticed that before 0x70000, the memory content is not shown, only a "??" mark for each byt. Why can't I see the content?
...
When I open File -> New Website from the main window, New website prompt comes empty. There is nothing to select. Do I have a configuration or installation error?
Installed Products:
Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1
Installed Edition: IDE Standard
Hotfix for Microsoft Visual...