<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;CkIMQXY-eyp7ImA9WhFUF00.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370</id><updated>2013-08-28T07:36:20.853-07:00</updated><title>All across the land dawns a branch new morn</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;A0MESXo-eyp7ImA9WhJXFU0.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-3875228395770154763</id><published>2012-05-30T00:36:00.002-07:00</published><updated>2012-08-09T03:50:08.453-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-08-09T03:50:08.453-07:00</app:edited><title>Wallpaper of Steve Jobs for Blackberry (480x320)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
I've just managed to create a background image for my Bold 9000 and I'd like to share with you. Have fun!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-KR3BCyWWT6g/UCOV1pXl22I/AAAAAAAAARw/iZEuaz5XWVo/s1600/steve_jobs_3-wallpaper-480x320.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" src="http://3.bp.blogspot.com/-KR3BCyWWT6g/UCOV1pXl22I/AAAAAAAAARw/iZEuaz5XWVo/s320/steve_jobs_3-wallpaper-480x320.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/3875228395770154763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2012/05/test_30.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/3875228395770154763?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/3875228395770154763?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2012/05/test_30.html' title='Wallpaper of Steve Jobs for Blackberry (480x320)'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-KR3BCyWWT6g/UCOV1pXl22I/AAAAAAAAARw/iZEuaz5XWVo/s72-c/steve_jobs_3-wallpaper-480x320.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;C0IMRX4-cSp7ImA9WhRXFU8.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-4810033492469418592</id><published>2011-09-19T00:25:00.000-07:00</published><updated>2011-12-21T18:39:44.059-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-12-21T18:39:44.059-08:00</app:edited><title>Using libcURL as a static library on Windows</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Have you ever heard about libcURL? Here is what Wikipedia states: "&lt;i&gt;A free client-side URL transfer library, supporting FTP, FTPS, Gopher, HTTP, HTTPS, SCP, SFTP, TFTP, Telnet, DICT, the file URI scheme, LDAP, LDAPS, IMAP, POP3, SMTP and RTSP. The library supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, Kerberos, HTTP form based upload, proxies, cookies, user-plus-password authentication, file transfer resume, and HTTP proxy tunneling.&lt;/i&gt;". That sounds interesting. Actually, you don't have to know every detail against a particular protocol just to work with it.&lt;br /&gt;
&lt;br /&gt;
But incorporating libcURL into your code as a static lib is quite troublesome. Although I read the installation manual word by word and carefully follow, I always got the same errors such as:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;1&amp;gt;Linking...&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;1&amp;gt;testLibCURL.obj : error LNK2001: unresolved external symbol __imp__curl_easy_cleanup
1&amp;gt;testLibCURL.obj : error LNK2001: unresolved external symbol __imp__curl_easy_perform
1&amp;gt;testLibCURL.obj : error LNK2001: unresolved external symbol __imp__curl_easy_setopt
1&amp;gt;testLibCURL.obj : error LNK2001: unresolved external symbol __imp__curl_easy_init
1&amp;gt;E:\testLibCURL\Debug\testLibCURL.exe : fatal error LNK1120: 4 unresolved externals&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
I had already added the directive #pragma comment(lib, "libcurl") before, so it's really weird. :( Later on I decided to ask my wise friend, Google. There are many people having the same problem like me, lol. Many suggestions have been proposed, but none of them worked for me. :( I desperately played around the project. Believe it or not, I found a much simpler way to obtain the target. And here you go:&lt;br /&gt;
&lt;br /&gt;
Add the following directives before using libcURL's APIs&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: cpp"&gt;#define CURL_STATICLIB &amp;nbsp;
#pragma comment(lib, "libcurl")&amp;nbsp;
#pragma comment(lib, "ws2_32")&amp;nbsp;
#pragma comment(lib, "Wldap32.lib")
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Give it a try and let me know whether it works or not. Regards!

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/4810033492469418592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2011/09/using-libcurl-as-static-library-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/4810033492469418592?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/4810033492469418592?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2011/09/using-libcurl-as-static-library-on.html' title='Using libcURL as a static library on Windows'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;DE8DR3s4cSp7ImA9WhZWEU0.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-1031804460617385055</id><published>2011-05-11T02:37:00.000-07:00</published><updated>2011-05-11T02:41:16.539-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-05-11T02:41:16.539-07:00</app:edited><title>Building libEmu under Windows</title><content type='html'>Here are few words about libemu.&lt;br /&gt;
&lt;b&gt;&lt;i&gt;libemu is a small library written in C offering basic x86 emulation and shellcode detection using GetPC heuristics. Intended use is within network intrusion/prevention detections and honeypots.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I wanted to employ libemu in my security project. However, I encountered a serious problem while building this library under Windows OS. Instructions found on its homepage are only for Unix/Linux based OS. Actually, it cost me an arm and a leg to find out how to compile the library. So I decided to have a post against this issue for anyone having the trouble like me. Happy reading!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;0. Install Cygwin and the below packages:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt; - gcc;&lt;br /&gt;
- make;&lt;br /&gt;
- automake;&lt;br /&gt;
- libtool;&lt;br /&gt;
- gettext-devel.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Grab the the installation package of libemu, extracting it to the directory where Cygwin's installed.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Run Cygwin.bat&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Adding AC_CONFIG_MACRO_DIR([m4]) to configure.ac&lt;/b&gt;, so it would look like &lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
# -*- mode: m4; -*-&lt;br /&gt;
# -*- Autoconf -*-&lt;br /&gt;
# Process this file with autoconf to produce a configure script.&lt;br /&gt;
# $Id$&lt;br /&gt;
AC_CONFIG_MACRO_DIR([m4])&lt;br /&gt;
AC_PREREQ(2.59)&lt;br /&gt;
AC_INIT([libemu], [0.2.0], [nepenthesdev@gmail.com])&lt;br /&gt;
....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. Type in Cygwin console $ autoreconf -v -i&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5. Delete the macro at step 2 and save&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
6. Type in Cygwin console $ ./configure --prefix=/opt/libemu&lt;/b&gt;&lt;br /&gt;
At this step, you will get the following error message&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt; checking for cargos-lib.h... no&lt;br /&gt;
configure: creating ./config.status&lt;br /&gt;
.in'ig.status: error: cannot find input file: `Makefile&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
And here is a tricky way to get around: &lt;br /&gt;
+ using Notepad++ to open the script file configure. &lt;br /&gt;
+ Convert the file in Unix format to Windows format: from menu Edit of Notepad++, choose "EOL conversion", "Windows format", and then save the document.&lt;br /&gt;
+ finally, convert back the file to Unix format and save.&lt;br /&gt;
+ reissue the configure command&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7.  Type in Cygwin console $ make&lt;/b&gt;&lt;br /&gt;
And here, another error's spawn&lt;br /&gt;
&lt;br /&gt;
userhooks.c: In function ‘append’:&lt;br /&gt;
userhooks.c:168: error: array subscript has type ‘char’&lt;br /&gt;
&lt;br /&gt;
To overcome, modify the line 168 from&lt;br /&gt;
&lt;i&gt;  if ( isprint(data[i]))// || isblank(data[i]))&lt;br /&gt;
to&lt;br /&gt;
if ( isprint((int)data[i]))// || isblank(data[i])).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, reissue the command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. Type in Cygwin console $ make install&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Done! Check everything you need at \opt\libemu. &lt;br /&gt;
BTW, to use libemu under Windows, please have a look at &lt;a href="http://www.cygwin.com/faq/faq.programming.html"&gt;Cygwin FAQ&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/1031804460617385055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2011/05/building-libemu-under-windows.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/1031804460617385055?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/1031804460617385055?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2011/05/building-libemu-under-windows.html' title='Building libEmu under Windows'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><thr:total>4</thr:total></entry><entry gd:etag='W/&quot;CkQERng-eCp7ImA9Wx9bFkw.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-7694133554400839128</id><published>2011-02-24T20:51:00.000-08:00</published><updated>2011-02-24T21:05:07.650-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-24T21:05:07.650-08:00</app:edited><title>Trick of processing RTF files</title><content type='html'>I'm working on a project requiring non-trival processing on RTF files. By the term "non-trivial", I mean I haven't found any support from .NET classes such as RichTextBox, FlowDocument... Here are targets:&lt;br /&gt;
- partitioning RTF files into respective paragraphs with their own format, images, ..&lt;br /&gt;
- merging RTF files into one.&lt;br /&gt;
&lt;br /&gt;
Every thing's so easy when we have a bit of knowledge RTF file's format. The targets above can be simply acquired by read/write text functions. Let's see how!&lt;br /&gt;
&lt;br /&gt;
1. Partitioning RTF files&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;/// &amp;lt;summary&amp;gt;
/// Gets phrases contained in an RTF file. 
/// Partitioning process is based on the truth that RTF paragraphs are serperated by "\par" tags
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name=&amp;quot;rtfFile&amp;quot;&amp;gt;The RTF file.&amp;lt;/param&amp;gt;
/// &amp;lt;returns&amp;gt;List of paragraphs with its own format&amp;lt;/returns&amp;gt;
public static List&amp;lt;FlowDocument&amp;gt; parseToGetPhrase(string rtfFile)
{
 try
 {
  List&amp;lt;FlowDocument&amp;gt; ret = new List&amp;lt;FlowDocument&amp;gt;();
  using (StreamReader sr = File.OpenText(rtfFile))
  {
   string rtfContent = sr.ReadToEnd();
   List&amp;lt;string&amp;gt; paragraphs = Regex.Split(rtfContent, @&amp;quot;\\par&amp;quot;).ToList&amp;lt;string&amp;gt;();

   string rtfPhrase;
   // formalizes collected data
   // drops the first and the last paragraph
   for (int i = 1; i &amp;lt; paragraphs.Count - 1; i++)
   {
    if (paragraphs[i].EndsWith(&amp;quot;\\&amp;quot;))
    {
     paragraphs[i] = paragraphs[i] + &amp;quot;\\par&amp;quot; + paragraphs[i + 1];
     paragraphs.RemoveAt(i + 1);
    }

    if (paragraphs[i] != &amp;quot;\r\n&amp;quot;)
    {
     rtfPhrase = @&amp;quot;{\rtf1\par&amp;quot; + paragraphs[i] + &amp;quot;}&amp;quot;;
     FlowDocument workDoc = new FlowDocument();
     TextRange selection = new TextRange(workDoc.ContentStart, workDoc.ContentEnd);
     Stream outputStream = new MemoryStream(ASCIIEncoding.ASCII.GetBytes(rtfPhrase));
     selection.Load(outputStream, DataFormats.Rtf);
     ret.Add(workDoc);
    }
   }
     
  }
  return ret;
 }
 catch
 {
  
  // something wrong happened
  return null;
 }
 
}
&lt;/pre&gt;&lt;br /&gt;
2. Merging RTF files&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;/// &amp;lt;summary&amp;gt;
/// Merges 2 rtf files into one
/// The id
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name=&amp;quot;srcFile&amp;quot;&amp;gt;The source file (must be existed).&amp;lt;/param&amp;gt;
/// &amp;lt;param name=&amp;quot;dstFile&amp;quot;&amp;gt;The destination file (must be existed).&amp;lt;/param&amp;gt;
/// &amp;lt;returns&amp;gt;
/// Returns true on success, storing content of the source file into the destination one. Otherwise, returns false
/// &amp;lt;/returns&amp;gt;
public static bool merge(string srcFile, string dstFile)
{
 try
 {
  List&amp;lt;FlowDocument&amp;gt; ret = new List&amp;lt;FlowDocument&amp;gt;();
  using (StreamReader src = File.OpenText(srcFile))
  {

   using (StreamReader dest = File.OpenText(dstFile))
   {
    string srcContent = src.ReadToEnd();
    // in the source file, we obtain indices of the first and the last paragraphs
    int srcFirst = srcContent.IndexOf(@&amp;quot;\par&amp;quot;);
    int srcSecond = srcContent.LastIndexOf(@&amp;quot;\par&amp;quot;) - 1;
    if ((srcFirst &amp;lt; 0) || (srcSecond &amp;lt; 0))
     return false;

    // processing the destination file to get the index at which we insert the migrating content
    string destContent = dest.ReadToEnd();
    int destFirst = destContent.LastIndexOf(&amp;quot;}&amp;quot;);                        
    if(destFirst&amp;lt;0) 
     return false;
    dest.Close();
    string mirgatingContent=srcContent.Substring(srcFirst, srcSecond - srcFirst + 1);
    
    // ensures that there's a blank line between the old content and the new one
    if (mirgatingContent.StartsWith(@&amp;quot;\pard&amp;quot;))
     mirgatingContent = @&amp;quot;\par\par&amp;quot; + mirgatingContent.Remove(0, 5);
    destContent=destContent.Insert(destFirst, mirgatingContent);
    File.WriteAllText(dstFile, destContent);
    return true;
   }
  }
 }
 catch
 {

  // something wrong happened
  return false;
 }
 
}

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/7694133554400839128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2011/02/trick-of-processing-rtf-files.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/7694133554400839128?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/7694133554400839128?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2011/02/trick-of-processing-rtf-files.html' title='Trick of processing RTF files'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><thr:total>2</thr:total></entry><entry gd:etag='W/&quot;A0cMRXk-cCp7ImA9Wx9bFk0.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-2545765567794976947</id><published>2009-11-02T19:36:00.000-08:00</published><updated>2011-02-24T20:44:44.758-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-02-24T20:44:44.758-08:00</app:edited><title>Error when using WebBrowser control in WPF</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: arial;"&gt;Currently, I'm attending a project related to GPS processing. I have to write a program (.NET platform and WPF) for managing transportation business and visually displaying traffic information in real time. Of course, due to the limitation of time, there's no way for me to create a digital map on my own. So I used Google Map API. That's really fun. How awesome! Periodically, the program receives data from a GPS device, transmitting the information to our central server. And then, we make calls to the API. The returned result will be display on a WebBrowser control at a constant rate.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: arial;"&gt;But whenever I try to refresh the browser, an exception occurs:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial; font-size: 10pt; line-height: 115%;"&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: arial;"&gt;"System.InvalidOperationException of "The calling thread cannot access this object because a different thread owns it."&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: arial;"&gt;Something wrong? I remember that no exception spawn when I do the same technique with WindowForms... Maybe there're some modifications in the architecture behind. I have no idea!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: arial;"&gt;How to overcome?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: arial;"&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;--&amp;gt; We'll use the Invoke method of the Dispatcher object along with an anonymous delegate. It really works for me! Here you go!&lt;/span&gt;&lt;br /&gt;
&lt;pre class="brush: csharp"&gt;public void OnRefresh(string url){
 this.Dispatcher.Invoke(new ThreadStart(
 delegate() { 
webBrowser.Navigate(new Uri(url));
 }));
 }
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/2545765567794976947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2009/11/error-when-using-webbrowser-control-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/2545765567794976947?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/2545765567794976947?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2009/11/error-when-using-webbrowser-control-in.html' title='Error when using WebBrowser control in WPF'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUcMSH05eCp7ImA9WxVVEEw.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-848438155362340539</id><published>2009-03-02T08:45:00.000-08:00</published><updated>2009-03-02T08:58:09.320-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-03-02T08:58:09.320-08:00</app:edited><title>A useful trick with Microsoft Visual Studio 2008</title><content type='html'>Sometimes, when using Microsoft Visual Studio to compile some source code, you may get some notification like this one:&lt;br /&gt;&lt;br /&gt;" Error 1 fatal error C1189: #error : Your version of the Windows SDK is earlier than 6.0. Try setting the 'WINVER' and '_WIN32_WINNT' definitions in your project to less than 0x0600. c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h"&lt;br /&gt;&lt;br /&gt;  Then you tried to&lt;br /&gt;+ Check your source code once again&lt;br /&gt;+ Put all these paths together in the list:&lt;br /&gt;                      C:\Program Files\Microsoft SDKs\Windows\v5.0&lt;br /&gt;                      C:\Program Files\Microsoft SDKs\Windows\v6.0A&lt;br /&gt;                      $(WindowsSdkDir)\include ....&lt;br /&gt;(Go to Tools-&gt;Options and expand Projects and solutions.Select VC++ Directories from the tree&lt;br /&gt;+ ....&lt;br /&gt;&lt;br /&gt;Rebuild and you  got same old error. How to overcome this really, really ugly error?&lt;br /&gt;&lt;br /&gt;Try a simple trick like this: resetting the default configuration of Microsoft Visual Studio: Go to Tools --&gt; Import and Export Settings .... --&gt; Reset all Settings ....&lt;br /&gt;&lt;br /&gt;The trick really works for me ( I'm using Microsoft Visual Studio 2008, may be this trick can be also applied to other versions of Microsoft Visual Studio).&lt;br /&gt;&lt;br /&gt;Try it out!</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/848438155362340539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2009/03/useful-trick-with-microsoft-visual.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/848438155362340539?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/848438155362340539?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2009/03/useful-trick-with-microsoft-visual.html' title='A useful trick with Microsoft Visual Studio 2008'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><thr:total>2</thr:total></entry><entry gd:etag='W/&quot;CEQERXs_fip7ImA9WxVVEEw.&quot;'><id>tag:blogger.com,1999:blog-2620031387395418370.post-4908426725788669774</id><published>2009-03-02T06:56:00.000-08:00</published><updated>2009-03-02T08:45:04.546-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-03-02T08:45:04.546-08:00</app:edited><title>Trinh Cong Son's music- Free Download</title><content type='html'>&lt;div style="text-align: center; font-family: verdana; color: rgb(0, 51, 0);"&gt;&lt;img src="http://dactrung.net/hinh/tacgia/TrinhCongSon-PDuy-Saigon70.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 51, 0);font-family:verdana;font-size:100%;"  &gt;Trinh Cong Son is one of my favourite artists. His music's  very delicious through meaningful words and notes.  Many young people in VietNam think that: His music's just only for older people, and so, they rarely listen to his songs. What a pitty! Actually, when listening to Trinh's songs, you can feel a little bit of sadness. But after that, you can feel that this world is worth to live. Through the perspective of Trinh, you can see that everything has its own meaning: a sunny day,  a blue sky, four seasons of a year....&lt;br /&gt;&lt;br /&gt;Because Trinh's songs are written in Vietnamese, so it's hard for many foreigners to fully understand what he implied. But Music has no boundaries: the symphony of Trinh's songs will be last forever.&lt;br /&gt;&lt;br /&gt;If you like, please download his songs at: &lt;a href="http://www.mediafire.com/anhldmusic"&gt; here &lt;/a&gt; (about 90 songs). And I'm pleased to be a translator (from VietNamese to English) for all his songs. So, don't hesitate to contact me if you want to know the meaning of his songs.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://anhleduc.blogspot.com/feeds/4908426725788669774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anhleduc.blogspot.com/2009/03/trinh-cong-sons-music-free-download.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/4908426725788669774?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2620031387395418370/posts/default/4908426725788669774?v=2'/><link rel='alternate' type='text/html' href='http://anhleduc.blogspot.com/2009/03/trinh-cong-sons-music-free-download.html' title='Trinh Cong Son&apos;s music- Free Download'/><author><name>Le Duc Anh</name><uri>http://www.blogger.com/profile/13198244414094501930</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_aedfFaKTqUU/Sav7YgQhfxI/AAAAAAAAABg/MYfglRcr8VY/S220/Untitled.jpg'/></author><thr:total>0</thr:total></entry></feed>