Tag | API Posts

No it isn't available yet, read below to see why...I decided to write a small pet-project in C# just to not forget my meager skills on the .NET platform. I decided to write a small application that will query the GDS index and allow me to work with the results. Why do I think such an application is needed, well, I like the web interface of the regular result set, but I think the options given to the user are limited, the main issue I have is the fact that I can't open a file with my application of ...
Users of the Wilson O/R Mapper sometimes ask for some documentation about OPath in their user forum, since the mapper supports a query language similar (or identical?) to OPath. Here you are---ObjectSpaces articles that might be useful when working with Wilson O/R Mapper (a design goal of which seems to be to mimic the ObjectSpaces API design), an incomplete list in no particular order.
Here we go again. One of the simplest but kind of hidden functionality is how to determine if the current posting is accessed in live mode or in the edit mode. Microsoft Content Management Server has several modes to display the page out of these three are the most prominent ones i.e. Published , UnPublished and Editing Mode. It is frequently asked that how you can display hint to the authors while they are Creating a new posting or editing an existing one ...One way to accomplish this is to put ...
VIA Scott Galloway's Blog In this implementation you pass in a Guid as an 'out' parameter along with the string you want to test - it then fills in the Guid and returns true / false depending on whether the Guid was valid... private static Regex isGuid = new Regex(@"^(\{){0,1}[0-9a-fA-... RegexOptions.Compiled); internal static bool IsGuid(string candidate, out Guid output) { bool isValid = false; output=Guid.Empty; if(candidate!=null) ...
Has anybody seen a Vocabulary API for the rule engine? No? That's probably because it seems to either be on its way out or never made it in the first place. According to the BizTalk SDK "The following objects are exposed by Microsoft(r) BizTalk(r) Server 2004, but are not used in BizTalk Server programming." These include the following from the Microsoft.RuleEngine Namespace Vocabulary VocabularyDefinition VocabularyDefinitionDictionary VocabularyDictionary VocabularyInfo VocabularyInfoCollection ...
Recently in a project I wanted to make sure that my ASP.Net Output Cache is cleared when I import new Content in to the Production Environment. After a little research I found it it's not that hard. In MCMS 2001 Microsoft used to have an API call called ServerCountChanged or something similiar. In MCMS 2002 there is no such call but there is an Event that we can hook into .... Microsoft.ContentManagement... This ...
Updated: This project now has its own page. I use CruiseControl.NET with MSBuild for automated build of a .NET 2.0 project. You can find instructions how to setup this in Michael Swanson's Blog. Everything works fine but one thing that bothered me was that CC.NET logged raw console output from MSBuild, whereas I wanted the results as structured XML document so it can be nicely integrated into the build report and formatted with XSL. What I needed was an XML Logger for MSBuild. I first found one written ...
Winsock is the socket-based API on the Windows platform. Winsock (on Windows) provides more functionality than a standard BSD socket interface and also has additional MS only functions above what is defined in the WinSock spec (WinSock is not a strictly MS thing). Maybe in a future post I will talk about how Winsock is really just a layer on top of a much more general API allowing Windows to easily move to the next API of the decade. Ok lets get back on track and start talking about IP independent ...
Lately the buzz around many of my peers has been around Apple's new OS and how they are leaving Windows behind in their dust. Yes, everyone knows I have been in the Windows camp for sometime, but this fact is irrelevant to my following argument - How to be the apparent innovation leader. First, some explanation is in order. By apparent innovation leader, I am referring to the ability to be perceived at the leading edge of technology whether you are actually there or not. Apple has done a great job ...
In .NET Framework 2.0 ("Whidbey"), ASP.NET has undergone a lot of enhancements. Building secure web applications is one of the aspects that deserves good attention. There are many new features introduced such as Login Control, Membership API and Personalization API which helps in increasing the productivity of developers.In .NET 1.1, you can leverage the Forms Authentication to take your anonymous users to the login page. The "Login Page" is your call and you need to code the logic for validating ...
When it comes to desktop search, Google has the right idea. Right now I use the MSN Desktop Search app. I think it’s great, and I think when you compare the base install of MSN DS to GDS, MSN wins. But that’s not the end of the story. Today I found this: http://desktop.google.com/p... Just look at some of the plug-ins that other people have written for GDS. Right at the top, there’s one that hooks it into the normal Explorer search bar. MSN should offer you that option right ...
I would like to start asking some questions in C# + .NET in which I don't have answers yet. If you guys know the answers, please help answer that. I will try to maintain the list of answers. Thanks :) To kick off an infrequently asked question awaiting for answer, I would like to ask why .NET BCL does not offer the API to convert time from one timezone to the other time zone. You have some way to convert time from other timezone to your local timezone by using DateTime.Parse hack though ...
CERapi, the managed implementation for Windows CE Remote API (RAPI) has been updated to work with the file system of the Windows CE device. The CEFile and CEFolder classes have been introduced that make navigating the device easy. You can: Get list of files in specified folder Create/Delete folders Create/Delete/Move files Get folder/file attributes File's folder and its name - property Create shortcut to files Find files as per custom search filter Set file attributes Set filetime Launch files ...
With the new .NET framework API providing such wonderful functionality, everybody is programming in C# or VB.NET except setup developers. There was quite some commotion in the WIX users list on writing managed custom actions. It was finally decided that it is generally harmful to write managed code custom actions as they would depend on .NET Framework and having dependencies for setup is plain bad design. But IMHO, we can use managed code custom actions if we are 100% sure that it would be present ...
Blog market is getting more interesting. After Google's successful Blogger, now Yahoo will be in the market with its new blog service. Yahoo Inc. said Wednesday it will soon start invitation-only testing of its new Web log and social networking service Yahoo 360, which aims to better connect users to people they already know. Read more about Yahoo Blogs at CNN . Although Google is the king in search engine market, Yahoo has moved a step further with its API services. Microsoft also has big plans ...
For those of you that didn't already know, there is a FREE MSDN event in Charleston, SC on April 5th. (That's the same day as our GC.NUG meeting for April) Session #1: Web Services Unleashed Join us as we explore the power of web services from the perspective of a .NET developer. We’ll start with the industry standards that support web services, like SOAP and WSDL, and the tools in Visual Studio .NET 2003 that enable working with web services with ease. Next, we’ll see examples of web ...
From Ron Jacobs, PnP Product Manager... Looks pretty sweet! Enterprise Library Webcast Series It’s March 2005 and nearly 50000 people around the world have already downloaded Enterprise Library from www.microsoft.com/practices. We want to make sure you know how to use Enterprise Library and are happy to bring you a series of webcasts designed to quickly bring you up to speed on these seven new application blocks. You can listen in to patterns & practices live at the scheduled time and ask ...

Do you want to know which Win32 API maps to what part of the .NET Framework? If yes, visit http://msdn.microsoft.com/netframework/programming/interop/default.aspx?pull=/library/en-us/dndotnet/html/win32map.asp

Windows CE Remote API (RAPI) is the mechanism via which desktop applications can talk with the Windows CE device over ActiveSync connection. However, since RAPI is not supported natively for managed code development, I have been working on an implementation for managed code, CERapi. You can download CERapi from http://www.wintoolzone.com/... It comes with complete documentation, examples and currently supports: 1) Retrieving device and OS information 2) Retrieving Battery ...

This is a great resource to keep at hand: Microsoft Win32 to Microsoft .NET Framework API Map.  Of course, you need to keep PINVOKE.NET at hand as well.  Think of them as lifejackets in the .NET world.

A list of suggested NLS updates is here.

Been wanting to post this for sometime, just didn’t have the time to do it. Ever looked closely at formulae in calculated fields? I never realized how similar formulae in calculated fields were to CAML. It’s almost a 1:1 translation. For example look at this Calculated Field: =AND(Category="Books",OR([I... CAML: <And> <Eq> <FieldRef Name=”Category”... <Value Type=”Text”>... </Eq> ...
Since I've started taking classes at a local community college, I've discovered a new degree of boredom. Right now I'm reporting live from “Microcomputer Applications” class, where we're learning how to make the ugliest Excel spreadsheets you've ever seen. And I'm not kidding either: My required “Unix” class is far worse, though. We're learning all sorts of wonderful topics like how the “ls” command works, and how to use vi. I did meet a part-time student who was ...
This is what I believe is going to be included in SP1 Of BizTalk 2004, I'm sure there will be more 811250 FIX: You experience high CPU utilization and no timeout exceptionwhen using a timed scope in orchestration813845 BizTalk Server 2004 rejects reliable receipts from BizTalk Server2000 and from BizTalk Server 2002814041 BizTalk Server may fail persisting state to the database and mayend the orchestration instance821934 FIX: BizTalk Server 2004 rejects BTF receipts in CoordinatedUniversal Time (Greenwich ...
CECallLog managed component for Windows CE/.NET CF now supports getting the emergency number list via the static CEEmergencyNumbers property of the CECallLog type.

The documentation discusses the updated API and can be downloaded from http://www.wintoolzone.com/showpage.aspx?url=dotnet.aspx
I have updated the CECallLog managed component for Windows CE/.NET CF to support making phone calls. The CECallLog class now supports MakePhoneCall static method to make the phone call, while the CECallLogEntry class supports the Call method, to make the phone call against the number associated with the call log entry. The documentation discusses the updated API with example. They can be downloaded from http://www.wintoolzone.com/... ...
Yes its true, take a look at any of the default WebParts or ListViews in SharePoint and you can learn a thing or 2. For instance recently I wanted to find all the related items in an issues List. I was stumped until I took a look at the CAML in the default Issue Item Edit form, which goes something like this <Where> <And> <Eq> <FieldRef Name="IsCurrent"/> <Value Type="Boolean">1</Val... <And> <Neq> <FieldRef Name="IssueID"/> <Value ...
Another excellent post at TheServerSide:X-develop is a multi-language IDE for the .NET and Java platforms. It supports the C#, Visual Basic.NET, Java and J# programming languages. Productivity-enhancing features such as on-the-fly error checking of all files, refactoring and smart code templates are supported for all languages.Feature highlights:Instant detection of errors throughout all filesNo need to compile in order to find out if there are errors. X-develop checks all files in the solution on-the-fly ...
Ever wanted to read an assemblies metadata without actually loading the assembly, either because it was not performant enough, or the assembly was missing a reference. Here is a little utilitiy that I wrote that will enumerate through all of an assemblies references without loading any of the actual assemblies. It uses the Unmanaged MetaData API to read the meta data. We use it to help us debug manifest definition mismathc problems. http://workspaces.gotdotnet... Of course ...
I am sure most of us are still high from the MSN Deskbar, but here is a little more intoxication. Google has a Deskbar too. Here is the link. They even have an API for writing plug-ins for it, and guess which language you get to write plug-ins in. Its .NET now isn’t that cool ...
So it’s here at last, Microsoft’s entrance into the desktop search market. I’ll start this off by saying that these guys have done some excellent work. Already it has replaced Copernic and Lookout for me completely. Of course, as a user, I always want more. So here’s my Christmas list: Context-sensitive searching in more places. Context-sensitive searching in the Open File dialog (as I describe here) The ability to search down the current folder structure in Explorer. Custom ...
As part of the recently concluded Mobile and Embedded DevCon 2004 at Bangalore, from 9th-11th Dec 2004, I delivered a talk on Remote API (RAPI), amongst other things. To demonstrate the tremendous power and capability of Windows CE RAPI (which allows us to managed CE based devices from the desktop), I wrote a Windows CE File Manager - a Windows Explorer like application that can be used to navigate the CE device's file system and move files to/fro the device and your desktop and open them from the ...
This is a constant issue here at the company, and I guess that it arises almost everywhere. Let me first explain that we are a company that deals with software developement, and mainly for our single product (which is in fact several, but it doesn't really matter). Each time we develop a new feature, or update a previous one we are of course forced to deal with issues of backward compatibility, and others not only within our products but also with various third-party providers that integrate into ...
Due to the widespread of worms and virii, Microsoft did implement a security lock down on e-mail since 2002. This also includes the lock down on the programmatic access of e-mail. First, e-mails cannot be sent through Outlook, Outlook Express, MAPI or even CDO (if it depends on MAPI). Second, access to e-mail in Inbox through API has been limited as well. Third, some certain attachment types cannot be opened inside Outlook. This has created a lot of problems in automating e-mail sending and receiving ...
I know that I might be whining but sometimes I really hate XML. I totally agreed that XML is very useful since it allows us to express hierarchical or unstructured information in the form that human and machine can understand. However, what I really hate is more about XML API. It seems that any XML API that I used before isn't intuitive enough to handle complex XML document including namespace and multi-layer XML document. Sometimes, I spent a long time just to find out how to do it using XML API... ...
I was reading Werblog and saw these stats about Skype: 13M+ users registered 1M+ simultaneous users reached for the first time a couple of weeks ago 2,384,686,217 minutes served, as I type this - i.e almost 2.4 billion minutes. Just to put things in perspective: Vonage has 170,000 customers and passed the billion minutes mark sometime in 2004 295,000 users have signed for SkypeOut (Skype has a goal of 5% conversion from the free service to SkypeOut) Skype has been my main IM for a few years now and ...
The .NET Compact Framework doesn't support a SMS API within itself. However, Windows CE does support the functionality via its SMS.DLL module. Over my Diwali vacations at my home in Chandigarh, I worked upon implementing a managed interface to the SMS API. The result is SMSCF, a .NET Compact Framework based component that can be used by application to send SMS. Download it from the Components section here ...
So if you are having problems programming for Sharepoint 2003, then here is some help. First to you need to reference Microsoft.SharePoint.dll. You should be able to do most of what you need using this dll. Now if you cannot find this dll on your box you must retrieve it from the server with Sharepoint installed. Using the command prompt, access the GAC and copy the file to where you can access it. Now if you get the error below: Preparing resources...Updating references...The dependency 'Microsoft.SharePoint.Secur... ...
Comparing .NET with Java 1.5 In response of my .NET vs Java 1.5 mail, our guru MVP Khurram Shakir made a few interesting points. This blog entry is my response to his mail ......I also have a few points to make, please correct me if am wrong.This discussion i belive is very important for all of us and this is not about a war between Java and .NET ... its just a comparison between technologies and tools available for us to use. We as programmers/ s/w engineers /(any thing else you can think of) use ...
And here's another thing. I really like coding with .NET, but the thing I like most about it is its promise of multi-language development. Unfortunately, it doesn't deliver! Now I'm not talking about little qualms like the fact that you can't put C# code and VB code in the same project. I'm talking about the incorrect assumptions and lack of vision in the design of the CLR and CTS. They assume you'll only ever want single inheritance. They assume you'll only ever want stack-based control flow, not ...
The MSBTS_ServiceInstanceSuspen... WMI event is fired by the BizTalk Engine whenever a "message" is suspended. This happens (amongst other reasons) when all send retries fail (for example when a connected system is down) or whenever exceptions occur during the pipeline execution (for example when message validation fails). For this little article I'd like to focus on the first category: outbound suspended messages caused by systems being temporarily unavailable. Usually admins like to receive ...
You all probably know that MSMQ stands for 'Microsoft Message Queuing' and MSMQT is the acronym for describing the BizTalk MSMQ adapter. A quick reminder for those who already forgot: the "T" in MSMQT stands for transactional (not “Transport”) Probably less common knowledge is what MSMQ acknowledgments (ACKs) are, so I have chosen this to be the topic for my first post. What are ACKS and in what flavors do they come? Acknowledgments are system-generated confirmation messages that are sent to the ...
Man, it's been a while since I've been able to put some time into the Harvest Engine. Lots o' deadlines with my music publisher, don't cha know. Anyways, I was finally able to spend at least a little time tonight trying to make some progress with the engine (albeit it very *small* progress). I whipped up a quick reasonably high-resolution timer for the engine that uses QueryPerformanceCounter in the Windows API. Along with that, I added in pausing/resuming functionality into the engine. That is just ...
One of the things I have learned from Robert Scoble is that transparency between Microsoft and outside developers *is a good thing*. Is it time yet to extend that transparency now to the DirectX community? Hello all, welcome back once again to the clueless Jason Olson show, and I am your host, Mr. Clueless himself, Jason Olson!!! (QUE: applause) Thank you! Thank you! Anyways, enough fun......... First off, this isn't a rant. I am presenting this because I think there is a potential resource that ...
Well the last big project is mostly behind me, which means I delivered all I had to, and now waiting for the rejects, stuff that need to be fixed etc. Actually I delivered it on thursday, but had to endure some questions and problems that our indian engineer friends encountered (imagine me, debugging their C++ code, me a simple VB coder, but amazingly I did it :) ). So today, I back to my (almost) least favorite work, creating Technical Designs for new features, we are revamping the software API ...
I read a pretty interesting article today.... How Microsoft Lost the API War. I'd have to say a was a little dismayed. Like most of the developers I know, I am currently developing in ASP.NET. I have probaly been using ASP.NET for the last 2 years or so, before that it was all Windows applications. I had the opportunity to write some distributed Windows Applications upon the release of Visual Studio .NET, but since then its been all web. The majority of my skillset lies in SQL databases, middle-tier ...
Resources Covered: - · Introduction· Review of Features· Enhancements· DTS Redefined· Deployment and Management· Hand Shake of Brothers (.NET and YUKON) or Marriage of Romeo and Juliet.Author: - Veer Ji WangooApplies to : - SQL SERVER “YUKON” Beta 1Target Audience :- SQL DBA,Solution Architects,IT analysts ,Developers etcIntroductionThe world of Programming had never moved so fast as it did in last couple of years. After Y2K the things got so fast that it ...
http://blogs.msdn.com/dmass... From there and Scoble’s log it looks like Microsoft has reformed the Internet Explorer product team. Perhaps this means we’ll see an IE 7.0 after all? At this point I use IE and Avant Browser exclusively. I tried FireFox back when the name changed and found it to be a repulsive experience. However, at least on some level, it does seem to be pushing ahead where IE has stagnated. The features I use most in Avant are the tabs, ...
Joel Spolsky has created quite a stir with his recent ravings about the demise of the desktop and how Microsoft has lost the API war. First, I didn't even know there was an API war going on. Second, I see the coming of .NET and the CLR as a technology that ensures Microsoft's survival rather than a prescient indicator of its eventual demise. The biggest concern that I see with browser-based application, beyond the obvious user interface issues, is the fact that they don't work offline. There are ...
There is an old application hosted on the application server at my job. The core COM+ application was exposed over HTTP using ASP and XML. The custom ASP scripts are used parsing XML requests using MSXML. It was a long time ago when SOAP was not made available. This web-service like approach was required as two other web application hosted on two physically different nodes need to communicate with it. One of these web applications is hosted in a shared hosting environment, and we did not wanted to ...
This was discussed at great length at TechEd this year. The one thing that I came away with is that nobody can agree on what the definition should be. Don't get me wrong, I actually think that this is a good thing. SOA should not be a defined, standards based “thing”. Once it reaches that point it will become less useful and more restrictive. In an earlier post I outlined an architecture that we are using. Some would look at this as being a SOA based architecture, a viewpoint that I tend ...