kulkarni's Q&A profile
Visual C++ ManagementObjectSearcher
why would the code below give me this: 'System::Management::ManagementObjectSearcher::ManagementObjectSearcher(System::String ^)' : cannot convert parameter 1 from 'System::Management::ManagementObjectSearcher ^' to 'System::String ^' String ^q = "SELECT Name from Win32_Service where Name = '" ; q += currentProcess->ProcessName; q += "'" ; ManagementObjectSearcher Searcher = gcnew ManagementObjectSearcher(q); do i really need to explicitly cast q and if so, is it the same in clr as it was in c++ so using the new 'hat' stuff it'd be something like: (System::String ^)q nm, i'm an idiot ;( it needs to be either: ManagementObjectSearcher ^ Searcher = g ...Show All
Smart Device Development Windows Mobile 5.0 ppc phone edition
I have a VPA compact, running a German version of Windows Mobile 5.0 ppc phone edition. Is there a way were i can change this to English. Thanks yes, 1. if you have the source you can change it yourself, or 2. if the app is already set up for localization, then its use of language should be driven by the culture/locality settings on the device. unfortunately I'm guessing this is not the case -- assuming your device is already set up for English/US, the app should already display English if it's engineered to do so. ...Show All
Visual Studio Nested Designer Surfaces
Is it possible to nest one design surface within another I want to design a language that enables hierarchical modeling where one design surface has high-level shapes that represent other models which have their own language and design surfaces. Ideally, I'd like the user to be able to double-click on a high-level shape and open the nested design surface, etc. How would I approach this using the DSL tools If my gut is correct, the best way to do this would be by selectivly hiding and showing nested "children". They would still be there on the diagram surface, just not shown. You would probably have to write some shape logic code to handle layout as well. How close did I get Gareth ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Components w/ different timings?
I like the model of specifying Game.TargetElapsedTime and responding to update events, but can I conrtol this on multiple components For example, let's say that I want to randomize the weather conditions in my game. I'd like this to update every minute or so. On the other hand, some things need to update every frame (ike controller input or sprites positions). One way to handle this would be to simply have methods like UpdateWeather() , and UpdateSprites() and so on, and have multiple if/then blocks in my main Update() code that determine whether it's time to call one of the other update methods. However, it'd be nice to offload this monitoring somehow so I could just declare in my init code how often certain components get updated. A ...Show All
SQL Server unable to access "install windows components"
I didn’t know where to put this so sorry if this is not the appropriate place. I am running Windows XP pro sp2 with visual studio 2005, ms sql server 2005, and a number of other applications. My problem is that I am not allowed to install new windows components(I want to install IIS). When I try to access from either control panel, add/remove programs, Install new windows components or directly from the winXP cd I get the following error in a pop-up form and I can only press "OK": "Another copy of Setup is already running. Complete the other Setup or restart Windows." I am not running the instance more than once. I do this as the first thing after a restart with the same result. When looking at the processes in the task manager I cant see ...Show All
SQL Server SSIS Data Flow task fails to load all text from flat file
Hi Guys, I have a flat file which is loaded into the database on a daily basis. The file contains rows of strings which I load into a table, specifically to a column of length 8000. The string has a length of 690, but the format is like 'xxxxxx xx xx..' and so on, where 'xxxx' represents data. So there are spaces, etc present in the middle. Previously I used SQL 2000 DTS to load the files in, and it was just a Column Transformation with the Col001 from the text file loading straight to my table column. After the load, if I select len(col) it gives me 750 for all rows. Once I started to migrate this to SSIS, I allocated the Control Flow Task and specified the flat file source and the oledb destination, and gave the output column ...Show All
Visual Studio Express Editions Help Search Requests Failing
Hi, When I search help in the express versions of the 2005 IDE's I keep getting an error 503 service not available for all online search result options. It has always worked before. Is the help service down or is it something I am doint wrong Thanks Not sure if it might be bad connection for you to the online help. You can change you preferences by opening help and then going to Tools->Options... There you can change to try local first or only under Help->Online ...Show All
Visual Studio Tools for Office does visual studio tools for Microsoft Office......
hi, this is srichand. does Visual Studio Tools for Microsoft Office provides add-in plugins for outlook.... i have VSTO(SE) up on installing it i got an error regarding the registry key where can i find solution for that.. thanx one and all... srichand Hai Peter, Thanks for responding me. well i have downloaded the VSTO SE from microsoft site and i installed that on my visual studio 2005.. upon installing that i displayed installed successfull.. but when i start to run the add on component in visual basic>office> OutlookPlugin.. it failed to displayed... further it displayed a message which is as followed.. CLASS NOT REGISTERED( Exception From HRESULT:0x80040154 (REGDB_E_CLASSNOT REG)) so Mr, Peter If there is an personal id of ...Show All
.NET Development XslCompiledTransform and xml namespace
Having trouble performing a XslCompiledTransform on an xsl file because the xml file has a xmlns="http://www.abc.ie/cv/1.0" declared within it. Is their any way around this like declaring a XmlNamespaceManager like what is available for XmlDocument. here is the xml file < xml version="1.0" > <cv xmlns="http://www.abc.ie/cv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="Schema.xsd"> <personalDetails> <name>Joe Soap</name> </personalDetails> </cv> You have to define the "cv" prefix and bind it to the " http://www.abc.ie/cv/1.0 " namespace: <itext xmlns:xs ...Show All
Visual Studio Express Editions What is the difference between VB Express, VB Studio and VB .Net?
The title says it - what is the difference between these Would I be right in saying that VB Express is a stripped down version of VB (like outlook express is a stripped down version of outlook) - and that VB.net is VB with the .net framework incorporated into it Also, what is visual Studio Thanks for your advice!!! Steve Here's a way to think of Visual studio .... take VBE, C++ express, C# express and Add JSharp plus a few IDE enhancements and you'd have Visual Studio. VBE has had a little bit stripped out of it, a couple of templates. The ability for the IDE to connect to a remote datasource and a few displays like SHow Stack. I'm a very demanding user and there was only one thing ...Show All
Windows Forms ListBox - Drag & Drop, dragging problem
Hi I have a ListBox control full of items. I've implemented the code for dragging (moving) one item around within the control. But now I want to have an "insertion separator" while dragging an item. With "insertion separator" I mean some kind of horizontal line between two items, where the new item is to be placed if dropping. Anyone Kind Regards Did you find solution to this I need to do the same. :) I heard, that ListView show separators automatically, but didn't try it yet. ...Show All
SQL Server Not getting the return value from Stored Procedure.
Enclosed is the stored procedure: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo] . [InsertModule] ( @Module nvarchar ( MAX ) ) AS Begin Set NOCOUNT ON if exists ( Select 1 From Modules Where Module = @Module ) Begin return - 1 End ELSE Begin INSERT INTO [dbo] . [Modules] ( [Module] ) VALUES ( @Module ) RETURN 0 End END This is the calling program: private void SubmitButton_Click( object sender, EventArgs e) { sqlConnection1.Open(); if (Module.Length > 0) { SqlCommand cmdModule = new SqlCommand ( "InsertModule" ,sqlConnection1); cmdModule.CommandTy ...Show All
SQL Server Transact-SQL equivalent of MySQL LIMIT
In mySQL for example i could have: ORDER BY ID DESC LIMIT 5,25 where it would start from 5'th row found and return up to 25 rows. How do i achieve the same in Transact-SQL The LIMIT 5, 25 part. Now i have this but its complaining about line 23 near 'WHERE'. Any ideas SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE getMessages @username varchar ( 10 ), @startFrom int AS BEGIN SELECT ID , Sender , Subject , Date , New , Unread FROM ( SELECT ID , Sender , Subject , Date , New , Unread , ROW_NUMBER () OVER ( ORDER BY ID DESC ) [RowNumber] FROM Messages WHERE Username = @username ) WHERE ...Show All
SQL Server SQLServer 2005 Problem
Hi! I want learn about ADO.NET, I'm trying to start a SQLServer 2005 Express with a example database for practicle with it, but i can't connect to configure the db. I'm tried dowloading a set of examples from Microsoft.com, but whe i execute some example aganist the db always get the same error: C:\DB\>sqlcmd -E -i OrderingServiceScript s\SetupOrderingServiceProgram.sql HResult 0x2, Level 16, State 1 Named Pipes Provider: Could not open a connection to SQL Server [2]. Sqlcmd: Error: Microsoft SQL Native Client : 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 allow re ...Show All
Software Development for Windows Vista looking for web editor for business processes for WWF
Currently you can visually model workflows by using Visual Studio or by implementing graphic editor to WinForms apps. Does anyone know about Microsoft's plans on web editor Achintya, I'm looking for something exactly like that myself... I haven't had any luck either. Please let me know if you ever find anything - jsouth(at)dolphinmsds(dot)com My requirements are slightly less stringent (either a Desktop or a Web app will work) but I have the same style of requirements for the activities... -John ...Show All
