luai7's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How to Using an Input Method Editor in a XNA's Game
How to Using an Input Method Editor in a XNA's Game http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/Using_an_Input_Method_Editor_in_a_Game.asp this is about directx,but how use in the XNA THX~ ...Show All
SQL Server Linked Server Problems from SQL2005
When I run linked server queries from SQL2005 it fails. Query Example : SELECT * FROM [servername].master.dbo.sysobjects Error: OLE DB provider "SQLNCLI" for linked server " servername" returned message "Communication link failure". Msg 10054, Level 16, State 1, Line 0 TCP Provider: An existing connection was forcibly closed by the remote host. Msg 18452, Level 14, State 1, Line 0 Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Notes: The linked server is configured to use the current logins security context. It does not matter whether I connect to SQL2000 or SQL2005. I have a case with MS (6 hours on the pho ...Show All
SQL Server Problem with data-driven subscription
I have a data-driven subscription that launches once a day and delivers emails to subscribers. The problem is that it delivers only about half the emails. It runs ok and then it produces error. I ran it once and it ran ok and completed without errors. 20 minutes later it produced errors. Log looks like this: ReportingServicesService!library!c!11/16/2006-10:27:45:: i INFO: Call to RenderFirst( '/Subscribed notifications/Subscribed notifications' ) ReportingServicesService!library!11!11/16/2006-10:27:45:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., AuthzIn ...Show All
Visual C++ Linking an app in debug mode (with /MDd) against static lib built in release mode (with /MD)
I remember this sort of mixing used to work fine prior to VS2005. But now it doesn't seem to. This suggests that one has to have a debug and a release versions of each library to be able to compile a debug and a release version of the application. The following short example results in an access violation exception: Compile A.* into a.lib in release mode with /MD (it doesn't matter if compiled with or without optimization): File A.h: #include <vector> class A { public : std::vector< double > v; A( int x) {} ~A(); }; File A.cpp: #include "A.h" A::~A() { } Compile app.cpp in debug mode with /MDd: File app.cpp: #include "A.h" void main() { A a(4); } The ex ...Show All
Visual Basic Multithreading Issue
Hello, I'm trying to do some Multithreading stuff and I've run into an issue. The line that is giving me a problem is the one I've highlighed in brown. The Error says "Method 'Private Sub doThisWhileLoading(whatIsCallingMeID As Interger)' does not have the same signature as delegate 'Delegate Sub ThreadStart()'". I think that it is angry at me for not having the same # of params as my actual method, but I've tried several things to the brown line down there and Nothing has worked. I don't know what delegate or 'Delegate Sub ThreadStart()' mean. Does anyone out there know what I need to do Thanks Imports System Imports System.Diagnostics Imports System.Threading Public Class Form1 Inherits Sy ...Show All
Visual Studio Team System Failed When I execute Build Team Project
Hi All, After I created a new Team Build Type and executed Build Team Project and I got the Report Summary : Failed Build Steps: Initializong build: Failed Failed. Please help me how to find the reason why it failed and how to fix the problems. Thanks, Ptn715 Hi Patrick, Thanks for helping. It fixed now but when execute Build Team Project it faild and I got the error Solution: , Project: Web.sln, Compilation errors and warnings C:\BuildServer\Builds\Hosted\Security WS\Sources\Hosted\Shared\WebServices\Security\Web\Web.csproj(125,11): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebAppl ...Show All
Visual Studio Team System Can't undo changes?
We had a case where a developer could not undo their changes. We don't know the exact scenario that caused it but this is some background data. We had a branch that was: $/product/branches/v1.1.0 it got renamed to: $/product/branches/v1.1.x The developer looked like they had checkouts from the pre-rename of v1.1.0. When they tried to undo either through the IDE or command line it said there were no pending changes. Refresh had no impact as well. The only way to undo from pending changes was to try to do a checkin, which then complained there was a conflict, then one of the options was undo my changes and that seemed to cleanup the item from the pending changes list. I tried to reproduce this but could not, ...Show All
.NET Development activating control using javascript
I have an asp butotn control on a main page i want to Enable when a popup has closed. Im using javascript to pass parameters to the main pg as popup is closing and want the button control to be enabled as well. Part of the code returning values and closign the popup: < script language ="Javascript"> function ReturnDate() { window.opener.document.forms[ "<%= strFormName %>" ].elements[ "<%= strCtrlName %>" ].value = "<%= strSelectedDate %>" ; window.close(); } figured it out. duh so easy. pass the button in the query string as well and then function ReturnDate() { window.opener.document.forms[ "<%= strFormName %>" ].elemen ...Show All
Windows Forms Custom Folders in Click Once
Hi, I want to use clickonce deploymnet. I have application where, inside bin folder I have folders which are required at run time. e.g. I have Reports Folder like \bin\Debug\Reports where I have stored all the RPT files which I called at run time . So I want that , this Reports folder should also get created at the same path where my exe will be installed. Is there any way through ClickOnce, along with exe, my custom folders also get created On Publish tab of project properties, there is option of ApplicationFiles, but it is not allowing to edit/Add. Can anyone suggest the way out of it ...... Thanks Vyanki Hi, Thanks for reply. I think there is some confusion abt my requirement. I just dont ...Show All
SQL Server Vista and SS Management Studio Install Problems
Hi, I'm running the Vista Beta 2 (x64) and am trying to install SSMS. This is more or less a clean Vista install (had VS Web Express and SQL Server Express installed but those have been uninstalled). The SSMS install comes up ok and I can enter my name and company. It chugs along for a while and then fails. This is what is in the event log: Product: Microsoft SQL Server Management Studio Express -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 29506. The arguments are: C:\Program Files (x86)\Microsoft SQL Server\90\Shared\, chue, C:\Program Files (x86)\Microsoft SQL Server\90\Shared\, chue I thought maybe I had a bad install file, so I cl ...Show All
.NET Development Accessing temporary DLLs in a command window application?
Ok, I'm trying to setup a .NET executable to run under a active directory domain account on a windows 2003 server and I'm getting some nasty "can not load dependent assembly hhiuhigt76.dll" type errors. I know in ASP.NET I have to make sure the account that is being used to run the process can access the temp directory in %systemroot%\temp and the %.netframeworkversionroot%\asp.net temporary files\temp. What, if anything, do I need to setup so a normal command window .NET exe can access temp files (assuming of course that temp files are being created). I did finally figure this out, I had to get right down into the code and figure out what was going on. It turns out the programmer was using the xmlserializer to read the xml ...Show All
Visual Studio 2008 (Pre-release) ListView row value warp
Hy, I wrote a ListView with a GridView that populates from a database, the columns have fixed widths, my question is: Is it possible to warp the data in a row so that you can see the whole text on multiple lines, now the text is only in 1 line and not completly visible. Thanks for your help, you can add TextWrapping = " Wrap " to make the text wrap ...Show All
Visual Studio Team System Code analysis Customization
Hi I have implemented Code Analysis on my Team Project. I am getting the below policy error when i try to check in ".sql" files. "Code Analysis Check-in failed. The Code Analysis Policy requires you to check in through Visual Studio with an open solution. " Work Around I found: Open any solution in VS IDE eventhough it is not related to .sql file and try to check-in the .sql file. Result - No policy warning thrown and succesfully check-ins. Can i customize the code analysis policy so that it doesnt run code analysis for DB objects (.sql,.sp,.tbl)/docs(.doc,.mpp,.xls). Thanks Ram The gotdotnet code that you reference in your blog is no longer available... do you have a ...Show All
Visual Studio Team System Can't run Team Build: Proxy Error (The ISA server denied the specified URL)
Hello I created a Build Type, set the Machine Name to the build machine name, set the BuildDirectoryPath to C:\Build, and created and tested a drop location with full access to everyone (just to make sure). When I try to run the build, I get the following error: TF42056: The build service could not connect to the Team Foundation Server. The request failed with HTTP status 502: Proxy Error (The ISA server denied the specified Uniform Resource Locator (URL)). Additional info: I am using a virtual PC for the TFServer, and trying to use the same virtual machine as the build machine. I have the TF client installed on both my machine and the virtual one. Everything else is setup and works well, as far as I know. I must be doing so ...Show All
Smart Device Development DataReceived/SerialPort Troubles
I am building code for the PocketPC to interface with a chemical sensor to poll and report on chemical agents in the air. I am having a devil of a time getting the DataReceived event to pass content (through an Invoke) to the main thread. When I write an "N" to the device, it is supposed to send back the following string to the UI, which represents the chemical sensor types that are housed in the unit: "CO VOC H2S LEL OXY" When I send an "R" to the device, it is supposed to send the current readings for each of the sensors as a string that looks like this: "00000 00000 00000 00000 00207". I have all of this working successfully as a WIN32 application, but it doesn't port cleanly to the .NET 2 ...Show All
