Welcome to AddressOf.com Sign in | Join | Help
in Search

Browse by Tags

All Tags » Interop
Showing page 3 of 4 (39 total posts)
  • Need to programmatically determine what framework versions and service pack levels are installed?

    I found an excellent example written in C++ that showed how to do this using several methods suggested by many different sources to determine the information.  I've converted the code to VB.NET so all of you can benefit as well ;-) You can view the source here.
    Posted to AddressOf.com (Weblog) by CorySmith on September 21, 2004
  • Determine if and what version of the .NET Framework is installed (including service pack levels)?

    I came across an excellent example that shows how to determine what editions and service pack level of the existing Microsoft .NET Framework is installed.  Unfortunately for most of my readers, this code was in C++.  I've converted the code to VB.NET for everyone to benefit ;-) Here's the code: Option Explicit On Option Strict ...
    Posted to AddressOf.com (Weblog) by CorySmith on September 21, 2004
  • What's wrong with the following picture?

    Well, unable to have an actual screen shot, so I'll have to draw it by hand... - Solution1   - Project1     AssemblyInfo.vb     Form1.vb     Class1.vb     Class2.cs     Class3.cs     Interop.cpp     Interop.h So, you have opened a project in VS.NET Whidbey and you see in the solution explore the above 'image'.  What do you see that strikes you ...
    Posted to AddressOf.com (Weblog) by CorySmith on March 9, 2004
  • Using COM? ReleaseComObject is your friend.

    If you are using COM Interop from your .NET application, you really need to review the System.Runtime.InteropServices.Marshal.ReleaseComObject method.  Although setting COM object to Nothing would seem like the logical thing to do, the problem is that it could literally take forever (or at least until you exit your application) until the COM ...
    Posted to AddressOf.com (Weblog) by CorySmith on March 5, 2004
  • [How To] Check to see if Visual Styles are enabled

    After my rant and a some other people picking it up on their blog, I got a response from Raghavendra Prabhu who is part of the .NET Client Team letting us know that VisualStyles in Whidbey has a ton of improvements and resolves the issues I point out and pointed out that using EnableVisualStyles, although has bugs, can be used ...
    Posted to AddressOf.com (Weblog) by CorySmith on February 15, 2004
  • Revenge Of DriveInfo (Drive Serial Numbers)

    Although WMI allows you to gain access to a lot of interesting information, it's obnoxiously slow.  Also, the previous example would only get me the serial numbers for my first two hard drives.  It was now showing the serial number for my third hard drive (which is physically installed on the second controller) or the fourth hard drive (which is ...
    Posted to AddressOf.com (Weblog) by CorySmith on February 14, 2004
  • Windows XP Visual Styles (Themes) [How To / RANT]

    Everyone who knows me will usually accuses me as being part of the 'collective'.  They would have you believe that I think Microsoft can do no wrong.  Well, here's my first official rant about how Microsoft can do something very, very, very wrong. OK, great, they added EnableVisualStyles to .NET 1.1.  Cool.  But it has a couple of bugs ...
    Posted to AddressOf.com (Weblog) by CorySmith on February 14, 2004
  • New Coding 4 Fun Column - Serial Controlled LCD Panel with DBComm

    Duncan Mackenzie describes how to control a serial-port-connected LCD panel using Microsoft Visual Basic .NET and Microsoft Visual C# .NET using a couple of serial components.  One of components mentioned is my very own DBComm component available on GotDotNet Workspaces, mentioned right along side the SAX component that ships as part of the Visual ...
    Posted to AddressOf.com (Weblog) by CorySmith on December 12, 2003
  • Moving from VB6 to VB.NET (Windows Forms)

    I'm constantly running into people who are unsure, afraid, overwhelmed, etc. about the move from Visual Basic 6.0 to Visual Basic .NET.  The reality is that although there are a lot of differences, there are also a lot of similarities.  Depending on the type of development you do, you might find that there is very little difference in how you ...
    Posted to AddressOf.com (Weblog) by CorySmith on November 27, 2003
  • .NET Application Memory Flush via Interop

    Holy crap!!! My application is taking up too much memory and it's just a default form?  What is going on here? Well, this is actually normal with an application utilizing the .NET Framework.  Many things are happening when you launch your application such as code access security, JIT compilation, memory management and the referencing of the ...
    Posted to AddressOf.com (Weblog) by CorySmith on November 20, 2003