Sideout's Q&A profile
Visual C++ VS2005 C++ compiler bug?
I do not know if this is the best forum to report a MS VC++ compiler bug (please advise if I should post this to another forum). In the process of migrating code from VC6 to VC8 (i.e. Visual Studio 2005 Professional Edition) I have stumbled across what I believe is a C++ compiler bug in the handling of template functions invoking the function call operator. Details and other ramblings below (after the example code that exposes the problem). #include <algorithm> #include <list> #include <stdio.h> #include <tchar.h> class A { public : // explicit initialising constructor (made explicit to avoid implicit conversions or casts) explicit A ...Show All
Audio and Video Development UserOps again...
Has anyone successfully prevented default handlers for e.g. skip next, pause, etc My programming doesn't seem to keep the default handlers from being called: var VK_SKIP_NEXT = 0xC7, VK_SKIP_PREV = 0xC8; function handleEvent(evt) { switch (evt.key) { case VK_SKIP_NEXT, VK_SKIP_PREV: stop Event (evt); } } function stopEvent(evt) { evt.stopPropagation(); evt.preventDefault(); } application.addEventListener("controller_key_up", stopEvent, false); application.addEventListener("controller_key_down", handleEvent, false); Cheers Peter. You're right with the comma oparator. I forgot about this... sammaz, this works fine on my HD-A1. You can add more user ops you w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. unhandeld exception at 0x77062b86 in VCSExpress.exe: while installing xna
I know it's unsupported, but supposed to be running : I Ran XNA Game studio express wizard on my vista machine, The Installation starts.... Until it reaches Registering project templates Then i get a nice box "Microsoft visual c# Express edution has stopped working" [Debug] [CLose Program] i press debug. Then it complains about "unhandeld exception at 0x77062b86 in VCSExpress.exe: 0xc0000005: Access violation reading location oXe419c08c" The executing dll is ntdll.dll and disassembly of that location 77062B5C cmp eax,ebx 77062B5E je 7707CAFD 77062B64 mov cl,byte ptr [eax+7] 77062B67 cmp cl,4 77062B6A je 7700CC6E 77062B70 test cl,cl 77062B72 push edi 77062B73 jns ...Show All
Visual Studio Exec task and working directory
Basically I'm using <Exec> tasks in our build system and something goes wrong, and for debugging purposes I want to see which of the Exec tasks went bad, but no matter what I set the verbosity level to I cannot get a print including WorkingDirectory. Am I missing something here or should I go ahead and file a bug Basically my exec call is something along the lines of the following <Exec Command="NMake /nologo /f WRPC.mak" WorkingDirectory="%(Nodes.rootdir)%(Nodes.directory)" /> The exec task does not log the working directory. In detailed verbosity exec task will show the commandline for Nmake. However if you want the working directory to be logged. You could use a message task right before the exe ...Show All
Software Development for Windows Vista How to get the list of Running Instances?
Could you please let me know if there is any way to get the the list of Running Instances and their Type without using the Tracking or the Persistance Service Just something as simple as RunningInstancesCollection ic = WFRuntime.GetRunningInstances()! Thanks Thanks Serge for the answer. One it get WorkflowInstance::GetWorkflowDefinition(), can I perform dynamic update on that Instance My scenario is as follow, I have a WF runtime service that get events (for example a ShipmentHasArrived Event) then my runtime service should workout the WF instances that will be affected by this event then it should do some dynamic adaptation (e.g., Remove some activities because the Shipment has arrived). Could you ple ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem installing XNA Game Studio Beta 2
I previously had XNAGSE beta 1 installed, however I am unable to install beta 2. I read around on the forums a bit, and this is what I tried: 1. Uninstalled beta 1 2. Ran Visual C# then closed it 3. Tried to install beta 2 However when I try to install beta 2, it gets through most of the install, but after it does "installing DirectX redist" it goes to "rolling back action" and tells me that the install ended prematurely due to an error. Anyone have any ideas what could be going wrong Should I try reinstalling Visual C# as well Please try running the installer like this: Msiexec /i xnagse_setup.msi /lv installlog.txt In addition to that if you want to grab your ...Show All
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 like it its what the area needs no more overpriced ipods (that you have to buy addons to complete ...Show All
Windows Forms DataView Sorting
Hi, I have two combo boxes and a DataGridView. The two combo boxes are going to serve as filters for the DataGridView. When the form loads a stored procedure is called to return a number of records to be displayed in the DataGridView. The grid can then be filtered by using either one of the combo boxes. If the selected index changes on either combo box a DataView is created from the DataTable holding the data from the stored procedure and a Row Filter is a applied depending on what the Selected Item Value is. All this works great but the problem I have I need to combine the two filters into one. I.e. if you want to filter the data to show only today’s events and then filter it again to only show a certain type of event. ...Show All
SQL Server Parallel execution of source SQL commands
Hi, we're accessing a SQL Server as a source for some SSIS packages using quite complex SQL commands. We have dataflows getting data from up to 10 queries. The problem is that SSIS starts all these queries in parallel using up all the memory of the server (the source SQL server, not the server SSIS is running on). So the queries are very slow. Is there any way to force SSIS to start the queries after each other I already browsed the web for some answers on that and I'm not very optimistic... Maybe the only solution is really to feed the result of the query in raw files and process them later... Thanks, Hi Jamie, I hoped that there is a tweak for it... But that's what I expected... I voted for your suggestion and opened ...Show All
Visual Studio 2008 (Pre-release) Choosing OleTransaction or WS-AT transaction protocol
Hi all, it's me again What is the usage difference between OleTransactions and WSAT Is the usage difference only in the config file (binding attribute) or are there some differences in programming features (specific classes, codes, or something) Thank you, lingga From a WCF perspective, the feature set across the two protocols is the same. The coding and conceptual approach is the same with the protocol involved being a configuration detail. You can think of OleTx as the optimized approach that will give increased performance in the WCF client to WCF server situations. In this case, the coordination does not occur using web service messages. You should use WS-AtomicTransaction where you ne ...Show All
Visual Basic Selected Value in ComboBox Populates DataGridView
'I need assistance on how to Load the GridView By selecting a value in the ComboBox '1. ComboBox is loaded with Satellite SCC #s' From SQL Server 2005 Express '2. The DatGridView is loaded with signals that correspond to the Transponders on the Satellite From SQL Server Express 2005 'The GridView also contains the Satellite SCC #s'. '3. I need the GridView to only load the Signal that Matches the Satellite SCC #s' that are Selected from the ComboBox. '4. So when you click the SCC # in the ComboBox, it will search the Signal Database Table for all the matching 'Satellite SCC #s' and then load the signal information into the GridView. DataBase: SQL Server 2005 express Language: VB.NET 2005 FrameWork: .NET 2.0 Imports System ...Show All
.NET Development cannot connect to configuration database
Hi friends, I have a web method (Web Service) that returns an url of a sharepoint site. When I build it (F5) every thing goes well. but when i browse to it, it generates following error. Microsoft .SharePoint.SPException: Cannot connect to the configuration database . For tips .... I have search very much and worked on it many KB articles but nothing has helped. here is the code. [WebMethod] public String GetMyContactsForSmartTag() { try { Guid MySiteGuid = new Guid("5E9EAB1B-F653-43A9-B2F6-751D443E7B5F"); SPSite IgnitoSite = new SPSite(MySiteGuid); return IgnitoSite.Url; } catch(Exception ex) { return ex.ToString(); } } ...Show All
Smart Device Development Storage Card File System Errors on Device Emulator
Hi I am having trouble with the Device Emulator mapped Storage Card File System. I am running a CE 6.0 image in the Emulator. I am in particular intermittently getting failures to open files for writing with the CREATE_ALWAYS flag. Delving into the VCEFSD driver, the problem is due to the initial Find call in the VCEFSD_CreateFileW function indicating that the file exists, when it doesn't really, and later it tries to delete the file and fails because it doesn't exist. Additionally, there are 2 calls to VCEFSD_GetFileAttributesW by code in CreateFile before the VCEFSD version is called, and both these call indicate the file does indeed not exist. Any ideas I have looked at the Shared Source for the Device Emulator V1, but haven't seen anyt ...Show All
Visual Studio 2008 (Pre-release) Custom Peer Resolver as a service
I have a custom peer resolver that I am trying to use as a Service. I am using InstallUtil from ..Microsoft.NET\Framework\v2.0.50727 to install the service. Installation is successful, but I get a "Error 1053: The service did not respond to the start or control request in a timely fashion." when I try to start the service. The error message is returned almost immediately (without any time delay). I have tried to install on WinXP and Win 2003 server as Admin. I will be happy to send the code... ./ms ...Show All
Smart Device Development MSMQ Book Order Application Sample
hi i have taken this example at http://msdn2.microsoft.com/en-us/library/ms180970.aspx this is used to transfer messages between device and desktop queues this application run ok but it doesn't send the messages to desktop queue i am using vs2005 and and emulator pocket pc-wm5.0 please suggest thanks arvind Hi! i have configured msmq on my emulator pocketpc-wm 5.0 (Installation in Workgroup mode -> only private queues) After Install and register,using VISADM utiliy ,I soft-reboot my device (Pocket_PC1) and then verified as u said. Its shows ... In verify option Computer name is Pocket_PC1 MSMQ daemon installed. NETREG daemon installed. ...Show All
