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

Software Development Network >> Anil Narayanan's Q&A profile

Anil Narayanan

Member List

c1t1z3n0
Billlong
Kazster
tenchyz
Kent Boogaart
NeTBaPb
NozFx
simsen
Tom_Liu
Vharshini
Hassan Ayoub
webflier
Chiarigos
Palle
Herru Perdana
Finch82
Grumpy McNasty
dgibbons
Jeremy Ramsbottom
Adam Boczek
Only Title

Anil Narayanan's Q&A profile

  • Visual C# Error highlighting

    Hello, I've been working with NetBeans IDE (Java) for quite some time and now I'm learning C#. What disturbs me alot in the Visual Studio 2005 IDE is, that non-syntax errors that would lead to a compiler error are not highlighted until I compile my source code. For example if I'd return an integer although the return type of my method is void, the IDE wouldn't highlight that error until I'd try to compile the source. That's quite annoying to me since NetBeans IDE always did that and I'm used to it. Now my question is: Am I missing an option Is there a way to activate it Thanks for any help! The IDE simply doesn't do the sort of semantic analysis that is required to catch these errors before compilation. ...Show All

  • SQL Server Max Worker Threads setting in X64 system.

    Hi All, As we know, the default max worker thread in SQL 2005 is 0. The default value for Max worker threads, 0, allows SQL Server to automatically configure the number of worker threads AT STARTUP. http://msdn2.microsoft.com/en-us/library/ms187024.aspx However, what's the actual max worker thread while the "max worker thread" option is configured as 0 Is it the one list in this table Number of CPUs 32-bit computer 64-bit computer <= 4 processors 256 512 8 processors 288 576 16 processors 352 704 32 processors 480 960 This table is got form the above article. Please kindly help me confirm This is ...Show All

  • Visual C++ The com component problem when upgrading from vc6 to vc2005?

    When I upgrading a vc6.0 project into vc2005, there is the following error:" Error 31 error C2039: 'BorderEffect' : is not a member of '_Chart' d: etrumform.cpp 1034 ". The code is as follows: _ChartPtr pChart; pChart->BorderEffect = BorderEffect_None; I check the definition of _ChartPtr as follows: typedef _com_ptr_t<_chart>_ChartPtr; I think that it is a com component here, can you tell me how should I solve this problem I appreciate your help. I'm a bit rusty at this COM business, so bear with me. The tlh file is a result of importing a type library and generating corresponding a header file that can be used against your C++ code. Since debug and release builds can differ, that's a ...Show All

  • Windows Forms Getting the DataRow that corresponds to the CurrentRow of a DataGridView

    Below is my code for getting the DataRow that corresponds to the CurrentRow of a DataGridView. The cast to (DataRowView) below is safe In my application, but it strikes me as awkward, and the whole method feels unnecessarily complicated. It seems like there should be a simpler way to do this. Am I missing something somewhere === code follows ===== DataGridView _grid; public DataRow CurrentRow() { DataGridViewRow vr = _grid.CurrentRow; DataRowView rv = (DataRowView)vr.DataBoundItem; return rv.Row; } Nope - that sounds right. The old DataGrid control was essentially the same way. The DataTable is wrapped up in a DataView because DataTable does not offer sorting, filtering, etc. And for each DataRow i ...Show All

  • Visual Studio Team System How to Buld Web Applications in TFSBuild?

    Hello, I have spent sometime trying to find a solution to this problem but have been very unsuccessful to date. Essentially I have changed from a Website Project to a Web App Project (I got this from VS 2005 service pack 1) which seems pretty straight forward and it builds on my local machine without a problem. However, when I try to build the solution using TFSBuild on our server I get the following error message: Solution: , Project: COENextGen.sln, Compilation errors and warnings D:\WebAppBuild\LatestBuild\COENextGen.Main\WebAppBuild\Sources\COENextGen\COENextGen.WebApp\COENextGen.WebApp.csproj(670,11): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplicati ...Show All

  • Visual Basic Conversion from vb.2003 to vb.2005

    I recently converted a large (40+ class library projects + the exe) project from vb.2003 to vb.2005. The conversion went well with a few warning message mostly consisting of object used before value is set and using a shared method from a class instance instead of the class. I corrected these warning messages. The method used for the conversion: copied the path containing the vb2003 version to a new path and opening the solution file in vs2005. I did not save a backup since I was using a new path. The class library projects reference other class library projects. For example I have a class library project containing commonly used functions such as Crude Oil volume correction, ticket calculation, etc. Other class library project reference t ...Show All

  • Visual C# Is it safe to remove a delegate inside its delegated method?

    This sounds a bit strange but it's a real world problem. Say I have an event Disposing and a method F() handles that event. obj.Disposing += new EventHandler(F); ... void F() { ... obj.Disposing -= new EventHandler(F); } Here's the problem, F() is going to remove itself from the invocation list of the Disposing event right at the time it's invoked. I don't find a statement for this in the spec. So could anybody tell whether this is designed to be safe or not guaranteed Thanks in advance. qrli wrote: I think I haven't made myself clear. sorry. The problem I'm thinking is like this: Say I have an event whose invocation list contains three functions {E(), F(), G()}. And the invocation o ...Show All

  • Visual Studio Team System Uninstall SP1 on data tier problem

    I'm having many of the same issues that several others are having when trying to replace SP1 Beta with SP1 RTM on TFS. However, this particular problem is on the data tier, which I have not yet seen documented. When I run the uninstall for "Microsoft Visual Studio 2005 Team Foundation Server (databases) - ENU Service Pack 1", it moves along nicely, and then fails. The log file for the uninstall contains the following lines: MSI (c) (E4:BC) [09:12:08:874]: Product: Microsoft Visual Studio 2005 Team Foundation Server (databases) - ENU - Update 'Microsoft Visual Studio 2005 Team Foundation Server (databases) - ENU Service Pack 1 (KB922996)' could not be removed. Error code 1603. Additional information is available in the lo ...Show All

  • Visual Studio 2008 (Pre-release) Simulating no-textwrap in RichTextBox

    Hi there, I read somewhere that the RichTextBox control doesn't have a property to turn TextWrapping on or off like TextBox, and that the only way to simulate TextWrapping turned off is to set the FlowDocument within the RichTextBox to a width that would accommodate the longest text line. Just wondering if there's an easy/elegant way to get the longest text line within the FlowDocument such that I can just bind that to the FlowDocument Width and thus simulate the no-textwrapping behavior. As background, I'm planning to use the RichTextBox as an Xml editor with syntax coloring, so I need the text content not to wrap. Thanks!!! Regards, Tenny yeah,, if you want to know the length you would hav ...Show All

  • SQL Server Query on Performance Point

    Hi, Wonder why there is no seperate thread for Performance point or maybe I missed out on it. Can anyone help me on this error I m getting while I m trying to publish the scorecards that I have done in Performance Point 2007 When I export the scorecard to sharepoint this is the error I get: The Microsoft.PerformancePoint.Scorecards.WebParts, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 assembly specified in a Register directive of this page could not be found. Can anyone please help me on this Is it the problem with the sharepoint site I created or is it related to some folder Thanks in advance ...Show All

  • Visual Studio Express Editions read/write reg_binary

    Hi, I'm hoping somebody may be able to help me out. I'm trying to read/write numbers larger than 255 into registry in reg_binary format (pairs of hex). As an example: I'm trying to write 315 and what I would like to see in registry is 3b 01 (little-endian architecture) but what I end up with is 33 00 31 00 35 00 basically each digit is converted in to byte.... I'm trying to write a plugin, so if I don't write it in the correct format, prog won't understand it... Any samples would be greatly appreciated. Thanks art If you just want to write a 'number' as a binary value, try something like this: Registry.LocalMachine.DeleteSubKey( "Software\Test" , False ) Dim regKey As RegistryKey = Regist ...Show All

  • Visual C# blocking 2 of the same exe's from runing

    im building a client/server application and I only want to allow the user to run one client per computer, what are some ways to block that 2nd client from starting up on a comp that is already runing a client thanks One of the best ways to do this is for your application to define a mutex that identifies your application to other copies of itself. Below is the code I run for this task: System.Threading.Mutex singleInstance; private bool AmIAlreadyRunning() { singleInstance = new System.Threading.Mutex(false,"MyApplicationNameMutex"); return !singleInstance.WaitOne(1,true); } With this I simply call AmIAlreadyRunning() to find out the answer to that question, if true ...Show All

  • Visual C++ String to integer

    I am using Visual Studio 2005, C++ and Net 2.0. I want to examine a String and extract an integeral value. Assume the following variables : String^ theInput = "Lat=75"; int lat; I want to examine theInput and store the value 75 in lat. Is there a simple, straightforward way to accomplish this A code sample would be appreciated. Gordon. Gordon Duff wrote: For the future can you tell me where C++ Visual Studio general programming questions should be posted This is the place for language questions such as the one you posted. For SDK, GUI, MFC and other technologies, along with older versions of Visual Studio, the newsgroups at http://msdn.microsoft.com/ ...Show All

  • SQL Server Between + '%'

    helloo I have this table Id Code -- -------- 1 10101001 2 10101002 3 10102001 4 10102002 5 60101001 6 60101002 7 60102001 8 60102002 9 60201001 10 60201002 11 70101001 12 70101002 I need to query this table by the following (select id, code from table1 where code between '1' + '%' and '7' +'%') to get all values of codes between (code starting with 1) and (code starting with 7) or for example: (select id, code from table1 where code between '602' + '%' and '7' +'%') ------------------------------------------------------------------------- Im not getting correct answers or let be specific in the second query im not getting codes starting with 7, im only getting codes >= 602 but less that 7, so 7 is not incl ...Show All

  • Visual C++ About this Forum

    I read the heading of this forum, which says " General questions about Visual C++ 2005, including the development environment, libraries, setup, debugger , samples, and documentation." Seeing the word "debugger," I asked a couple questions about the VS2005 debugger, and they were both moved to a debugging forum.  In which case, I wonder why the word "debugger" is part of the description of this forum.  Anyway, the questions being moved wouldn't be so bad, except that nobody has answered my questions on the much lower traffic debugger forum.  The questions can be found here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=658102&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=654161& ...Show All

©2008 Software Development Network