moflaherty's Q&A profile
.NET Development Calling Indexer using Reflection
What is the best way to call indexer using reflection Currently I'm using Type.GetMethod("get_Item", ...) and then method.Invoke(obj, args); It works fine, except I have to special case for Array object, where I cast to array an call Array.GetValue(index) Is this the best way What if someone uses IndexerNameAttribute, will it change get_Item to different name Thanks. You can get a PropertyInfo for properties defined for a Type similar to how you're getting the MethodInfo: PropertyInfo prop = typeof (Example).GetProperty("SomePublicProperty"); If you want to retrieve non-public properties, ...Show All
.NET Development Invoking NT Service Remotely through a Java program
Dear All, I have to develop an application, for providing interoperability between a Java application and Windows NT service. I have a three tier architecture in mind to solve this problem. I'll try to explain my idea as below (and would highly appreciate if somebody could please help): The function of the three tiers will be: 1) Tier 1 ----- This will be an client Java application which has to finally call the "services/data objects" running on a Windows NT machine. 2) Tier 2 ----- At this tier, Microsoft Personal Web Server (probably version 4.0 will be used. I am not ...Show All
Visual Studio Express Editions listviewitemcollection
Hi Guys I'm just starting out with c#, and I'm looking at a listview, now in vb I would look at the collection in the listview using the ListViewItemCollection, I know its there some where (I can find it in vb) but c# does not list it, any ideas where I should be looking. I've tried (and where I would expect to find it) this.listview1.ListviewItemCollection but its not there. Thanks Duncan Hi Got it, its because I'm use to vb, c# is all backwards compared to vb I should have said listview.listviewitemcollection item = this.listview.items; ...Show All
Smart Device Development Windows CE 4.x Emulator does not work correctly if you have PAE mode enabled
I am attempting to develop a smart device application but the Windows CE 4.x Emulator will not load. The file is VPCAppSv.sys. I have verified that PAE is not enabled. Any help would be appreciated. My wallet does not go deep enough for the technical help. I setup follow this http://support.microsoft.com/kb/891667#appliesto but it not work. ...Show All
Visual C++ VS2005 C++ project: linkage errors under MultiThreaded-DLL runtime lib', but compiles fine under Multithreaded-DEBUG dll ?!?
Hi, I am in the process of moving our development to VS2005 from VS2003. One of our C++ projects now runs properly in debug mode, and in release mode when using the multithreaded-debug-dll runtime libs, but does is fails during linkage when in release more and using the multithreaded-(release)-dll [which it is supposed to]. - The project combines managed and unmanaged code. - The error repeats itself both in the original managed C++ syntax, and now in the new C++/CLI syntax. - Other C++ projects I have moved to VS2005 do not have this issue. The linkage error is below in italic. Any ideas ! Thanks, 5spot MSVCMRT.lib(mstartup.obj) : error ...Show All
Windows Forms Closing Processes
Do you guys know of a good way to close a process, such as an adobe acrobat process that has been started programmatically Here is some code I've found (for starting and printing a pdf file), and it works fine, but it leaves the acrobat reader running and I want to be able to close it out. I believe getting the process ID and closing&nbs ...Show All
.NET Development Table Adapter Insert return value
Hi, I am using the new table adapter in Visual Studio 2005 and C#. Its GREAT! I just can not figure out how to configure the Visual Designer to return an @@Identity value to me from a newly inserted row. My code fragment is OrderDataSetTableAdapters.OrdersTableAdapter orderAdapter = new OrderDataSetTableAdapters.OrdersTableAdapter(); orderAdapter.InsertOrderHolder ( OrderDS.Orders[0].EmployeeID, OrderDS.Orders[0].OrderDate, OrderDS.Orders[0].OrderPromiseDate, OrderDS.Orders[0].OrderStatus ); After the Insert completes I need the Indentity Seed column value returned which in my ca ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WinCE 5.0/DirectX 9-based Dreamcast game?
(I did a lot of research on the topic, but since i'm not a developer, i may be wrong about a lot of things.) http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnce21/html/dxinwince.asp -- This article is very outdated, but a part of it got my attention. "The Dreamcast console does not actually ship with Windows CE built in. The operating system, DirectX, and the game itself are built as one image and stored on the GD-ROM. When the GD-ROM is placed in the Dreamcast console, the boot ROM loads the bootstrap code, which then loads the Windows CE operating system. This way, there are no versioning issues. You ship the v ...Show All
.NET Development memoryLimit in framework 2.0
in framework 1.1 i had this in the machine.config file: <processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLi ...Show All
Windows Forms What image formats are supported for toolbar controls in studio 2005?
What image formats are supported for toolbar controls in studio 2005 Same as those supported by System.Drawing/GDI++. That would be at least png, jpg, bmp, gif and tif. ...Show All
.NET Development insert into a table using DataSet
I'm trying to insert a row into a table using a DataSet, and having no luck. Here's what I have so far: DataSet ds = new DataSet(); SqlDataAdapter sda; XmlSerializer ser = new XmlSerializer(typeof(myClass)); StringWriter sw = new StringWriter(); ser.Serialize(sw, newdata); & ...Show All
Visual Studio Express Editions Let's go to work on an FAQ for this Forum
The concerted work that goes on here in really impressive. I'm also thinking about a mass mailed note I received from S. Somesegar, corporate VP of Microsoft development. He said that MS Engineers were not alone in building VS2005. Customers had a lot to do with it to make it as neat as it is. Continuing in that vein, I though it may be a contribution to see if we can't put together an FAQ that will take care of a large number of the routine questions. If you'd like to contribute to this let's try the following: In a post to this thread, add: 1.) A Title 2.) A fully stated question in FAQ form ...Show All
Visual C++ linking C++ with mySQL
helo all, I don't know if that is the right place to post my comments, since the site is very large anway, how could I link C++ with MYSQL THanks all One big thing, you have the libraries and headers to program mysql come with mysql itself, or at least the older versions had them. So why would you have any problems unless you want to explicitly have ODBC OleDB or ADO. ...Show All
Visual Studio Team System Code Coverage loses it's mind
Please refer to http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=FDBK40689 . I'm now seeing this on other code - non-generic code, so I doubt the original problem has anything to do with generics. Has anyone else seen this kind of behavior Is there any solution available Having the coloring completely scrambled makes code coverage quite a lot less useful! Update: Here's the new link on Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=122653 Hey Carl, I just went and took a look at the MSDN Feedback issue that you filed. Looking at the n ...Show All
Software Development for Windows Vista WWF and Business User
Hi, I would like to have clarifications on the usage of WWF in a business environment. Lets take a scenario in a company XYZ. The company XYZ can have multiple internal processes. for example ... 1. Leave application processing 2. Sales Order Processing 3. Purchase Request processing Consider that we have one .net application managing these processes. And all these processes involve human approvals. How should the business user go about creating the workflows How should the developer map workflows to specific business processes Can you please direct me to a sample if there is one. thanks in advance -karthikeyan ...Show All
