Chris W's Q&A profile
Visual Studio Express Editions problem running a code
i was trying to compile a c program that is a very simple c program in visual c++ express edition #include <stdio.h> main () { double radius,area ; printf( "radius= " ); scanf_s( "%d" ,&radius); area=3.14 * radius * radius ; printf( "area=%d" ,area); } when i build the solution it says no errors no warning but when i debug it the command prompt windows just vanishes when ...Show All
.NET Development enumPrinters API in C#
Do anyone having sample for enumPrinters API in C# You can use the WMI interface. In fact if you get into it a little bit you will be amazed at what you can do with it. Anyway here is a snippit of code to access the printers using the WMI interface. ' This connects to the WMI interface Dim scope As ManagementScope = New ManagementScope("root\default") scope.Connect() ' This is the actual SQL Statement to get the printers. ...Show All
Windows Forms How can I add changes to a already deployed project
I recently built a setup project in VS. I deployed the project to my production web server. Later, I made some changes to a few aspx.vb pages. My question is: How do I add those changes to the production web site WITHOUT building another setup project and re-deploying the entire web site. ...Show All
Visual Basic VB.NET ComboBox DataSource and generic list of strings
I have problems getting a ComboBox to display the contents of a list of strings. I have a dictionary and I want to display its keys, so I put them in a list (I have tried with different lists, both generic and ordinary ones). Next, I try to set the DataSource property to the list of strings, but then nothing gets displayed in the ComboBox. If I add each string in the list manually it works though. Now, some may say that I need to set the Disp ...Show All
Visual Studio Express Editions Help!!!
I have VB homework due in 45 minutes and i cant get past an error message that I am recieving. I am supposed to be making a calorie counter and I cant get it to do any calculations. I was getting an error message for the parsing. It said "Input string was not in a correct format." Public Class Form1 Private Sub exitbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exitbutton.Click 'close the program ...Show All
SQL Server How to add a col in the fixed position?
How to add a col in the fixed position Position of columns in a table doesn't matter. If you want the columns in a particular order then you can specify it correctly in the SELECT list. And there is no way to add a column in a fixed position without dropping and recreating the table. Why do you need this What is the problem in column getting at the end of the existing ones ...Show All
Windows Forms Programming method of multiple tables in a form
Hi all, I was wondering what the 'best practice' is for implementing a form that draws on a lot of data. For example, a Member Tracking type of application, the Members form could have a whole bunch of information ie. MemberDetails, Orders for that& ...Show All
Visual Studio Team System Do Not Catch General Exception Types
I have a question about the fxCop rule on "Do Not Catch General Exception Types"...I started some discussion on this in another thread but I didn't get a full answer to my question and I thought this topic was worth starting a new thread. I think I'm using the recommended Microsoft approach for Exception Management: I'm using the Enterprise Library Exception Management Application Block to handle exceptions At the "top of ...Show All
Visual C# remove
I would like to remove the last char in a string is thiis right private void backspace() { int g; g = KeyBoard_textBox.Text.Length ; KeyBoard_textBox.Text.Remove(g, 0); } He he...now you made a mistake ;) g is out int... you do stirng Result = textBox1.Text.Remove( g, 1 ); and then textBox1.Text = Result; :) ...Show All
SQL Server How do i Create DataBase in SQL Server Express Edition
I have installed SQL Server Express Edition - ( Down Loaded ) There I found only three entries such as SQL Server Configuration Manager SQL Server Error and Usage Reporting SQL Server Surface Area Configuration Express Managment tool also i down loaded and installed seperatly.. Exp.Management on start asking ServerInstance Name and Authentication I tried with (Local) and Windows Authentication - I triend with alternative ways suc ...Show All
Visual Studio Express Editions I lost the Win32 Application wizard...
Hello, I installed VC++ Express 2005 Beta 2 a couple of weeks ago, followed by the Platform SDKs for Windows Server 2003 and for Windows XP SP2. I didn't manage to understand which of them was what I needed so I installed both (having some problem with the offline setup of the first). So when I knew that there was a new release which solved my doubts and my installation problems (I hoped), a disinstalled the old one ...Show All
Visual C++ VS2005 IDE Bug with static lib dependency
Before I report what I believe to be a bug in the IDE's dependency code regarding static libraries I will report it here. Maybe there is a workaround or maybe, even though the IDE's shows it as a bug, it is not really occuring as one in actual practice. As a simple example for a more complex actual problem, I create a solution with a C++ CLR Class Library and a Win32 static library. I then setup my project dependencies so that the class library ...Show All
Smart Device Development Help for initialize IBaseFilter
In my application I have this initialization CComPtr< ISampleGrabber > pGrabber; pGrabber.CoCreateInstance( CLSID_SampleGrabber ); CComQIPtr <IBaseFilter > pGrabberBase ( pGrabber ); I need separete the last sentence in two: first declare the variable pGrabberBase in a sentence and later initialize pGrabberBase with pGrabber in other sentence.How can I do this What do "C ...Show All
Visual Studio Express Editions Frequently asked questions
Q: I do not have internet on the computer I want to install to, can I use Visual Studio Express Editions Yes, download an image that you can burn to a CD and install on any computer without internet. Manual installation instructions here Q: Do I have to uninstall any previous versions of SQL Server 2005, Visual Studio 2005, and the .NET Framework 2.0 Only if they were community technology previews (CTP) or betas. If it is the ...Show All
Visual Studio Express Editions Executable icon in Win32 project
In visual c++ 6.0 I could set the icon by including a bitmap resource, but I haven't figured out how to do this in vc++ express. Is it even possible There is no resource editor in VC++ Express. But you can still add a rc file to the project and add an icon file to it. BTW: There is no way to add an icon by including a bitmap. You always must add an icon resource. ...Show All
