Tanvir's Q&A profile
Visual Studio 2008 (Pre-release) query and cache
So under what kind of query is the cache used instead of actually making another query Is it only for exact match (i.e. "==") queries Could you expand or ref an article. The cache is checked when the query is a simple table.Where(pred) or table.First(pred) where the predicate refers only to the primary key. Otherwise the query is always sent and the cache only checked after the results are retrieved. ...Show All
Visual C++ 'exception' : base class undefined
#pragma once #include <exception> class CBaseException : public exception { public : CBaseException( void ); ~CBaseException( void ); }; This class compiles fine usinfg .net2003 but fails with this message in .net2005 d:\projects\atest_2005_p\atest_2005_p\baseexception.h(6) : error C2504: 'exception' : base class undefined Is there a solution thanks , this will work and I can make the minor mod required , however I believe changes to the header have precluded the use of the freestanding implementation of the exception class . ...Show All
Smart Device Development Upgrade path for CF 1.1 design time capable custom controls to CF 2.0
Does anybody know of one I read in this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=129715&SiteID=1 of the genasm.exe tool, but searching on http://msdn.microsoft.com/ for it produces no results at all. There also does not seem to be an automatic way of creating the necessary *.xmta file outside of VS2005. Can anybody give me a heads up on this one please It does seem a bit ridiculous that none of the work I put in to create my CF 1.1 design time capable custom control can be used in developing a CF 2.0 version of it. You're right. There's no automatic way to do that. > It does seem a bit ridiculous that none ...Show All
Visual C++ Problem Adding a Class
Hi - I am using Visual C++ .NET 2003 and am having a problem using the Add Class feature of the Solution Explorer. I am seeing a message box appear with the following message: "Failed to return new code element. Possibly syntax error. New Element name: XXX" The steps to reproduce this error are: 1. Load my Solution 2. Right click a project in the Solution Explorer 3. Select Add->Add Class 4. In the dialog select the Generic class type. This opens the Generic C++ Class Wizard. 5. There I enter my classname and select Virtual Destructor. 6. The system creates the .h file and adds it to the Project, but it is empty and no .cpp file is crea ...Show All
Windows Forms Row Colouring in DataGridView
Hi, I have a requirement in which I have to set the background color of a row based on a particular cell value. The code is something like this Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting If DataGridView1.Columns(e.ColumnIndex).Name = "RISK_TYPE" Then If e.Value.ToString() = "High_Risk" Then DataGridView1.Rows(e.RowInde ...Show All
SQL Server Re : Enabling / Disabling Data Flow Tasks
Hello, I have created around 10 seperate packages for our application data load. Now I am planning to create a master package (or a wrapper package) which will execute all the 10 packages (thru execute package task). Then I have a job which executes the master package at a given date and time. Question : How can I enable / disable execution of each package within the master package depending upon a flag variable. The reason why I need this mechanism is if the flag = 0 then I don't want all 10 packages within master package to execute and if flag = 1 then master package execution should begin and subsequently execute all packages wi ...Show All
Visual Studio 2008 (Pre-release) Accessing Service From SharePoint
I am trying to access a WCF service from SharePoint (a doc library event to be specific). I tried putting the bindings and client config into the web.config, but I keep getting this exception: System.InvalidOperationException: Could not find default endpoint element that references contract IMyService in the ServiceModel client configuration section. The proxy and config settings work fine from a standalone app. SharePoint is configured with full trust. Any ideas If i don't have endpoint information in my client config code,I am getting same error message Example: < client > < ...Show All
Windows Forms How draw an cone of sales for my application
hi, please help me how can draw an cone of sales for my application, if everybody know then any free control for this goal. I want an control more or less how display in this page it's the cone of sales: http://demos1.dundas.com/DundasGauge/MarketingDashboard/Summary.aspx thank's .. Look into directX or openGL. to my knowledge, GDI+ doesn't do 3D graphic ...Show All
Windows Forms save a multi-page Tif
OK, this should be REALLY simple, but im having a very difficult time getting it to work. Dim img As Image = Image.FromFile("C:\temp\2.tif") img.Save("c:\temp\dsfsdafsadfdsfsadfdfs.tif", ImageFormat.Tiff) The 2.gif is a multi-page Tiff, when calling the save method, it only saves the first layer of the file. I have tried using Bitmap instead of Image, still doesnt work. I have also tried saving the encoding info (still not working) <saving with encoding info> ...Show All
Windows Forms Is there a built in Most Recently Used (MRU) class?
I want to implement a MRU list for recent files in my Windows Forms application, and I want the data to be stored in the user.settings file. This seems like a very common task, so I'm wondering if there is something like this built into the framework. Or available somewhere else. Any thoughts Thanks! Erick This CRecentFileList leads to Add Command Handlers for MRU Menu Items in MFC Application Looks like it can not be used in windows forms. Any clue or help I do not know whether I can use it or not Thanks in advance, ...Show All
Visual C++ compile in ClearCase, get fatal error C1083 cannot open program database file vc70.idb
I am using Visual Studio .NET 2003 Professional, version 7.1.3088, with hotfix KB875516 installed. My source code (C) is stored in ClearCase 6.0.390. I have my VS project also stored in ClearCase. Editing and saving files works fine. The problems start when I try to compile. Looks like all the files compile to .obj correct but than at the end I get one error per file related to the .idb file (minimal recompile / incremental compilation database): fatal error: error C1083: Cannot open program database file <path>\vc70.idb: No error The vc70.idb file is there -- it gets created but then it seems like VS has trouble reading it af ...Show All
Windows Forms CallBack in GridView
Hello: I am in the process of extending GridView and adding some functionalities. For example, I added a single row click to postback and handle the event. I would like now to be able to do a CallBack instead of PostBack. Do you know if there is a whitepaper on how that CallBack functionality is added to the Grid currently through sorting and paging I believe it is better to follow the same technique used. I have been trying for some time, im getting all the needed methods and functions, and I have added for example: Grid1.EditIndex = e.GridViewRow.RowIndex; inside the handler of the sinlge click which is being fired upon a ...Show All
Software Development for Windows Vista Can WWF Be Hosted on Linux?
Hi group members Couple of days back i am showing WWF to some of my friends who happen to be software engineers , well one of them ask is it possible (or in future ) to host a wwf in Linux . Well i guess we dont have that support right now . Hi Vikram Ya I personally think Microsoft never gona ship WWF on Linus coz its somehow negates thier business strategy .I work on mono and its fine for educational/experimetal usage but for rational real world application it lefs you middle of no where. Well i am very curious that if in future Micrsoft do launch WWF for Linux do you guys sit and plan the changes or simply give the source cod ...Show All
Windows Forms Windows Form from within Internet Explorer
Hi, Does anyone know how can I get my C#.NET windows form to launch from Internet Explorer Is this possible at all Thanks Dear, if you use a windows user control you can add it to the aspx screen by adding <object> tag <object id="anyID" classid="DllFileName.dll#Namespace.classname" VIEWASTEXT> ...Show All
Visual Basic Regions bug
Every day after I’ve been working in the IDE for a while, the collapsed #regions will not open with a single click on the plus sign anymore. Instead it takes 5 to 10 clicks to open them. Actually in different source code files it takes a different number of clicks in order to un-collapse a #region . (but always the same number of clicks within the same source code file) I sure hope this will be fixed soon. It's been doing this all along since I switched in February. Any idea what's causing this Which versions on VB are you using.... VS Studio, VB Express Has it been doing this f ...Show All
