rumo's Q&A profile
Windows Forms ShotDown Windows
Anyone knows how to shut down windows I used ExitWindowsEx from "user32.dll" in Visual studio 2005 but it didn't help. it returned 0. what should be entered as dwReserved Please Help..... The second parameter is dwReason, and it may contain any of the constants listed here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/sysinfo/base/system_shutdown_reason_codes.asp Regards, ...Show All
Windows Search Technologies Using and querying custom property sets/items
Hi In terms of the Windows Indexing Service and IFilters you can register custom property sets and return data for these custom properties when your IFilter is called. In the MSN-DS (WDS) dev guide at http://addins.msn.com/devguide.aspx they mention that your IFilter should return values for all properties that it finds for the item types it indexes. However the docs go on to state that : For a complete list of supported properties u ...Show All
Visual Studio Team System Product Studio to VSTS Work Item Migration
Is there any app out there to migrate Product Studio work items to VSTS Thanks. Contact me. We use it to migrate our current teams and it works well. We're also building a tool that will walk the PS admin data and create a currituck workitem type. ...Show All
Visual Studio 2008 (Pre-release) ContentControl or Canvas
Hi, When creating custom controls, is it better to inherit a canvas,contentcontrol or usercontrol I would like to know if there is any performance/memory benefits from inherting from either one of them. Jaco Well, It heavily depends on what you wanna do with your custom control, and what kinda functionality you want your custom control to have. basically, if you wanna have a control which only allow one ...Show All
SQL Server Cannot install 'SQL Server 2005 Express Edition with Advanced Services'
I tried to install 'SQL Server 2005 Express Edition with Advanced Services'. First, I uninstalled the old version thru Add/Delete Programs in the Control Panel. My first problem was I didn't have IIS installed on my computer, but, I could not find it in the downloads section. Then the installation aborted because old version databases were in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data. But, it would not let me delete them, sa ...Show All
Visual J# Get process name using J#
For example if I want to check if alg.exe is running is there any simple way of doing that Like if you can search for a process and return true or false if it is running or not. Hope anyone can help me :) Hi there, There are two ways, that I know of, that you can do this. First Way ======= This way involves grabbing all the processes from your computer and iterating through all the running processes (the call ...Show All
.NET Development Calling code out of process
Hi Is it possible to invoke an interop wrapped COM component out-of-process from C# 2.0 Of course. That is how Office and many other COM servers are implemented. The RCW is inproc in the app domain while the COM server runs out of process. You shouldn't have to do anything special to get this to work. Note however that it is dependent upon the COM server so if the COM server is not configured for out of proces ...Show All
Windows Forms JIT Debugging
Ok im still new to this but how in the world do i enable JIT debugging on my windows form application and where do i do it. i have the following code <configuration> <system.windows.forms jitDebugging="true" /> </configuration> But i place it in my form but it doesn't work anyone know what i should do or where i should place it Hi, I think things have changed with Beta2. Did some R&D and ...Show All
Visual C# read INI file from c#
Hi Any one know if there a way to read INI format from C# thanks Avi. Avi, You'd have to import GetPrivateProfile* Win32 APIs. But, if possible try to move away from INI files - they're deprecated. HTH ...Show All
Visual FoxPro frmpanemanager.setpane
I get this error message from an OLE when I try to open a form with run command in interactive mode. The debugger says that the source code is unavailable. The call stack is as follows: frmpanemanager.setpane frmpanemanager.init ClassLib: forxpaneengine.fxp The file path leads to a directory in C:\\documents and settings\\..... That's it. I have never seen this object before. What can I do about it Thanks. << open a form ...Show All
Visual C# Exception handling shortcuts?
Say, I have one class SampleClass have 20 methods named Method1, Method2, Method3, ..., all these methods need to be enclosed by a try{}catch{} block. Obviously, this is not that pleasant to do it 20 times. My question is therefore, is there any way that I can just set up a try{}catch{} block to catch all the exception occured in the SampleClass One possible way, is to provide a public method, within which the 2o methods are invoked. Is this wa ...Show All
Visual C++ error LNK2019, LNK1120 : win32 API programing by vc++2005 beta2
i am beginer in c++. i wanna learn win32api. so, i tried below example using vc++2005 express beta2. but i met following 2 errors : Error 1 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup MSVCRTD.lib Error 2 fatal error LNK1120: 1 unresolved externals c:\test\parse\winapitest3\winap ...Show All
Microsoft ISV Community Center Forums Problem with VBA script
Dear all, Can you please help me with the following problem I wrote a script to get the data out from the SQL Server and then format the cells. However, it seems it doesn't run the part B to format the cells. Any idea Thanks. 'Part A : Get the data from the SQL Server sqlstring ="select custid, custname from customer" connstring = "ODBC;UID=uid;PWD=p123;DATABASE=prod;DSN=HK0001" With ActiveSheet.QueryTables.Add( ...Show All
.NET Development System.TypeInitializationException and managed C++ library
We are trying to migrate to Visual Studio 2005 and .Net 2.0. Our application is 95% written in C# with 2 libraries in Managed C++. When we try to reference one of the Managed C++ libraries an exception is thrown which is below: I'm pretty positive that all the dependencies are in the same directory. I've used depends and fuslogvw to verify that all the necessary libraries are there. The managed C++ library ...Show All
Software Development for Windows Vista How can i get refference of Workflow Runtime in workflow
hi need a refference to a service for which in need the refference of the runtime. How can i get the reffernence to current runtime OR whats the equivalent code for WorkflowRuntime wr = WorkflowWebRequestContext.Current.WorkflowRuntime ......... in WF Also is there any way to set a state dynamically I tried SetState ss = new SetState("StateName") ss.TargetState = "ExistingStateName" but it doesnot work. ...Show All
