Jimmy Q's Q&A profile
Visual C++ COM, get methods/parameters supported by an interface OR create a request at runtime
My goal is to read an xml file, and depend on what the xml file has, QI to an existing Interface and access the method. To be more clear here are 2examples: <IBla> <IFoo> <get_Name> <parameter1 type="long" value="52"> Will create: IFoo* ifoo = ibla; long longe; ifoo->get_Name(&longe); if (long == 52) return S_OK; <IBla> <IMe> <get_Count> <parameter1 type="int" value="2"> Will create: IMe* ime = ibla; Int inte; ime->get_Count(&inte); if (inte == 2) return S_OK; This is how far I can get: By having the IID in the xml file I can get the interfac ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quadtree frustum test?
How would one generally go about testing if a quadtree node is within a frustum. An octree node is more straightforward because it represents a bounding box, but a quadtree is flat and it wouldnt make sense to have a bounding box for a quadtree node It would be nice to get some direction here, how would I generally go about testing if a quadtree node is within the frustum in simpleton terms EDIT: everywhere I read about this, it seems that a quadtrees volume is represented as a bounding box, but this still makes no sense considering they are supposed to be flat, very confusing, this would mean that the bounding boxes min and max Y extends should be set to large values! (if I use min/max Y of both zero culling will fail, at least it ...Show All
Windows Forms DataGridView.Columns[].SortMode problem
In a DataGridView I want to have the columns sorted. They are sorted as a matter of fact by default. My first column is of System.Strings data type, all others are System.Double variables. I've also discovered a pleasant surprise that when I click on any of the columns the whole DataView is immediately rearranged in such a way that this column gets sorted. Here is the problem. I want all columns except the first one to be sorted DESC . The first column is sorted ASC by default and it is great, however in all other columns the lowest numbers which are mostly zeroes in my case give me little joy. I want the highest absolute values (all of my float values are positive) to be on the top , not bottom. I want to find out if it can be se ...Show All
Visual Studio Express Editions How to run samples?
I have installed Visual Basic 2005 Express and I want to try some of Microsoft samples as Visual Basic in Office (Excel) -real estate locator. but I can't get work. Sample is here: http://download.microsoft.com/downl...ice%20excel.msi I also tried microsoft 101 Samples for Visual Basic 2005 and I can't get work. What should I do What is the url you downloaded the '101' samples from Perhaps they have VB and C# versions of these and you got the wrong batch (Grasping at straws guess...) Is VB EE opening up and letting you use it by itself ...Show All
Visual Studio Team System Question about 64 bit drivers
Hello, Currently i'm building a device driver for Windows 64-bit. So I installed the Device Driver Development Kit. To situate to problem I will explain what the goal of the driver is. I'm writing an WDM driver for an 1394 (firewire) device. The already exists an 32 bit driver for it. Before I'm going to build the driver for 64-bit I want to test the Plug and Play system with the sample driver given by the DDK. So i builded that driver in 64 bit mode, didn't changed anything to the files. Then i've token the original .inf file from the 32 bit driver. I've changed the inf file with NTamd64 names, so Windows x64 can open the inf file. Then I select the device wich I want to install. Windows copy's the test .sys file which I've build ...Show All
SQL Server sp_spaceused bug???
Hi all I guess sp_spaceused is the widely used stored procedure to monitor the space usage. I have found some interesting things recently in the stored procedure. If you compare the SQLServer2000 and SQLServer2005 implementations there is a dfiference in the way that the various calculations are made. In 2000 , sp_spaceused excludes all the non-clustered indexes with the filter-- where indid in(0,1,255). The 2005 implementation of the stored procedure includes the non-clustered indexes also(there is no filter-where clause), but it has a comment line saying that /* ** Now calculate the summary data. ** reserved: sum(reserved) where indid in (0, 1, 255) this is really strange. It makes perfect sense to include ...Show All
Visual Studio Team System Generate list of merge conflict
Hi all, I just wonder if there is a way that I could generate list of merge conflict in text, or cvs, or excel, ...before performing merge between 2 branches. Thank you Richard. I get it now - the data essentially are the same in both cases, only preview have finer granularity. Yours truly, Eugene ...Show All
Windows Forms Detect .NET Framework
Is their an application, not written in .NET that i can use to write a system to check for the correct version of the .NET Framework, and if its not installed start the .NET Framework installer, then once thats done or it it already exists run my installer which i have written in .NET to install my .NET application. how to find it doesn't help me, unless i learn something like C++. I am looking for a program to make an executable that can detect if .NET Framework 2.0 or higher is installed and if not run the installer which will be bundled on the CD, then run my installation.exe then exit, or if it doesn't exit i can have my installer terminate the process. I was woundering if anything like that exists ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multi-texturing a mesh
After some fruitless searching I have found no clear answer to a multitexturing problem I have. I figure it must be so straightforward that no one has bothered to write it down. How can I apply multiple textures to a mesh, with different textures associated with different vertices My particular problem is related to a terrain engine, but I will reduce it to a simple example. Suppose I have a mesh of 4 vertices (ie 2 triangles); I also have a map-type file (a .tga in my case) whose values indicate which textures should be applied to each vertex. So: (0,0) = grass (1,0) = stone (0,1) = earth (1,1) = water Do I declare which texture should be used when the vertices or mesh are created Is this done during the rendering, and i ...Show All
SQL Server SSIS DTC Transaction's HOT questions
I am using SSIS with Transaction, and I met a lot of questions as below: 1.IF DTC doesn't support ADO.NET Connection Please check the ADO.net Connection's property, it has a property named like: DTCTrancactionSupport. But it's always set to False and unable to edit. IF the answer is NO, HOW could I bound all my Tasks into one Transaction You know, I have some Tasks with SQL connection, and I have also some Script Tasks, witch need the ADO.net connection. 2.IF DTC required to run in both the Destination Server and the Source Server I have a Dataflow Task, and take some data from a table in a Source Server to a Destination Server. The DTC doesn't run on the Source Server. I found the Dataflow Task hangs when I use the SSIS ...Show All
SQL Server building an .asdatabase file from the command line
Hi, I was wondering if anyone knew how to 'build' an 'analysis services' project (i.e - generate the .asdatabase file) from the command line, so that I could have it done automatically during a build process. Thanks, Kobi Reiter hello, i would expect something like the following to work devenv.exe <your_solution_name>.sln /build Development /Out out.log Note that you might need an SP1 build for this. hope this helps, ...Show All
SQL Server Security Settings
I want some users to see some reports on RS, but not see other reports. Is this possible From what I can see, if you are a Browser role you can see ALL reports. Tell me this isn't so... Pete On any RS catalog item you can define the security for that item. If you give a user the Browser role on a report they will be able to see that report. You can map users to roles on a per item basis. There is not concept of a user being a Browser for all items in RS, only for each item as that item is configured. It is perfectly fine for a user to have Browser role on one folder but not on another, enabling them to see all the reports in that folder but not the later. Please see the following article for more c ...Show All
SQL Server HideMemberIF: Parent vs. Only Child w/ Parent
Even after reading the SQL BOL definitions, I'm unable to actually demonstrate a real-world difference between the "Never", "ParentName" and "Only Child w/ ParentName" settings for the HideMemberIF property with my multi-level hierarchy on it's ragged dimension. Specifically, my hierarchy simply will not hide a member named the same as it's parent, when viewed in VS's Dimension browser window, regardless of the HIdeMemberIF setting chosen. I've not yet loaded SQL 2K5's SP1, and here are my questions: (1) Could it be that VS's dimension browser and/or cube browser do not support the HideMemberIF property (2) If so, has that changed with SP1 This is very encouraging ...Show All
SQL Server Any Distributed Data failure
Scenario: I have one windows server 2003 and 2 windows XP clients on one machine by virtual pc. All pings to each other. The 2 windows XP clients are joining a domain in the server. They have administrator accounts and administrative privilages on each other. On each windows there is SQL2000 with SP3 using windows authentication. Each MSSQLServer and other SQL Services log in by the administrator domain account and has the domain account of the other windows in sysadmin role. Both XP SQL Servers are linked to each other. MSDTC is running on all servers with allowing every available option by Services Components. Firewalls are off in all servers. Although, neither distributed transactions work giving this error: "Server: Msg 7391, Leve ...Show All
Visual Studio Open from source control, web project problem, and fix
For the past two weeks, in VS2003, I've had difficulty opening from soruce control a solution with many child projects -- it wouldn't open an associated web project, giving me the old: "Unable to create Web project... The file path... does not correspond to the URL..." error. I crawled all over Google, and these forums, to no avail, trying MS KB fixes, anectodal fixes, the works ... Today, the idea struck me to remove URLscan ... problem solved. Frustration ended. ...Show All
