<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>.NET on Remko's Blog</title><link>https://remkoweijnen.nl/blog/categories/.net/</link><description>Recent content in .NET on Remko's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 14 Mar 2017 15:31:03 +0000</lastBuildDate><atom:link href="https://remkoweijnen.nl/blog/categories/.net/index.xml" rel="self" type="application/rss+xml"/><item><title>Modifying a .NET Application</title><link>https://remkoweijnen.nl/blog/2017/03/14/modifying-net-application/</link><pubDate>Tue, 14 Mar 2017 15:31:03 +0000</pubDate><guid>https://remkoweijnen.nl/blog/2017/03/14/modifying-net-application/</guid><description>&lt;p&gt;I will explain why in a seperate post, but on my MacBook Pro I wanted to use the Intel Thunderbolt driver under BootCamp instead of the ones supplied by Apple.&lt;/p&gt;
&lt;p&gt;The Thunderbolt control program however refused with the following error message:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://remkoweijnen.nl/blog/wp-content/uploads/2017/03/image-5.webp" class="glightbox" data-type="image" data-gallery="post-4061"&gt;&lt;img loading="lazy" decoding="async" style="display: inline;" title="Application Cannot Run" src="https://remkoweijnen.nl/blog/wp-content/uploads/2017/03/image_thumb-5.webp" alt="This application is not supported on Boot Camp. (Thunderbolt devices and networking will work correctly.)" width="382" height="164" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s really beyond me why Intel would deliberately block their Thunderbolt software on Apple hardware (under Windows). Believing this was just a simple hardcoded hardware check rather than any hardware issue that would prevent the drivers to work I proceeded into finding where the check takes place.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Returning a string from unmanaged dll to .net</title><link>https://remkoweijnen.nl/blog/2013/03/13/returning-a-string-from-unmanaged-dll-to-net/</link><pubDate>Wed, 13 Mar 2013 10:01:31 +0000</pubDate><guid>https://remkoweijnen.nl/blog/2013/03/13/returning-a-string-from-unmanaged-dll-to-net/</guid><description>&lt;p&gt;&lt;img style="display: inline; float: right;" src="https://remkoweijnen.nl/blog/wp-content/uploads/recovered/40dc8d791b9e08ae.png" width="88" height="88" align="right" /&gt;I write most of my code in unmanaged languages such as Delphi and C/C++. Sometimes customers ask me to interface my code to their .net code in which case I create a dll for them.&lt;/p&gt;
&lt;p&gt;A recurring thing is that I need to return string to .net.&lt;/p&gt;
&lt;p&gt;There are many ways to do this of course but in all cases we need to manage memory: who will allocate the memory for the string and who is responsible for freeing it?&lt;/p&gt;</description></item><item><title>Making String.IndexOf case insensitive</title><link>https://remkoweijnen.nl/blog/2011/01/29/making-string-indexof-case-insensitive/</link><pubDate>Sat, 29 Jan 2011 10:41:24 +0000</pubDate><guid>https://remkoweijnen.nl/blog/2011/01/29/making-string-indexof-case-insensitive/</guid><description>&lt;p&gt;I don't do much programming in .NET based languages but I have to for some things like the Windows Live Writer plugin I am creating.&lt;/p&gt; &lt;p&gt;I didn't expect this but the &lt;a href="http://msdn.microsoft.com/en-us/library/system.string.indexof.aspx" target="_blank"&gt;String.IndexOf&lt;/a&gt; Method is by default case sensitive.&lt;/p&gt; &lt;p&gt;But we can make it case insensitive if we use one of the overloads: &lt;a href="http://msdn.microsoft.com/en-us/library/ms224425.aspx"&gt;IndexOf(String, StringComparison)&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>