BioGeek's Q&A profile
Visual C++ Template Selection Visual C++ 2005
Keyword C++ Template Matching Selection I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class. Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects. Expression Templates. I want to manually write these templates for the educational value. (template frenzy).( I dont want use boost::lamda ... just yet). Other metrics being equal .. I would like to use a lesser number of member functions. Actual: I get template matching that is contrary to my intention. (I dont understand the actual template ...Show All
Visual Studio VSS 2005 Crashes When Creating History Report
My VSS 2005 is crashing when I - Open VSS 2005 Explorer - Navigate to subfolder - Right Click - Select View History - Check "Recursive" - Enter a recent date - Click OK - Click Report - Both Include Details and Differences are checked - Clicking either OK or Preview for any of the choices (printer, file, clipboard) causes a "MS VSS Explorer has encoutnered a problem and needs to close". Button choices are Debug, Send Error Report, Dont' Send. If I click debug, VS opens with a green arrow at the bottom of this method. Unforntuantely I dont know C++, so I dont know any other context to provide BOOL CStatusBar::SetPaneText( int nIndex, LPCTSTR lpszNewText, BOOL bUpdate) { ASSERT_ ...Show All
Visual C++ Visual C++ release build
Hello, I am not a proffesionalist in Visual C++ (from Visual Studio 2005) so I need help. Can any one tell me if I can build a release version of my software which is Windows Forms Application with all needed dll's included in my application The problem is, that I can not install NET Framework on one computer in our company where I have to put my software. Does Visual C++ always need NET Framework Best Regards, Kamil Weather you build Release or Debug, if you are using any part of the framework in your program you'll always need .NET framework deployed in the target system. And since Windows Forms uses the .NET framework you'll need it on the target. ...Show All
Visual C# Retrieving last index value in an ArrayList
I want to populate an int variable with the last index of an ArrayList. I haven't yet found a property of ArrayList that will do that for me and I'm wondering if I'm missing something. Right now I am doing it this way: int theLastIndex = theArrayList.Count - 1 But I'm wondering if there is a more elegant way. This is in C#, by the way. Thanks in advance. Yes, that is correct. Normally, though, you should avoid basing too much logic around the last index of the array/ArrayList, and instead just use the size. Then instead of looping while, say, i <= lastIndex, you loop while i < arrayList.Count. This is something that I didn't do when I was first learning java, so I frequently had off- ...Show All
Visual C# attempt to read or write protected memory
hello everyone. i'm trying to open an excel workbook using c#. this is the code: using Excel; Excel.Application excelApp = new Excel.ApplicationClass(); string workbookPath = "c:/SomeWorkBook.xls"; Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false); when i run the program on the same pc that has the c# environment it runs without problem, but when i try to run it on another pc i have the following error: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corru ...Show All
Software Development for Windows Vista Using Windows SDK (With the Glass Effect)
I have Windows XP and I downloaded Windows SDK for developing apps that are compatible with Vista, is it possible to make an app on XP with the glass effect or do I have to use Vista to create an app with the glass effect They do however have the Vista Minimize, Maximize, and Close buttons on some applications already for XP that's why I wondered, for instance on Windows Media Player 11 they have the shiny Vista buttons on the top right of the screen. Does somebody know how to do that, I'm sure there's a kit for it or something, that's what I thought the Windows SDK was for but apparently not so does anyone know how to put those buttons up there ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GameComponents In Depth With V1
So I've been trying to read all I can about the features of XNA and one that I'm just starting to discover is the GameComponent system. I have a small knowledge of what's going on, but I can't seem to find much on how it works in V1.0. I Googled and found a video (http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx) but that covers back during beta 1, which was the same for most other sites. Does anyone have any links to sites that talk about GameComponents and how they work Or does anyone have a few minutes to go through them I'm looking for as in depth as possible so I can really see what I can do with them. Thanks in advance. Let's say you want to make a UserInterface drawable component. ...Show All
Software Development for Windows Vista Marked application(embedded manifest) doesn't elevate when UAC is turned off?
Hi I'm testing my app on vista Business K. I've embedded manifest file and running it with shellexecute. It correctly gets elevated when UAC is enabled. However, when UAC is turned off, it won't get elevated as it should. Most surprisingly, one of two identical copies of the application has the windows security logo mark on the icon and one does not. I know the two files are identical for sure because their sha-1 checksums are identical and all other properties are the same(size and etc) What the heck is going on here Is UAC still buggy Thanks in advance. If you're writing a new app for Vista, I would strongly suggest you use a manifest with an appropriate requestedExecutionLevel, whether it nee ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox360 Texture2D Construktor
if i call this .Texture = new Texture2D ( graphicsDevice, 1024, 1024, 1, ResourceUsage .Dynamic, SurfaceFormat .Color, ResourceManagementMode .Manual ); i get An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.dll Additional information: The device does not support creating a texture of the given format with the given ResourceUsage. I don't think Xbox supports the Dynamic texture usage flag. In fact none of the usage and resource management mode flags really do anything interesting on Xbox - you should pretty much always just use None and Automatic. ...Show All
Visual C++ How to use C# DLL in VC++.NET's Win32 Console Application?
Hi, I wrote a function in AsmL.NET and then generated C# code and then compiled it to a DLL. Now I want use the DLL in VC++.NET's project type "Win32 Console Application". The DLL works in VC++.NET's project type "Console Application (.NET)", But does not work in project type "Win32 Console Application", Can any one help please Many thanks for the reply! I set the /clr option and also made Use Managed Extention Property to 'Yes'. After that, Using 'Add Reference', I added the DLL and from the object viewer window, I was able to see the Namespace, Class, and Methods in the DLL. But, When I tryed to call the method from the Code, I got error. In the DLL (func.dll), ther ...Show All
Commerce Server Order History Detail
Hi, On the account history page (of the Commerce Server Starter Site), as well as, the last page of check out, my client would like to see the detail/items of the order. What is the best way to accomplish this. I am surprised on the Account History page that the order # is not a link to the detail which would have been nice feature. Please Advise. What do you mean by details of the item Keep in mind that when you are showing an Order, you cannot be sure that the product in the Order is still available on the site, so you cannot link to the product details from the catalog. All that you can show is the product information already stored in the Order (with the LineItem class). If you want to sh ...Show All
Windows Forms mdichild datagrid rows backcolor problem
i ve mdichild form and it includes datagridview1, datagridview1 has some special rows and i m setting their back color red; However when i open it shows all datagridview rows color white. as default if i open it without mdichild just like a new form which is not mdi form, it is working correct Form2 a = new Form2(); a.mdiParent = this; with this not showing rows backcolor a.show(); Form2 a = new Form2(); a.show(); with this it show rows backcolor what i set How can i set these rows backcolor red with mdi calling method ...Show All
SQL Server Full-text Index Question
Hello all, I just created a new Full-text index on a column, and I set Change Tracking to Auto. When I do this, do I still need to have an Incremental Population schedule, or does SQL Server handle the population in the background on a continuous basis when Change Tracking is set to Auto Thanks for your help, Jason See inline. EXEC dbo . sp_fulltext_table @tabname = '[dbo].[Log]' , @action = 'start_change_tracking' GO -- If you have timestamp column on the table, start_change_tracking will start incremental crawl, otherwise, it will kick off a fullcrawl and set changetracking to manual. You should see the index is populated. EXEC dbo . sp_fulltext_table @tabname ...Show All
Visual C# App Config and escape sequences
Is it possible to read data from an app config file using the configuration manager without having characters being escaped automatically. I need to read a sequence from the app config file and have it available exactly as it is written. I.e. "\n\n\n\nABCD" should be read as "\n\n\n\nABCD", not "\\n\\n\\n\\nABCD". Can this be done The problem comes when I try and do a comparison. If agree that when I write irt out I get \n\n\n\nABCD, but when I try and compare it to a string containing \n\n\n\nABCD it fails since one conta9ins \\n\\n\\n\\nABCD and the other \n\n\n\nABCD. ...Show All
Visual Studio 2008 (Pre-release) Inactivity Default value
I've been testing for few days with the inactivityTimeout and receiveTimeout. In my WCF app, I use WSHttpBinding and WSDualHttpBinding. No matter what I set the values of inactivityTimeout and receiveTimeout to be, I get the CommunicationObjectFaultedException. My application needs to be kept alive for Infinite but that didn't seem to work so I changed to 20 minutes and still the timeout is set to 10min. What else do I need to change Description: Failed to stop service. System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Thanks, Gina. How do I c ...Show All
