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

Software Development Network >> narasiman_jayachandran_2b5374's Q&A profile

narasiman_jayachandran_2b5374

Member List

ivods
seu
eriks70012
Kausar Parveen
Prashant jain
dataMonkey
polymorphicx
gavin_1724
Scurvy Lobster
Leceur
Tomas Restrepo
AIMDBA
SoniaJulka
TBeadle
GDavids - SAO
IGiberson
spree
flash.tato
prg
WoFe
Only Title

narasiman_jayachandran_2b5374's Q&A profile

  • .NET Development Generic sorting of list/array with XML rule set

    Hi, I was wondering if someone has some input on what I'm trying to do here: I want to have an XML that declare a custom sort order for items in a list like: <Item> <Index>0</Index> <Value>X</Value> </Item> <Item> <Index>1</Index> <Value>A</Value> </Item> So, somehow I pass that XML rule set to the IComparer and it sorts an list like this [A,X,B] to [X, A, B]. Anyone has an idea how to implement something like this in a generic way so I can add an infinite amount of items to the sort order XML Thanks, Tom Hi, I think this is what you are looking for: class MyClass < T > { private List < T > ...Show All

  • Visual Studio Express Editions Connecting to SQL Server not a Database file

    I have recently downloaded VB 2005 Express and have been developing an application in it. I have gotten to a point where I want to create a connection to SQL Server 2000. I am able to do this by writing out the code: Dim conn As New SqlConnection conn.ConnectionString = "server=SQL_Server;database=Web;Trusted_Connection=True" Dim adapter As SqlDataAdapter adapter = New SqlDataAdapter( "SELECT * FROM tblBedStatus" , conn) Dim dsBedStatus As New DataSet adapter.Fill(dsBedStatus) I am not able to create a connection to the SQL Server by using the "Add New Data Sources". The only Data Sources that I have listed are "Microsoft Access Data File" and "Microso ...Show All

  • SQL Server Cursor-based to set-based solution

    Anyone here who could help me convert this SP of mine to a set-based one IF EXISTS (SELECT name FROM sysobjects WHERE name = 'IncomeCodes' AND type = 'P') DROP PROCEDURE IncomeCodes GO CREATE PROCEDURE IncomeCodes AS SET NOCOUNT ON DECLARE @income_code int, @totalcost money, @eyeglass money, @expenditure money DECLARE income_cursor CURSOR FOR SELECT tabEGPurchase.Code FROM tabEGPurchase INNER JOIN tabEGPayments ON tabEGPurchase.Code = tabEGPayments.Code INNER JOIN tabEarningRecords ON tabEGPayments.IncomeCode = tabEarningRecords.Sequence LEFT OUTER JOIN tabFrameList ON tabEGPurchase.EyeglassCode = tabFrameList.ControlCode WHERE (DATEDIFF(Month, tabEarningRecords.DateEarned, GETDATE()) > 0) GROUP BY tabEGPurchase ...Show All

  • Visual C++ How to edit .dsp manually in vc?

    How to edit .dsp manually in vc I appreciate your help. Hello Asked on another thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1100790&SiteID=1 Thanks Damien ...Show All

  • Visual Studio Question: How to intercept Compiler Errors and Warnings?

    Hi all, I've tried asking questions on the "Extensibility" portion of the forum, but no one is answering, and I'm running out of ideas. How can I get access to the raw compiler error information I'd like to be able to keep track of the error numbers along with information such as the line, the file, and the description of the error. It looks as if the Engine class allows you to register a Logger class with it, which would give me access to the error/warning events I'm interested in. However, after I register a FileLogger or my own Logger class, I do not receive any of the associated events. My custom logger does enter initialize and shutdown, and the filelogger does create an output file, but neither seem to be getting other events they ...Show All

  • Visual C# Array of struct A in struct B!

    Hi struct A { int x; int y; } struct B { int z; A [] tab=new A[14]; //cannot have instance field initializer in struc ...I know! } but i need an array of struct in another struct thanks. struct B { int z; A[] tab; public B(int intZ, int tabLenght) { this.z = intZ; this.tab = new A[tabLenght]; } } More clear now ...Show All

  • SQL Server SSIS Port

    Hi: Just wanted to find out what port does SSIS utilizes when communicated with a remote SQL Server. Is it 1434, 1433 or something I have a SSIS Package on Server 1, which which does inserts on SQL DB on Server 2. I think between Server 1 and Server 2, some ports are being blocked because the 2 servers are separated by a firewall. When SSIS makes connection to Server 2 (SQL), what ports does it use Also, any other tips would also help. Here is the error I am getting: Cannot connect to 10.xx.xx.xx. =================================== An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not al ...Show All

  • Visual Studio Express Editions I am having trouble finding the proper Data type to store X Y coordinations Please Help?

      I am having trouble finding the proper data type to store an e.X e.Y coordination values. Code Example Below- The mySelectNode Variable needs to get the selected node coordination what data type would I use to Declare this Variable /* Get the tree node under the mouse pointer and save it in the mySelectedNode variable. */ private void treeMnu_MouseDown( object sender,       System.Windows.Forms.MouseEventArgs e)   {    // this Variable needs a declared Data Type--> mySelectedNode = treeMnu.GetNodeAt(e.X, e.Y);    if (mySelectedNode != null && mySelectedNode.Parent != null )     {      treeMnu.S ...Show All

  • Visual C++ noobs r us: need a basic thing to get me started

    i need a basic code or program to learn off and change so i can learn it more. i feel so noob asking this but meh There is nothing wrong with that code except it needs this line (#include "Stdafx.h" ) up at the top, right above (#include <iostream> ) This is what the code should look like: // i/o example #include "Stdafx.h" #include <iostream> using namespace std;   int main () { int i; cout << "Please enter an integer value: " ; cin >> i; cout << "The value you entered is " << i; cout << " and its double is " << i*2 << ".\n" ; return 0; }   Open a fresh copy of Win32 Console Application and when all of the code comes up ...Show All

  • Visual Basic Constant or not to constant

    I was wondering is Constant better than inline code for example: public class example const MyHello as string="Hello world" private sub Button1_Click(........) messagebox.show(MyHello) end sub end class To this: public class example2 private sub Button1_Click(........) dim MyHello as string="Hello world" messagebox.show(MyHello) end sub end class Forgive the coding simplification, just typing directly what i think is needed. I was planing on using it to be able to program a different language in a future version. Unless if there is another way to do multiple languages and a basic tutorial on how to do it would be apreciated. ...Show All

  • Visual Studio Express Editions How can I destroy a COM object?

    I am using the FilgraphManager and I can't figure out how to get rid of it after I use it. The following simple code shows my problem. I render a video with the Command1 Button and start the Graph playing. I would like to destroy the Graph with the other Button; Button1. Setting the FilgraphManager to Nothing just breaks my reference to the Graph. Option Strict Off Option Explicit On Friend Class Form1 Inherits System.Windows.Forms.Form Private FileName As String Private FGM As QuartzTypeLib.FilgraphManager Private Pos As QuartzTypeLib.IMediaPosition Private Vid As QuartzTypeLib.IBasicVideo2 Private VidWnd As QuartzTypeLib.IVideoWindow Public Sub RndrFile() Me .CommonDialog1Open.S ...Show All

  • Windows Search Technologies WDS 3.0 Beta 2- Rebuilding index by itself and more

    Hey Guys, Brandon pointed this as the right place to post some concerns/issues with the WDS 3.0 beta 2 Few issues with WDS 3.0 beta 2: - When adding a new file extension to be indexed, WDS prompts to full rebuild of the index. This is a very bad behaviour especially, like me that has more than 100,000 indexable items. (anyway to avoid that ) - The WDS is rebuilding the index itself without any user intervention - The current pdf I-filter are not capable to index within the pfd files. - The configuration GUI interface still very rough, clearly need some refining. That's it for now. Thanks, Marcus   Thanks Paul. If you need I can send you a copy of the .xlsx files that are not being indexed. Plea ...Show All

  • Visual Studio 2008 (Pre-release) Clocks getting out of sync

    Hi. I have a ParallelTimeline, containing several MediaTimelines. I need to allow the user to add/remove MediaElements, Pause, Resume, etc. If I get it correctly, every time I change the parent timeline, I need to recreate the clock tree, in order for all sub timelines to be syncronized. So on every user change, I call CreateClock on the ParallelTimeline, and iterate over its Children, assigning the generated sub MediaClock to the various MediaElements. This works fine, but when I have media failure on one MediaElement, the whole ParallelTimeline stops working. I.e. when I call CreateClock again, no media is played. What is going wrong Thanks. Thanks for your post. To answer your ...Show All

  • Audio and Video Development How pull filter and push filter works?

    Does anyone know where is the good documents for Direct Show filters design tutorials I want to know how a-sync filter, pull, and push filter work. Thank you, This forum is for Media Foundation questions. For DirectShow questions, try the DirectShow forum: http://forums.microsoft.com/msdn/showforum.aspx forumid=129&siteid=1 Regarding filter design, have you read the SDK docs http://msdn.microsoft.com/library/en-us/directshow/htm/writingdirectshowfilters.asp There are two sample push filters in the Windows SDK, "Ball" and "PushSource." For a pull filter, look at the "Async" sample. These are all located under Samples\Multimedia\DirectShow\Filters in the SDK. Also, Geraint Davies has a s ...Show All

  • Architecture Any good Ntier real world (architecture)examples available for download?

    Hi all, Everybody talks about designing a good architecture Talking between tiers in stateless manner avoid chatty objects use interfaces Use factory patterns etc etccc But no one has published or uploaded some generic examples of different architectures so that you can see how things really work.(A complete solution)with different projects in it. Just tired of reading theory and not seeing any examples. Am I wrong Could anybody point me in the right direction or do i have to reinvent the wheel If I have to it will probably be a square one Thanks and apologies for moaning. hi Thanks for your time and links. I will have a go at this one.If you know of any other links ...Show All

©2008 Software Development Network