eclere's Q&A profile
Software Development for Windows Vista Using smartcards in a service - SCardAccessStartedEvent
Dear all, Migrating our core development platform to Windows Vista, one of our Windows services using smartcards is failing. We have debugged the problem and found that the event provided by the function ScardAccessStartedEvent does not receive notification. This event is supposed to signal when the SmartCard Resource Manager starts. As we have a WaitForSingleObject(event,INFINITE), the service hungs. Testing the same service as an ordinary executable ( registering with -regserver ) I can see it works properly. In XP it works properly both as an executable and service. I have read something about Service Hardening in Vista and I guess it may be caused by privilege reduction. So, I've created some code to enumerate the existing ...Show All
Visual Studio 2008 (Pre-release) serviceModel/Bindings error
I am testing a clickonce deployed, Internet app on newly installed Vista Ultimate and newly installed .NET 3.0, XP systems. The app tests fine on the development machine (XP, .NET 3.0) The error message is: An error occurred creating the configuration section handler for system.serviceModel/bindings: Could not load type 'System.ServiceModel.Configuration.BindingsSectionGroup' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 102) Any ideas Thanks John Jeff I opened an admin cmd window and navigated to the app clickonce install folder. Ran the app and got the ...Show All
SQL Server Help - Rebuild System Databases on a clustered instance
I am in a DR senario and I am having trouble rebuilding the system databases on my SQL 2005 cluster. I run the following string: start /wait setup.exe /qn VS= Vname INSTANCENAME= instname REINSTALL=SQL_Engine REBUILDDATABASE=1 ADMINPASSWORD= password SQLACCOUNT= domain\acct SQLPASSWORD= password AGTACCOUNT= domain\acct AGTPASSWORD= password REINSTALLMODE= vomus The setup fails with the following error: Microsoft SQL Server 2005 9.00.2047.00 ============================== OS Version : Microsoft Windows Server 2003 family, Service Pack 1 (Build 3790) Time : Wed Dec 13 15:41:44 2006 CLUSTERSVR1 : To install Microsoft SQL Server 2005, COM+ should work. CLUSTERSVR1 : To change an existing instance of Microsoft SQL Server 2 ...Show All
Windows Forms How to handle errors?
Hello, If some programming state is not okay (like finding that a SerialPort is not open prior to sending data) I would like to show some error message. I would like to handle all error messages-displaying in a central place by a single function. How do I achieve this (As a newby in C#, in Borland C++ I was used to use a global string for storing the error messgae which is displayed when all nested functions return false). But C# does not allow a global string( ), or what other mechanism is usually applied for this purpose All tips and hints are welcome. regards, Henk Okay thanks, but what should I use if a user-handling-error has occurred that is detec ...Show All
Game Technologies: DirectX, XNA, XACT, etc. World to screen conversion.
Hi. Something weird when trying to covert world to screen coordinates. Vector3 res = Vector3.Transform(worldPoint, Camera.View * Projection); I get the result vector with values greater than 1. Aren't the values post projection supposed to be clamped Both the view and projection matrices are valid (and are used to display on screen). Cheers googling for that will totally turn you away from 3D drawing. if you have a 4D, or homogeneous, point, you simply need to divide the first 3 coordinates by the 4th coordinate. Then you get the usual 3 coordinates. You're only interested in the first 2 coords, but after dividing they're in the [-1, 1] region, so you need to divide by 2 and add +0.5 to get them in the [0, 1] region. A ...Show All
Visual Studio Express Editions String Format
Does anyone know how to re-arrange characters in a String For example: change Smith, John to John Smith and remove the comma. Also, can this be done for any name length and not just for John Smith Thanks! Lookup the split () and the Trim () methods for a string which returns an array of strings and trims characters respectively, for example: Dim fullName As String = "Freddy Fourfingers" Dim names() As String = fullName. Split (" "c) Debug.WriteLine( String .Format( "{1}, {0}" , names(0), names(1))) Or the other way: Dim fullName As String = "Fourfingers, Freddy" Dim names() As String = fullName.Split(" "c) Debug.WriteLine( String .Format( "{1} {0}" , names(0).Trim(","c), names(1).Trim(", ...Show All
Software Development for Windows Vista When will calling Release() after calling CoUninitialize() not result in an AV?
(can you redirect me if this is not the right forum for this question) Should this sequence cause an AV I made the fairly common mistake highlighted in yellow, and fixed it, but I was surprised that it resulted in an AV only if COM had not been initialized on Thread A. I would like to understand why or why not I should expect an AV in this case. Thread A calls CoInitializeEx Thread A creates Thread B Thread B calls CoInitializeEx Thread B creates and uses some COM objects Thread B calls CoUninitialize Thread B releases COM objects <--Bug Thread A calls CoUninitialize Here is an answer from my colleague, Axel: “If both A and B are in an MTA, the CoInitializeEx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animating Billboards Using A Single Texture
I just finished a basic billboard class that is capable of reading in multiple textures and animating. However, I would like to read in a single texture file and be able to simply change texture coordinates to change the appearance of the billboard. Now, I could recreate my VertexBuffer each frame, but that would be a lot of wasted processing. Is there a way to dynamically alter the texture coordinates for VertexBuffer objects each frame Edit: As a bonus question, how do I enable the alpha channels in my textures Right now it shows up white. I am using the BasicEffect. Would I have to write my own effect just for that Seems rather silly but I will if I have to. Edit 2: As bonus question 2, how can I disable antialiasing of my textures I'm ...Show All
Software Development for Windows Vista How to get the connector object in design time!
hi all, In flowchart sample, how to get the connector object in design time many thanks, I have got the answer from the subject " FreeformActivityDesigner and Connectors question... " ...Show All
Visual Studio Team System TF30162: Fails portal creation when creating Team Project
Attempting to create a new Team Project gives the following error. We're using the release version of TFS and MSF for Agile template. Following the instructions in another thread: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=150809&SiteID=1&mode=1 I think I've been able to find the issue. When I try to add a top level site to the "Default Web Site", I get an error that says: "The virtual server that is referenced here is not in the config database." Anyone have an idea what I'm missing here I do find the server in the STS_CONFIG_TFS database in Servers and VirtualServers. 2007-02-19 08:32:58Z | Module: Internal | Team Foundation Server proxy retrieved | Completion time: 0 seconds 2007-02-19 08:32:59 ...Show All
Visual Studio Tools for Office Question re the CRM Integration Add-In Sample For Outlook 2003 (2)
Earlier on I was questioning the UI/Data separation logic and John Durrant pointed me to the "CRM Integration Add-In Sample" - thankyou it is very useful. There are four custom items in this sample: Accounts, Activities, Opportunities, Contacts. As far as I can see, for each item stored inside an MSSQL database, an item is also created within the default Outlook store. I have deduced this because there is an 'OutlookID' column within each of the database tables. My question is this. What if I wanted to take the data/UI separation one step further for this model for an Outlook 2007 add-in What if I wanted to avoid the synchronisation issue between the Outlook and MSSQL data by saving only to the database. To achieve this I could ov ...Show All
Visual Studio Team System Grouping Query Clauses
Hi all, Maybe this is a really stupid question but I have been trying to create a work items query such as this one (Team Project = @Project) AND ((Priority=3 AND State=Proposed) OR (Priority=1 AND State=Active)) and I cannot work it out. I thought the "grouping" feature would help me but it doesn't work as I would expect it. The problem is with operators. How to put them outside the brackets The query in VSTS looks like this Team Project = @Project ((AND Priority=3 AND State=Proposed) (OR Priority=1 AND State=Active)) which does not return the expected results. What am I doing wrong It seems impossible that this cannot be done. -Clara. Clara, Though in the UI it ...Show All
Visual Studio Team System Source Control - default working Path
Hi! Is there a way to set the default local working path If someone opens the project, he has to set the working path, but I want to set a default path! regards Simon Mhm, ok thanks a lot. So I have to make a default namespace and copy that workspace. See message from Richard Berg. Thanks a lot! Regards Simon ...Show All
Visual C# how turn on OPENMP in VSC#2005?
Hi. please tell me where in VS2005 compile options i want turn on _openmp but i cant find where :( sory for stupid question C# can do threading....if you mean running a process on another thread (So doing a task on another thread without effecting the main UI thread from say not responding) System.Threading would be the namespace for threading http://msdn2.microsoft.com/en-us/library/system.threading.thread.aspx http://msdn2.microsoft.com/en-us/library/6kac2kdh.aspx maybe this would be of some interest to you: http://www.c-sharpcorner.com/UploadFile/mgold/MultithreadingIntro10062005000439AM/MultithreadingIntro.aspx ArticleID=920ecafc-e83b-4a9c-a64d-0b39ad885705 http://www.csharp ...Show All
.NET Development About Cryptography.RSACryptoServiceProvider's behavior
Hi, every one. I have searched/used Cryptography.RSACryptoServiceProvider for a while and found a interesting behavior: When you create a pair of keys(private+public, short for "private", obtained by ToXmlString(true); public only, short for "public", obtained by ToXmlString(false) ), then you can encrypt/decrypt data. I found that if I encrypt with public, then decrypt with private, no error pop up. But when I encrypt with private, decrypt with public, then error popup, said "bad key". I saw some articles said: if you encrypt data with one key, you have to decrypt with other key. and my test shows one direction result. Maybe what I thought is wrong Any one has similar experiences ...Show All
