Tag | API Posts

Several people have tried out blogging from Word 2007 (as I am now) and are having problems with .Text. This issue is in the CookComputing.XmlRpc.dll and a dateTime error they fixed. This is used in the Post struct which blows up the newPost method. If you update the dll to a later version (http://www.xml-rpc.net) then you should have no problem posting after that using the Metablog API. For Geekswithblogs.net members, the Metablog API service URL is located at http://www.geekswithblogs.n... ...
Update: Put a comment in if you want the C# version of this code and I will get it to you In previous days, I discussed the methods and properties to be implemented with the BITS wrapper BackgroundCopyJob. Let's go over some of them today. Let's start off with the IDisposable pattern which must be implemented when using these unmanaged objects. Here is the simple implementation required: // BackgroundCopyJob finalizer Podwysocki::Services::Backg... ...
Over the years, when I needed to get quick information for a Microsoft Platform SDK function, I would Google it and find the MSDN reference page at the top of the list. Recently, the MSDN pages have all but disappeared, or are far down the Google index. I'm now forced to search with Yahoo. Has anyone else noticed this? For example, I'm working on a Crypto API issue right now, and wanted to get the reference for this function: CryptVerifyDetachedMessageS... If you Google it, you get everything ...
Say I have a Facade layer which sits just beneath my UI (in this case ASP.NET) layer. This, of course, provides the API for my controller (code-behind) classes to interact with my domain as well as encapsulating my Application Logic. I understand it is good to do some kind of Session management in this layer too, but I just don't get the best way to do this without directly referencing the Session object from HttpContext. This limits my Facade to being a Web-facing service layer, though, so that ...
Mini-Tools announces that all of its .NET components are now free for non-commercial use. In addition, Mini-Tools offers a Blueprint Edition for each .NET component that includes the original C# source code for as low as $99.All Mini-Tools components include a sample application to evaluate the component with no programming required, C# and Visual Basic .NET sample code and templates to get started quickly, and a detailed help file and API reference guide. Mini-Tools components may be distributed ...
Now that 2.0 (with its detection of accessing control properties from an incorrect thread) has become main stream there are numerous people realizing that they had many bugs in their 1.1 code. I could write up a bunch of information about why you need to do this but I think http://weblogs.asp.net/just... and others already do a great job of this. I am instead going to talk about how things work (that you probably don't care about). Once upon a time in a land far away there ...
After schemas have been published using Web Services Publishing wizard there’s a high chance we’d want to update and re-publish them later on. In the post about web services deployment automation I mention the way of scripting publishing process. Here is some more information on it. Web Services Publishing wizard creates temp folder under the publishing target directory. There’s a file confusingly named WebServiceDescription.xml (does not have anything to do with WSDL). It contains ...
UPDATE: See Day 9 of the Background Intelligent Transfer Service (BITS) Managed Wrapper for the source code plus binaries. In previous lessons, I laid out the basic API for BITS. Now I think it's time for us to start doing the actual planning on how to wrap this API. Let's start by mapping out the BITS types and then creating our own wrapped types. Below, I have a table of those native types and what the wrapped types will be: Enumerations Unmanaged BITS Type Wrapped Type BG_AUTH_SCHEME AuthenticationScheme ...
Update: Put a comment in if you want the C# version of this code and I will get it to you In my previous lesson, I gave a brief overview of the Background Intelligent Transfer Service. Today we will dig a bit deeper into some of the API as well as give reasons why I chose Managed C++ over a C# implementation. First off, there was plenty of reading to do from the last time. If you want to read more about the uses of BITS as well as the key technologies behind it, please check out this link: http://msdn.microsoft.com/l... ...
puh, schon wieder sind einige Wochen vergangen und ich habe nix zu diesem Blog beigetragen. Diese Woche hatte ich dann ein Erlebnis was mich zum Bloggen nötigt. Wie der Titel schon verrät, soll es um einen Teil des .NET Frameworks gehen, der nicht unbedingt gut dokumentiert ist und den Name "Unmanaged API" trägt. Die Unmanaged .NET Api stellt ein Set von COM-Interfaces zur Verfügung um auf die Meta-Daten eines .NET-Assemblies aus native Code heraus zuzugreifen. Eine Populärer Anwendung dieser API ...
Basically:.NET 2.0 is too cool :))) After exploring the smo classes the last part of the afternoon was about creating migrating the data. I hadn't used the ado api fully but remembered something about the commandbuilder. My conclusion : Worth taking a look at. I do realise that it isn't the worlds prettiest sql that gets generated but it gets the job done. And in the case of my 125 tables that i need to migrate FAST it will save me about 1-2 weeks of writing import procedures etc. Generic datatable ...
table of contents Introduction. 3 Context. 3 Adapter Communication Patterns. 3 Implementation. 4 Design Time. 4 Runtime. 8 Registration. 9 Case study. 10 Conclusions. 10 Introduction So when actually you will think of writing a custom adapter? There are various BizTalk adapters developed by third parties that could be leveraged in your integration project. But what happens if the adapters available do not support the functionality that your solution requires? What if you have your own custom server ...
Lately, I have been doing rather large data migration to and from SharePoint Portal Server 2003 using the API and was running into performance issues (Not a surprise really). Anyhow, I needed to find out some basic information about memory usage as well as some of the .NET related information. I found the solution with Process Explorer, written by Mark Russinovich. The tool is available via this link: http://www.sysinternals.com... When you first launch the application, ...
Partha, a gentleman who posted on my blog, left some suggestions that ultimately made getting the page and browser hwnd much easier. I made some slight changes to his code to do what I wanted, and here's our result: Public Function OpenBrowser(byval URL,ByRef strBrowser, ByRef strPage) Dim oIE 'As InternetExplorer.Application Dim WaitCount 'As Long Set oIE = CreateObject("InternetExplo... oIE.visible = 1 oIE.Navigate2 URL WaitCount = 0 Do While oIE.ReadyState <> 4 And WaitCount ...
There is several factors can affect the performance of an ASP.NET application 1) Page settings. in a @Page directive in their source code. Settings that can affect performance and scalability such as : • Debug. For production sites, this setting should be false to enable batch compilation and remove the overhead caused by additional debugging information. For pages with no specified debug value, the setting is determined by the value of the debug attribute of the compilation element in the ...
Tom Rizzo has moved from the SQL product team to the SharePoint product team, and I have been following his blog here But here is an entry from Scott Guthrie's blog (ASP.NET product team) that sounds like really good news for developers using the next release of SharePoint (due out 4th quarter 2006??). I was able to attend a couple of Scott's and a couple of Tom's presentations at Dev Connections last month; both of them were some of the favorite conference sessions. I'll definitely be watching Tom ...
In .NET 1.x if you wanted to modify the stack size of a thread you created you would have to go through some pretty nasty code .. Here is a hint :) [DllImport("kernel32.dll", SetLastError=true)]static extern int CreateThread (ref SECURITY_ATTRIBUTES lpThreadAttributes, int dwStackSize, ref int lpStartAddress, ref object lpParameter, int dwCreationFlags, ref int lpThreadId) In 2.0 a new overload has been added to the Thread class to support alterring your stack size directly through managed code http://msdn2.microsoft.com/... ...
This weekend, we migrated Where's Tim to ASP.net 2.0 and Google Maps API v2. We also added some "Get directions" functionality to SmartStart of Kansas Find a location page. And we just got dugg! [Where's Tim] [EnGraph] [Google Maps] [GPS] ...
I am working on a DLL that I can call that will open an instance of Internet Explorer, and then return its Browser handle and Page handle. I am trying to write procedures that will handle functionality totally independent of the text in the title, the text on the page, or whatever else QTP uses to reference these objects. Basically, I am frustrated having to fix regular expressions or whatever to make sure my references work. It seems like a no-brainer to me that I should be able to open a browser, ...
One of the things we did with ASP.NET 2.0 was to work very closely with the SharePoint and CMS teams within Microsoft to enable much richer architectural and developer integration than we had with previous releases. Specifically, we tried to drive many of the core architectural requirements and scenarios they and other portal/CMS vendors had into the ASP.NET 2.0 runtime (for example: web parts, virtual path providers and compilation, site navigation, membership and role management, personalization, ...
The last month was pretty rich in terms of the free downloads I found available online, so, thought I needed to list some of those, and clearly got busy/late for that! however, I thought I'll also drop the list in case someone missed any. Form Scott Guthrie (AKA: ASP.NET Hero)'s Blog: Source Code for the Built-in ASP.NET 2.0 Providers! This really a BIG hit. The source code for the whole set of ASP.NET 2.0 providers downloadable for free, and also, Scoots points to 130+ pages of awasome pages walking ...
I am sailing: The Two Connect BizTalk 2004 Adapter for SalesForce.com is a full feature BizTalk 2004 adapter with two-way transmit and one-way response functionalities and a design-time Schema Wizard. The adapter also takes advantage of all features available through the BizTalk 2004 Adapter Framework. The adapter leverages the functionality available through the SalesForce.com Web Service API to provide a quality integration solution for the SalesForce.com solutions Platform. Features Adapter Schema ...
Anyone ever try a WinAPI callback function call in VBScript? Here's the deal: I am trying to write a procedure that will open an internet explorer browser, and return the browser's Widows handle. I can use the EnumWindows API call to do it, and I can write something in VB6 that does this very well. However, I need to write this so that it is portable without dealing with DLL hell issues. Also, QTP needs to be able use it. I am going to see if I can get this to work, but thought someone might've tried ...
Sometimes is very usefull for testing purposes to create a VS2005 instance, and them use that instance to have access to the DTE API stuff. So, here is a code snippet to create a VS2005 instance and to open a solution: Type t = Type.GetTypeFromProgID("Vis... DTE dte = (DTE)System.Activator.Creat... true); try { dte.Solution.Open(@"C:\Temp... //Wait some seconds to let VS open the solution System.Threading.Thread.Sle... } finally { dte.Solution.Close(false); ...
or how Flash broke SQL A few weeks ago, my SQL Server 2005 installation lost the flat file data source option and could not import or export no matter the format. An error was thrown up. ===========================... connection manager could not be created from one or more data sources. (Microsoft Visual Studio)====================... The connection type "OLEDB" specified for connection manager "{F3C4B394-E196-4AFD-A2F6-3... is not recognized as a valid connection manager ...
Well first of all for those of you who do not know what is Visual WebGui (shame on you)... Visual WebGui is a platform that exposes an SDK with the same API as WinForms and the design time capabilities only runtime product runs as a .NET web site through a unique communication layer and presentation layer. WebGui lets you develop outlook web access like applications with out any know how of web development. If you are a WinForms developer or a VB6 developer you should be able to start developing ...
Google has an API for their personalized homepage, and of course it is really easy to consume. It is an XML file with a place for HTML / Javascript. I created a striped down version of Where's Tim using their API. To install this module on your homepage, click here. Google provided a method for asynchronously downloading data, _IG_FetchContent (which I talked about the other day). To consume this method, you provide the datasource and the function you wish to call after the data is downloaded: function ...
BizTalk Server Performance Tuning... Well…with every project whether it is a windows application, a web application or any integration project; performance tuning is the most sizzling area of debate. Following are the findings from the performance carried out on heavily loaded message broker architect on Biztalk server 2004. I will not be going to talk about the hardware used or message volume (consider it as best and high respectively.) You can also consider these points as Do and Don’t ...
Figure 1 - Link An Approach to Service Oriented Architecture the foundation for any application architecture that should be considered today is going to be of a service oriented or (SOA) based. Figure 1 Service Oriented Architecture consumed by a User Interface Layer Service orientation is about four aspects, as shown above – where is the service (example are URL of the web service, how do you bind with it (what protocol – HTTP etc) and what contract (request response, one way etc.) and ...
In Microsoft's ongoing battle with Google (and Yahoo!) to become your first stop on the internet, they have finally started to utilize their greatest asset. Not Office or Windows, but the developers, developers, developers. Windows Live Developer Center has launched, and with it a new direction in web services approach. Get the development community on board and integrated. Microsoft will soon have a very different web presence after Vista, Office 12, Live and Atlas release from beta. And it will ...
I have been seeing alot of questions lately in regard to context boundaries within domains and various methods of implementing the contracts between them. I figured it may be worthwhile to write up a little about the various mechanisms of handling this issue. For those who are unaware of what a context might be, a classic example would be a marketting domain that needs to access an accounting domain in order to perform some operation (or to retrieve some information). We seperate these domains as ...
I had an interesting question come up the other day: why override object's "Equals" method and/or the equality/inequality operators at all? Why not just compare objects in some dedicated function or other? After my initial shock died down (the question came from an OO developer), I realized there are several reasons. Let's consider these in the context of Java (which the conversation was about) and .NET, in turn. In Java, the situation is not cut and dried when it comes to equality comparison. To ...
UPDATE:The aricle is old.Links are not available anymore. Some time ago I looked for DotNetNuke 4.0 API Reference Help File . For some time online help and offline version was available at beta.dnndn.com, but not anymore. Mark in comments pointed to http://classbrowser.subzero... Also there is no description for many methods (and even classes). It will be good if DNN core team will improve descriptions of the classes and methods. I understand, that it is a big and quite boring ...
Yesterday we experienced a quite interesting phenomenon. A colleague of mine tried to create products with the API but received an error from time to time. The error stated that the product number already existed in CRM. But in fact, the product number was unique and did not yet exist in CRM. So we started SQL profiler to dig a little deeper. We found out that the problem occurred from passing a string to a custom attribute which exceeded its maximum length. The SQL server error message stated that ...
What is actually a workflow (in terms of standards or definitions)? Every one who can tell one definition by heart, gets a free beer from me. Come on. You have 30 seconds to think. Is it a business process or a work process description? What about activities, participants and automatisation? If that was a peace of cake for you, here is another quiz: Can you tell me the meaning of following acronyms: BPM, WfMC, WML, Petri-Net, BPMI, BPMN, Wf-XML, UML, XPDL, YAWL, OASIS, OMG, WPS, ITIL? Are these standards ...
Expected launch dates Product Date expected Current status Comment Windows Server 2003 R2 Feb 2006 RTM Includes Active Directory Federation Services and UNIX password synchronisation, improved replication technology, .NET 2.0 and new tools for distributed storage configuration. Visual Studio Team Foundation Server Mar 2006 Beta 3 The server component of Visual Studio Team System. BizTalk 2004 Server 2006 Q1 2006 Beta 2 Support for SQL Server 2005 and Visual Studio 2005. New management console. Internet ...
***Excerpted from an article I posted to the Mercury Support site: IE sometimes pops up dialogs. What if we could write code that would handle these without knowing which boxes and in what order they will appear? Clicking Internet Explorer Dialogs Dynamically Recently, I was plagued with Internet Explorer Security Alert and Security Information dialog box problems. Seemed like everytime I changed environments (we are a web shop), where these appeared changed. Sometimes, I'd get both, or neither, ...
Have you ever run the KPI Browser and wondered how it produces its summary of KPI's. I had someone ask me about this today so I fired up SQL Profiler and had a look at the queries that were fired off while the KPI Browser tab was populating. What I found was that a number of XML/A Discover commands were executed, the Key one appears to be the one against MDSCHEMA_KPIS Here is the query I captured against the Adventure Works Database: <Discover xmlns="urn:schemas-microsof... ...
The Goals of ASP.NET 2.0 Developer productivity – Eliminate much of the tedious coding that ASP.NET originally required and to make common ASP.NET Task easier. Take an example, in ASP.NET 1.x you need to write number of lines code to just enable paging in datagrid control. Now you can just specify “AllowPaging=TrueR... Administration and Management -This release of ASP.NET focus on the developer, and little thought was given to the people who had to administrator and manage all the ...
What is up? Not much by the looks of it. I'm finally starting to go out and dig up the various game engines written in .NET that I can leverage in the project I'm revisiting (as I'm not really in the mood to reinvent a wheel that has already been re-invented like a hundred million billion times by various college students out there (here's a theory: I think there are more game engine projects out there than hamburgers McDonald's has sold in the entire history of their company)). So, what did I find? ...
Garmin has started blogging. They even welcome feedback in the first post. Here is my first feedback for Garmin. Check your routing routine on Garmin Mobile, you ran me on almost a mile of gravel road on a trip from Lawrence, KS to Pella, IA. Don't get me wrong...it's a pretty good app, as I talked about earlier. It just needs a bit of work yet. Also, set up an ASMX or REST api so that developers with the correct authentication could access a person's GPS data ...
New just been posted in MSmobiles about an open source Project called Funambol Now MSmobiles has always been keen to be setting the record straight with regard to MS's claims about the Push email (MSFP, AKU2, etc.) just being around the corner, pointing out about the onging court action by Visto, so it will be interesting to see what sort of reply Jason has regarding this and when we might actually start to see some releases by the Carriers? What is quite exciting is that although this is listed ...
This is one of the "Questions for interview" articles. Part 1: "BizTalk 2004, Questions for interview without answers" http://geekswithblogs.net/L... Part 2: "BizTalk interview questions and principle" http://geekswithblogs.net/L... Part 3: "WCF: Questions for studing and interview" http://geekswithblogs.net/L... BizTalk: Ports: Questions for BizTalk ...
[Crosspost from Managed World] If you've been reading my blog for a while now, it's probably no secret to you that I'm a fan of Open Source Software. I enjoy the benefits of using many open source products like NUnit, NCover, NAnt, etc. At the same time, I also believe that you need to be careful when modifying code in an open source product for use within the enterprise. Why? Because there are several hidden costs associated with modifying OSS that are not realized by your average company or developer. ...
Nullable types are exactly what data readers needed. Dealing with database nulls in previous versions of .NET was laborious, to say the least. However, just having the nullable types doesn’t solve all of your problems. The classes presented here go a long way towards that goal, though. From the introduction: .NET 2.0 introduced nullable types into the CLR which, for the first time, provided the ability for value types to be assigned a null value. However, ADO.NET 2.0 did not introduce any new ...
I delivered a session on Windows Mobile programming with a focus on WM 5.0 in Coimbatore during the MSDN @ Campus event. I demonstrated a Bluetooth application using the 32feet API and Message Interception API in WM 5.0. I am reminded to point out that Peter Foot of the OpenNETCF fame, has separated a few APIs including the Bluetooth library into 32feet, which is worth noting for Bluetooth enthusiasts. I have uploaded my demos here- Bluetooth demo (scenario was communication between a PPC and a Desktop ...
Recently I have been working a lot with the BizTalk Rules Engine (BRE) that comes along with Biztalk Server 2004. Rather than the more common approach of using the BRE inside a BizTalk Orchestration passing in XML messages, I have been working with the rules engine in a pure .net scenario passing in .net objects as facts and working with a long term fact creator. This approach uses the available API to call the BRE inside .net and passes in an array of facts to be operated on. The long term fact ...
So obviously anybody who's had to put up with Remote Desktops and Printing understand that the whole printing system in Windows has major flaws. Granted, they are unforseen flaws, but flaws nonetheless. For starters, we all thought that with printer drivers, an application could just say “Render this bitmap at this location”, “Write some text here, write some more text here in this font” and so forth. Then the printer guys started adding cool whiz-bang features, like ink level ...
During a current project, I needed a tool for generating PDF documents for reporting on pre-printed forms. The majority of reports in the system use this form. I wanted to find a solution that fit my needs and nothing more. Other systems do so much and very well, but for just developer needs, they are a bit much. I found a utility call Siberix PDF Library and it's counterpart Siberix Report Writer. If you need a tool for PDF generation, I highly suggest these products. At the current time, the price ...
Today I continued the complete rewrital of our article agent system, the complete rewrital is a necessary step in order to achive the expected number of customers. The agent system is a non scalable system bought in from another company. But since it was expensive it must be good, right? This day was dedicated to improve the logging functionality in the new code parts of the application. I wanted the logging to be done by a well tested framework with a simple API. I started out trying the Microsoft ...