cblaze22's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. C# Performance
i mean are there differences between C++ and C# in performance Another interesting performance statistic of C# (and the .net framework in general) is that ultimately the speed depends on the runtime implementation of the .net framework. as C# code is compiled down to IL level and then JIT'ed at runtime the runtime is what gives the performance. Say in a years time MS update the .net CF2 framework for 360, to utilise a load of features of the CPU which are currently unimplemented, without recompilation your app could gain in speed by magnitudes. However once a C++ app is compiled, unless it depends on some other runtime library which is updated its performance is likely to be pretty static. This not only makes generalisation of ...Show All
Software Development for Windows Vista Canceling a burn
I can't find the documentation on canceling using IMAPIv2. Is it the same as in IMAPIv1 I'm not really using IDiscMasterProgressEvents, so I'm not sure how I'm supposed to implement a QueryCancel() Also, I've seen claims that the cancel is broken on xp sp1/sp2, is it for sure working on Vista Hello foobarX! I can't answer for IMAPIv1 on XP off the top of my head, so if you really need to know, let me know and I'll find the answer for you. However, as for cancelling burns on IMAPIv2, the 'proper' way to do it is to call IDiscFormat2Data::CancelWrite() when you have received an update event from the object. There should not be any problem calling this from another thread a ...Show All
Commerce Server How To Show Ads For A specific User?
I have a virtual Catalog (CommerceCatalog) And I have Also CatalogSet (CatalogSet1) I have created a userobject profile and I specify the CatalogSet for this user is (CatalogSet1) How Can I show this user specific Ads I noticed that in the Ads We Can Creat Expression UserObject.UserCatalogSet IsEqual Then the name of the catalogset But in the value list I did not get any Of CatalogSets Availabe In The CatalogSets !! So How Can I show Specific Ads and Discounts for Specific Users Based On His Profile What is the best Way So How to Specify Set Of Adds For Set Of (Orgnizations Or Users),With Recpect to Profile. So,This As will shown Just For This group Of Users. thanks ...Show All
Software Development for Windows Vista Using VB6 on Vista
Is VB6 support on Vista as a development language I have a VB6 application (which is pretty big), but when I come to compile it on Vista RC2 is fails to register all the activeX dlls that are build as part of the application. I did manage to get round it, but only by running VB6 as Administrator. In a day to day dev environment I don't want to do this every time. I am a local admin so why doesn't this allow VB to register my dlls. Does this behavior have something to do with UAC Thanks for your help Graham This is a UAC issue. We’ve been testing the Visual Basic 6.0 SP6 runtime and IDE on Vista builds since earlier this year. Both run and install successfully on Vista RTM a ...Show All
Software Development for Windows Vista Check Statemachine Status with InstanceID
Without using the SQL Tracking Service, how can we know the Status / State of a workflow instance with its InstanceID I got an example from the latest Hand On Lab (Lab04), seems the method is too complex, any simple solution about that Andy Ho You can use the StateMachineWorkflowInstance class. It has CurrentState and CurrentStateName properties. If you do add tracking you can use the state machine instance to also get the StateHistory, but you will get an exception without tracking. The following is an example of how to use the StateMachineWorkflowInstance class. Create a new State Machine Workflow Console Application and change Main to the following: static void Main( string [] ar ...Show All
Windows Forms deploy activex via msi instead of cab
I have a old ActiveX that we deploy via a .cab file from our website. However, one of our customers needs a MSI so they can do a remote deploy to their workstations. The current .cab file has a .inf file which stores the classid and information about the files to be deployed. I can add those files to my current vs2003 deployment project, but how do I assign those files the classID specified in the .inf file please advise -Smit. If you add the OCX to the setup&deployment project, then in the properties you can just set the property to vsdrfCOM and it will collect the registration entries into the MSI file to add them during the install. Does the inf file name any dependent Dlls that need to be installed A .dep file Choose the ...Show All
.NET Development How to FtpWebResponse / FtpWebRequest Catch Events ???
Hi, Is there any way to trace the FtpWebResponse / FtpWebRequest events when using , any sample available Thanks in advance. You can get the text trace through a config file. See http://blogs.msdn.com/dgorti if you wan programmatic information of the events [individual events] we don;t support that now. You can do some stuff like choosing the local end point etc. ...Show All
Visual Studio Tools for Office Printing Axspreadsheet
Hi I am using VB 2005 and have successfully embedded a spreadsheet (Axspreadsheet) in a windows form and filled it programmatically with data (actually it displays a continuous calendar). Now I want to print it and also have a printpreview function on the form. I have little idea where to start. I do have the book Visual Basic 2005 Step by Step guide. It has some examples but only it printing simple graphics or text from a textbox. Here's hoping someone out there knows what I mean! Cheers Matt ...Show All
SQL Server Need help with SQL statement
I have the following SQL statement that pulls in the correct data, however I need one of the columns from one of the tables to pull in ALL records even if there are not any. Okay, so I am still running into some problems. Here is my select statement (this is using ODBC for an AS400 DB2 mainframe): SELECT DISTINCT QS36F.UEVTREG.ARM, QS36F.UEVTREG.REG, QS36F.UEVTREG.SHOWDT, QS36F.UEVTREG.TRIAL, QS36F.UEVTREG.BRDCOD, QS36F.UEVTREG.BRVAR, QS36F.UEVTREG.CLASS, QS36F.UEVTREG.DIV, QS36F.GRPMST.GROUPCODE, QS36F.GRPMST.BREEDCODE, QS36F.BRDMST.BRDESC, QS36F.UEVTJUDGE.JUDGENAME, QS36F.UEVTJUDGE.JUDGE, QS36F.UEVTREG.EVENTCODE FROM QS36F.UEVTJUDGE, QS36F.UEVTREG, QS36F.GRPMST, QS36F.BRDMST WHERE QS36F.UEVTJUDGE.EVENTCODE = QS36 ...Show All
SQL Server bottom row
How to display bottom row should be in dotted line One way of doing this is to put a group in with a grouping of =1 (will force only one group) and then in the group footer make the top dotted. If you need this on every page, just have the group footer displayed on every page. ...Show All
SQL Server Mirroring and replication
Hi MSSQL friend, We have a SQL2005 server which contains some replicated databases. We use merge replication and the publications are all local. In order to make the server failsafe we need some kind of mirroring. Is this possible with replication Any ideas how to accomplish a failsafe scenario with replication Sincerely Edward You can start by searching SQL Server Books Online, I searched for "replication mirroring" and found this: Replication and Database Mirroring - http://msdn2.microsoft.com/en-us/library/ms151799.aspx ...Show All
SQL Server How can I get back the lost view?
Hi, I am a newbie working on MS Sql Server 2000 for a while. I accidentally deleted a view through Query Analyzer and want to get it back. All data are backed-up every day but there are a lot of red tapes I have to go through in order to draw the lost view from the backup. Indeed, a different division is taking care of backups in our organization and they don't want to spend time on my issue. I'm wondering if there is an automatic logging capability of sql server showing modified/ deleted/ updated data objects on daily basis with their contents that can be accessed later on. Or is there another recovery mechanism that can be used to get back the lost view Thanks for your attention to th ...Show All
Visual C# assembly file
Hi everyone, I have again some doubts about assemblies. Suppose that w ecreate a class and then use some classes from different packages in this class. So, when I examine the references section about my project, I see that the all packages that I use is added into it. My question is that when I execute my program in the same class(in other words , my main method is located in the class that I use), do the assembly file, which is createn at the compile time, consist of the reference section and my own class Menawhile, I know that assembly file also contain metada and manifest but I refer to the IL part. Thanks Hi, I finally found the answer of my last question. We can only add the .dll files into the references which we are going to ...Show All
Visual Studio Team System Windows forms testing
Hi, Can anyone tell me how to do Windowsforms functionalty testing in VSTS.Thanks in advance. happy testing, vian ...Show All
Visual C++ MFC Dll Project?
When given a problem that involves quantum interactions, behavior among particles such as atoms etc.: (using: MS VC++) Would you create an, MFC Dll Project Would you take another path Thanks very much for any and all (no matter how minor) info. in regards to above question(s). B. John For the benefit of others, note that this question was also asked in MFC DLL in the VC Express Edition forum. I think that " quantum interactions, behavior among particles such as atoms etc. " is not very relevant, except that C++ is probably a good choice due to the intensity of math required, including prescision. I think it would help to describe the requirements in terms of the user, and assuming that the user does n ...Show All
