Ravi_Kumar's Q&A profile
.NET Development Beta 2 Inheritence question
Hi, I have question about inheritence under Beta 2. I created a class library for my web application using a new namespace 'MyNameSpace'. And then I created a class named 'MyFirstClass' under the namespace, derived from SqlMembershipProvider (MS Class, under system.web.security namespace). using System.Web.Security; ...................... public sealed class MyFirstClass : SqlMembershipProvider { .................... & ...Show All
Visual Studio Team System AccessViolationException in Command-Line MSTest
We run our unit tests nightly and last night, a test which succeeds in VS got this exception: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.VisualStudio.TestTools.Common.Tip.Dispose() at Microsoft.VisualStudio.TestTools.TestManagement.Tmi.Dispose(Boolean explicitDispose) at Microsoft.VisualStudio.TestTools.TestManagem ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I get a part of Device's final rendering Image to save as like Bitmap?
How can I get a part of Device's final rendering Image to save as like Bitmap Exsample,if Device's final rendering Image is 800*600 pixel.But I only want the 300*200 pixel In the center And save it as a Bitmap. Hi, check the code and the comments, it should explain how to do it: // Get the back buffer (content that the device will show when you call present) IDirect3DSurface9* backBuffer = renderDevice->GetBackBuffer(0); / ...Show All
Visual Studio Express Editions missing features?
Hi everyone. Can anyone tell me if features such as the bookmark window, refactoring fields into properties (among other refactoring options), and other similar types of functionality are not availabe in the Express Editions I can't find these options in C# EE, even though I'm looking exactly where they should be. Thanks, John Yes, I've seen that comparison, but it doesn't mention anything about refactoring (u ...Show All
Windows Forms Changing control's property -> Repaint!
I have a problem. If I change control's property (for example, Location, Size, Region, etc), I shall have twinkling. I need the following code: void Freeze() { // PLEASE CODE HERE } void Unfreeze() { // PLEASE CODE HERE } ... ... Freeze(); Location = someLocation; Size = someSize; Region = someRegion; // etc. Unfreeze(); ----------------------------------- Example o ...Show All
Visual Studio Team System TypeNamesShouldNotMatchNamespaces AKA CA1724
This rule seems overly constraining. With namespaces (and the advent of the global namespace in C#) and some of the names of the nested namespaces in the FX, it seems to me this rule will generate much noise (e.g. the following nested FX namespaces are really general and could apply to many different projects/applications: Common, Services, Collections, Design, Util, Resources, IO, Configuration, Internal). "Design" is a nested fram ...Show All
Windows Forms Additional whitespaces during insert
Hi, I'm using databinding with a MSDE database. When I update values from a dataset to database, additional whitespaces are added to the values. In fact, if a varchar column length is set to 10, there are (10-length(myValue)) whitespaces added. Does someone have an idea Thanks Please post ADO.NET specific questions to the .NET Framework Data Access and Storage Forum. Thank you, Joe ...Show All
.NET Development Datatable From Datagrid
As My ASP.NET page gets refreshed every time i clicked on runat server control having autopostback property true. Now as the view state of the DataGrid i am using is true so it retains all its rows and values. But my datatable which i have declared is initialized so how can i recover my existing datatable from my Datagrid. Ram Kinkar Pandey Infopro Inc. NOIDA, India > So what is your view shall i keep this in Session/Cache or make a ...Show All
Visual C++ Can't set position of console window.
I was wondering how to set the position of the console window. I want it to be in the top left position of the screen but can't seem to figure out how to do so. This is what i am trying to do. AllocConsole(); m_hStdout = GetStdHandle( STD_OUTPUT_HANDLE ); SMALL_RECT ConsoleWindow = {0,0,40,60}; COORD coord = {40,60}; if (SetConsoleWindowInfo(m_hStdout, true ,&ConsoleWindow) == 0) { // Show error messag ...Show All
Visual Basic vb express beta 2 + threads
Hello, i just decided to convert to the latest Beta of vb 2005 and now i have some problems. After fixing the small errors/warnings the program was compiling and running. The problem is that it crashes every time another thread tries to access a var/function/sub/object of the Main thread. The error is a Null Reference Exeption. Here is a code example: ------------------------------ Public Class Main public sub writeLog ( byval str as ...Show All
SQL Server Running Sum on DataReport
Hye Guys, I am a beginer programmer.. I have started 2 build a simple database application. I am now in the stage of showing the data in reports 2 print. I am suggested to use datareport available in VB. I also did my some of the report in it. It worked fine. But now I am stucked in one step..of displaying the calculateable field in the detail section.. Eg. in database: Item & ...Show All
SQL Server Distribution Agent Error - (Multiple-step OLE DB operation generated errors....)
Hi, I am getting the following error when i setup a pull subscription on SQL Sever 2005 RC1. The Snapshot agent and Logreader agent are running fine but when the distribution agent runs to synchronise the subscription fro the first time, the following error occur. Its something i haven't seen before. Any ideas what it could be Thanks, Priyanga   ...Show All
Visual C++ How to do what I already have done in Visual C++ 6.0
I have gone through a book called 'Teach yourself Visual C++ 6.0 in 21 days'. Now I have Visual Studio 2005 C++ the Express edition and I see that much has changed. I really can't do what i did in version 6.0 because to much has changed. For example in 6.0 you had a wizard ctrl W and you attached and set a variable to a control and then called UpdateData() to use the control. But how do I do that now Or let me ask how can I in the best way learn ...Show All
Software Development for Windows Vista Vista and Exchange Server 2003 Deployment Tools
My company use bespoke software for network administration, in Windows XP we install the Server 2003 AdminPak.MSI and the Exchange 2003 Deployment Tools. I am running Vista on a virtual network with Server 2003 AD, Server 2003 Exchange and 2 XP workstations. Having tried to install the AdminPak and the deployment tools to Vista with no success. Has anybody tried this, if so how did you do it. TIA. Mick ...Show All
.NET Development Unmanaged host App catching events from managed
I want to host a managed assembly (decrypted from resources) on a C++ application. The first step is done and works. but I have a problem, if a missing assembly is not found when I execute the dynamic loaded assembly the application don't start and no "_com_error" is thrown. I saw a bunch of methods exposed by the interface _AppDomain: add_UnhandledException remove_UnhandledException ... add_AssemblyResolve remove_AssemblyResolve ... H ...Show All
