<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with ActiveX</title>
      <link>http://ask.metafilter.com/tags/ActiveX</link>
      <description>Questions tagged with 'ActiveX' at Ask MetaFilter.</description>
	  <pubDate>Thu, 14 Jun 2007 22:39:03 -0800</pubDate> <lastBuildDate>Thu, 14 Jun 2007 22:39:03 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>ATL / COM / Automation / ActiveX VC++ 2005 Advice?</title>
	<link>http://ask.metafilter.com/64836/ATL%2DCOM%2DAutomation%2DActiveX%2DVC%2D2005%2DAdvice</link>	
	<description>ATL, COM, Automation in VC++ 2005 - Help me make sense of it all! I&apos;m creating an Outlook 2003 / 2007 Add-In in VC++ using VS 2005. I&apos;ve been referencing &lt;a href=&quot;http://www.codeproject.com/com/outlookaddin.asp&quot;  _blank&gt;these&lt;/a&gt; &lt;a href=&quot;http://www.codeproject.com/atl/outlook2k3addin.asp&quot;  _blank&gt;two&lt;/a&gt; excellent Code Project articles, but I want to go a little deeper...&lt;br&gt;
&lt;br&gt;
Though I&apos;m a seasoned developer, I&apos;ve been away from C++ and COM / Automation for a while. I need a book / website that I guess I would describe as intermediate-level; more than an &quot;Introduction to VC++&quot; but less than &quot;ATL Internals&quot; (which is a great book but is just a little over my head).&lt;br&gt;
&lt;br&gt;
I want to know things like:&lt;br&gt;
&lt;br&gt;
  --  When I use an #import statement, what is raw_interfaces_only doing? Do I need it for my plugin (it&apos;s used in the example code in the articles I mentioned above)? Why?&lt;br&gt;
&lt;br&gt;
  --  How can I avoid calls like HRESULT hr = Session-&amp;gt;get_Folders( &amp;amp;Folders );&lt;br&gt;
And instead just call Folders = Session-&amp;gt;Folders;&lt;br&gt;
More like a normal VC++ app.&lt;br&gt;
&lt;br&gt;
  --  What if I&apos;m trying to #import a file that&apos;s not on the user&apos;s computer? I.e. can I detect if they have Outlook 2003 installed vs. Outlook 2007 and #import accordingly?&lt;br&gt;
&lt;br&gt;
  --  When do I use a CComPtr and when do I use a CComQIPtr??? Can I get by without using them at all?&lt;br&gt;
&lt;br&gt;
  --  In what ways can VS 2005 help me to generate code for my add-in? Do I really have to modify the sink map and COM map by hand to add event sinks?&lt;br&gt;
&lt;br&gt;
BTW no I don&apos;t want to use VB and no, I don&apos;t want to use C# or the CLI.&lt;br&gt;
&lt;br&gt;
Thanks in advance for any help or advice. :D</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.64836</guid>
	<pubDate>Thu, 14 Jun 2007 22:39:03 -0800</pubDate>
	<category>activex</category>
	<category>addin</category>
	<category>add-in</category>
	<category>automation</category>
	<category>c++</category>
	<category>com</category>
	<category>development</category>
	<category>outlook</category>
	<category>plugin</category>
	<category>plug-in</category>
	<category>programming</category>
	<category>visual</category>
	<dc:creator>blahtsk</dc:creator>
	</item>
	<item>
	<title>My finger hurts from hitting print</title>
	<link>http://ask.metafilter.com/60313/My%2Dfinger%2Dhurts%2Dfrom%2Dhitting%2Dprint</link>	
	<description>ActiveX Image view printing problem.  Using the registar of deeds for my county, I&apos;m able to pull up the bylaws for my neighborhood HOA.  The problem is it pulls the 150 pages as tif images and displays them one at a time through an activex control. I click print, then I click next, then print, you get the idea.  How can I print all of these without spending all day doing it?  Bonus points if I can print to a pdf.  Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.60313</guid>
	<pubDate>Tue, 10 Apr 2007 09:21:12 -0800</pubDate>
	<category>activex</category>
	<category>pdf</category>
	<category>printing</category>
	<dc:creator>striker</dc:creator>
	</item>
	<item>
	<title>How to create an instance of an ActiveX control in C# at runtime?</title>
	<link>http://ask.metafilter.com/45181/How%2Dto%2Dcreate%2Dan%2Dinstance%2Dof%2Dan%2DActiveX%2Dcontrol%2Din%2DC%2Dat%2Druntime</link>	
	<description>In C#, how can I &lt;em&gt;at runtime&lt;/em&gt; create an instance of an ActiveX control and then use its methods, properties and events? I have about 30 ActiveX controls which I&apos;m writing an automated testing environment for. My program will read in an XML file which specifies, for example, that creating an instance of &lt;code&gt;MyActiveXControl&lt;/code&gt; and calling the &lt;code&gt;Foo()&lt;/code&gt; method will cause a &lt;code&gt;Bar&lt;/code&gt; event to be fired. To do this, I need to be able to dynamically create an instance of &lt;code&gt;MyActiveXControl&lt;/code&gt;* and call an arbitrary method on it and assign an event handler to an arbitrary event. How?&lt;br&gt;
&lt;br&gt;
&lt;small&gt;The difficulty in creating an instance of the control dynamically is that my C# program is managed code whereas the ActiveX control is unmanaged. There isn&apos;t an easy equivalent of VB&apos;s &lt;code&gt;CreateObject()&lt;/code&gt; (that I know of).&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
&lt;small&gt;&lt;small&gt;* all of the ActiveX controls will be registered on the system, and I&apos;ll know where on the hard disk the .ocx is, if that helps.&lt;/small&gt;&lt;/small&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.45181</guid>
	<pubDate>Thu, 24 Aug 2006 15:41:00 -0800</pubDate>
	<category>activex</category>
	<category>c#</category>
	<category>csharp</category>
	<category>programming</category>
	<category>visualc#</category>
	<category>visualstudio</category>
	<dc:creator>matthewr</dc:creator>
	</item>
	<item>
	<title>Listing ActiveX Controls</title>
	<link>http://ask.metafilter.com/43026/Listing%2DActiveX%2DControls</link>	
	<description>Is there a way to view what ActiveX controls are installed on my Windows XP machine? Surely there&apos;s something built-in to the OS, but I can&apos;t seem to find it. I thought they might show up in Control Panel. Failing that, I thought REGSVR32 would have a list option. But no, not as far as I can tell.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.43026</guid>
	<pubDate>Wed, 26 Jul 2006 12:09:19 -0800</pubDate>
	<category>ActiveX</category>
	<category>Windows</category>
	<dc:creator>iconjack</dc:creator>
	</item>
	<item>
	<title>How do I get the names of an ActiveX control&apos;s members?</title>
	<link>http://ask.metafilter.com/42589/How%2Ddo%2DI%2Dget%2Dthe%2Dnames%2Dof%2Dan%2DActiveX%2Dcontrols%2Dmembers</link>	
	<description>I have to write a Visual Basic 6 program that checks that an ActiveX control&apos;s properties and methods are correctly documented in a Word document. How do I get a list of a control&apos;s properties and methods, given its filename? Given the filename &apos;MyControl.ocx&apos;, for example, how would I obtain an array of its properties and methods?&lt;br&gt;
&lt;br&gt;
&lt;small&gt;I have OLE Viewer, a Microsoft utility that can generate IDL information for an ActiveX control. This contains, amongst other junk, all the control&apos;s properties and methods. Running &apos;oleview.exe &quot;C:/path/to/MyControl.ocx&quot;&apos; generates the IDL in a window - is there a way of saving this IDL stuff to a file using a command-line option that I could call from VB? If so, I could open up the saved IDL file and use VB&apos;s (limited) string functions to get a list of properties and methods.&lt;br&gt;
&lt;br&gt;
Is there, however, an easier way?&lt;br&gt;
&lt;br&gt;
Ideally, I&apos;d like to be able to do &lt;code&gt;CreateObject(&quot;MyControlName&quot;)&lt;/code&gt; and then use some VB function to get a collection of the class member names. All the controls I want to check are registered on my PC.&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
&lt;small&gt;&lt;small&gt;(I&apos;m stuck with VB6 since my work PC is ancient.)&lt;/small&gt;&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.42589</guid>
	<pubDate>Thu, 20 Jul 2006 13:20:00 -0800</pubDate>
	<category>activex</category>
	<category>programming</category>
	<category>vb</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<dc:creator>matthewr</dc:creator>
	</item>
	<item>
	<title>How Can I Write Cross-Browser Links?</title>
	<link>http://ask.metafilter.com/26089/How%2DCan%2DI%2DWrite%2DCrossBrowser%2DLinks</link>	
	<description>Without using any plug-ins or extensions, how can I always force a link to open in IE, regardless of the client browser? I&apos;m trying to do a fairly simple web port that has three existing ActiveX ojbects that aren&apos;t about to get re-written. Of course it works fine in IE but doesn&apos;t in Firefox. I&apos;ve already implemented some browser detect code that tells people &quot;get thee to IE&quot; if they try to launch the pages containing the ActiveX objects.&lt;br&gt;
&lt;br&gt;
What I&apos;d prefer, though, is some kind of client-side link that allows any user the same kind of functionality that Firefox&apos;s &quot;View In IE&quot; plugin does. The ActiveX objects launch in a new, untitled, no-scrollbarred window anyway -- I&apos;d like to be able to force those links to always open in Internet Explorer instead of the default browser. A much more seamless user experience that way.&lt;br&gt;
&lt;br&gt;
Is it even possible to do this programatically? Or am I going to have to stick with providing browser-specific directions throughout the web app, stating that it works best in IE? Thanks.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.26089</guid>
	<pubDate>Tue, 25 Oct 2005 12:13:01 -0800</pubDate>
	<category>activex</category>
	<category>firefox</category>
	<category>ie</category>
	<category>javascript</category>
	<dc:creator>RKB</dc:creator>
	</item>
	<item>
	<title>Triggering programs from a web page</title>
	<link>http://ask.metafilter.com/26065/Triggering%2Dprograms%2Dfrom%2Da%2Dweb%2Dpage</link>	
	<description>Launching programs from a web page without meeting a &quot;save/run&quot; box. Yes, I know this is a bad idea, but I want to switch my windows desktop to an active desktop with clicky links to trigger programs. Traditionally this means a save/run box appearing but I recall that activex controls can trigger cd-rom drives to eject, so I&apos;m wondering if the same thing can trigger programs and files. Anyone any ideas how?&lt;br&gt;
&lt;br&gt;
[Yes, I know the security implications, but this is a firewalled, virus checked machine that never uses IE for external connections and will be running a webpage from an on-machine webserver...]</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.26065</guid>
	<pubDate>Tue, 25 Oct 2005 01:29:32 -0800</pubDate>
	<category>activedesktop</category>
	<category>activex</category>
	<category>exe</category>
	<category>html</category>
	<dc:creator>twine42</dc:creator>
	</item>
	<item>
	<title>Removing SEARCHNAV</title>
	<link>http://ask.metafilter.com/5752/Removing%2DSEARCHNAV</link>	
	<description>F-in&apos; SEARCHNAV! I somehow accepted a cookie from this monster, and it&apos;s annoying me beyond belief. IE 6.0, Windows XP, PC. I&apos;ve deleted it everywhere I can find it, but it makes you log on to their site to download an uninstall, which apparently has some kind of program to hide the booger better. I&apos;ve checked my bookmarks, my downloads, everything. Now I think I&apos;ve deleted it, and emptied my recycle bin, but it&apos;s showing up as an unmovable search toolbar under my Google toolbar. Please help me kill it!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.5752</guid>
	<pubDate>Wed, 10 Mar 2004 07:49:43 -0800</pubDate>
	<category>activex</category>
	<category>cookie</category>
	<category>cookies</category>
	<category>searchnav!</category>
	<category>windows</category>
	<dc:creator>pomegranate</dc:creator>
	</item>
	
	</channel>
</rss>

