nagual's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Can anyone replicate this Generic List and Component problem I am having
Hi, I belive this is a problem with XNA Game Studio because of the discussion I have had on the Winform thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=766386&SiteID=1&mode=1 [Problem with List<T> and TypeConverter] I have a GameComponent that contains a Generic list of my custom class called Background Layer. This Background Layer has a custom type converter called LayerConverter. The problem I am having is that when I edit the collection via the designer the collection property editor is wrong. The properties that I can see are under an expansion box called "Value", changing this value doesn't work it keeps reverting back. I have traced it to the fact that whatever calls the type converter calls ...Show All
Community Chat My creation - Obstacle detector using webcam and laser pointer
Hello everyone! I created an obstacle detector a few days ago which uses a webcam and a laser pointer to approximately determine how far an obstacle (for example, a wall) is from the camera. Check it out on my blog . If you can't see it on my blog, try http://ashishrd.blogspot.com/2006/11/obstacle-detector-using-webcam-and.html . Hope you find it interesting. :) Ashish ...Show All
Software Development for Windows Vista rtc api setup help required
I'm trying to get started evaulating the RTC API to build standard text IM capabilities into an existing application, and seem to be having troubles with the install.... I've installed a couple different permutations of RTC 1.2 and 1.3 on my Win XP Pro development system. And I've run the accompanying rtcapisetup.msi files per the install instructions. I am trying to evaluate the API using VB.Net under visual Studio 2.0. If I try to install just the RTC API 1.3, when I go to add a reference to my project, there is no listing for RTC under the COM list in my Add References dialog box. If I install RTC API 1.2, then there is an item for "RTCCore 1.2 Type Library", but when I attempt to add a reference, it fails with the ...Show All
Visual Studio 2008 (Pre-release) Why the Collection Initializers Syntax Changes?
David Hayden reports on Charlie Calvert's post about changes in the January CTP that the syntax for collection initializers has changed from: List < Customer > listOfCustomers = new List < Customer > { { Id = 1 , Name = " Dave " , City = " Sarasota " }, { Id = 2 , Name = " John " , City = " Tampa " }, { Id = 3 , Name = " Abe " , City = " Miami " } }; to: List < Customer > listOfCustomers = new List < Customer > { new Customer { Id = 1 , Name = " Dave " , City = " Sarasota " }, new Customer { Id = 2 , Name = " John " , City = " Tampa " }, new Customer { Id ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using a Primative to obscure View
I'm creating a loading screen. I'm doing this by drawing 2 primatives to form a simple positioned coloured vertex as a rectange. The square is black, and is the width and height of the screen (as in device.DisplayMode). I'd like this to rectange "cover" the screen while textures are loaded. I'm doing it this way so I can fade the loading screen out to reviel the environment once everything is ready to go. However, because the position of the primative is 0, 0, 0 - and I do not wish to move my camera, the primative is obviously at a distance (not covering the screen). Mathamtically, what is a good way to position this rectange directly infront of the camera, without moving the camera, and without adjusting the perspective ...Show All
Smart Device Development How to find LPWSTR device name?
I'm trying to programmatically turn on/off my wifi device and am following the example posted in the opennetcf forums: http://www.opennetcf.org/forums/topic.asp TOPIC_ID=4266 But the question I have is about the first argument when calling DevicePowerNotify, which is how to find out what my wifi device's name is The example above doesn't work, but if I change the name to "BKL1:" then I can control the backlight, so I think I just need to know the name of the device to get this to work. Apologies if this is a really basic question, I've looked online but haven't seen a good answer; I probably don't know enough to ask the question! Thanks! -Dana The structure DEVMGR_DEVICE_INFORMATION contains a le ...Show All
Visual Studio Tools for Office Serialise Building Blocks and 'load' them while 'online'
Visual Studio in conjunction with Word 2007 gives great opportunities to automate building of documents from XML 'components', but it all seems only possible 'offline', i.e. when the document is closed. I would like to get XML fed into the document (or attached template) while it is open, for example, to update not just content, but also the structure of the document at a user's request, interactively, for when a brand new disclaimer is developed and the user decides to adopt it. Currently, XML properties are read only at runtime and building blocks can only be .Added from ranges (i.e. 'recorded like old autotexts). Can anyone please correct me if I'm wrong or let me know of a possible solution Thanks so much for any help! ...Show All
Visual Studio Tools for Office COMException when I try to make Taskpane visible
We've written customization in Word+ VSTO2.0, where in we've provided custom toolbar buttons. On click of one such button (ShowDocActions), the requirement is to show the Document Actions Pane to the user. Hence I've used the following snippet of code: this .Application.TaskPanes[Microsoft.Office.Interop.Word. WdTaskPanes .wdTaskPaneDocumentActions].Visible = true ; However, this fails in the following scenario : 1. Track Changes - On 2. Do some changes to doc so that you could revisions. 3. Now go to Revision Pane ( which comes at the bottom of the doc). Place the cursor in this pane 4. Now click on the button- ShowDocActions. Now I get exception in the statement where I set .visible = true; {"This method o ...Show All
Software Development for Windows Vista Handling RecognitionResults
Hi everybody! I have the following situation: I have a simple Label where the user can write on using an InkCollector. I also have a Recognizer started to recognize the written Ink in Background-Mode. The computed results are shown below the Label just in time being available. If the user clicks on one word of the recognized text he gets the alternatives. If he chooses one out of them the alternative should replace the original recognized word. And exactly here is my problem. How can I persist the chosen alternative I know, that I'm able to Modify the TopAlternative and I can do the SetResultOnStroke to copy the (changed) RecognitionResult to the appropriate strokes-collection. But in fact this strokes-collection is just a copy of th ...Show All
.NET Development ASPNET user rights
I am having trouble getting my WebService working with Wse3. The problem is that the ws dosn't provide any security header in the response to the client. Both Client og WS is runniing on my local computer, Xp Pro with IIS installed. I am using IIS to host the WS This is from my OutPutTrace file (just some of it.) <faultstring>Microsoft.Web.Services3.Security.SecurityFault: The security token could not be authenticated or authorized ---> System.Security.SecurityException: WSE3003: The certificate's trust chain could not be verified. Please check if the certificate has been properly installed in the Trusted People Certificate store. Or you might want to set allowTestRoot configuration section to true if this is a test certif ...Show All
.NET Development version question
There is a note in the help description in a few places that reads "Note: this namespace, class, or member is supported only in version 1.1 of the .Net Framework." What does this mean Does it mean that it was not supported in the earlier version but is supported in version 1.1 and will be in the future Or does it mean that it is supported in only the version 1.1, not in earlier versions and will not be supported in future versions The one that prompted my question is the "HasRows" property of the DataReader. I have noticed the note in other places as well but can't now remember where. The issue is important because I don't want to write code that is guaranteed to fail in future versions. ...Show All
Visual Studio Express Editions TableLayoutPanel Flicker
I am using a Tablelayoutpanel, that contains around 200 lables. That are feed with data every 3 seconds. When this is done the tablelayoutpanel flickers. How can I stop this It wouldn't surise me that you get flicker with this number of controls. either: 1. Reduce the number of controls (200 is a lot), this is more than likely not an option... 2. perform your own 'drawing' onto the form (or usercontrol) itself (and use doublebuffering to improve the graphical smothness). You may be able to use SuspendLayout() and ResumeLayout() (not sure if it'll improve things or not). What is happening is that when you update each label, it is clearing itself by 'filling' in the background color, then displa ...Show All
Software Development for Windows Vista StreamingWrite12 Problem in Vista
Has anyone ever try burning data by using WRITE12 command under Vista If enabling UseStreamingWrite12 under Vista ( Ver. 5483 in my case ) and burning data, the CPU would abnormally goes quite high ( 60% ~ 80%). Using TaskInfo to check CPU usage, it shows that "Interrupt time placeholder" consumes over 50%~60% CPU. If using WRITE10 command, the CPU usage would normally below 10%. Any suggestion to handle this CPU usage issue Dear Henry, Thanks for your reply. I have tried uninstalling the network card driver, but the issue still existed. From the documentation of IMAPIv2, there is a function called IDiscRecorder2Ex :: raw_SendCommandSendDataToDevice(). In fact, I ...Show All
SQL Server dbcc SHRINKFILE gives me a a weird error
I'm trying to run dbcc shrinkfile ( 4 ) /* File ID 4 of database ID 13 cannot be shrunk as it is either being shrunk by another process or is empty. Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded. */ The commented lines is what I get in return. There's nothing being executed on this file. I dropped a few indexes. I need the space back from the file. Backups and everything are run on it normally. Is there something I'm missing or is there something wrong with it I don't do 'AutoShrink'. Also, the file is not empty. Checkdb is working fine. Dbcc ShrinkDatabase also works fine but doesn't even recognize these files. It doesn't even show this ...Show All
SQL Server Is this possible?
Hi guys, Is there any mechanism or tool to convert T-SQL query to its corresponding MDX query Please let me know. Sincerely, Amde Hi, Here is some answer inline: -"Fiscal month" is not necessary for my report, because of the fact that the report is not financial related. -Yes there will be a measure which counts some values on each date range. Sincerely, Amde ...Show All
