visual-studio

How Can I Create a PDF Quotation File from Winform?

Assuming i have a winform that has a button called "Create a Quote". Once user clicks it, a PDF File gets created on desktop. The PDF File has a fixed design/structure e.g. the logo is at the top left corner, the headers are fixed, etc. However, the data it self is pulled from a database. As you see above, Quotation #, Description, Qt...

Change name of generated PDB file to include .exe or .dll extension of it's executable.

Hi In Visual Studio 2010, is it possible to change the naming of the .pdb file to include the full name of the executable, including it's extension, and that debugging will still work? For example, suppose I have an executable myprogram.exe, I want the pdb to be myprogram.exe.pdg rather than myprogram.pdb. Similarly I want mylibrary.dl...

asp.net: Button changes TreeView.Selected node to null

It seems that as soon as I click the button the treeview changes selected node to null. Is it because cliking on anything else unselets the node? how can I make the value persist so that I can use it inside the button click event? button click protected void Button1_Click(object sender, EventArgs e) { TextBox1.Text = "-----...

Advice on entering the world of Visual Studio 2010 (vb) and SQL Server

I'm looking for specific and current advice from professional .NET + SQL Server developers on: best way to get up to speed best reference materials or books to use any pitfalls to watch out for I'm starting a new position next week in which I will be developing advanced accounting software (LAN software) using Visual Studio 2010, Vis...

static char * vs #define in C++ VS2005

I have a large program with several large DLL's that are compiled with MFC and /clr. There is a limit of 65535 global FieldRVA entries in an assembly. If it is more the loader raises an exception. I already have Enable String Pooling (/GF). I have alot of code like: static char *pSTRING_ONE = "STRING_ONE"; if I compile witha macro su...

Is there a way to get Visual Studio to run "Transform All Templates" upon a successful build?

I have a T4 template that geneates helpert code based on other code that is declared within my project. Because of this, I have to build my project before I run "Transform All Templates". Is it possible to have "Transform All Templates" run as a post-build-event upon a successful build? ...

Converting old VS 2002 Windows Forms projects to newer versions

I have an application that was started in C# 1.0 using Visual Studio .NET. As part of a partial rewrite/upgrade, I would like the application to take advantage of the form auto-scaling features in Windows Forms 2.0. Those features rely on setting the AutoScaleDimensions property, which is supposed to be done by the designer. New custom F...

Use a .OCX Control in Java

IS there a way to use a ocx control ( VB6) from Java? ...

"Active (Debug)" versus "Debug" ~~ please explain these vs settings

Visual Studio Debugger Project Settings for C# Debug Configurations http://msdn.microsoft.com/en-us/library/2kf0yb05.aspx vs2010 http://msdn.microsoft.com/en-us/library/2kf0yb05(VS.90).aspx vs2008 http://msdn.microsoft.com/en-us/library/2kf0yb05(VS.85).aspx .NET 3.0 http://msdn.microsoft.com/en-us/library/2kf0yb05(VS.80).aspx vs2005 http...

Make Visual Studio not care about DLL versions

Is there a way to make visual studio not care about dll versions? Is this a bad idea? I am resetting up my dev machine and I just installed the latest version of Pex and Moles (version .92). All my projects are on version .91. We are in the middle of a release and don't want to upgrade right now. Also, I cannot find an installer t...

Boost crash when linking Visual Studio 2008 Express '/Mtd' setting.

TLDR Linking my fresh boost build with Visual Studio (/Mtd) causes boost to throw a 'bad_alloc' exception before entering the main function. Details I built the boost library using the instructions from the Getting Started instructions. After setting up the prerequisites I used the following build command: bjam -j8 --build-dir="C:\De...

How can I supress auto-generation of project folders within Visual Studio?

I have a directory structure that looks like so: MyApplication\Source\Linux\Makefile For VC6, my path used to looked like this: MyApplication\Source\Win32\MyApplication.dsw MyApplication\Source\Win32\MyApplication.dsp I'd like my path for Visual Studio '08 to be the same: MyApplication\Source\Win32\MyApplication.sln MyApplication\...

XNA 4.0 for xbox question (confused)

At the moment I have visual studio 2010 open, I see XNA Game Studio 4.0 and then I see Xbox 360 Game 4.0 as well as window game (4.0) I was under the assumption that these were not released yet, or not ready. What happens when I actually use them? am I using XNA 4.0? can I publish to Indie games for xbox(pretty sure I cannot) usin...

How do I make a "proxy" class for a web service in Eclipse for Java?

I can't figure this out, I'm a pretty novis Eclipse user. I'm a .NET/C# Guy by trade, and playing with Java in my spare time. I have a .NET WCF Service hosted with basicHttpBinding -- I'm successfully calling this service from another .NET application, I've used the Visual Studio SvcUtil to generate the proxy class (via Add Service Refe...

VS2010 ASP.NET Deployment

How do I deploy to a shared hosting environment... code and database (full blown SQL). What is your favorite way to get a 50MB single project ASP.NET Web Application Project and database to a live server with FTP and SQL Management Studio ports accessible? After a day of exploration mine is: - Use the Web.Debug.config to easily allow t...

Install deployment package with deploy.cmd over command line

I'm successfully using Visual Studio 2010's Publish wizard to publish to a remote site. However when I try to do the same thing over the command line I keep getting the error: Could not complete the request to remote agent URL 'http://example.com:8172/MSDeploy.axd. I'm sure I'm just missing a flag somewhere.. Here are the settings that ...

Visual Studio hangs when changes are made to source codes in Asp.Net App_Code folder

Hi, My Visual Studio will hang everytime I make some small changes to the Codes in the App_Code folder. I checked in the folder.. there are about 91 Files in 62 Folders. Any suggestions on how I can improve its performance? ...

LINK : fatal error LNK1104: cannot open file 'libcollada14dom21.lib'

I have hot this error at the linker: LINK : fatal error LNK1104: cannot open file 'libcollada14dom21.lib' I dunno why, libcollada14dom21.lib is in VSDIR/VC/lib. ...

Trouble understanding T4

I've just started playing with T4, as I eventually want to use it to generate POCO's that map to LINQ to SQL entity classes, but even the simplest example has me slightly confused. Some advice on what is happening, and some advice on some good reading would be greatly appreciated. I am of the understanding that the following template s...

c++ win32 output a text

im using visual studio c++ 2008 i created project that contents the full window code. i don't know how to output text to window. i mean i have full functional window with menu bar and under the menu bar there is the body im trying to ouput the text in the body but how? ...