Your best source of information and news about xp, xp and hardware on the internet

Vista ARTICLES TOP 50 Spyware Virus Vista SOFT Vista HELP

c#

You are currently browsing the articles from MS Windows Vista Compatible Software matching the category c#.

Clipboard Chaos!

Note: this content originally from http://mygreenpaste.blogspot.com. If you are reading it from some other site, please take the time to visit My Green Paste, Inc. Thank you.

OK, so perhaps chaos is a bit of a harsh word here. But the clipboard was recently driving me nuts! All I was trying to do was copy some text to it, and the operation was failing. Of course, as it was an ad hoc app, I didn't have any kind of error handling. The app worked just fine on one system, but running the app on another system (a virtual machine) consistently resulted in failure to copy the text to the clipboard.

Ultimately, I was able to determine what process was preventing my app from putting data in the clipboard, but I haven't yet found a decent workaround for when the problem happens. It's not critical for me, as the act of copying the text to the clipboard is more of a nicety than a requirement.

Anyway, using P/Invoke and System.Diagnostics, I found that vmusrvc.exe - the Virtual PC "Virtual Machine User Services" - had the clipboard open. Using the timestamps from Process Monitor's Profiling Events

...
Click to continue reading "Clipboard Chaos!"

Written by «/\/\Ø|ö±ò\/»®© on March 25th, 2008 with no comments.
Read more articles on P/Invoke and GetOpenClipboardWindow and System.Diagnostics and Clipboard and GetWindowThreadProcessId and Process Monitor and c# and processes and Virtual Machine and otherSoftware and Virtual PC.

Use C# to Find What Services are Running in a Process

Note: this content originally from http://mygreenpaste.blogspot.com. If you are reading it from some other site, please take the time to visit My Green Paste, Inc. Thank you.

Recently, an individual going by the moniker 'hi' posted a comment to Setting the Priority of a Service Process via Script:

How would I, if I want to, find which services are part of a particular svchost.exe? Can in be done in C#?

Thanks!

I replied via comment, but one has even less control over formatting in comments than one does in the actual blog posting, so I figured I would post the response here as well.

=================

Tasklist.exe with the /svc param can tell you, as can Process Explorer. You can also inspect the registry to determine what services would load with what SVCHOST group (see "Troubleshooting Performance Issues with Automatic Updates" for more details).

As far as C# code, the following requires a reference to System.Management. Invoke the program, passing it the process id of the process you're curious about, and it will output the services running in that process.

using System;
using System.Management;

namespace MyGreenPaste
{
class
...
Click to continue reading "Use C# to Find What Services are Running in a Process"

Written by «/\/\Ø|ö±ò\/»®© on February 7th, 2008 with no comments.
Read more articles on Process Explorer and tasklist and WMI and SVCHOST and otherSoftware and c# and processes and services.

C# Memory Leak Torpedoed Princeton’s DARPA Chances

In a case of 20/20 hindsight, Princeton DARPA Grand Challenge team member Bryan Cattle reflects on how their code failed to forget obstacles it had passed. It was written in Microsoft’s C#, which isn’t supposed to let you have memory leaks. ‘We kept noticing that the computer would begin to bog down after extended periods of driving. This problem was pernicious because it only showed up after 40 minutes to an hour of driving around and collecting obstacles. The computer performance would just gradually slow down until the car just simply stopped responding, usually with the gas pedal down, and would just drive off into the bush until we pulled the plug. We looked through the code on paper, literally line by line, and just couldn’t for the life of us imagine what the problem was.

Read more here

Written by admin on November 17th, 2007 with no comments.
Read more articles on c#.

Complete .NET Portability with Wine & Mono?

Mono is the open-source version of Microsoft’s .NET Framework. It implements most of the backend framework features, but unfortunately, falls flat on its pretty little face when attempting to display the user interface - which is what desktop apps are all about.

Wine on the other-hand, is a Linux port of (major parts of) Microsoft’s Win32 library - the core dependencies of the Windows development libraries, and more importantly, the win32 interface elements. With Wine, you can run many traditional C++ win32 executables on Linux, with certain limitations.

Mono’s biggest stumbling block is the GUI and .NET programs that use P/Invoke to call native non-managed win32 dlls - Mono is a pure .NET environment, and can’t handle them. But from the description above, that’s exactly what WINE excel at… So can’t we use WINE + Mono to make just about any .NET program run on Linux fresh out of the .NET compiler?

Unfortunately, the answer is no. Back when the Mono project was first starting out, the Mono development team considered using WINE to implement the System.Windows.Forms namespace of the .NET Framework (which is practically 100% native C++ unmanaged win32 code in .NET wrappers). But they made the right choice in deciding to not take the easy way and go that route, leaving the integrity of the Mono project intact and focusing on true cross-platform user interface libraries instead (the GTK# is now the UI Library of choice for cross-platform .NET applications).

Click to continue reading "Complete .NET Portability with Wine & Mono?"

Written by Computer Guru on September 19th, 2007 with no comments.
Read more articles on Coding and Alternatives and Mono and WINE and .NET Framework and c# and Windows and Programming and Linux and software.

C# 2005 Programmer’s Reference (Programmer to Programmer)

Title: C# 2005 Programmer’s Reference (Programmer to Programmer)
Author: Adrian Kingsley-Hughes / Kathie Kingsley-Hughes
Publisher: Wrox
ISBN: 0470046414
Pub-Date: 2006-11-06

Book Description
As one of the hottest programming languages in use today, C# enables you to build a wide range of secure and robust enterprise applications that run on the .NET Framework, including XML Web services, client-server applications, database applications, and more. Now with the release of C# 2005, you’ll find a complex array of new language options and parameters to create even more powerful applications if you know how to utilize them. This book will show you how.

Combining a comprehensive tutorial and reference, this book breaks down the latest features while exploring the language from the ground up. The first section provides you with a detailed understanding of basic programming concepts and helps you gain the skills to write your own applications. The second section presents detailed information on specific features of the language so you can immediately take advantage of all the tools available.

What you will learn from this book

  • A complete understanding of C# and its language structure
  • The best methods for mastering the new features of C# 2005
  • Techniques for building cutting-edge applications for

Click to continue reading "C# 2005 Programmer’s Reference (Programmer to Programmer)"

Written by Nikolay on August 22nd, 2007 with no comments.
Read more articles on c# and .Net.

Pro ASP.NET 2.0 E-Commerce in C# 2005 (Expert’s Voice in .Net)

Title: Pro ASP.NET 2.0 E-Commerce in C# 2005 (Expert’s Voice in .Net)
Author: Paul Sarknas
Publisher: Apress
ISBN: 1590597249
Pub-Date: 2006-12-11

Book Description

Pro ASP.NET 2.0 E-Commerce in C# 2005 takes you through the e-commerce web application development cycle, from conception to coding to deployment and maintenance. It will also help you maximize your potential profits, learn what risks are involved, and take the necessary steps to minimize those risks. The book begins by introducing e-commerce systems and lays out the toolset. To help you learn about meeting and overcoming real-world challenges, the book features a case study of a fictional company, Little Italy Vineyards.

As you progress through the book, you’ll focus on e-commerce requirements, then proceed to model the objects utilizing UML to generate and define the complete architecture for the example application. Once you put it all together, you’ll address the site coding. In this section, author Paul Sarknas demonstrates how the practical application of modern programming techniques, like web services and Ajax, can have direct impact on your customer’s user experience and the success of your site.

After design and development are complete, the author focuses on utilizing the best deployment methods for maintaining the application

Click to continue reading "Pro ASP.NET 2.0 E-Commerce in C# 2005 (Expert’s Voice in .Net)"

Written by Nikolay on August 22nd, 2007 with no comments.
Read more articles on c# and ASP.NET.

« Older articles

No newer articles