TheGeoff's Q&A profile
SQL Server T-SQL Catch-all error handling?
Hi, Is there some equivalent in T-SQL to the notion of having a global try...catch. Basically, I have a stored procedure which evaluates a stack and then inserts the calculated value into another table. However if there are invalid values on the stack such that a calculation cannot be achieved, I just want it to insert null. (In this version). To do this I need to design some logic into the stack evaluating sp that simply catches e.g. invalid d ...Show All
Visual C++ Exporting functions with _declspec(dllexport)
Hi, I have a DLL library and I export classes from this library. All classes and their method are properly exported and can be seen in "dumpbin /symbols mydll.dll" output. I use the standard _declspec(dllexport) and _declspec(dllimport) approach. All classes lie under a namespace like: namespace MyDLL { MYDLL_EXPORT void init() ; // Implemented in MyDLL.cpp class MYDLL_EXPORT MyClass // Methods Implemented in MyDLL.cpp ...Show All
Visual Studio Team System Organizing Projects into Products or Customers or Releases?
Hi! We're trying to figure out how to best organize our VSTS projects. We have 5 different product all sharing the same core. We have core releases every 3 month, and a product release about every 6 month.The core is developed together with the product, so before the start of a new core release, the "core" functionality from all released product are merged into the Core. In addition a product are usually sold together with some c ...Show All
Windows Forms child controls of custom control disappear at run-time
Hi! I'm developing custom control with two panels. I'll make just only one panel have controls. so, I used 'EnableDesignMode'. below is my code [Designer(typeof(WPCTest.WPCTestDesigner))] public partial class WPCTest : UserControl { public Panel Area { get { return this.panel2; } } internal class WPCTestDesigner : ParentControlDesigner { public override void Initialize(IComponent component) { bas ...Show All
.NET Development strongly typed dataset
Hi, The following line populates a datagrid using a strongly typed dataset. dsEmps is the .xsd file in the foreach line I would like to loop through each record I get an error on the foreach line and it says: specified cast is not valid I think this line has to be somehow casted employeeDetailsData.Employees.Rows EmpBusRule.EmpService.dsEmps employeeDetailsData; EmpBusRule.Employees br = new EmpBusRule.Employees(); employeeDetailsData = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem loading an X File
I'm trying to break into the world of game development, but I'm having a spot of trouble with creating my own content and I don't know where else to ask for help. I have a sample engine and I'm using 3ds Max to create a custom level, I'm using the Panda Exporter to export to a .x and I've used it on the sample .max file the engine author provided, so I know the issue is not the exporter settings. The problem occurs when I call D3DXLoadMeshHie ...Show All
Visual C# complier generating tools in C#
there are complier wirting tools in Unix like Lex and Yacc, even in java there is javaCC, I wanted to know if there is some tool in C# I'm not aware of anyone porting Lex and Yacc (or Flex and Bison) to C# although I'm sure some academic school or PhD candidates are working on it. However the language a tool is written in is almost irrelevant. What is more important is what languages the generated code can be in ...Show All
Visual Studio Cannot install VStudio.NET Pro 2003 (Student Software)
I am having one hell of a time trying to load VisualStudio.net Academic version on my Windows XP machine. I have a version of Visual Studio standard; however after talking to multiple students and professors they all recommend learning the differences and making the adjustment to .NET. I would love to do this but I can't install the darn thing. When the setup runs it requires me to install prerequisites. It doesn't install and says an ...Show All
.NET Development DateTime format between C# and SQL Server 2005
Help me! when i start a C# project, i go to Cotrol Panel-> Regional an Language Option to chane the DateTime format to 'dd-mm-yyy' example '15-11-1984'. Then the C# IDE folow this setting. But the SQL Server don't folow this setting. Example: in C#, the Statement is true: DateTime.parse("15-11-1984"); but in SQL Server the statement is false because the datetime format is 'mm-dd-yyyy': Select * From table_name w ...Show All
Visual Basic Logical Drives - Shared?
When a user mounts a network drive, it shows up as a logical drive (S:, Z:, ...). How can I figure out if a drive is local or not Yes, unfortunately this is a bit more challenging to implement. The route I suggest you take in FX 1.1 is to use the WMI classes in the System.Management namespace. The easiest way to use WMI is use the Management Classes node in Server Explorer. If you don't have ...Show All
Visual Studio Express Editions Registration Benefits - IconBuffet
I have been working with VW Dev Express and have accessed some of the benefits from the Registration Benefit Portal. I would like to be able to get the IconBuffet item, however, it does not appear to be one of the benefits of VWD. Does anyone know which Express software includes IconBuffet as a registration benefit --Charles I understand who gets what but the actual Benefits Portal does not have ...Show All
Visual C++ fatal error C1083: Cannot open include file 'math'
I am running VS.net 2003, I need in include the old math.h header file. Now I seached my HD and in fact found the math.h file in the" F:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include " folder (note I instaled VS.net2003 on a HD NOT my system HD and I also have 'dualboot' with win98 & win2k ). Here is what I have started with: #include <iostream> #include <math> using namespace std; void ...Show All
Visual Studio 2008 (Pre-release) Strange WPF 3D opacity behavior
I've just tested some of the WPF 3D features in the latest release of the WinFX SDK. I noticed some strange opacity behavior which I have described in greater detail here: http://espy.dk/WPF3DOpacity/ Is it a bug or a feature Best regards, Johannes Hansen frontAvenue A/S It's a feature, for two reasons: 1. The blend function. When an alpha blended polygon is drawn in Avalon 3D, a blend function is p ...Show All
SQL Server JDBC Driver
Hi, I am writing a simple java code to connect to my newly-installed SQL Server 2005 Express. I have read that a new driver is needed to connect to the database (sqljdbc_1.0.107.104_enu.exe). Here is a connection sample I found: jdbc:sqlserver://localhost;user=MyUserName;password=**** and the driver class is com.microsoft.sqlserver.jdbc.SQLServerDriver This is far different from the one I used to have when connecting ...Show All
Visual Studio Express Editions Changing the desktop bakcground
Does anyone know how I could change the desktop background in C++ See this thread , or try asking in one of the newsgroups. ...Show All
