cmwith's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. soundBank.GetCue("xxx").IsPlaying - does it work?
Does anyone know if the .IsPlaying value works properly I would assume that the code I wrote below would cause the computer to play the sound only if another one is not already playing, but it still goes too fast for my taste for ( int i = 0; i < ammo;) { if (!soundBank.GetCue( "click" ).IsPlaying) { score += 25; soundBank.GetCue( "click" ).Play(); Draw(); i++; } } Jason Olson wrote: George is correct. When you call GetCue() on the SoundBank, a new Cue object is returned each time. So, in your example above, the call to GetCue() for IsPlaying is returning a different Cue object then the call to GetCue() for Play(). However, each call to Get ...Show All
Windows Live Developer Forums Adding OnClick event to Polylines
I have successfully added the OnClick event to my Pushpins based upon the example provided. I now want to do the same for Polylines. Before I waste time thinking about this, has anyone already done it If so, can you give me an example Thanks much...Steve Yeah a floating div is just a container that you can position over the map anywhere you like. Inside that container I have label which works for me but obviously not you. VE just got a few upgrades and a noticed that local.live.com lets you click on polylines and the new polygons. So we need someone from the local live team to help us out. Hey Caleb! - any chance on sharing on how we do this And how we do the very cool edit mode with the nodes We wo ...Show All
SQL Server Report Builder and Report Server cross domain communication
I have client machine in one domain, say A domain , on which I have installed .net 2.0 without any problem. I have report server running in other domain (B domain) where I have deployed few models which will be used from domain A to create ad hoc reports by launching Report Builder. I can access other reports in domain B from A But when I click on Report Builder ..it tries to connect to server in domain B but fails to connect and shows following log in a text pop up I know, problem is because of cross domain communication but question is then how to fix it what changes I need to do for that in firewall, domain etc etc settings Here is the error, I have highlighted lines which might give some clue: -------------------------- ...Show All
Visual Basic SplashScreen Help!
Hi I need help w/ my SplashScreen all i want it to do is Show another Form after it has been on the screen for like 5 seconds Adding another question: Why do you need a splash screen Why not go straight to the login form ...Show All
Visual Studio Express Editions Event Handlers and Raiseevent issues
Hi, I seem to be missing something here!! I am looking at the process of Event driven coding and I am a bit confused. If I understand it correctly all I need to do is: 1) Within the form that will raise the event declare the event with the event key word and raise the event Public Class Form2 Public Event xevent() Sub raiseevents() RaiseEvent xevent() End Sub End Class Within form1 create an instance of form2 with the withevents keyword Public Class Form1 Dim WithEvents eclass As New Form2 Private Sub eclass_xevent() Handles eclass.xevent MsgBox( "test" ) End Sub End Class The issue I have is the above only works if I call the form2 raiseevents ...Show All
Visual Studio 2008 (Pre-release) Loading swf in WPF application in xaml
Hi there, I want to play .swf file in winfx browser application. Can anyone guide me in this regards.I have tried using frame tag in xaml, but its not working. <window> <Frame Source="c:\people.swf"/> <window> Thanks Nehal.. Take a look at this blog, it has a posting on this topic http://thewpfblog.com/ p=29 -Pablo ...Show All
Visual C# Using Enum as Index
If I have an enum such as public enum Test { One = 1, Two, Three } I want to be able to add a value based on the enumerated type such as: MyValue[Test.One] = 17; I would also like to keep ot strongly typesd so MyValue[1] = 17; is invalid. Is this possible within C# OK if I had public enum Test { One = 1, Two = 2, Hundred = 100 } The array would be 3 elements so I could not use MyValues[(int)Test.Hundred] = 17; It also is not strongly typed, I could still implement MyValues[2] = 17; which I want to disallow or at least check ...Show All
SQL Server How do I create an SSIS project?
How do I create an SSIS Project in BIDS I installed BIDS, but I don't see any SSIS projects to create. When I click File - > New Project I see the following options under "Business Intelligence Projects" section. 1. Report Server Project Wizard 2. Report Server Project No where do I see anything about SSIS or integration services projects. Am I missing something Did I not download something I have Windows XP SP2 Visual Studio .Net 2005 SQL Server 2005 Express SQL Server Management Studio Express Installed Business Intelligence Development Studio My company has a SQL 2005 server that I connect to in which I want to run SSIS projects off of. I'm sure I'm just missing something small. Can someone point me to th ...Show All
Visual C++ First-chance exception... access violation... debugger winds up in malloc
Hello all, I keep getting an exception whenever calling 'new'. I'm implementing the singleton function and I have a static * p initialized to NULL. When the 'getInstance' method is called, if the static * p is still initialized to NULL, I call p = new P(); At that point I get a First-chance exception ... access violation message and my debugger tells me the problem is in this function: void * __cdecl _malloc_base (size_t size) { void *res = _nh_malloc_base(size, _newmode); RTCCALLBACK(_RTC_Allocate_hook, (res, size, 0)); return res; } at the line "void *res = _nh_malloc_size...." My program stops running at this point as well. I have error messages that will print just before the new call, but not at the beginning of the constructor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Download?
How do I get to the XNA download on Live Marketplace I looked for quite some time. Maybe its my eyes.... Not quite that early Normally I'd say, "sometime near when the sun comes up", but that only applies to my timezone ...Show All
Visual Studio Team System Doubt with my class library projects in SDM files
Hi, I was designing my app, but I don't know how modeling in my sdm file a class library project should I I mean, I have a DB, a WebService and a Win App, but between the DB and WebService I have a class library project for example dataAccess. Another doubt is how should (or could), I modelmy project if I have my entire project in differents solutions, for example, In 1 solution I have my Webservice and my webclient in the other I have my winclient and in the other I have a windows service client. Thanks an advance, Roy I would recommend that you keep your existing solutions and project structure for general development work and then create a new solution that encompasses all of the projects that you can use for modeli ...Show All
Visual Studio 2008 (Pre-release) Video on WPF
I can't see videos on WPF aplications. When I build and run, the videos simply don't appear. I have installed the Windows SDK RC1 , the .NET Framework 3.0 RC1 , and the Visual Studio "Orcas" Extensions for .NET Framework 3.0 RC1 , and don't know what I am missing that would enable me to integrate videos on my aplications. Any solution or help will be welcome. I had a problem like that, when I was running WMP11, went back to 10 and all my media worked. edit: you beat me by secounds I was told that they are going to fix this. As it is, distributing a app with video is more miss than hit. 9 and 11 don't work. only wmp 10 works. ...Show All
.NET Development Dialog Class and debuging
Hi all, When I am programming, I usualy use Message Boxes or Dialog Windows or Console Outputs to help me debug my application. Now I am developping a Web Application and I do not know how to have the same interaction. Do you know a way to output information in that matter Thanks, JR I am having problem using; Console .WriteLine( "some text" ); I have place the line in the Page_Load to be sure it is running and in the Output Window, it is not showing! ! ! JR ...Show All
Visual Studio Team System sotre.query gives more columns then specified in SELECT
Hi, I'm new to TFS and trying to get all work items for a project in a gridview in asp.net. My code: query = "SELECT [System.Id], [System.Title], [System.AssignedTo], [System.CreatedDate], [System.CreatedBy], [System.State], [Microsoft.VSTS.Common.Severity] FROM WorkItems WHERE [System.TeamProject] = @project ORDER BY [System.Id]"; return store.Query(query, parameters); when I put the resulting workitemcollection as datasource in a datagridview I get 27 columns instead of the 7 I've specified in the select. Funny thing is that I do get different results (less rows) when I adjust the where statement but even if I select just 1 field (System.Title for example) I get 27 columns. Thanks, kip Yes, as I tri ...Show All
Software Development for Windows Vista Per-application customization of Favorite Links
Hi, In Windows2003 and older, the common dialog for OpenFile display 5 place-icons in the tray. The list was customizable with some hacks (per-user by adding registry keys and per-application through the use of RegOverridePredefKey() API, as described in http://msdn.microsoft.com/msdnmag/issues/03/03/CuttingEdge ) In Vista the OpenFile dialog was redesigned and it looks like instead of the places icons it displays now the icons/shortcuts from Links folder (e.g. C:\Users\Username\Links). The list is by default customizable per-user by adding more shortcuts into that folder. Is it possible somehow to customize the Favorite Links in Vista per-application E.g. Is is possible to build a custom application that will display icons in ...Show All
