Harsh Vangani's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Floating point strikes back
I'm starting to realy hate this floating point hell. I have another problem with floats, and this time I can't see the solution. I have a simple mesh (just a square with two faces with size 100). The vertice list in the x file is as follows: -50.000000;0.000000;-50.000000; 50.000000;0.000000;-50.000000; -50.000000;0.000000;50.000000; 50.000000;0.000000;50.000000; Now, when I access the vertice buffer after loading the mesh, the values are not t ...Show All
Visual Studio 2008 (Pre-release) feature suggestion - more granular code generation using SqlMetal
I know one can specify the /views /sprocs /functions switches to include views, stored procedures, and functions in addtion to the tables in code generation. I think it would be useful to provide a swith to disable code generation for tables. It might be handy in certain situations - one example I can think of is for a DB with Sql Notification instances where there are scores of tables created by the Notification Service which are not directly u ...Show All
Software Development for Windows Vista Adding Listen Activity to a State
I create a State Machine Workflow, in one of my states I need to add a listen activity that will wait for User Approval before it can continue.. But i can't see the Listen Activity in the toolbox.. It seems like you can't add a listen activity to a state.. Is there another way The listen activity is not allowed in the State Machine model. You can achieve this by using Event Driven activity within the state and then listen for the user appr ...Show All
Visual Studio SQL Server Express that includes a limited edition of Report Server?
Anyone know where I can find more information about a limited edition of Report Server for SQL Express I saw a note to this at the bottom of Rajeev Karunakaran's site at www.gotreportviewer.com . Thanks, Any examples out there that talk specifically about the Express implementation of the Report Manager, or is this all implemented via the report controls ...Show All
Windows Forms How to resize button to follow Text at runtime?
Hi everybody, Is there a function or property to set Button size to folow the length and size of its text at runtime For example at runtime, I set Font of Button to a size of 20 and has veriable length of Text, I want the button to be able to display the text clearly and whole text is displayed. How do I do that automatically This is all in VB.Net. Thanks. den2005 Thanks anyway, That is what I thought. I ...Show All
Windows Forms Export to Excel from Datagrid?
Hey everyone, this is my first post here, so I'll get right to the point. I need to determine the best way to export data in a datagrid or dataset from a VB.NET Windows Form application directly into Excel. I was able to find reasonable wa ...Show All
Visual Studio WebForm ReportViewer Drillthrough Datasource
Hi, I am using VWD with the Report Viewer add-in. I am attempting to create a drillthrough report, but keep getting this error: A data source instance has not been supplied for the data source 'DataSet1_DataTable1'. I know you are supposed to handle it with the Drillthrough Event handler, but so far I have only been able to find example of this using .xml files. I created the dataset using a SQL2000 datasource. When I added the repo ...Show All
Visual Basic Error 1073741819 (extra)
Hello, I am using Visual Studio Professional 2005. I am programming with a few tools such as Netadvantage 2006 from Infragistics and Chart FX 2005 from Software FX. Now my program is working just fine when I use the tools from Netadvantage. But when I want to add a Chart with Chart FX. Then I can build my program with no errors. But when I run my program is runs perfect until I get to the form where the Chart is added. I get no ...Show All
Software Development for Windows Vista devicetopology.h
I can't seem to find this header in the SDK. Is this available on the current vista SDK ...Show All
Windows Forms Automatic toolbox item service ignores ToolboxItem attribute
The service that automatically creates toolbox items is not using the correct class: it ignores the ToolboxItemAttribute on the component that specifies which ToolboxItem-derived class to use, and instead creates a ToolboxManagerToolboxItem. The result is a bunch of unusable Toolbox items. We have already logic to populate the toolbox with a correct ToolboxItem whenever the designed class is opened in our graphical root designer. So we h ...Show All
Visual Basic REGEX
Please help me find regular expression for wild character match. Say the regex should return true or false depending upon the validated expression. USA --> IsMatch("US*") should return true USA --> IsMatch("U*") should return true USA --> IsMatch("*A") should return true USA --> IsMatch("*SA") should return true USA --> IsMatch("*A*") should return true USA --> IsMatch(&q ...Show All
Visual C++ error LNK2019: unresolved external symbol -- Why???
I am trying simple static linking with VS Express 2005 (C++). I have headers and source for a very simple sample static library and source of a very simple sample executable using that library. ---------------------------- Static Library Header Sample: ---------------------------- //returner.h #ifndef _RET_ #define _RET_ #ifdef _LIB #define DECLSPEC __declspec(dllexport) #else #define DECLSPEC __declspec(dllimport) #endif int DECLSPEC return ...Show All
Visual Basic Help Trying to Create Project Get Errror 0x8007007B
Hi, I just installed Visual Basic 2005 Express Edition. When I try to create a new Project (File --- New Project --- Windows Application) I get the following error: The filename, directory name, or volume label syntx is incorrect. (Exception from HRESULT: 0x8007007B) I tried changing the default directories for projects, that didn't work. I rebooted. I tried starting a different type of project, all with the s ...Show All
Visual C# Where is Object Test Bench in Beta2 (VSTS)?
I have installed VS 2005 Beta2 Team System - the full suite. And I can't find Object Test Bench any where. I tried right-clicking on the classes in class view, I tried right-clicks on the Class Diagram's classes there is no entry in the context menu to invoke a class or method. I am using the C# Windows Forms Project as well as looked inside a C# Web Project. Is there a registry tweak to enable this feature Or VSTS version does not ship with th ...Show All
Smart Device Development How to use DEBUGMSG macro?
Hi, What is the TRACE like method for Smartphone In debugging process I want ot put some message to Output window, is that DEBUGMSG macro is appropriate one In order to use that macro, what kind of header file I should include I included the dbgapi.h file, but it doesn't work. So how to use this kind of trace method Thanks. Well, there is nothing wrong with your code. The problem is that Windows CE ...Show All
