NP Rudra's Q&A profile
Visual C# array of bitmap
Hi,anyone can tell me the problem in the following code: Bitmap [] imagedataarray = new Bitmap [9]; for ( int j = 0; j < 10; j++) { imagedataarray[j] = new Bitmap (450,338 );//problem here in debugging } thanks ahead Frank Frank, Change your first line to Bitmap [] imagedataarray = new Bitmap [10]; In your existing code, your array has 9 elements (0 .. 8), but in your for loop you create 10 elements (0..9). Erik ...Show All
.NET Development XPath on xs:selector for a xs:keyref
Thank you in advance for any help you can give... I have a problem. What I'd like to do is define a relationship in an XSD between two tables, where the relationship returns the last row in the child table by default. I thought that the following should work: <xs:keyref name="project_taskproject_eventlast" refer="project_taskkey1" msdata:DeleteRule="Cascade" msdata:UpdateRule="Cascade"> <xs:selector xpath=".//project_event[last()]"/> <xs:field xpath="proj_task_id"/> </xs:keyref> The problem is that the .Net compiler for this returns an error saying that the xpath found in the selector is invalid. Now, I tried helping myself by plowing throug ...Show All
Windows Forms Read XML with XMLReader
hi all,I currently can't think of the best solution to check and do looping this xml data from the server. the xml will be something like below:-------------------------------------------------<item1> <date>12/3/2005</date> <subject>Aidilfitri</subject> <place>Ambon</place></item1><item2> <date>14/3/2005</date> <subject>Main paintball</subject> <place>Yogja Int.</place></item2>--------------------------------------------------and so on. the number of item is unpredictable, and it can be no item at all.currently i can read one item using xmlreader but any idea/suggestion how can i check there is item2 or item3 and so on, if any thanks. ...Show All
Software Development for Windows Vista Roles and next activities help needed?
Hi Let’s say I have 2 custom activities, VerifyIDActivity and VerifyOccupationActivity. They both have a ListenActivity with two HandleExternalEventActivities (eg OccupationVerified and OccupationUnverified) . I want the user user to select one or the other. Now I add my activities to a sequential workflow that workflows a new customer. I am using SqlWorkflowPersistenceService and the SqlTrackingService in my workflow runtime. I know that I can use the instance.GetWorkflowQueueData() to see which activity is blocking and then enable or disable buttons on the screen. The problem is that I that the user needs to open the customer first to see that it is waiting for a OccupationVerified or OccupationUnverified event. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Availability of console SDKs
Hello, I know that this question might be a bit off-topic in this forum, but I think this is the best place to get the answer. I've always been wondering, why the SDKs for gaming consoles are only available to large companies which are charged large fees for the SDKs. I mean: Shouldn't it be in the interest of the console publisher to make it possible to develop games for it for as many people as possible, considering that every game increases the popularity of the console So, I'd be thankful if someone could explain this situation to me. Regards Opfer Few reasons The largest being money, they charge alot for the SDK to make up for some of the loss from selling the console. If anyone cou ...Show All
.NET Development convert mp3 file to stream and convert again to file
hi i want to put binary file content to stream and transfer it as i need or leave it alone and then convert back to file how can i do that thanks in advance. This code sample supposes that u have an sqlServer database (test) with a table (mp3Table) that have two columns : ID (nvarchar(50)) and MP3 (binary(8000)). Be sure that the MP3 column length is enough to store the binary file. The maximul length allowed by sql Server is 8000 bits. I think it's not enough to store MP3 files. Anyway. ------------------------------------------ Inserting to the database ------------------------------------------ void InsertMP3(string name, string filePath ) { try { FileStream streamInput = new FileStream( filePath , Fil ...Show All
Visual Studio 2008 (Pre-release) DLinq EntitySet not remarked as Serializable Error
When I try to use the linq query result from DB and bind to the Asp:DetailsView, I got this exception, seams the EntitySet is not remarked as serializable. Server Error in '/Portal' Application. Is it possible to serialize an EntitySet object ...Show All
.NET Development How to wirte the Format code (use "K" instead of "000")?
I want use "K" instead of "000". eg change 1500 to 1.5K, Is there someone knows how to write the formate code in the " ###" float f = 1500; string formatedString = f.ToString(" ### "); JocularJoe , That's what I want indeed. Thanks for your help again! ...Show All
Software Development for Windows Vista Enumerating Audio Source Lines in Vista ?
hi, What Interface or API to use for enumerating Audio Source Lines (i.e Line IN, microphone, phone Line, CD Audio) In Vista Scott, i didn't got you, how you used EnumPartsIncoming(), when i'm usins it, i'm getting the Part Name as "Enable Digital OUtput", now where this came from and can you more details on how you got the other source lines (CD Audio, Phone Line etc ..) And are you able to control there volume programmetically ...Show All
SQL Server What is SQLDumper.exe doing ?
In the task manager, we only have 2 processes with username "sql_ssas_srv", and these are msmdsrv.exe and SqlDumper.exe This tells me that SqlDumper.exe is related to SSAS. SQLDumper.exe appears for a fraction of a second at a time, every couple of seconds. What is this process doing As described in the KB article at http://support.microsoft.com/Default.aspx kbid=917825 , you can use the Sqldumper.exe utility to generate a dump file on demand for any Microsoft Windows application. For example, you can generate a dump file for debugging an application problem when a computer that is running SQL Server 2005 is not responding to user requests. A dump file can be a mini-dump file, a f ...Show All
Audio and Video Development Help With DOM Creation From Script
I am having trouble with the code below. It emulates fine on the PC, but the Toshiba player is having problems with the createElement line. It is leading to a HDDVD_E_INVALIDCALL error on the player. Bookmark = null; results = new Object(); results["bookmark"] = XMLParser.parseString("<bookmarks></bookmarks>"); Bookmark = results["bookmark"].createElement("BOOKMARK_FILLER"); Bookmark.setAttribute("title","INIT_FILLER"); Bookmark.setAttribute("time","00:00:00:00"); results["bookmark"].documentElement.appendChild(Bookmark); I haven't tried the createAttribute method. I can give it a try when I am back in the office. I rewrote the code again. I am still getting the same error, in the same ...Show All
Visual Studio 2008 (Pre-release) Some Questions & Comments
Hi - i downloaded the CTP yesterday (seemed to have issues installing on XP Home - there is no Power Users group - i created a "Power Users" user, but some other issues have propped up). I'm reading the various bits to get familiar as this stuff is very cool indeed. I do have one question - high level at the moment and likely more detailed as i read/learn. Will some future release of SQL Server provide a "Object View" transform which would show an object view of the relational database which can be manipulated in the MMC as the relational data is, except providing an object view for those that prefer it. This would allow roles, sub-collections and so on to be easily created in SQl Server and converted to the relat ...Show All
Visual C++ can i fire ON_LBM_SELCHANGE manually?
i want to fire ON_LBM_SELCHANGE event after CListBox::SetCurSel() is invoked, can I thanks very much. hi, i have tried: SendMessage(WM_COMMAND,MAKEWPARAM(GetDlgCtrlID(),LBN_SELCHANGE),(LPARAM)GetSafeHwnd()); PostMessage(WM_COMMAND,MAKEWPARAM(GetDlgCtrlID(),LBN_SELCHANGE),(LPARAM)GetSafeHwnd()); SendNotifyMessage(WM_COMMAND,MAKEWPARAM(GetDlgCtrlID(),LBN_SELCHANGE),(LPARAM)GetSafeHwnd()); they all failed. thanks ...Show All
Visual Studio Message for Empty Crystal Report
In my Web application, I have Crystal Report that generates a report based on parameters selected by user. When a user enters parmeters which return no rows, I get report displaying report header, page header... etc. with no data. Instead of emtpy report, I would like to display a message saying e.g. "No records meet selection criteria". How can I accomplish this thanks Hi, I guess what melody is trying to suggest is that you manually query your database to see if there's a result. You can achieve this by using a Command and Datareader object. Just reply to this thread if you want a full sample. cheers, Paul June A. Domag ...Show All
Audio and Video Development Keyboard Mapping problems
I am trying to use a Microsoft keyboard with the Microsoft HD simulator, and the Ctrl and Alt keys do not simulate the player correctly. The keyboard I am using is connected via USB. (I am using a Dell computer, with USB connections only) The player, and the code, works fine on a different computer, with a keyboard that has a ps2 connection. I have tried changing the keyboard, doesnt help... For example: when pressing 'Ctrl m' it does not act as the menu button for the player. Please Help! Talia I know this one works with iHDSim: http://www.microsoft.com/hardware/mouseandkeyboard/productdetails.aspx pid=065 It does NOT require the media center OS, even though it ...Show All
