MirceaT's Q&A profile
Community Chat Zune and the iPod
I've been following the Zune announcements fairly closely here at work. If you follow my blog, you'll see that I'm pretty passionate about media technologies, and recently went through the pain of migrating away from iPod/iTunes and onto Yahoo Music/Gigabeat S (Portable Media Center). Here the blog category where I talk about it: http://blogs.msdn.com/joemorel/archive/category/13772.aspx Now Zune is in the mix. It looks pretty neat, but I'm not sure if people are really going to go for the whole WiFi thing. I'm just not sure that I want to listen to the same music as the person sitting next to me on the bus. What do you think I use a Bluetooth handsfree device in my car (not headphones) wired into the car radio. It's not st ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Clarification on device creation, resetting, and deletion...
I come from C/C++ and DirectX 9 where the defacto standard (at least with their early examples) was an InitDeviceObjects()/DeleteDeviceObjects() pair of functions and an InvalidateDeviceObjects()/RestoreDeviceObjects() pair of functions. It all seemed pretty clear cut as to when any of those functions ever got called. The Init/Delete functions where called for device creation and deletion. The Invalidate/Restore functions were/are typically called for device reset etc. Within those functions -- if you had static device assets (i.e. MANAGED memory pool) -- you could create and delete them inside of the Init/Delete functions. For device assets that needed to be recreated due to the fact that they don't persist across a device reset (i.e. DEF ...Show All
Visual Basic VB6 calling a C# dll
Hi all, I am trying to call a c# dll from VB6. I could able to add the refernece for the dll but I am not able to access the methods of the dll. What could be the reason I registered the dll using the regasm and .tlb is also generated. If any one could help me. Regards, Santha Thanks spotty I have created the class in C# and made it as ComVisible using the "ComVisible" attribute. I have set the "Register for COM interop" property of the project. I could able to add the reference of that project in VB and create an instance of that class but I could not able to call the methods in that class. Why is this behavior Is there anything I am mi ...Show All
.NET Development How to get versions of services/programs running on another system?
Hi, I want to get the versions of the services/programs running on another system. Does any body have any idea as to how it can be done.I thought of using SNMP.However I am not sure of how to use it thanks in advance, nhd WMI or System Management objects work here. Works in .Net too. Base query is "Select * From Win32_Process" ...Show All
Visual C++ Registration of a Mixed code DLL
This is my first attempt to get answers like this on a forum, so if I leave out information needed, please let me know and I will try to furnish it. I have a project that has 3 .dll's, 2 are written in C++ (mostly native code), one in C#... One of the C++ .dll's uses the C# (via a reference). The project was completed about a year ago and works when compiled with the C++ .Net (2003 version of the IDE). My company moved to the 2005 version (Team server and all that) and now, while the 3 .dll files will still compile without errors, the mixed .dll will not register... the error code returned with the regsvr32 is 0xe0434f4d. As best I can tell, the problem comes from the /clr requirement of the mixed code, using the /clr:oldSynta ...Show All
Software Development for Windows Vista MS-WORD AUTOMATION ERROR : "The message filter indicated that the application is busy."
Hi, I am getting this error while creating word application instance from vb.net/c# for web applications. Dcomcnfg is configured as per microsoft instructions for the same for the permissions. But still I am getting error: {"The message filter indicated that the application is busy." } If any one can provide the resolution for the same that will be a great help. Thanks and Regards, Ashish Complete Exception detail as below: - exc {"The message filter indicated that the application is busy." } System.Exception + [System.Runtime.InteropServices.COMException] {System.Runtime.InteropServices.COMException} System.Runtime.InteropServices.COMException System.Object {System.Runtime.InteropServices ...Show All
Visual Studio Express Editions Help with time
I want to be able to display the average number of hands palyed (BlackJack Game) per hour and the average profit made per hour. But im struggling with the coding for this. Can anyone help me with the coding the varibles I have are Sessionstart as date Gamesplayed as integer Sessionprofit as single This is fairly simple: Dim SessionStart As Date = Date.Now() Dim GamesPlayed As Integer = ' you will need to get this value Dim SessionProfit As Single = ' same here. When you want to display the average here's what you do: Dim SessionEnd As Date = Date.Now() Dim SessionSpan as TimeSpan = SessionEnd - SessionStart Dim AverageHands = GamesPlayed / TimeSpan.TotalHours Hope this helps, ...Show All
Visual Studio 2008 (Pre-release) How to use an animated gif?
I was wondering if there was a way to play an animated gif I tried setting the source of an image to a gif file but it only loads the first frame of the gif and that's it. For some reason I still cannot get this to work :(. Here is all I am doing: <MediaElement Source="animation.gif"> I have the animation.gif as an item in my project. When I load up my Window however, I just see a blank space. The link is correct because if I switch MediaElement with Image I see the first frame of my gif. ...Show All
Visual Studio Team System How to set an EventHandler rule using FXCop 1.35
Hi, I want to make sure that all the eventHandlers in my application use the 'EventHandler' suffix. Can i do it using the Check(member) method Thanks ...Show All
Visual Studio 2008 (Pre-release) ArgumentOutOfRangeException in SubmitChanges
Hi, I receive the following exception when trying to submit changes made in a database backed class. Test method UserManagerTest.MyTest threw exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index. at System.Collections.BitArray.Get(Int32 index) at System.Data.DLinq.SimpleTrackedObject.HasChanged(MetaDataMember mm) in C:\Program Files\LINQ Preview\Bin\Disasm\System.Data.DLinq.il:line 106219 at System.Data.DLinq.SimpleTrackedObject.<GetDataChanges>d__0.MoveNext() in C:\Program Files\LINQ Preview\Bin\Disasm\System.Data.DLinq.il:line 105226 at System.Data.DLinq.SimpleChangeDirector.GetUpdateCommand(TrackedObject tracked) in ...Show All
Internet Explorer Development IE7, OE6 Printing problems with headers
Having an intermittent problem printing To: From: CC: Subject: Attachments: headers on emails. Usually happens with larger emails or emails with large attachments or emails that have been replied to or forwarded from other people. Have installed Generic/text printer and sent the email to this printer but sometimes the headers are still missing even printing this way. I have if I open the offending email and highlight just one or two words in the text of the email eg Dear John and then print the email using my HP printer (not as text on Generic printer) - the headers then print and so does the selected words. Don't suggest using Outlook as often we only print the first page of emails as we already have the rest of the email on file especial ...Show All
Internet Explorer Development Internet explorer 7 MUI pack
Hello, I have Xp pro with multi-language user interface for the dutch language(and other languages). What means that xp is basically english but everything else is in dutch (menu, help etc...) Now my problem started with IE7 install I wanted to install the dutch IE7 version but I got the error message that the language of the operating system is not supported by this download (IE7-windowsXp-x86-nld.exe) So I installed the english version that did work BUT now all my IE7 menu etc.. is in english now Is or will there be a MUI pack for IE7 that will change my menu' back to dutch If there will be a MUI pack when is the release date If allready available please send me the correct link. Help would be appreciated. ...Show All
SQL Server BULK INSERT using Exisiting Folder
I am getting the following error when trying to point a Bulk Insert Connection Manager to an existing folder (rather than a file). Anyone else having this problem or know what i am doing wrong I find it interesting that is says file (below) when i told the connection manager to point to the folder. Thanks in advance. "Error: 0xC002F304 at Bulk Insert Task, Bulk Insert Task: An error occurred with the following error message: "Cannot bulk load because the file "c:\Folder\" could not be opened. Operating system error code 5(Access is denied.).". Task failed: Bulk Insert Task" James Bulk Insert Task uses FILE connections that point to a file wich contains data that you want to be loaded using BULK INSER ...Show All
Visual C# Check if panel is clicked
Hi, I have a form with two UserControls on it. The Usercontrols are panels with buttons on. I wan't to click on one usercontrol and the background should change color(Like activate a form) I've used the click event on the usercontrol and it works fine, but only when clicking on the container and not on the buttons. Offcourse it should 'activate' on every click action. Do I need to check every button.Click() event or is there a easier way to solve my problem grtz Annihl8 You can subscribe to all child control Click events: foreach ( Control c in this.Controls ) { if ( c is Button ) // if you want only buttons c.Click += new EventHandler(this.OnChildClick); } void OnChildClick(Obje ...Show All
.NET Development master-details page linking
Hello , I am trying to create a master detauls page for the employees data. My masterpage is a datagrid in which this is column through which i am passing the PerID to the details page ie per_details.aspx <asp:HyperLinkColumn HeaderText = "Details" DataNavigateUrlField = "PerID" DataNavigateUrlFormatString ="Per_Details.aspx ID ={0}" Text = "View Details"></asp:HyperLinkColumn> My details page is in details view, how do i get it display the details of One person , how do i pass the query string, here is my code for details page. <% @ Import Namespace ="system.data" %> <% @ Import Namespace = "system.data.ol ...Show All
