How can I catch a divide-by-zero error (and not other errors; and to be able to access exception information) in Visual Studio 2008 C++?
I tried this:
try {
int j=0;
int i= 1/j;//actually, we call a DLL here, which has divide-by-zero
} catch(std::exception& e){
printf("%s %s\n", e.what());
} catch(...){
printf("generic except...
Hi,
I want to create full screen topmost (screen saver) window with MFC? How to create such full screen window in MFC? I tried to create win32 application and i am able to create fullscreen top most window but i want to create using MFC so later i can put different MFC controls on that window?
Please help me.
Thanks,
Jim.
...
I have a ComboBox with its elements loaded from a sqlserver table (groups)
I also have a DataGridView, linked to another table (users).
When I load the form, the combo is filled with groups, and the datagridview is filled with users (all the users)
1) I want to be able to select a group from the ComboBox (dropDownList), and then to r...
I use EF for Visual Studio 2008, so I don't have POCO integration with EF.
Since we have a n-tier application, we're mapping POCO to entities constantly, entities aren't thrown to the upper layers, I do mapping with Automapper and manually also.
The big problem we have is when mapping from POCO to entities.
If I'm adding a new entity ...
Hi,
I'm using VS 2008 Developer Edition and am finding some bugs with the Test Projects.
I am getting one error that doesn't make sense - I have a class called 'Foo' which I need to test and created the blank test class automatically.
Foo takes 3 paremeters in its constructor - IBar, IBaz, IBang.
When I write a test case, I will Dim ...
I'm new to T4 but I have stumbled accross it and it looks very useful.
I'm trying to generate some simple DA classes and need some advice one a particular part of my code.
Hoe can i generate the following code given that I already have the table name and column names (in this case "Agreements" and "AgreementId", "ContactId", etc)?
if ...
I am attempting to keep user inputs into our application as clean as possible. One way I am attempting to do this is not allowing incorrect data type in fields (not allowing alpha characters when expecting numeric values)
I found and implemented the following code:
Private Sub txtSocial_KeyPress(ByVal sender As Object, ByVal e As Syste...
Hi,
I have a small dummy project in VS 2008, contains only the following code file
using System;
namespace FrameworkTest
{
internal static class MessageQueueNative
{
struct TestStructure
{
public IntPtr aStatus;
}
public static void Main()
{
TestStructure pMgmtProps = new TestStructure { a...
Hi,
Does anyone know if there's a way in VS 2008 to shortlist the Intellisense to show only, say, events or properties? Or is there possibly a plug-in for this?
I use Intellisense over going to the documentation for classes a lot and this would just be a quicker way to find a "method to do X" or a "property for Y" without knowing its n...
I have created a WCF project in VS2008, pro edition. Trying to open the same on a test machine that has VS express editions and error i get is
'the project type is not supported by this installation'
...
Strange visual studio (TS 2008) problem: The IDE completely freezes whenever I switch from Release to Debug mode in a specific project. It happens right as I switch, before I try to build or do anything else.
The whole thing started out of the blue, without any abnormal change I can think of.
I tried to clean the solution, but it didn't...
I would like to create a custom parameter for a vstemplate containing some C# code. Basically I want to put DateTime.Now.ToString("yyyyMMddHHmmssfff") in my template (the formatted date, not the code). Basically I want to achieve the equivalent of the T4 below in my item template.
[Migration(<#= DateTime.Now.ToString("yyyyMMddHHmmssfff"...
jquery intellisense works fine with standard setup (asp.net mvc)
<script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script>
with jquery-1.3.2-vsdoc.js in same folder
if added new script to head like
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
...
Hello,
I started Windows Mobile 6.x development but I am facing a problem when I want to unit-test my classes.
In fact when I run the tests everything goes like it should: VS launches the emulator and then runs the tests. But when I try to debug them, it launches emulator, runs the tests but my breakpoint are never hit. It seems that d...
Visual Studio 6.0 used to show the keyboard shortcuts in the tooltips for the toolbar buttons. Is there a setting in Visual Studio 2008 that turns that on, or is that yet another case of Microsoft deciding to remove a feature that some find useful from one of their products?
...
I've got a legacy project in VS2008 that we're about to start refactoring for better componentization. The references between the 150 projects in the solution are messy, so as a starting point, I'm trying to at least get to a point I can have a few projects use binary references to other projects while others use project references. (For...
I am working on a composite control and this requires me to open multiple Visual studio IDEs and add the control on pages.
This causes Visual Studio to create multiple assemblies.
So every time this happens I close all IDEs, and delete ProjectAssemblies folder.
Can all this be avoided? It's very hard to work like that...
UPDATE:
T...
Hi is there any full book or part of books which talks about the improved and simplified ways of creating / developing/customizing SharePoint 2007 Workflow using Visual Studio 2008 (preferably Team edition)
...
Hi!
Problem:
I have a Azure project.
The problem is that when I run the application it takes like 10-15 minutes to actually open the page in browser. The page & debugging works normaly.
Project:
using VS 2008 Version 9.030729.1 SP
Solution (7 projects)
• Hitrarisma (Azure configuration project)
HitraPisma.DataAccess (c# class)
HitraP...
I have a problem with the "Copy to output" functionality in Visual Studio 2008. Maybe I'm misunderstanding how its supposed to work.
I have a solution with four projects:
TestApp1 (Windows application)
TestAppA (Windows application)
TestProj1 (Class library)
TestProjA (Class library)
The dependencies are as follows (dependency as in...