Liloch's Q&A profile
Visual C# Installing a System Wide CBT hook
Hi im trying to install a CBT system wide hook. In the hook callback method i just simply write the code parameter to the debug window. My code works fine when i specify a specific thread to monitor, however when i try and install a system wide hook using SetWindowsHookEx it prints to the debug window until i move the mouse out of the programs window, at which point it stops, and the callback is no longer called. If i return the mouse to the same window, the callback still doesnt get called. I have also tried setting a system wide low level keyboard hook using the same code, but that works fine. here is my code to initiate the hook system wide CBT hook: //Retrieve current threads module name string module ...Show All
Visual Studio Express Editions How To Image?
How to make my program ignore all white till light gray pixels but use the dark gray and black pixels for comparing a image to what has been done the same thing. Comparing to be done with the LockBits method or other one but you'll have to specify! ...Show All
.NET Development Posting content to IIS6 clustered servers ...
When posting VS content and apps to an IIS6 two server NLB cluster, what is the syntax for the URL field that should be used VS will successfully post content to the IIS6 default site/wwwroot folder in the cluster, but it will not post content to secondary sites that have their folders at the same level as the wwwroot folder (eg site2 folder for www.site2.com , site3 folder for www.site3.com , etc... ) and says the URL field is incorrect - apparently because there are two (NLB) servers for one URL. The next displayed field when posting apps, the folder share field, seems to be okay as it will take \\server1\site2 , \\server2\site2 , etc... TIA for any help on this one ... ...Show All
SQL Server Connection Timeout
In one of my applications I want to set a connection timeout to 1 second when connecting to the SQL Server. .NET's SqlConnection already has connectiontimeout property as readonly and set to 15 seconds. So I cant use it. And if I use adodb.dll and its ADODB.Connection, this time I can set the objects connectiontimeout property. However, it just doesn't work. It still waits along time even though I set the connectiontimeout to 1 second . The same goes when you try the same thing in Delphi. Anyone has any idea about this problem Do you want to change the timeout on the command or the connection Normally people want to specify the timeout on the command rather than on the connection. HTH, Jens K. Sues ...Show All
Game Technologies: DirectX, XNA, XACT, etc. TextureImporter returning a Zero'd texture
Something strange is happening in my ConvertMaterial override. Here's my build process in pseudo code: I place the normal texture in the same directory as the diffuse texture with a simliar naming convention (eg. diffuse=BumpWall01_rgb.png normal=BumpWall01_nrm.tga) My ConvertMaterial override scans the directory of each diffuse texture it converts to find whether it has a normal file. If one is found, I create ExternalReference <TextureContent> objects for the diffuse texture, and normal texture. I Add my ExternalReference <TextureContent> normalTexture to my MaterialContent.Textures Dictionary. I create a new EffectMaterialContent object "normalMaterial" for output. I create an ExternalReference ...Show All
Visual Studio Express Editions Windows Application Start-up when windows does
Hi there I want my application to start up when windows does without it being in the start-up folder...If tehre is a way, please share it with me Thanks, AliQ If it is a background process and you wanted to start even if you have not log on to your system, you can create a Windows Service for your program. Your windows service will start with all other service which will run your program too. ...Show All
SQL Server Javascript Error When trying url access
Hi, i have a problem with the rs 2005, using url access to call a report: --------------------------- Error --------------------------- Error: 'RSClientController' is undefined Calling a report from the reportmanager works. The rs2005 runs on a machine with a parallel installed rs2000. I configured the virtual directory to machinename/reports2005 & machinename/reportserver2005. When i debug the clientscript i see that he requests a "/ReportServer2005/Reserved.ReportViewerWebControl.axd OpType=Resource&Version=9.00.1399.00&Name=Scripts.ReportViewer.js" and it seems that he doesn't get the jscript file. I tried the solution with the axd-mapping, which an user posted here before but it didn't worked for ...Show All
SQL Server Set results destination with script?
In SQL Server Management Studio, can you set the destination of results (e.g. Results to Grid) with SQL script, or do you have to use the toolbar Thanks Chris As explained you may have to wait if Development team is intended to keep this option during next release. Meanwhile you can take help of using shortcut keys ms-help://MS.SQLCC.v9/MS.SQLMobile.v3.en/SSMMain3/html/63ca94ca-30ec-4c82-a342-cd578d4df25d.htm & ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/toolref9/html/98baaac4-0727-4ce4-8bfe-c63793ae69b8.htm links. ...Show All
Visual Studio VSS 2005 install not installing VS 2005 plugin.
Hello, Not sure what's going on but has anybody successfully been able to get the VSS 2005 install to complete successfully and when finished, have the VSS plug-in available in Visual Studio 2005 I have enabled the IIS compatiblity. I right click and run the vss setup as administrator. I get no error messages but afterwards, if I click on file there is no source safe option. Also, when I try to open a website, source safe isn't an option. My database server is on a remote W2k3 server. I need the add-in for Visual Studio to open projects from databases on remote servers. Also, I have tried installing VS 2005 SP 1 beta. (Not that I could see how it would make a difference but tried none the less.) Any ideas of how to get this ...Show All
Software Development for Windows Vista Was solved
I created .crd for X509 certificate (using hex thumbprint) but failed to use it to authenticate getting error message box "The certificate associated with this card could not be found" and nothing in event log. The certificate seems properly trusted, has corresponding private key, located in CurrentUser/Personal (in LocalMachine/Personal too) keystore and can be found by >findprivatekey.exe My CurrentUser -t "d47de657fa4902555902cb7f0edd2ba9b05debb8" that was shipped with some of Cardspace sample STSs' So the questions are: 1. Am I doing something wrong 2. Is there some possibility (in present version of .Net3) to do it without SmartCard hardware (maybe some option or tool/emu for testing) 3. What the requirements to SmartCard hardware ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Importing images with transparency
I've been trying to import an image with transparency using the Texture2D.FromFile method. I've tried both PNG and DDS formats, and have been messing about with the TextureCreationParameters class as well to feed the FromFile method specific formats. The image is drawn in the window but with a white background, not transparent. I guess I'm missing something somewhere.. To get the transparency to work for the 2D texture, you'll need to give the sprite batch a blend mode when you start drawing. So, in your draw function. Where you tell your spriteBatch to Being, pass in the SpriteBlendMode.AlphaBlend as the parameter. That's how you'll get your transparency. spriteBatch.Begin(SpriteBlendMode.AlphaBlend); spriteBatch.Draw(my ...Show All
Visual Studio Custom editor coloring
I've managed to get custom colors working and my custom colors to appear in the options dialog list, but the editor windows are not always updated after the colors are changed in the VS options window. I have to exit and restart VS in order for the new colors to be used. The docs for Colorizable item allude to something more that needs to be done to support this. In the Remarks section: "The ideal place to construct an array of custom colors is in the constructor of your implementation of the LanguageService class. If you support customiztion of the colors, then you would initialize this array in LanguageService.CreateDocumentProperties after the DocumentProperties object was created." Why would I initialize this arra ...Show All
SQL Server The data types varchar and uniqueidentifier are incompatible in the add operator.
hi, i want to know how to do that: table: costtypes fields : typecode values: amount, vat, duty, table bills: fields: billid, costtype, amount value bi1 amount 1000 bi1 vat 10 bi2 amount 200 i need to create a view that will display amount, vat, duty as fields. note that these are values in the table. so that i will have billid amount vat duty bi1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
Visual Studio Team System Loadtestreporting
I am still not able to figure out how to generate reports this is what i have been doing:- 1)open this link" http://gotdotnet.com/codegallery/codegallery.aspx id=e96e012c-4eaf-4eda-ac26-34fb54e628e3 " where it says that the reports are avaliable. 2)This page opens Microsoft Visual Studio Team System 2005 Load Test Reporting Sample: Home 3)Under this page i see two options on the right bottom side under "DOWNLOADS" a) Load Test Reports b) Sample Load Test Maintenace ASP Application 4)I click on any of these options i get a zipped folder which only contains exe file that you have to run to ...Show All
