Tag | API Posts

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. ...
I realize that The Conversations Network is young, but here are my first thoughts and constructive criticisms anyway. The recommendations page should have an "Add to queue" link right there beside the program listing, so that I don't have to click on the program detail link and visit another page in order to add a program to my queue. Sometimes I can tell by the title that I want to add it right away. Also on the recommendations page, I'm not sure what the “relevance“ graphic is - since ...
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 ...
I talked earlier about integrating WeatherBug data into Where's Tim. Chris Sloop has been a lot of help and was even nice enough to include Where's Tim on the WeatherBug's API example page. He requested that I share some code, so here it is:Basically, to consume WeatherBug's API, I:1) Make a call to the Where's Tim webservice2) Parse the zipcode out of the .Place property of the GPSData structure3) Pass the zipcode into a function that builds the REST url4) Load the url into a System.Data.DataSet ...
Using the WeatherBug API, you can now see my current weather conditions on Where's Tim. The API was easy to use and I also include the data in the Where's Tim Webservice. Calling GetTimsWeather returns an object that contains: Current Temp (.Temp) Todays Rainfall (.Rain) Current Windspeed (.Wind) Wind Direction (.WindDirection) My current zipcode (.ZipCode) URL with more info (.WebLink) Thanks to the My class in VS 2005, you can get my current temperature with one line of code: MsgBox(My.WebServices.EnGra... ...
Well, I have finally found time to get my object repository editor working well. It's what I call in a "internal tool beta" state, which means it's not very pretty but works well. Since there will be only two of us using it, seems like a fine state. I know, I know....any code worth writing is worth writing nicely. However, given the timeframe in which I've had to work, I've done a fair job. Now, that's not to say it won't benefit from some nice refactoring. As a matter of fact, I've refactored a ...
[Original Post Date: 16th August 2005] System.Diagnostics.Process class is a managed wrap over a subset of the ToolHelp API - as it enumerates only the process list. Not only that, it will list all the running processes, irrespective of whether they are running unmanaged code or running managed code. What if you wish to identify which of these processes are running managed code? Unfortunately, neither the ToolHelp API, nor the Process class allow us to identify managed processes from the list they ...
It will be very useful for development of custom modules if DotNetNuke API Reference would exist. The core has XML comments and VS 2005 supports XML documentation in VB. I didn't find any tools that currently fully support .Net 2.0. NDoc is not fully implemented version for .Net 2.0, but has some workaround, which doesn't work for me. The modified version 1.3.1 of NDoc started to build help but then got an NDoc.Core.DocumenterExcepti... may only be called on a Type for which Type.IsGenericParameter ...
Been working on the tool I mentioned before to manage the object repository in a previous post. I dutifully fired up the VB.Net IDE, and began work. However, there are some snags: 1) The tool API is a COM object. Not a big deal, but a little unfortunate. Shouldn't be a problem, I was thinking. 2) The API was written to work in VBScript...not VB.Net Issue 1) isn't a huge deal, but 2) is. Why? Well, there are two things causing me grief: 1) One of the methods off of the main object accepts two optional ...
In the PodcastStudio.net session the other night, I told Jeff and John that I have never had problems with Google Maps, or any Google API. Well, I think I might have found something. I was redesigning the layout for Where's Tim, because, well, I'm an awful UI designer. And I was putting everything into a 2x4 table and I set the left column width at 25% and the right column width at 74%. The upper right hand cell contains the div tag that eventually becomes the Google Map and I set the width of that ...
For those of you not in the software testing world, QuickTest Professional (a.k.a., QTP) is a testing tool made by Mercury Interactive. It's a good, as far as those type of tools go, as anything available in my opinion. However, there are a couple of things I don't understand about it's architecture. I am only going to discuss one, though. Bear in mind this discussion is totally web-based since after all, we are a web-based company. QTP "learns" and "remembers" objects (these are things like fields, ...