Software Development Network Logo
  • Windows Vista
  • Visual C++
  • Visual C#
  • Game Technologies
  • SQL Server
  • Visual FoxPro
  • Smart Devicet
  • Visual Basic
  • SharePoint Products
  • Microsoft ISV
  • .NET Development
  • Visual Studio
  • VS Team System
  • Windows Forms
  • Audio and Video

Software Development Network >> Raja Pratap's Q&A profile

Raja Pratap

Member List

Sergey Shishkin
CJ_1234
EWoodruff
Bjørnar Sundsbø
Dave Britton - VERTIGO
buntysk
OracleDBA
t_j_l
Tommysaurusrex
bn.srinivasa rao
Giber
cplusplus1
SucceedEgg
Dvlnblk
joshcsmith13
Benedikt
Philipp Lamp
Uberfly
Corby111
jchau
Only Title

Raja Pratap's Q&A profile

  • .NET Development COM exposure of default properties

    Hello. I'm having some issues getting default properties exposed to COM on an assembly I'm working on. For a simple example, let's say that I have an assembly that has a public property which returns a System.Collections.Hashtable: using System . Runtime . InteropServices ; using System . Collections ; using System . Reflection ; using System ; namespace MyAssembly { [ ComVisible ( true )] public class MyCSClass { Hashtable objHash ; public MyCSClass () { objHash = new Hashtable (); } public Hashtable myHashTable { get { return objHash ; } } } } I compile the assembly and make sure that it's exposed to COM. Then, to demonstrate that COM ...Show All

  • Windows Forms URGENT HELP - Binding Context for Combobox and TextBox

    C# - Windows Application --> VS 2005 OLEDB Connection (Combobox) (TextBox) CustomerID Customer Name C001 Name 001 C002 Name 002 ---------------------- Hi, I need help on binding combobox and textbox. I bind a combobox to Customer Code (select the customer code) and textbox to Customer Name. As shown above, when I select "C001" at the combobox, the text box supposed to show "Name 001" How do I bind the changes together this.editCust_Code.DataSource = customerDataset1.Tables["Customer Database"]; this.editCust_Code.DisplayMember = "Cust_Code"; this.editCust_Code.ValueMember = "Cust_Code"; this.editCust_Name.DataBindings.Add("Text", this.customerDataset1, "Customer Database.Cust_Name"); private void editCust_Co ...Show All

  • Smart Device Development equivalent of Control.CreateGraphics() for Compact framework 2.0

    Hello i need to convert a control.CreateGraphics() for my app. VS2005 gave me a runtime error saying that it's not supported for Compact framework. Is there anyway to bypass that In my example code I just simply called panel1.Invalidate() for simplicity. If you only want to invalidate a portion of a control you can use the Invalidate(Rectangle) override, passing it the rectangle (of the ellipse in your case) that needs to be updated. You can do a series of calles to Invalidate(Rectangle) if you want more than one rectangle to be updated on the next paint event. ...Show All

  • .NET Development Cache invalidation

    When using Asp.Net caching API, if cached items has the same priority, what algorithm is used to decide what items to be removed from cache to release some memory space I am also looking at the Enterprise Librarchy Caching block, the online documentation mentioned that: The onus of the items that need to be scavenged is placed on the BackGroundScheduler object. The BackGroundScheduler performs a: major sort on priority minor sort on LTA Does anybody know what LTA is Thank you Thank you very much for your answer. Is last time access actually the same thing with LRU(Least Recently Used) From my understanding, I can't see the difference. Please correct me if I am wrong. Thank you ...Show All

  • SQL Server Assign expression value using code

    I am trying to use a variable to set an attribute value of an SSIS task but I keep running into the 4000 character limit of the string variable. Not sure why the variable which is of .NET type String has this limit when it doesn't when you are in a .NET environment. Regardless, can anyone provide some sample code that I could use to do this in a script task I am trying to set the QueryString property of the Data Mining Query Task. All help would be appreciated. Thank you in advance. As far as dynamically setting the QueryString, when you look at the properties of the Data Mining Query task, is there an "expressions" parameter If you expand the expressions parameter, do you have an option for QueryString (I'm not sit ...Show All

  • Visual Studio Team System Project Properties|Code Analysis tab missing

    I got a new laptop last week and am in the process of migrating everything from my old laptop. I installed Visual Studio 2005 Team Edition for Software Developers - same version as I had on my old laptop. However, I find that I'm missing the "Code Analysis" tab under Project|Properties. (There were a few other minor menu variances - such as 'Batch Build' missing from the Build menu option.) All I get are Application, Build, Build Events, Debug, Resources, Settings, Reference Paths, and Signing. I can actually run the Code Analysis by right-clicking on the project and selecting 'Run Code Analysis' - I just can't access the GUI to customize the rules. :-( Only difference I can think of is the source of the installation. Last ...Show All

  • Windows Forms PROPERTIES IN A CUSTOM CONTROLS

    How I can do so that the properties that I defined for a custom control, it takes so much from the Code Behind as from the window from Properties, that is where I have problems. Thanks for any help, Claudia I am afraid that I do not quite follow Claudia... you say you’ve got a custom control and what Want to add a property or two to it Or is it you want to set properties to default values Or is it you want them to show up in the Properties window ...Show All

  • Visual C++ Floating point stack overflow

    My application works fine in VS2003, but in VS2005, it is producing an overflow of the floating point stack.  This seems like it must be a code generation error in the new compiler.  Has anyone else experienced this problem In the particular case I am looking at, I step through the instruction FLDZ in the disassembly window.  Instead of getting a zero in ST(0), I get 1#IND, and the SF and C1 bits are set in the x87 FPU Status Word.  The first time through this code it works OK, but this second time through, the FPU tags register shows that the stack is full before the FLDZ instruction. I agree. Please add such comments to the bug link. Once more, thanks a lot Mark for raising the issue. Also, mention that you ...Show All

  • SQL Server report builder aggregates

    Is there anyway to control which aggregates are displayed in Report Builder Failing that can I turn them off by table or all together. Thanks. When you run the Autogenerate wizard, the third screen in has mulitple checkboxes for what you want to generate. If you are like me, you just "Next->" on through them. There are some nice options in there. The hidden property is available on every item in the model. Show the properties window, select the item(s) you want to hide and change the "Hidden" property from False to True. R ...Show All

  • Visual Studio VS 2005 Release build error

    Hi All- I am having an error when I build a WinForms Solution in VS 2005 IDE. This solution has roughly about 10 projects and am getting the following error when I build the project in release mode. "Unable to copy file "C:\SolutionName\ProjectName\bin\release\project.dll" to bin\release\project.dll. Access to the path 'bin\release\project.dll' is denied. I am getting this error on all the project files. Please let me know what am missing here. Thanks, Jaxdeveloper It seems an Access issue. Have you tried giving access to the folders. There might be changes that the DLL it is trying to copy is used by some other process by VS only. You might like to check this too. ...Show All

  • Visual Studio Pass something other than a string to a ValueProvider?

    This is a very basic question, but can I pass something other than a string argument to a valueprovider. The IAttributesConfigurable interface exposes an attributes variable which is a stringdictionary, so this would suggest that you cannot pass anything other than strings. I'm trying to write a valueprovider which will accept a project as a argument, which will get the project's name as a string, perform some pre-defined manipulation of the string and return it (so it can be used in an action). The action will use this value to update another of the projects attributes, but that's by the by. I would like the manipulated string to be made available to whatever wishes to consume it in my guidance package Thanks Hi Alex, Yo ...Show All

  • Visual Basic Web Service - Error - Cliente Found Response type of text/html;charset= utf-8, but expected text/html

    I am Upgrading From VS 2003 to 2005 I Installed VS 2005 in XP, With Vista SDK .Net FrameWork 3.0 My App Works using WEB Services, in XP all Works good But my Server is Windows 2000 IIS 5.0, I changed from .NET FrameWork 1.1 to 2.0, I have been Upgraded the WEB Services to 2.0 When I try to access to my Server ( Windows 2000 ) From my Client XP, an error occurs Cliente Found Response type of text/html;charset= utf-8, but expected text/html I Dont Know How to Resolve this Regards Santiago That generally means the web service is not running. You should start by accessing the .asmx page with a web browser. That should give you some information to start debugging with. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Microsoft.Xna.Framework.Graphics.GraphicsDevice does not contain a definition for 'BeginScene' ?!?

    I am confused, I keep getting an error telling me GraphicsDevice does not contain a definition for BeginScene. All the posts I find elsewhere (for example http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=684405&SiteID=1 ) show that as the method to use, as it was in MDX. Any idea what's going on here Thanks Well, as far as I have read elsewhere, I need to be calling .. GraphicsDevice.Clear GraphicsDevice.BeginScene //... do drawing GraphicsDevice.EndScene GraphicsDevice.Present This would make sense to me, as that is the same way it was done in MDX. However, maybe this has been changed. Do I not need to call BeginScene and EndScene any more I could always test this myself, ho ...Show All

  • SQL Server SQL Server 2005 Max Connections

    What is the max connections on SQL Server 2005 I ran @@Max_Connections and it said 32,767. I ran that on 3 different machines running 3 different servers and that was the same answer. It was my belief that the number of connections depends on the machine, and what it can physically support for resources. If that is in fact the max connections, can it be increased Thank you! That is the max user connection set for a sqlserver. It doesn't matter how much resources you'd throw at it. The max is the upper supported limit. Remember that each connection costs 106kb of RAM for sql2k5. ...Show All

  • Visual Basic Vb.Net[2003] Remoting/Inheritance Question

    I am deving a remoting solution and have hit a wall. here is what I am doing [Code] Public mustinherit class A Inherits MarshalByRefObject Private objects_ As ArrayList Public ReadOnly Property Objects() As ArrayList Get If (objects_ Is Nothing) Then objects_ = New ArrayList End If Return objects_ End Get End Property Public Function findByID(ByVal id As Integer) As BusinessObject Dim match As BusinessObject Dim possibleMatch As BusinessObject For Each possibleMatch In Objects() If possibleMatch.ID = id Then match = possibleMatch Exit For End If Next Return match End Function end class Public Class B inherits A #Region "Singleton Implementation" Private Shared Singleton_ As B Public Shared Property SINGLE ...Show All

©2008 Software Development Network