Archiv für Juli 2009

27
Juli
2009

ShockTester 2.0

von Richard Deininger | 4 Kommentare »

Nachdem wir einen Featurerequest bekommen habe, dieser schnell und einfach einzubauen war bzw. ich das sowieso schon längst machen wollte, gibts jetzt eine neue Version.
Neue Features:

Man kann einstellen das die Aufzeichnung (Scrolling) weiterläuft auch wenn das Gerät nicht bewegt wird.
Eine Wasseraage mit grafischer Anzeige (TrackBar) und Ausgabe der X und Y Koordinaten.

English:
After we got a [...]

16
Juli
2009

Panoramas in Surface with Pano2VR

von Simon Bitschnau | 0 Kommentare »

Pano2VR is a tool to create panoramas for QuicktimeVR or Flash. You can embed the Flash in your surface application and completly control it with multitouch by using the Pano2VR Flash Javascript API.
Unfortunatly, the only way to embed your Flash is the Shockwave ActiveX.  So we need to put it in a WindowsFormsHost wich has [...]

15
Juli
2009

WPF Image Interop

von Simon Bitschnau | 0 Kommentare »

Schon oft gesehen in Beispielen zu Image Interop ist folgender Code:
 

BitmapSource bitmap = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(source.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());

Das funktioniert soweit auch hat aber einen entscheidenden Fehler, auf den man schnell kommt, wenn man sich die MSDN Dokumentation anschaut.
Der Handle der von GetHBitmap zurückgeliefert wird, muss nämlich manuell wieder freigegeben werden. Und zwar mit der DeleteObject Methode:
[System.Runtime.InteropServices.DllImport("gdi32.dll")]
public [...]

15
Juli
2009

NTFS- Formatierter bootable USB Stick

von Oliver Lampl | 1 Kommentar »

Hallo, ich habe gestern versucht von einem USB-Stick zu installieren der mit NTFS Formatiert ist.
Im „boot“ Verzeichnis der Vista Installations CD ist die „bootsect.exe“, mit dieser wird der Boot Sektor auf dem Stick erzeugt der Befehl lautet. Der Befehl wird im Befehlsfenster (cmd.exe) ausgefuehrt.
bootsect /nt60 G:
Damit der Befehl so ausgeführt werden kann, muss man [...]

09
Juli
2009

Control.Invoke WPF Style – and special BitmapSource handling

von Daniel Siegl | 0 Kommentare »

Control.Invoke gibt es in der schönen neuen WPF Welt leider nicht mehr. Darum ein kurzer Post ohne viel Erklärung wie man das in WPF Anwendungen löst.
private void SetPicture(BitmapSource newImageFromThread)
{
   if (Camera.Dispatcher.CheckAccess())
   {
      // The calling thread owns the dispatcher, and hence the UI element  
      Camera.Source = newImageFromThread;
   }
   else
   {
      newImageFromThread.Freeze();
      // Invokation required
     Camera.Dispatcher.Invoke(DispatcherPriority.Normal, (Action)delegate(){ [...]

07
Juli
2009

Opensource Wordpress App – Public Beta

von Verena Hladik | 0 Kommentare »

Erste Tests der Wordpress Application für den Blackberry. Ich befürchte das es mit der Localization noch nicht ganz klappt, aber vom ersten Eindruck schaut das Tool schon sehr gut aus. Blogbeitrag und Downloadlink von Blackberrycool:
http://www.blackberrycool.com/2009/07/open-source-wordpress-application-for-blackberry-now-in-public-beta/
First tests with Wordpress Application for Blackberry. As far as I see there may be some problems with localization, but my [...]

07
Juli
2009

Making use of WPF controls in a Surface application

von Simon Bitschnau | 5 Kommentare »

There are already a lot of useful WPF UI controls that, with a few easy adjustments, can be used within a Surface application. Basically you only need to adjust mouse events to contact events.
In this blog post I cover how you can make 2 controls Surface ready, provide a quick walkthrough and the resulting code.
First [...]