Robert Nguyen's Q&A profile
Visual C++ Using COM Interfaces THIS pointer Question
Sorry about the incredibly stupid title, anyway, here's my question. I have been exploring Direct3D for a while now, and I noticed when debugging that the THIS pointer is pushed onto the stack instead of passed through the ECX register. g_pd3dDevice->EndScene(); mov eax,dword ptr [g_pd3dDevice (4095E4h)] // get THIS pointer mov ecx,dword ptr [eax] ...Show All
SQL Server Full Text Search resultset count
For performance reasons I am limiting the resultset to 100 rows. However, I would like to have the performance but need the total count of rows found. How can I keep the performance gain from limiting to top 100 and still get the total count. Could I do something like this: select top 100 count(id), field1, field2, field3 from .... Would this return 100 in the count field Thanks I think T-SQL does not suppor ...Show All
Software Development for Windows Vista Workflow Designer Rules Support
Hi, I'm in the process of trying to setup a demonstration application which shows an example of workflow and rules management. I need to basically setup a workflow, set some properties, then run the workflow from the designer. Part of this demo include the use of an IfElse activity and a Policy activity which link with the rules engine portions. I've trundled through the examples and the current samples get things about 75% of the way there, an ...Show All
.NET Development Error: Unable to open shim database
I get this kind of events logged in the eventlog: Source: .Net Runtime Type: Error Unable to open shim database version registry key - v2.0.50727.00000. Is this 'normal' behaviour or is there a misconfiguration. I have this messages on Windows 2003 Server, on SqlServer2005 boxes as well on TFS app tier and Terminal Server running VS2005. Strange thing is: everythings seems to work OK... Rene According to Jess ...Show All
Software Development for Windows Vista installutil.exe installing windows service
I'm tring to install a windows service and keep getting the following message, can anyone help with this TIA C:\Program Files\My Application>installUtil.exe MyApp.exe Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the C:\Program F ...Show All
SQL Server Passing Collections to Custom Code
In RS2000 it was possible to pass the entire fields or parameters collection to a custom code function. So for example, Custom Code: Function Calc(pFields) as String Return pfields("fldname1").Value + pfields("fldname2").Value End Function Report Expression: Code.Calc(Fields) This also worked with the Parameter Fields Collection. It made it possible to move a considerable amount of logic to the custom code section. In ...Show All
Visual Basic Cycling through textboxes
Using Microsoft Visual Basic 2005 Express Edition, I have got a row of textboxes named T1 up to T9, and I am trying to find a way to cycle through them. So if the starting text box was T1 then the pattern would go T2, T3, T4, T5, T6, T7, T8, T9 and say if T5 was the starting textbox it would go T6, T7, T8, T9, T1, T2, T3, T4. Is this possible With your code what happens if I have lots of textboxes b ...Show All
SQL Server SQL Express Family CTP Now Available
I’m happy to announce the release to public CTP of the following SQL Express Family products: SQL Server 2005 Express Editions SP1 SQL Server 2005 Express Edition with Advanced Services SQL Server 2005 Express Edition Toolkit SQL Server 2005 Management Studio Express (included as part of Express Advanced & Express Toolkit) You can download and install these CTPs from the CTP download page . Here is a brief description of each p ...Show All
Visual Basic User Name of Logged in User (Fill Name)
Looking for a way to get to Full Name field of Logged in user. I can get to username with My .User.Name or My.Computer.User How can I get to Full Name you can also use system.environment.username... however, If joe smith uses the user account joe you will not be able to return joe smith. What "Full Name" "Field" are you refering to ...Show All
.NET Development C# Thread Safe Class events
Right now I have created a custom base class that has numerous events. These events have non-standard signatures and are fired from a thread I have that is basically just a while loop checking variables against older ones for telling when something has changed. As far as I know this is the best way to go about doing this is to just make a void on another thread in a while (true) loop, in the loop just doing ifs... than doing a thread sleep. ...Show All
.NET Development FileLoadException(Access is denied) execption when loading an assembly
Hi, I have a VB.Net app developed and run on Windows 2000 for sometime without issues. Now I am testing it on a Windows 2003 server machine and start getting problems. The one that remians to be our major road block now is a FileLoadException when loading a private assembly from app folder. (See the error message bellow) This app is an IIS based .Net Remoting server. In other words, this is my Remoting server that runs on HTTP channel and ...Show All
Visual C# Query Output in C# differs from output everywhere else
I have a stored procedure that returns a calculated field. The query looks kinda simliar to the following: SELECT ISNULL(udf.SomeID, t.SomeID - 1) - t.SomeID + 1 AS IsHappy -- SomeID is an integer greater than 0 -- t.SomeID will always exist -- udf.SomeID is either NULL or == to t.SomeID -- IsHappy should == 0 if udf.SomeID ...Show All
Visual Basic Debug mode reverts to previous level of form
I have been making a sequence of changes to a form, entering debug mode after a few changes. Suddenly debug mode has stopped displaying recent changes, instead reverting to an ealier version. There are no indications of either compile or runtime errors. This makes it difficult to determine what is causing the problem. Is there some way to make the IDE not use a cached version Hi, Peteg1, Hmm, that’s not one we’ve seen before – my apologi ...Show All
Visual Studio Team System 403 Forbidden Error.
Hello, I created a web test, then a load test and in that load test I got more than 1000 403 errors, when I see the details, all are files that actually exist and I am admin on my PC. Thanks Thanks for the reply. You are right I was getting this error when I tried to run test with 25 users and when I reduced it to 5 it started working without any error. I have one more doubt can we run a test for the site which are already on ...Show All
Software Development for Windows Vista Handling drop targets on the workflow
Hi again. I have an application that embedds the workflow. When I create a new workflow, by default, I place a new activity as the first one. I would like to know if there is some way to disallow the user to drop any activities before the one I created, so that activity will always remain on the top of the others. I'm on Beta1 Thanks in advance, Matias If you want to control this from within your custom acti ...Show All
