Interoperability Conversations (Archived) ForumDo you have questions about interoperability? Discuss them here.© 2009 Microsoft Corporation. All rights reserved.Wed, 18 Mar 2009 19:46:58 Z2aa121d1-a748-4449-89dc-3e2f70448fc6http://social.microsoft.com/Forums/en-US/interopconversations/thread/f9b7c4f5-73ad-46d2-bd0c-aa44cd76ab7chttp://social.microsoft.com/Forums/en-US/interopconversations/thread/f9b7c4f5-73ad-46d2-bd0c-aa44cd76ab7cMoim Hossainhttp://social.microsoft.com/Profile/en-US/?user=Moim%20HossainUsing .Net from VB6 ActiveX controlFolks,<br><br>The scenario I am working currently is as follows:<br><br>I have an ActiveX Control written with VB6 named ABC.OCX, and I want to use a .net class to carry out some tasks that the activeX control needs. So I have written a .net Assembly named MyDotNetAssembly that contains the class MyDotNetClass with it's interface IMyClassInterface. after than, I have checked the build option &quot;Register for COM interop&quot; and used this assembly as a reference assembly form my ActiveX vb project. Than I have created the internet-style CAB file using the &quot;Setup and deployment wizard&quot; of VB6, and the generated output directory contains a sample HTML file that hosts the ActiveX and when I run this HTML form browser it works!!.<br><br>I have then used the ActiveX control inside my ASP.net application's page (using the regular object tag inside html) and it works fine onto the development box.<br><br>So far so good. <br><br>Now, as soon as I try to access that page from outside of Development box, it doesn't render the activeX control at all. No error.....nothing!!! During the first hit, it asked me to install the active X, and I have installed that nice. I have made the web site as a trusted site in my VISTA machine. but it doesn't render anything for that activeX neither shows any errors..?<br><br>Can anyone guess anything..? I would greatly appreciate any helps.<hr class="sig">Doing stuff with .netMon, 16 Mar 2009 12:00:27 Z2009-03-18T15:26:43Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/65a86ad2-5f4b-4bb0-80b7-7206fff8aeaahttp://social.microsoft.com/Forums/en-US/interopconversations/thread/65a86ad2-5f4b-4bb0-80b7-7206fff8aeaamanas0111http://social.microsoft.com/Profile/en-US/?user=manas0111does MSI allow installation of x86 interops in the GAC if the GAC already has the same interops have a higher versioned x64 already installed?Hi,<br><p>  I have found that if there are x64 interops of a particular version installed in the GAC, then MSI does not allow x86 interops (the same interops as the already installed x64) of a lower version to be installed into the GAC. It seems like if the x64 interops are installed beforehand, MSI technology does not take into account that they are x64 while trying to install x86 versions of the interops and instead simply looks at the versions and if they installed interops have higher version, irrespective of the fact that they are of a different architecture (x64 in this case), the x86 interops are not able to be installed.<br></p><p> Interesting if the x86 interops are installed beforehand, that has no bearing on the MSI trying to install x64 versions of those interops irrespective of the actual file version of the interops.</p><p> So, looks like when trying to install x86 interops, MSI technology does not take cognizance of the assembly architecture if there are x64 versions already installed, and instead just looks at the file version. I did run some tests by bumping the version numbers of the interops in question and turns out the above analysis is true. </p><p>  Is this correct. Looking for some confirmation.  </p><p>Thanks,</p><p>Manas</p>Sat, 14 Mar 2009 22:20:00 Z2009-03-18T15:23:06Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/21cd71ee-9423-4ed8-9031-1774ba526751http://social.microsoft.com/Forums/en-US/interopconversations/thread/21cd71ee-9423-4ed8-9031-1774ba526751BMSFVhttp://social.microsoft.com/Profile/en-US/?user=BMSFVWindows 2000 SP4 Domain ControllersI have two Windows 2000 SP4 Server DCs that are hosted on a VMWare box that are only 4GB partitions and therefore can't do an in-place upgrade to Windows 2003 due to disk space limitation etc.  I do have another server I can use..meaning I can build that server fresh with windows 2003 and make it a 2003 DC for this same domain and de-commission one of the other 2000 DCs etc.  Then free up another server to remove the other 2000 DC.  Can I operate with mixed DCs at 2000 and 2003 OS?  What do you recommend for the best process to do this?  What do I need to be aware of and what pre-reqs should I do prior to starting?  Do I need to move any DC roles over to the 2003 server etc?  Thanks much for your help. I just want to make sure I have my ducks in a row prior to starting.<br>Also, my exchange server is already running windows 2003 std sp2 and exchange 2003 sp2 so I assume I am good to proceed without any changes there etc.Tue, 10 Mar 2009 12:33:15 Z2009-03-10T20:33:39Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/074b5cea-f06f-47a1-b3ad-4a3515c3c252http://social.microsoft.com/Forums/en-US/interopconversations/thread/074b5cea-f06f-47a1-b3ad-4a3515c3c252Gagandeep_Singhhttp://social.microsoft.com/Profile/en-US/?user=Gagandeep_SinghQuestion AcriveX Outlook component problem while using with LabVIEW 8.6<div class=avatar><a href="../../../en/profile/?user=Gagandeep_Singh&amp;referrer=http://social.microsoft.com/Forums/en/bookmarks/thread/4c61dcca-d7c2-4916-b9f6-a572a4a19fcd" title="Gagandeep_Singh"><img src="http://i3.social.microsoft.com/Image.avatr?size=Large&amp;user=Gagandeep_Singh&amp;id=00000000-0000-0000-0000-000000000000"></a></div><div class=messageHeader><div class=creation><span class=postedBy><a href="../../../en/profile/?user=Gagandeep_Singh&amp;referrer=http://social.microsoft.com/Forums/en/bookmarks/thread/4c61dcca-d7c2-4916-b9f6-a572a4a19fcd" title="Gagandeep_Singh">Gagandeep_Singh</a></span><span class=affiliation></span><span class=postedOn> - Posted 27 minutes ago</span></div><div class=userRating><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"></div></div><div class=messageData> <p class=MsoNormal><span style="font-size:10pt;font-family:'Calibri','sans-serif'">Hi,</span></p><p class=MsoNormal><span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">I am using LabView 8.6 version. I am facing an issue with outlook component that i am using in the code.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The description for the same is as follows.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br>  I <span style="font-size:10pt;font-family:'Calibri','sans-serif'">use ActiveX component for outlook to send automated mails repeatedly from our LabView application. While running the application for a long time I got the following exception from the outlook component:</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Error:-2147221223 :Exception occurred in Microsoft Office Outlook: Cannot create the e-mail message because a data file to send and receive messages cannot be found. To add a data file, such as a personal folder file, double-click the Mail icon in Windows Control Panel. in EmailCommunicationHandler.vi-&gt;DataAcquisition.vi</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The sending of emails worked fine for first few emails and then I consistently got this error.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The outlook application was configured properly and we had proper data files and accounts configured for sending and receiving the emails. </span><br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Can you kindly let me know what is the root cause of this exception and how to resolve this issue.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Regards</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Gagandeep Singh</span> </p> </div>Tue, 10 Mar 2009 09:33:20 Z2009-03-18T15:20:59Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ec9422f0-6e48-4d57-b5e9-2c543a47f64dhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ec9422f0-6e48-4d57-b5e9-2c543a47f64dkpapahttp://social.microsoft.com/Profile/en-US/?user=kpapaInternet ExplorerClass Visible property not working when InternetExplorerClass is instantiated in a web serviceHello,<br>I'm trying to open a new Internet Explorer window each time a web method of a certain web service is called.<br>The window seems to be created as I can see the process iexplore.exe in the task manager, but is always invisible even if I set Visible property of InternetExplorerClass instance to true.<br>Below is the code I am using:<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"> [WebMethod] </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">    public string OpenIE() { </td></tr><tr><td>        ThreadStart <font style="color:red">ts</font><font style="font-size:11px"> = </font><font style="color:blue">delegate</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                             { </td></tr><tr><td>                                 InternetExplorer <font style="color:red">ie</font><font style="font-size:11px"> = </font><font style="color:blue">new</font><font style="font-size:11px"> InternetExplorerClass(); </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                                 <font style="color:red">ie.Visible</font><font style="font-size:11px"> = </font><font style="color:blue">true</font><font style="font-size:11px">; </font></td></tr><tr><td>                                  </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                             }; </td></tr><tr><td>        Thread <font style="color:red">t</font><font style="font-size:11px"> = </font><font style="color:blue">new</font><font style="font-size:11px"> Thread(ts); </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">        t.SetApartmentState(ApartmentState.STA); </td></tr><tr><td>        t.Start(); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">        t.Join(); </td></tr><tr><td>        return string.Empty; </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    } </td></tr></tbody></table></div><br>The above code executes successfully and produces no exceptions.<br>Does anyone know what the problem could be?<br>Thanks<br><br> <hr class=sig>Kostas PapakonstantinouWed, 17 Dec 2008 11:07:29 Z2009-02-25T11:11:11Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/be254dc4-834a-41f3-ac5c-3f596a869d19http://social.microsoft.com/Forums/en-US/interopconversations/thread/be254dc4-834a-41f3-ac5c-3f596a869d19Rajeev2009http://social.microsoft.com/Profile/en-US/?user=Rajeev2009Help Manipulating Office 2003 Word Autoshapes using C# Can anyone provide details to show how Autoshapes creation/resize (Word Office 2003)etc can be automated using C# (.Net framework 2.0).  It will be great if anybody can provide urls and code samples for the same.  I am new to word automation. <br><br>Thanks in Advance,<br>RajeevFri, 06 Feb 2009 04:41:37 Z2009-02-07T08:12:58Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/b74e8053-dc1c-42d6-8d40-cc39b4a8be48http://social.microsoft.com/Forums/en-US/interopconversations/thread/b74e8053-dc1c-42d6-8d40-cc39b4a8be48elaine barryhttp://social.microsoft.com/Profile/en-US/?user=elaine%20barrygetting upgrades on XP2 via ParallelsHello.  I am using Windows XP SP2 on a Mac OSX, via a Parallels program.   When I try to download an upgrade to Internet Explorer 7 in order to upgrade to SP3, I get a message &quot;We were unable to install. . . .&quot;   I've tried making exceptions to the firewall, even canceling the firewall, but nothing works.  Meanwhile, I can't get any updates whatsoever.  I'd be grateful for any guidance. Apologies if I'm in the wrong subject category.  Thu, 05 Feb 2009 15:52:42 Z2009-02-05T22:08:32Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/6e03aa2c-5fde-4d40-a212-ddcaeb1e1938http://social.microsoft.com/Forums/en-US/interopconversations/thread/6e03aa2c-5fde-4d40-a212-ddcaeb1e1938ChandrashekarYalagihttp://social.microsoft.com/Profile/en-US/?user=ChandrashekarYalagiGeneral Discussion I am trying to retrieve a selected value from a listbox and store it in a string variable using Win API<font class="w_Dgrey_small">I am trying to retrieve a selected value from a listbox and store it in <br>a string  variable.<br></font><font class="w_Dgrey_small">I am using the following code: <br>            int count = 0;<br>            List&lt;string&gt; retVal = new List&lt;string&gt;();<br>            string item;<br>            IntPtr zero = new IntPtr(0);           <br><br>            //Get the count of items in the list<br>            IntPtr ptr = SendMessage(listBox1.Handle, LB_GETCOUNT, zero, zero);<br>            <br>            count = ptr.ToInt32();<br><br>            StringBuilder sbText = new StringBuilder(256 + 1);<br>            SendMessage(listBox1.Handle, LB_GETTEXT, (count - 1), sbText);<br>            string str = sbText.ToString();<br><br>            MessageBox.Show(&quot;Text:&quot; + str.Trim());<br>    </font> <font class="w_Dgrey_small">This does not work and when I look at the value of Text it is <br>    &quot;[0&#14;&#1;9]&quot; and not as I expected.<p>im passing the listbox handle to VC dll, which in turn will post back message to listbox.the problem is &quot;listbox.count&quot; shows me zero.so im using WIN API to retrieve the text from listbox. using LB_GETCOUNT im able to get the counts correctly but using LB_GETTEXT it gives me some junk value.</p></font> Fri, 23 Jan 2009 12:00:54 Z2009-01-27T23:32:41Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/65d5fea5-f507-40f2-9d99-53061a310410http://social.microsoft.com/Forums/en-US/interopconversations/thread/65d5fea5-f507-40f2-9d99-53061a310410newenglandguyhttp://social.microsoft.com/Profile/en-US/?user=newenglandguyProblem installing Office Home 2007My son just bought MS Office Home and Student 2007 and went to install it and was having problems, so he brought his PC and the box to me.  Figured Dad could figure it out.  Well I'm on here, so guess what - I couldn't.  <br><br>It comes up that it can find the following message &quot;Setup cannot find HomeStudentr.WW\HomeSrWW.cab. <br>Browse to valid installation source, then click OK&quot;.  Well the file is on the CD, so I pointed to the directory and it still comes up and says it can't locate.  I then copied that whole directory to the C: drive and tried that.  Still gives me the same issue.<br><br>Any ideas?<br><br>Thanks,<br><br><br>Dave<br> Sat, 17 Jan 2009 14:05:09 Z2009-01-18T00:54:16Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/e28c38b7-0b62-4963-89e8-e673c87d8f2dhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/e28c38b7-0b62-4963-89e8-e673c87d8f2dChristoph Wienandshttp://social.microsoft.com/Profile/en-US/?user=Christoph%20WienandsParams array does not work with COM InteropHello everybody,<br><br>My main problem is that I cannot get methods with params array parameters working when they are called from a scripting language such as JavaScript.<br><br>Details: I'm stuck with a JavaScript/C# interop problem when using the WebBrowser control. I assign a C# object to the Webbrowser.ObjectForScripting property. Now, any JavaScript can access this object through 'window.external' and call methods and read/write properties. The class definition for this object is attributed with ComVisible.<br><br>This all works fine for methods with a fixed amount of parameters. However, I have to provide methods that accept an unlimited number of parameters. In C# this is done with the 'params object[]' construct. However, COM doesn't like this. From what I found out so far I think that this cannot be accomplished using an early-bound COM interface. Rather, when looking from a pure COM persepctive my object needs to implement the IDispatch interface. Then the IDispatch.Invoke method accepts any number of parameters.<br><br>I have searched the Internet for quite a while but could not find much relevant information. There are bits and pieces such as the DispId attribute but I don't see how this could fit my particular problem.<br><br>Hare a couple of questions that are floating around and whose answers might help soving the issue at hand...<br>-How does VB6 achieve variable number of parameters, especially when no late-binding is used?<br>-If I have to implement a C# method that accepts an array of variants (or so), will the scripting client still be able to use a syntax like 'object.method(var1, var2, var3,...)<br>-Is it possible or required to implement IDispatch manually in C#? Or can some of the Interop attributes be used to achieve the 'params' effect for the scripting client?<br><br>Phew, so many questions, so few answers ;-) Thanks a lot for your sharing thoughts,<br><br>ChristophMon, 05 Jan 2009 22:17:51 Z2009-01-15T22:51:56Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/c160b732-dd47-49b3-afab-31ddb1d0ead2http://social.microsoft.com/Forums/en-US/interopconversations/thread/c160b732-dd47-49b3-afab-31ddb1d0ead2boredaz81http://social.microsoft.com/Profile/en-US/?user=boredaz81cant get Vista to work anymoremy vista has been working fine for almost 2 months but crashed with an error code: 0XC004E003...so far it will only let me activate my internet and input a product key which i did and it failed to activate the entered key.  i went to a forum that showed me how to try to diagnose and it lead me to this site and gave me instructions on how to run a diagnostics <br><br>and here it is, i hope someone can please help!!! im sorry if im not in the roght forum page but this is the best i can do with limited internet. thanks<br><br>Diagnostic Report (1.7.0110.1):<br>-----------------------------------------<br>WGA Data--&gt;<br>Validation Status: Invalid License<br>Validation Code: 50<br>Online Validation Code: 0xc004c4a8<br>Cached Validation Code: N/A, hr = 0x80004005<br>Windows Product Key: *****-*****-F4GJK-KG77H-B9HD2<br>Windows Product Key Hash: iJAth4TbScMi8HdcPurlASXdEkw=<br>Windows Product ID: 89578-OEM-7332157-00204<br>Windows Product ID Type: 2<br>Windows License Type: OEM SLP<br>Windows OS version: 6.0.6000.2.00010300.0.0.003<br>ID: {E6EDB89C-DE9A-4751-83E5-17D0730B5B4F}(3)<br>Is Admin: Yes<br>TestCab: 0x0<br>WGA Version: N/A, hr = 0x80070002<br>Signed By: N/A, hr = 0x80070002<br>Product Name: Windows Vista (TM) Home Premium<br>Architecture: 0x00000000<br>Build lab: 6000.vista_gdr.080917-1612<br>TTS Error: <br>Validation Diagnostic: <br>Resolution Status: N/A<br><br>WgaER Data--&gt;<br>ThreatID(s): N/A, hr = 0x80070002<br>Version: N/A, hr = 0x80070002<br><br>WGA Notifications Data--&gt;<br>Cached Result: N/A, hr = 0x80070002<br>File Exists: No<br>Version: N/A, hr = 0x80070002<br>WgaTray.exe Signed By: N/A, hr = 0x80070002<br>WgaLogon.dll Signed By: N/A, hr = 0x80070002<br><br>OGA Notifications Data--&gt;<br>Cached Result: N/A, hr = 0x80070002<br>Version: N/A, hr = 0x80070002<br>WGATray.exe Signed By: N/A, hr = 0x80070002<br>OGAAddin.dll Signed By: N/A, hr = 0x80070002<br><br>OGA Data--&gt;<br>Office Status: 109 N/A<br>OGA Version: N/A, 0x80070002<br>Signed By: N/A, hr = 0x80070002<br>Office Diagnostics: 025D1FF3-282-80041010_025D1FF3-170-80041010_025D1FF3-171-1_025D1FF3-434-80040154_025D1FF3-178-80040154_025D1FF3-179-2_025D1FF3-185-80070002_025D1FF3-199-3_FA827CE6-153-8007007e_FA827CE6-180-8007007e<br><br>Browser Data--&gt;<br>Proxy settings: N/A<br>User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Win32)<br>Default Browser: C:\Program Files\Mozilla Firefox\firefox.exe<br>Download signed ActiveX controls: Prompt<br>Download unsigned ActiveX controls: Disabled<br>Run ActiveX controls and plug-ins: Allowed<br>Initialize and script ActiveX controls not marked as safe: Disabled<br>Allow scripting of Internet Explorer Webbrowser control: Disabled<br>Active scripting: Allowed<br>Script ActiveX controls marked as safe for scripting: Allowed<br><br>File Scan Data--&gt;<br><br>Other data--&gt;<br>Office Details: &lt;GenuineResults&gt;&lt;MachineData&gt;&lt;UGUID&gt;{E6EDB89C-DE9A-4751-83E5-17D0730B5B4F}&lt;/UGUID&gt;&lt;Version&gt;1.7.0110.1&lt;/Version&gt;&lt;OS&gt;6.0.6000.2.00010300.0.0.003&lt;/OS&gt;&lt;Architecture&gt;x32&lt;/Architecture&gt;&lt;PKey&gt;*****-*****-*****-*****-B9HD2&lt;/PKey&gt;&lt;PID&gt;89578-OEM-7332157-00204&lt;/PID&gt;&lt;PIDType&gt;2&lt;/PIDType&gt;&lt;SID&gt;S-1-5-21-3489811948-3569974703-3262264101&lt;/SID&gt;&lt;SYSTEM&gt;&lt;Manufacturer&gt;Dell Computer Corporation&lt;/Manufacturer&gt;&lt;Model&gt;Dimension 2400               &lt;/Model&gt;&lt;/SYSTEM&gt;&lt;BIOS&gt;&lt;Manufacturer&gt;Dell Computer Corporation&lt;/Manufacturer&gt;&lt;Version&gt;A05&lt;/Version&gt;&lt;SMBIOSVersion major=&quot;2&quot; minor=&quot;3&quot;/&gt;&lt;Date&gt;20031202000000.000000+000&lt;/Date&gt;&lt;/BIOS&gt;&lt;HWID&gt;05323507018400F2&lt;/HWID&gt;&lt;UserLCID&gt;0409&lt;/UserLCID&gt;&lt;SystemLCID&gt;0409&lt;/SystemLCID&gt;&lt;TimeZone&gt;US Mountain Standard Time(GMT-07:00)&lt;/TimeZone&gt;&lt;iJoin&gt;0&lt;/iJoin&gt;&lt;SBID&gt;&lt;stat&gt;3&lt;/stat&gt;&lt;msppid&gt;&lt;/msppid&gt;&lt;name&gt;&lt;/name&gt;&lt;model&gt;&lt;/model&gt;&lt;/SBID&gt;&lt;OEM/&gt;&lt;BRT/&gt;&lt;/MachineData&gt;&lt;Software&gt;&lt;Office&gt;&lt;Result&gt;109&lt;/Result&gt;&lt;Products/&gt;&lt;Applications/&gt;&lt;/Office&gt;&lt;/Software&gt;&lt;/GenuineResults&gt;  <br><br>Spsys.log Content: 0x80070002<br><br>Licensing Data--&gt;<br>Software licensing service version: 6.0.6000.16386<br>Name: Windows(TM) Vista, HomePremium edition<br>Description: Windows Operating System - Vista, OEM_SLP channel<br>Activation ID: bffdc375-bbd5-499d-8ef1-4f37b61c895f<br>Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f<br>Extended PID: 89578-00146-321-500204-02-1033-6000.0000-0092009<br>Installation ID: 010633093423531075449102780206288454826832580700445335<br>Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkId=57201<br>Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkId=57203<br>Use License URL: http://go.microsoft.com/fwlink/?LinkId=57205<br>Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkId=57204<br>Partial Product Key: B9HD2<br>License Status: Unlicensed<br><br>HWID Data--&gt;<br>HWID Hash Current: MgAAAAEAAgABAAIAAQABAAAAAgABAAEAJJS0WVACErGIyTIfgM1ulPL0DrtMl6xW6qU=<br><br>OEM Activation 1.0 Data--&gt;<br>N/A<br><br>OEM Activation 2.0 Data--&gt;<br>BIOS valid for OA 2.0: yes, but no SLIC table<br>Windows marker version: N/A<br>OEMID and OEMTableID Consistent: N/A<br>BIOS Information: <br>  ACPI Table Name    OEMID Value    OEMTableID Value<br>  APIC            DELL          2400   <br>  FACP            DELL          2400   <br>  BOOT            DELL          2400   <br>  SSDT            DELL        st_ex<br><br><br><br> Sat, 10 Jan 2009 00:18:57 Z2009-01-15T21:59:31Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/34aafbf0-bf2d-4e04-913a-4f6b94794c7ehttp://social.microsoft.com/Forums/en-US/interopconversations/thread/34aafbf0-bf2d-4e04-913a-4f6b94794c7eBonnieDhttp://social.microsoft.com/Profile/en-US/?user=BonnieDCannot access my external drivesI am using Windows XP and use external hard drives to back up my information.  It was working fine until recently when my PC  stopped recognizing that there was a drive attached at all.  Does anyone know how to fix this?  I have connected and reconnected the external drives and also tried different USB ports.<br><br>Have I posted this to the correct forum.  Someone please let me know where I can find an answer to this.<br><br><br><br>BonnieFri, 09 Jan 2009 17:24:31 Z2009-01-15T21:50:25Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/61b7c90e-47dc-4124-965d-d81fbea8b966http://social.microsoft.com/Forums/en-US/interopconversations/thread/61b7c90e-47dc-4124-965d-d81fbea8b966RoadManiachttp://social.microsoft.com/Profile/en-US/?user=RoadManiacProblem in calling 32 bit COM component from C# .NET on 64 bit windows server 2008 machine - events not firingHi<br>I have C# .NET code that calls a third party 32 bit COM component. This COM component will fire events that I need to subscribe to and handle.<br>My server runs windows server 2008 while my development machine runs windows xp(64 bit).<br><br>I have installed the COM component and its 2 dependencies in the syswow64 folder on both machines. Then I add a reference to the COM dll using the add references wizard - COM tab. This generates the interop dll for the third party component.<br><br>While this works fine on my development machine - events are fired which I can handle in my .NET code, it does not work on the server.<br>No errors are thrown on the server. I can instantiate an object of the third party component . I can even set its properties and read them back. However no events are thrown from it.<br><br>I have tried hooking up events using the standard += method and also tried using the IConnectionPointContainer method (event handling without delegates). Both do not work on the server and both work on my machine. It also runs on other machines that I have tried.<br><br>I am running them as admin on both machines. <br>The third party provider is not able to recreate this error either - been trying for 3 weeks now.<br><br> Fri, 09 Jan 2009 16:26:46 Z2009-01-15T21:48:50Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ea306da9-1a3d-4292-8711-bd73aa63d585http://social.microsoft.com/Forums/en-US/interopconversations/thread/ea306da9-1a3d-4292-8711-bd73aa63d585DarenYeohttp://social.microsoft.com/Profile/en-US/?user=DarenYeoProblem with processing .hcc files to display help contents using Windows XP Professional Hi,<br><br>I encountered a problem when trying to process the contents a .hcc file to display help contents. Instead of displaying the contents, it displayed a blank window. <br><br>The code I used to generate it is as follows:<br><br>&lt;object id=&quot;hhctrl&quot; codebase=&quot;../../sam/hhctrl.ocx#Version=4,74,8793,0&quot; type=&quot;application/x-oleobject&quot; height=&quot;87%&quot; width=&quot;100%&quot; classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;&gt;<br>&lt;param NAME=&quot;Width&quot; VALUE=&quot;13123&quot;&gt;<br>&lt;param NAME=&quot;Height&quot; VALUE=&quot;6500&quot;&gt;<br>&lt;param NAME=&quot;Command&quot; VALUE=&quot;Contents&quot;&gt;<br>&lt;param NAME=&quot;Item1&quot; VALUE=&quot;../common/all.hhc&quot;&gt;<br>&lt;/object&gt;<br><br>It could be due to the service 2 upgrade on windows. If it is really a compatibility problem, are there any other alternatives to implement it? <br><br>Thanks.Mon, 22 Dec 2008 02:46:34 Z2009-01-15T21:37:00Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/12121603-ddd8-45c0-8a20-76208bf50cbbhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/12121603-ddd8-45c0-8a20-76208bf50cbbYogesh.Patilhttp://social.microsoft.com/Profile/en-US/?user=Yogesh.PatilC#.NET + Java script error in Screen Scrapping application<p style="margin:0in 0in 0pt"><font face=Calibri>We are facing some issues in our current application. The details about the problem are given in comments.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Comment : We are doing screen scrapping application using C#.NET  Win forms and web browser control. We need to automate “search” functionality in one of the web application hosted in the web browser control. We have 2 pages viz. “Search” page and “DetailsResult” page.  The details about the issue is given in steps.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 1: when the application is launched “Search” page is loaded in to web browser control</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 2: we programmatically provide data to be searched in text fields and click on the search button on the “Search” page</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 3: Then, search results are displayed on “Grid” control on the same page</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 4: The details about the search result is shown in “Details” Page. This page is called as soon as we click on the hyperlink present in the data grid.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>For the first iteration, i.e. from step 1 to step 4, works fine. </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>However the problem starts for second iteration. When we try to search new records as per the step 2 we get an java script error “Connection undefined”. And hence code is not able to perform step 3 and step 4.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p><span style="font-size:11pt;font-family:'Calibri','sans-serif'">Can anyone provide pointers about the above issue?</span> <br><br>Thanks &amp; Regards,<br>- YogeshThu, 18 Dec 2008 07:57:02 Z2009-01-15T21:34:53Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/66ac7a10-7283-4528-a395-be7ed9eea307http://social.microsoft.com/Forums/en-US/interopconversations/thread/66ac7a10-7283-4528-a395-be7ed9eea307Stanislav Yudinhttp://social.microsoft.com/Profile/en-US/?user=Stanislav%20YudinQuestion about MS DHCP server<font face=Verdana>Sorry, this is cross-post from &quot;</font><font style="font-size:12px" face=Verdana>Using the Open Specifications</font><font face=Verdana>&quot;</font>, but I'm not sure that I've used right place<br><font face=Verdana><br>But anyway...<br> There is a problem with how MS DHCP server handles option 55 specified by client in offer/request packets. One of my dhcp clients sends discover/offer with a number of required options in value of option 55 (see http://www.faqs.org/rfcs/rfc1533.html, </font><font face=Verdana>9.6. Parameter Request List). DHCP server responds with exactly requested </font>option but without some witch were not requested. That client actually wanted to receive some more together with requested ones (and rfc say that option 55 do not set limit on what should be returned but specify order of option which should be used in response). So I'm looking for any way to override that behavour and make dhcp server respond with some more options together with specified ones, actually a way to override that list specified by client. So if there are any ideas on how to achive that, please give a clue...<br> <hr class="sig">Quilibet fortunae suae faberWed, 17 Dec 2008 11:36:02 Z2008-12-17T22:34:20Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ab9bb1ee-5c2d-42ae-a401-3360d714b183http://social.microsoft.com/Forums/en-US/interopconversations/thread/ab9bb1ee-5c2d-42ae-a401-3360d714b183ChadNhttp://social.microsoft.com/Profile/en-US/?user=ChadNwpf popup does not work with WindowsFromsHost<font color="#0000ff" size=2><font color="#0000ff" size=2> <p><font color="#000000">If I have a popup with windows forms control instead of a WPF control and the StaysOpen is set to 'false'. The first time I click on the windows forms control the popup closes. How can I fix this?<br></font><br>private</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>void</font></font><font size=2> m_TestButton_Click(</font><font color="#0000ff" size=2><font color="#0000ff" size=2>object</font></font><font size=2> sender, </font><font color="#2b91af" size=2><font color="#2b91af" size=2>RoutedEventArgs</font></font><font size=2> e)</p> <p>{</p> <p></font><font color="#2b91af" size=2><font color="#2b91af" size=2>Button</font></font><font size=2> b = sender </font><font color="#0000ff" size=2><font color="#0000ff" size=2>as</font></font> <font color="#2b91af" size=2><font color="#2b91af" size=2>Button</font></font><font size=2>;</p> <p></font><font color="#2b91af" size=2><font color="#2b91af" size=2>Popup</font></font><font size=2> <span class=RadEWrongWord>popup</span> = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>new</font></font> <font color="#2b91af" size=2><font color="#2b91af" size=2><span class=RadEWrongWord>Popup</span></font></font><font size=2>();</p> <p></p> <p>{</p> <p></font><font color="#2b91af" size=2><font color="#2b91af" size=2><span class=RadEWrongWord>WindowsFormsHost</span></font></font><font size=2> <span class=RadEWrongWord>wf</span>_host = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>new</font></font> <font color="#2b91af" size=2><font color="#2b91af" size=2><span class=RadEWrongWord>WindowsFormsHost</span></font></font><font size=2>();</p> <p><span class=RadEWrongWord>wf</span>_host.Background = </font><font color="#2b91af" size=2><font color="#2b91af" size=2><span class=RadEWrongWord>SystemColors</span></font></font><font size=2>.<span class=RadEWrongWord>ControlBrush</span>;</p> <p><span class=RadEWrongWord>wf</span>_host.Child = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>new</font></font> <font color="#2b91af" size=2><font color="#2b91af" size=2><span class=RadEWrongWord>UserControl1</span></font></font><font size=2>();</p> <p><span class=RadEWrongWord>popup</span>.Child = <span class=RadEWrongWord>wf</span>_host;</p> <p>}</p> <p><span class=RadEWrongWord>popup</span>.Placement = </font><font color="#2b91af" size=2><font color="#2b91af" size=2><span class=RadEWrongWord>PlacementMode</span></font></font><font size=2>.Right;</p> <p><span class=RadEWrongWord>popup</span>.<span class=RadEWrongWord>StaysOpen</span> = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>false</font></font><font size=2>;</p> <p><span class=RadEWrongWord>popup</span>.<span class=RadEWrongWord>PlacementTarget</span> = b;</p> <p><span class=RadEWrongWord>popup</span>.Width = 250;</p> <p><span class=RadEWrongWord>popup</span>.<span class=RadEWrongWord>IsOpen</span> = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>true</font></font><font size=2>;</p> <p>}</p></font>Mon, 15 Dec 2008 19:10:27 Z2008-12-17T22:32:27Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/2297231a-eca7-4969-b30d-94e14ab46ed9http://social.microsoft.com/Forums/en-US/interopconversations/thread/2297231a-eca7-4969-b30d-94e14ab46ed9sashismehttp://social.microsoft.com/Profile/en-US/?user=sashismeExcel interop - 80080005 error I work with excel 2003 interop in my asp.net web service. It basically converts the excel to xml so that I can parse the excel spreadsheet.<br>Since there is a problem of excel interop cleanup, i create a pool of excel objects and keep them in memory. <br>The problem is, intermittently i get the error:<br>Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005.<br>This does not happen for all requests. It happens randomly. Sometimes after few instatiations it throws up this error for every new excel object i request. <br>What could be the reason?<br>I have given launch and activation permissions to  aspnet account on excel in dcomcnfg.<br>The trouble is this is happening &quot;randomly&quot;.<br>I don't use impersonation.Thu, 11 Dec 2008 11:16:56 Z2008-12-15T20:44:22Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/51c91f3d-86d8-4a8d-b2f6-70bc6ff863cehttp://social.microsoft.com/Forums/en-US/interopconversations/thread/51c91f3d-86d8-4a8d-b2f6-70bc6ff863ceInterophttp://social.microsoft.com/Profile/en-US/?user=Interopif included afxwinforms.h; createinstance for component present in same dll fails.  Hi,<br><br>I have one dll containing 3 MFC com component and some 2-3 MFC dailog. I want to load one Managed (C#) control in one of the dialog. I have added managed control in MFC dialog, compiler option for file set to /clr. dll created without any error. <br><br>But when I call CreateInstance for any of the MFC component, it fails saying &quot;0x80040111 ClassFactory cannot supply requested class &quot;. It works fine if i remove managed control from dialog.<br><br>Further, I investigated and found that whether I add managed control or not it does not have any effect. Only when i include in any file and compile using /clr option; CreateInstance falis with above error. if i remove and keep /clr option then it works fine.<br><br>ThanksThu, 11 Dec 2008 08:07:49 Z2009-02-18T03:45:59Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/19d33c51-cbdb-4f91-bbf4-6ab6ad33762bhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/19d33c51-cbdb-4f91-bbf4-6ab6ad33762bOanaMarinahttp://social.microsoft.com/Profile/en-US/?user=OanaMarinaExcel interop<span class=value>I have an application that is exporting some data in an excel file. The problem is when the export is ran on a <nobr><a style="color:rgb(247, 130, 0);text-decoration:underline;background-color:transparent;font-size:1em;padding-bottom:1px;line-height:1em" class=tfTextLink>machine</a></nobr> that doesn't have Excel 2003 installed. When I try to export on a machine that has office Xp installed i have the error below, even if i test the version of excel installed. I don't understand why it tries to find the office dll, even if I don't try to export. And the error happens only if I press the export button, it doesn't happen on other buttons on the form. And it seems that it doesn't even reach the IsOffice2003 method, because i put a message to be displayed before the call to the method and the message didn't appear.<br><br>See the end of this message for details on <nobr><a style="color:rgb(247, 130, 0);text-decoration:underline;background-color:transparent;font-size:1em;padding-bottom:1px;line-height:1em" class=tfTextLink>invoking</a></nobr> <br>just-in-time (JIT) debugging instead of this dialog box.<br><br>************** Exception Text **************<br>System.IO.FileNotFoundExce<wbr>ption: Could not load file or assembly 'Microsoft.Office.Interop.<wbr>Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e<wbr>9429c' or one of its dependencies. The system cannot find the file specified.<br>File name: 'Microsoft.Office.Interop.<wbr>Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e<wbr>9429c'<br>   at AlcatelLucent.ALU9155.AFP.<wbr>UI.Benchma<wbr>rkForm.btn<wbr>Export_Cli<wbr>ck(Object sender, EventArgs e)<br>   at System.Windows.Forms.Contr<wbr>ol.OnClick<wbr>(EventArgs<wbr> e)<br>   at System.Windows.Forms.Butto<wbr>n.OnClick(<wbr>EventArgs e)<br>   at System.Windows.Forms.Butto<wbr>n.OnMouseU<wbr>p(MouseEve<wbr>ntArgs mevent)<br>   at System.Windows.Forms.Contr<wbr>ol.WmMouse<wbr>Up(Message<wbr>&amp; m, MouseButtons button, Int32 clicks)<br>   at System.Windows.Forms.Contr<wbr>ol.WndProc<wbr>(Message&amp; m)<br>   at System.Windows.Forms.Butto<wbr>nBase.WndP<wbr>roc(Messag<wbr>e&amp; m)<br>   at System.Windows.Forms.Butto<wbr>n.WndProc(<wbr>Message&amp; m)<br>   at System.Windows.Forms.Contr<wbr>ol.Control<wbr>NativeWind<wbr>ow.OnMessa<wbr>ge(Message<wbr>&amp; m)<br>   at System.Windows.Forms.Contr<wbr>ol.Control<wbr>NativeWind<wbr>ow.WndProc<wbr>(Message&amp; m)<br>   at System.Windows.Forms.Nativ<wbr>eWindow.Ca<wbr>llback(Int<wbr>Ptr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br><br>WRN: Assembly binding logging is turned OFF.<br>To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F<wbr>usion!Enab<wbr>leLog] (DWORD) to 1.<br>Note: There is some performance penalty associated with assembly bind failure logging.<br>To turn this feature off, remove the registry value [HKLM\Software\Microsoft\F<wbr>usion!Enab<wbr>leLog].<br><br><br><br>************** Loaded Assemblies **************<br>mscorlib<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.832 (QFE.050727-8300)<br>    CodeBase: file:///C:/WINDOWS/Microso<wbr>ft.NET/Fra<wbr>mework/v2.<wbr>0.50727/ms<wbr>corlib.dll<wbr><br>--------------------------<wbr>----------<wbr>----<br>ALU9155.AFP<br>    Assembly Version: 2.1.0.50<br>    Win32 Version: 2.1.0.50<br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/ALU<wbr>9155.AFP.D<wbr>LL<br>--------------------------<wbr>----------<wbr>----<br>System.Windows.Forms<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.832 (QFE.050727-8300)<br>    CodeBase: file:///C:/WINDOWS/assembl<wbr>y/GAC_MSIL<wbr>/System.Wi<wbr>ndows.Form<wbr>s/2.0.0.0_<wbr>_b77a5c561<wbr>934e089/Sy<wbr>stem.Windo<wbr>ws.Forms.d<wbr>ll<br>--------------------------<wbr>----------<wbr>----<br>System<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.832 (QFE.050727-8300)<br>    CodeBase: file:///C:/WINDOWS/assembl<wbr>y/GAC_MSIL<wbr>/System/2.<wbr>0.0.0__b77<wbr>a5c561934e<wbr>089/System<wbr>.dll<br>--------------------------<wbr>----------<wbr>----<br>System.Drawing<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.832 (QFE.050727-8300)<br>    CodeBase: file:///C:/WINDOWS/assembl<wbr>y/GAC_MSIL<wbr>/System.Dr<wbr>awing/2.0.<wbr>0.0__b03f5<wbr>f7f11d50a3<wbr>a/System.D<wbr>rawing.dll<wbr><br>--------------------------<wbr>----------<wbr>----<br>Interop.AFPApiLib<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.0.0<br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/Int<wbr>erop.AFPAp<wbr>iLib.DLL<br>--------------------------<wbr>----------<wbr>----<br>PropertyPages<br>    Assembly Version: 1.0.0.0<br>    Win32 Version: <br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/Pro<wbr>pertyPages<wbr>.DLL<br>--------------------------<wbr>----------<wbr>----<br>Interop.FSKGISLib<br>    Assembly Version: 1.0.0.0<br>    Win32 Version: 1.0.0.0<br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/Int<wbr>erop.FSKGI<wbr>SLib.DLL<br>--------------------------<wbr>----------<wbr>----<br>Interop.Atoll<br>    Assembly Version: 1.0.0.0<br>    Win32 Version: 1.0.0.0<br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/Int<wbr>erop.Atoll<wbr>.DLL<br>--------------------------<wbr>----------<wbr>----<br>Accessibility<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.42 (RTM.050727-4200)<br>    CodeBase: file:///C:/WINDOWS/assembl<wbr>y/GAC_MSIL<wbr>/Accessibi<wbr>lity/2.0.0<wbr>.0__b03f5f<wbr>7f11d50a3a<wbr>/Accessibi<wbr>lity.dll<br>--------------------------<wbr>----------<wbr>----<br>System.Data<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.832 (QFE.050727-8300)<br>    CodeBase: file:///C:/WINDOWS/assembl<wbr>y/GAC_32/S<wbr>ystem.Data<wbr>/2.0.0.0__<wbr>b77a5c5619<wbr>34e089/Sys<wbr>tem.Data.d<wbr>ll<br>--------------------------<wbr>----------<wbr>----<br>System.Xml<br>    Assembly Version: 2.0.0.0<br>    Win32 Version: 2.0.50727.832 (QFE.050727-8300)<br>    CodeBase: file:///C:/WINDOWS/assembl<wbr>y/GAC_MSIL<wbr>/System.Xm<wbr>l/2.0.0.0_<wbr>_b77a5c561<wbr>934e089/Sy<wbr>stem.Xml.d<wbr>ll<br>--------------------------<wbr>----------<wbr>----<br>Alcatel.UI<br>    Assembly Version: 1.0.0.2<br>    Win32 Version: 1.0.0.2<br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/Alc<wbr>atel.UI.DL<wbr>L<br>--------------------------<wbr>----------<wbr>----<br>ZedGraph<br>    Assembly Version: 4.2.1.19905<br>    Win32 Version: 4.2.1.19905<br>    CodeBase: file:///C:/Program%20Files<wbr>/Alcatel-L<wbr>ucent/9155<wbr>%20b2727/M<wbr>odules/A91<wbr>55_AFP/Zed<wbr>Graph.DLL<br>--------------------------<wbr>----------<wbr>----<br><br>************** JIT Debugging **************<br>To enable just-in-time (JIT) debugging, the .config file for this<br>application or computer (machine.config) must have the<br>jitDebugging value set in the system.windows.forms section.<br>The application must also be compiled with debugging<br>enabled.<br><br>For example:<br><br>&lt;configuration&gt;<br>    &lt;system.windows.forms jitDebugging=&quot;true&quot; /&gt;<br>&lt;/configuration&gt;<br><br>When JIT debugging is enabled, any unhandled exception<br>will be sent to the JIT debugger registered on the computer<br>rather than be handled by this dialog box.<br><br>The code is the following:<br><br></span><pre class=prettyprint><span class=kwd></span><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"></font><font style="color:blue">private</font><font style="font-size:11px"> </font><font style="color:blue">bool</font><font style="font-size:11px"> IsOffice2003() </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">        { </td></tr><tr><td>            RegistryKey key = Registry.CurrentUser; </td></tr><tr><td style="background-color:rgb(247, 247, 247)">            key = key.OpenSubKey(@<font style="color:blue">&quot;Software\Microsoft\Office&quot;</font><font style="font-size:11px">); </font></td></tr><tr><td>            <font style="color:blue">string</font><font style="font-size:11px">[] keynames = key.GetSubKeyNames(); </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">            <font style="color:blue">for</font><font style="font-size:11px"> (</font><font style="color:blue">int</font><font style="font-size:11px"> i = 0; i &lt; keynames.Length; i++) </font></td></tr><tr><td>            { </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                <font style="color:blue">if</font><font style="font-size:11px"> (keynames[i].ToString() == </font><font style="color:blue">&quot;11.0&quot;</font><font style="font-size:11px">) </font></td></tr><tr><td>                { </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                    <font style="color:blue">return</font><font style="font-size:11px"> </font><font style="color:blue">true</font><font style="font-size:11px">; </font></td></tr><tr><td>                } </td></tr><tr><td style="background-color:rgb(247, 247, 247)">            } </td></tr><tr><td>            <font style="color:blue">return</font><font style="font-size:11px"> </font><font style="color:blue">false</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">        } </td></tr><tr><td> <font style="color:blue">private</font><font style="font-size:11px"> </font><font style="color:blue">void</font><font style="font-size:11px"> btnExport_Click(</font><font style="color:blue">object</font><font style="font-size:11px"> sender, EventArgs e) </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">        { </td></tr><tr><td>            <font style="color:blue">if</font><font style="font-size:11px"> (IsOffice2003()) </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">            { </td></tr><tr><td>                <font style="color:blue">if</font><font style="font-size:11px"> (sFDExport.ShowDialog() == DialogResult.OK) </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                { </td></tr><tr><td>                    Microsoft.Office.Interop.Excel.Application oXL = <font style="color:blue">null</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                    Microsoft.Office.Interop.Excel._Workbook oWB = <font style="color:blue">null</font><font style="font-size:11px">; </font></td></tr><tr><td>                    Microsoft.Office.Interop.Excel.Worksheet oSheet = <font style="color:blue">null</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                    <font style="color:blue">try</font><font style="font-size:11px"> </font></td></tr><tr><td>                    { </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        oXL = <font style="color:blue">new</font><font style="font-size:11px"> Microsoft.Office.Interop.Excel.ApplicationClass(); </font></td></tr><tr><td>                        oXL.Visible = <font style="color:blue">false</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        oWB = (Microsoft.Office.Interop.Excel._Workbook)(oXL.Workbooks.Add(XlWBATemplate.xlWBATWorksheet)); </td></tr><tr><td>                        oSheet = (Microsoft.Office.Interop.Excel.Worksheet)oWB.ActiveSheet; </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        <font style="color:blue">int</font><font style="font-size:11px"> row = oSheet.UsedRange.Count; </font></td></tr><tr><td>  </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        ExportSettings(oSheet, <font style="color:blue">ref</font><font style="font-size:11px"> row); </font></td></tr><tr><td>  </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        ExportMessages(oSheet, <font style="color:blue">ref</font><font style="font-size:11px"> row); </font></td></tr><tr><td>  </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        chartUC.Export(oSheet, <font style="color:blue">ref</font><font style="font-size:11px"> row); </font></td></tr><tr><td>  </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        SaveFile(oWB); </td></tr><tr><td>                    } </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                    <font style="color:blue">catch</font><font style="font-size:11px"> (COMException ex) </font></td></tr><tr><td>                    { </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        <font style="color:blue">throw</font><font style="font-size:11px"> ex; </font></td></tr><tr><td>                    } </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                    <font style="color:blue">finally</font><font style="font-size:11px"> </font></td></tr><tr><td>                    { </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        <font style="color:green">//close everything</font><font style="font-size:11px"> </font></td></tr><tr><td>                        oWB.Close(<font style="color:blue">null</font><font style="font-size:11px">, </font><font style="color:blue">null</font><font style="font-size:11px">, </font><font style="color:blue">null</font><font style="font-size:11px">); </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        oXL.Workbooks.Close(); </td></tr><tr><td>                        oXL.Quit(); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oXL); </td></tr><tr><td>                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oSheet); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oWB); </td></tr><tr><td>                        oSheet = <font style="color:blue">null</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        oWB = <font style="color:blue">null</font><font style="font-size:11px">; </font></td></tr><tr><td>                        oXL = <font style="color:blue">null</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">                        GC.Collect(); </td></tr><tr><td>                    } </td></tr><tr><td style="background-color:rgb(247, 247, 247)">                } </td></tr><tr><td>            } </td></tr><tr><td style="background-color:rgb(247, 247, 247)">            <font style="color:blue">else</font><font style="font-size:11px"> DisplayMessage(</font><font style="color:blue">&quot;Export is possible only in Office 2003.&quot;</font><font style="font-size:11px">, MessageType.Warning); </font></td></tr><tr><td>        } </td></tr></tbody></table></div><span class=pun></span></pre><br> Thu, 11 Dec 2008 07:46:33 Z2009-01-15T10:35:38Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/58b17d2e-e365-4391-8ed3-d35b7e371c60http://social.microsoft.com/Forums/en-US/interopconversations/thread/58b17d2e-e365-4391-8ed3-d35b7e371c60ranganadhhttp://social.microsoft.com/Profile/en-US/?user=ranganadhFAXCOMLib<span class=Apple-style-span style="color:rgb(8, 8, 8);font-size:13px">Hi, <div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">   I am using FaxCom Lib in our application. actually i am sending images which are in the form of TIFF formate, By the following like code..</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"> FAXCOMLib.FaxDoc fd;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        FAXCOMLib.FaxServer fs = new FAXCOMLib.FaxServerClass();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        fs.Connect(&quot;.&quot;);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        fd = (FAXCOMLib.FaxDoc)fs.CreateDocument(@&quot;C:\test.tif&quot;);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        fd.FaxNumber = &quot;89898&quot;;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        fd.RecipientName = &quot;tsagdhbwas&quot;; ;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        fd.SenderName = &quot;askhdkjja&quot;;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">                        fd.Send();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">it was working will with, some tiff files but not with all, for most of the Images it is giving error like .. </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">{&quot;The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)&quot;}<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">{System.Collections.ListDictionaryInternal}<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">error code = -2147020584</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">source = &quot;Interop.FAXCOMLib&quot;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">stack trace = &quot;   at FAXCOMLib.IFaxDoc.Send()\r\n   at ConsoleApplication1.Program.Main(String[] args) in C:\\MOI Fax Agent\\ConsoleApplication1\\ConsoleApplication1\\Program.cs:line 63\r\n   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()&quot;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">as my observation, FAXCOMLIB will do process with printer like driver, and capture print image from the file what we specified with in the code, but all images what ihave are working with if i do print with fax drives which are coming up when i install Fax console. </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">Thanks and Regards <br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">Ranganadh Kodali</div><div><br></div></div></span> Wed, 10 Dec 2008 16:27:39 Z2008-12-15T20:34:46Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/c266bc0e-9793-4786-8434-54ce8274a652http://social.microsoft.com/Forums/en-US/interopconversations/thread/c266bc0e-9793-4786-8434-54ce8274a652k_cire0426http://social.microsoft.com/Profile/en-US/?user=k_cire0426Modifying documentsI'm using a third party to export the report document to HTML, TIFF, PDF, TIFF, TXT and XLS format. But I'm having a problem because my document has a link/url on it and everytime I exported it the link/url was also carried. I'm able to resolve the XLS document by using the code below.<br><br>Dim Excel_file As New Microsoft.Office.Interop.Excel.Application<br>Excel_file.Workbooks.Open(strPath &amp; &quot;\&quot; &amp; strFileName &amp; &quot;.xls&quot;)<br>Excel_file.Visible = True<br>Excel_file.Worksheets.Application.Columns.Hyperlinks.Delete() 'This will delete the link/url<br><br>Does anyone know how can I apply this to other document?<br>Your suggestion is highly appreciated.<br><br>Thanks in advanced..<br> <hr class=sig>erickFri, 05 Dec 2008 17:22:39 Z2008-12-15T20:31:40Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/60a5c3a6-2bdf-49fe-a4b1-455aa34b564ahttp://social.microsoft.com/Forums/en-US/interopconversations/thread/60a5c3a6-2bdf-49fe-a4b1-455aa34b564aakdprhttp://social.microsoft.com/Profile/en-US/?user=akdprCalling a method in VB dll form VC++ The following method is in a VB dll<br><br><font color="#3366ff">long MyMethod ( By Val startDate As Date, By Val endDate As Date)<br></font><br>How can I call this method from VC++ . How could I pass the value I get using DateTimePicker controls to this method.Mon, 01 Dec 2008 22:13:04 Z2008-12-04T21:39:50Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ddcf4273-10e8-4f78-bcc9-33a006bf3b5chttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ddcf4273-10e8-4f78-bcc9-33a006bf3b5cTim Christensonhttp://social.microsoft.com/Profile/en-US/?user=Tim%20ChristensonBitlocker If I were to use Bitlocker on a 2008 web and database server, would I be able to connect as ususal from an XP workstation. (My thought was yes, of course.) And will bitlocker slow down the DB &amp; web service running on the server.  The server is TPM compliant and attached to the same AD as the XP workstation. <hr class="sig">MCSEWed, 26 Nov 2008 15:13:36 Z2008-12-15T21:28:04Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/c37fe460-bb5c-4c34-a4bd-41e33b7b4315http://social.microsoft.com/Forums/en-US/interopconversations/thread/c37fe460-bb5c-4c34-a4bd-41e33b7b4315Interophttp://social.microsoft.com/Profile/en-US/?user=InteropHow to convert unmanaged ptr (*) to managed reference (^)Hi,<br> My managed function require (IAbc^) and i'm having it's pointer. How should i convert IAbc* to to IAbc^?<br><br><br>Example --&gt;<br>Unmanaged Code:<br>unmanagedFun( IAbc* ab)<br>{<br>    managedFun( /* how should i pass IAbc* here */);<br>}<br><br>Managed Code:<br>managedFun (IAbc^ abc)<br>{<br>}<br><br>Thanks in advanceWed, 26 Nov 2008 11:35:54 Z2008-11-27T12:36:48Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/814040c6-82c0-4f5a-b69c-5089731a7db6http://social.microsoft.com/Forums/en-US/interopconversations/thread/814040c6-82c0-4f5a-b69c-5089731a7db6Tekitohttp://social.microsoft.com/Profile/en-US/?user=TekitoExcel 2003 macros with VB2008 Trying to write a program in VB08 that uses Excel 2003 as an interface.  To help with this I am calling macros inside the Excel sheet from VB.  The problem is that even when I pass parameters byref to the macros, they always come back byvalue, ie unchanged.    So for example when I do:<br><br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">Call</font><font style="font-size:11px"> gXLApp.Run(gwbTB.Name &amp; </font><font style="color:blue">&quot;!ArrGather&quot;</font><font style="font-size:11px">, gArr) </font></td></tr></tbody></table></div><br>where I am passing array gArr for the macro to populate, it comes back still empty.  Any ideas why this is happens or how to get around it?  Tue, 18 Nov 2008 15:36:24 Z2008-12-04T21:38:06Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/e48e7c9a-f05c-469a-91ef-957cbe9bf680http://social.microsoft.com/Forums/en-US/interopconversations/thread/e48e7c9a-f05c-469a-91ef-957cbe9bf680Superblenderdudehttp://social.microsoft.com/Profile/en-US/?user=SuperblenderdudeExplorer is running, yet nothing shows up (XP)I logged in, and the screen was blank, this happens occasionally, and all that was showing was my desktop background. The only way I can navigate on windows is if I use task manager. I opened task manager, and explorer was running, so I ended it and ran in again, and everything came back, the taskbar, desktop, etc. but my startup programs such as Avira, Gadwin, and all the other programs in my startup folder didn't start. Is there a process I can run that will, pretty much, refresh my Windows session without having to logout and log back in? I am running a Windows XP Home Edition (version 2002) with Service pack 3. Sat, 15 Nov 2008 00:03:44 Z2008-11-20T17:27:15Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/c4f76ea2-ef06-4f03-b697-b04fe974088dhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/c4f76ea2-ef06-4f03-b697-b04fe974088dandThankshttp://social.microsoft.com/Profile/en-US/?user=andThanksAccess 2003 with Word/Excel 2007<p>I am currently running Vista with Word &amp; Excel 2007 (Access has never been installed on my PC).  I have been asked to maintain an Access 2003 database.  Will I run into any problems installing Access 2003 on my PC?  Thanks</p>Thu, 13 Nov 2008 22:10:11 Z2008-11-15T16:09:21Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/3559f8b8-63f9-42f3-8057-ba33b0d52cbdhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/3559f8b8-63f9-42f3-8057-ba33b0d52cbdMarkkoshttp://social.microsoft.com/Profile/en-US/?user=MarkkosGetting events from a COM objectHello:<br><br>I don´t know if this question belongs or not to this thread, but if you consider that there´s a suitable thread for it, please, let me know. <br><br>About my question: I´m trying to get the events of a COM event source object and a part of this task is implementing the dispinterface handling those events through inheriting the ATL class IDispEventImpl. Later on my code I call to DispEventAdvise in order to connect the outgoing interface of the connectable object (the event source object) with the proper connection point. Everything compiles fine and such a call succeeds, however, the application exits each time it gets an event, so that makes me think that I did something wrong in relation with the event handling mechanism. <br><br>Here there is the sink object implementation:<br><br><font color="#3333ff"><b>static _ATL_FUNC_INFO _funcOnText = {<br>  CC_STDCALL,             // Calling convention.<br>  VT_I4,                         // Return type.<br>  1,                                 // Number of arguments.<br>  {                                  // Argument types.<br>    VT_BSTR<br>  }<br>};<br><br><br>class SrmPseudoDocumentEvents : public IDispEventImpl&lt;1,<br>       SrmPseudoDocumentEvents,<br>       &amp;__uuidof(SmIa::PseudoDocumentEvents),<br>       &amp;GUID_NULL, 1, 0&gt;<br>{<br><br>public:<br><br>  SrmPseudoDocumentEvents() {<br>    <br>  };<br>  <br>  virtual ~SrmPseudoDocumentEvents() {<br>    <br>  };<br>  <br>  STDMETHODIMP OnText(BSTR a_recognizedText) {<br>    KlDebugAlways(&quot;Text event !!!&quot;);<br>    return S_OK;<br>  };<br><br>  BEGIN_SINK_MAP(SrmPseudoDocumentEvents)<br>    SINK_ENTRY_INFO(1, __uuidof(SmIa::PseudoDocumentEvents), 0x01, OnText, &amp;_funcOnText)<br>  END_SINK_MAP()<br><br>};</b></font><br><br>And here I call the DispEventAdvise method call:<br><br><b><font color="#3333ff">SrmPseudoDocumentEvents pseudoDocumentEvents = SrmPseudoDocumentEvents();<br><br>  hr = pseudoDocumentEvents.DispEventAdvise(reinterpret_cast&lt;IUnknown*&gt;(m_pIPseudoDocument), <br>                                            &amp;__uuidof(SmIa::PseudoDocumentEvents));<br>  if (FAILED(hr)) {<br>    return getHResultInfo(hr, <br>                          reinterpret_cast&lt;IDispatch*&gt;(&amp;pseudoDocumentEvents),<br>                          __uuidof(SmIa::PseudoDocumentEvents));<br>  }</font><br></b><br><br>Thank you beforehand,<br><br>Marcos<br> Wed, 12 Nov 2008 10:33:18 Z2008-11-12T18:02:37Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/1904e0ae-1664-49bb-8adb-8268ae2497b9http://social.microsoft.com/Forums/en-US/interopconversations/thread/1904e0ae-1664-49bb-8adb-8268ae2497b9Stacyslhttp://social.microsoft.com/Profile/en-US/?user=Stacyslchange language in windows xpI have a Chinese operating system and I was wondering if anyone could tell me how to change the system so that it would be in English? Or if that is not possible to tell me what I could downoad that would change the system to english. It is really a hassle and I need an english one for several reaons. Thanks to anyone who can help me out on this. Tue, 11 Nov 2008 00:26:51 Z2008-11-20T17:26:57Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/e6d07f9e-76fa-43f6-a415-38b9d2332c1chttp://social.microsoft.com/Forums/en-US/interopconversations/thread/e6d07f9e-76fa-43f6-a415-38b9d2332c1cBalaji TShttp://social.microsoft.com/Profile/en-US/?user=Balaji%20TSIE 7 error<div class=jive-message-body>Hi,<br><br>I tried accessing an intranet site with IE7 and received the error &quot;DPWWA2403E: Your browser supplied NTLM authentication data. NTLM is not supported by webseal&quot;.<br><br>I have already checked the option &quot;Enabled integrated windows authentication&quot;<br><br>The problem occurs only while trying to access the site with Internet explorer 7 whereas with the other IE versions the page can be accessed.<br><br>Please help me out with the issue.<br> <p>Thanks.<br>Balaj T.S</p></div> Fri, 07 Nov 2008 09:08:18 Z2008-11-20T17:26:21Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/053149a1-f277-4a0c-85df-92931fb5873bhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/053149a1-f277-4a0c-85df-92931fb5873bMohd Anuarhttp://social.microsoft.com/Profile/en-US/?user=Mohd%20AnuarVistaPE, XPLiveCD PE and winbuilder it is legal? I have compile Vista Preinstall Enviroment using winbuilder  for recovery perpose and testing it on virtual box. My primary question was is this LEGAL? I search a lot but not found and article explains about winbuilder. Please help me.<hr size="1" align="left" width="25%">AnuarlsTue, 04 Nov 2008 11:27:09 Z2009-01-02T03:06:13Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/f2be4c97-bda5-4566-9b8f-c399e26a49f7http://social.microsoft.com/Forums/en-US/interopconversations/thread/f2be4c97-bda5-4566-9b8f-c399e26a49f7pcpro17http://social.microsoft.com/Profile/en-US/?user=pcpro17WinXP / WinXP Embedded USB Driver InteroperabilityHello.  Does anyone know if USB drivers written for Windows XP will work with Windows XP Embedded?<br>Thanks.<br>Fri, 31 Oct 2008 21:28:52 Z2008-11-06T21:51:52Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/3599eabd-971e-4343-84b6-68d8661474dahttp://social.microsoft.com/Forums/en-US/interopconversations/thread/3599eabd-971e-4343-84b6-68d8661474dacharles_ritch43http://social.microsoft.com/Profile/en-US/?user=charles_ritch43MS WORD 2003 ISSUE WITH 2007 CONVERSION UTILITY AND\OR SP3 I believe I have found an issue with MS Office Service packs.  What I have been trying to do is to open a MS word 2007 file (that has an embedded XML table) with MS Word 2003 (with Office SP3) and it will not open.<br><br>Here is the hitch, If I have MS Word 2003 and I install the Word 2007 conversion utility, the file will open, but that is only if I havent installed the Office SP3.<br><br>If I have the baseline version of Office 2003, it will not open unless I install the conversion utlity, but for any PC that I have SP3 installed, it will not open the file.<br><br>I am looking for a workaround, so that all of the PC's that have Office 2003 WITH SP3 installed, will open the Word 2007 document. <br><br>I am not sure if the embedded XML table is causing this problem, or not.<br><br>Thank you<br><br>Fri, 24 Oct 2008 17:45:25 Z2008-10-28T22:29:07Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/824676bb-a37a-4e5e-8e72-702545a51a87http://social.microsoft.com/Forums/en-US/interopconversations/thread/824676bb-a37a-4e5e-8e72-702545a51a87sinuhttp://social.microsoft.com/Profile/en-US/?user=sinuOutlook object in JavascriptHello,<br> I am using javascript to create an outlook object and trying to read a public folder item. I am able to do so with outlook itself, but when I use javascript its giving me an error.  <br>Error Number: -2147024891, Error Message: You do not have sufficient permission to perform this operation on this object.  See the folder contact or your system administrator.<br>I am also able to access the mails through webmail.<br>Any reason why this is happening?<br>Following is the code:<br><font color="#0000ff" size=2>var</font><font size=2> oOutlook; <br></font><font color="#0000ff" size=2>var</font><font size=2> pub; <br></font><font color="#0000ff" size=2>var</font><font size=2> item;<br></font><font color="#0000ff" size=2>var</font><font size=2> safeobject;<br></font><font color="#0000ff" size=2>try<br></font><font size=2>{<br>    safeobject=</font><font color="#0000ff" size=2>new</font><font size=2> ActiveXObject(</font><font color="#a31515" size=2>&quot;SafeBrowserScripting.ObjectGenerator&quot;</font><font size=2>);<br>}</font><font color="#0000ff" size=2>catch</font><font size=2>(e)<br>{<br>    oOutlook = </font><font color="#0000ff" size=2>new</font><font size=2> ActiveXObject(</font><font color="#a31515" size=2>&quot;Outlook.Application.&quot;</font><font size=2>);<br>}<br></font><font color="#0000ff" size=2>if</font><font size=2>(safeobject==</font><font color="#0000ff" size=2>null</font><font size=2>)<br>{<br>    oOutlook = </font><font color="#0000ff" size=2>new</font><font size=2> ActiveXObject(</font><font color="#a31515" size=2>&quot;Outlook.Application.&quot;</font><font size=2>); <br>}<br></font><font color="#0000ff" size=2>else<br></font><font size=2>{<br>    oOutlook=safeobject.GetSafeObject(</font><font color="#a31515" size=2>&quot;Outlook.Application&quot;</font><font size=2>);<br>}<br></font><font color="#0000ff" size=2>var</font><font size=2> folderId=</font><font color="#a31515" size=2>&quot;18&quot;</font><font size=2>;<br>pub = oOutlook.Session.GetDefaultFolder(folderId);<br>item = oOutlook.Session.GetItemFromID(entryID, pub.StoreID);<br>item.Display();<br>}</font><font color="#0000ff" size=2>catch</font><font size=2>(e)<br>{<br></font><font color="#0000ff" size=2>    if</font><font size=2> ( e.number != 0 )<br>    {<br></font><font color="#0000ff" size=2>        if</font><font size=2> ( e.number == </font><font color="#a31515" size=2>&quot;-2146823281&quot;</font><font size=2> )<br>        {<br>            alert(</font><font color="#a31515" size=2>&quot;You do not have sufficient privileges to read the email.&quot;</font><font size=2>);<br>        }<br></font><font color="#0000ff" size=2>        else<br></font><font size=2>        {<br>            alert(</font><font color="#a31515" size=2>&quot;There was an error opening the Research email.&quot;</font><font size=2>); <br>        }<br>        window.status = </font><font color="#a31515" size=2>&quot;&quot;</font><font size=2>;<br></font><font color="#0000ff" size=2>        return</font><font size=2>;<br>    }<br></font>}<br>This is not happening with all users, its happening only with few users. I have been trying to fix this over 3 weeks now.<br><br>ThanksWed, 22 Oct 2008 18:21:12 Z2008-10-28T22:21:57Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/3caafd98-a240-40fb-bad7-d307244ef6a9http://social.microsoft.com/Forums/en-US/interopconversations/thread/3caafd98-a240-40fb-bad7-d307244ef6a9Ewan71http://social.microsoft.com/Profile/en-US/?user=Ewan71Accessing VB6 COM DLLs with VB.NETUsing Visual Studio 2005 I am trying to reference a VB6 written COM DLL, which is used in current VB6 projects.  The process I use is to select 'Add Reference' from the Project menu.  I then find the DLL I require under the COM tab when I select it to add it however Visual Studio crashes with the 'Microsoft Visual Studio has encountered a problem and needs to close.' / Send Error Report message.<br><br>Could it be something within the DLL that is causing Visual Studio problems or is there something else I need to do within visual studio for it to use a VB6 written COM DLL.<br><br>Thanks in advance<br><br>EwanFri, 17 Oct 2008 08:43:09 Z2008-10-18T03:59:56Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/1f5fe87a-33ae-4b30-9fd3-1d13e0cc0ad3http://social.microsoft.com/Forums/en-US/interopconversations/thread/1f5fe87a-33ae-4b30-9fd3-1d13e0cc0ad3a_________Qqhttp://social.microsoft.com/Profile/en-US/?user=a_________QqObsolete System.Runtime.InteropServices.IDispatchImplAttribute... Hi All,<br><br>I am going to use the followinf attribute to my .NET class visible in COM<br><font size=2> <p>[</font><font color="#2b91af" size=2><font color="#2b91af" size=2>IDispatchImpl</font></font><font size=2>(</font><font color="#2b91af" size=2><font color="#2b91af" size=2>IDispatchImplType</font></font><font size=2>.CompatibleImpl)]<br><br>But  <span class=selflink><b>System.Runtime.InteropServices<span class=cs>.</span>IDispatchImplAttribute </b>is makked as obsolete in MSDN.<br></span>Why, and what is recommended replacement for this attribute?<br><br>Thanks.<br><br>Igor Ladnik<br></font></p><font size=2><br><br></font>Thu, 16 Oct 2008 13:35:25 Z2008-10-21T22:47:51Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ee31998a-c356-4280-bc91-175c002efe0bhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/ee31998a-c356-4280-bc91-175c002efe0ba_________Qqhttp://social.microsoft.com/Profile/en-US/?user=a_________QqQuestions on Usage of a .NET Component from VB6 and VBScript Hi All, <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial">We are dealing with .NET server component and COM clients written with VB6 and VBScript. And there are some problems we faced (please see code below).</span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"><span>1.<font face="Times New Roman" size=1><span style="font:7pt 'Times New Roman'">       </span></font></span></font><span dir=ltr><font face=Arial size=2><span style="font-size:10pt;font-family:Arial">Managed type System Drawing.Color is automatically marshaled to VB type OLE_COLOR <u>only in case of early binding</u>. (see DealWithColor() method).</span></font></span></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"><span>2.<font face="Times New Roman" size=1><span style="font:7pt 'Times New Roman'">       </span></font></span></font><span dir=ltr><font face=Arial size=2><span style="font-size:10pt;font-family:Arial">For class Component public variable DateTime dt can be used in both early and late binding cases, whereas public variable Color clr causes failure in late binding and works fine in early binding.</span></font></span></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font><font face=Arial size=2><span style="font-size:10pt;font-family:Arial">3.   Method  </span></font><font face="Courier New" color=blue size=2><span style="font-size:10pt;color:blue;font-family:'Courier New'">public</span></font><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> <font color=blue><span style="color:blue">void</span></font> Info(<font color="#2b91af"><span style="color:#2b91af">MyPointClass</span></font> pt) works fine with VB6 for both early and late binding but fails in VBScript.</span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font><font face=Arial size=2><span style="font-size:10pt;font-family:Arial">         </span></font><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">[<font color="#2b91af"><span style="color:#2b91af">ComVisible</span></font>(<font color=blue><span style="color:blue">true</span></font>)]</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">struct</span></font> <font color="#2b91af"><span style="color:#2b91af">MYPOINT</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    {</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=green><span style="color:green">// These are now private!</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">private</span></font> <font color=blue><span style="color:blue">int</span></font> xPos;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">private</span></font> <font color=blue><span style="color:blue">int</span></font> yPos;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        [<font color="#2b91af"><span style="color:#2b91af">MarshalAs</span></font>(<font color="#2b91af"><span style="color:#2b91af">UnmanagedType</span></font>.BStr)]</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">private</span></font> <font color=blue><span style="color:blue">string</span></font> name;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=green><span style="color:green">// Add some members to the MYPOINT struct.</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">void</span></font> SetPoint(<font color=blue><span style="color:blue">int</span></font> x, <font color=blue><span style="color:blue">int</span></font> y) { xPos = x; yPos = y; }</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">void</span></font> DisplayPoint() { <font color="#2b91af"><span style="color:#2b91af">MessageBox</span></font>.Show(<font color=blue><span style="color:blue">string</span></font>.Format(<font color="#a31515"><span style="color:#a31515">&quot;X: {0} Y: {1}&quot;</span></font>, xPos, yPos), name); }</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    }</span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    [<font color="#2b91af"><span style="color:#2b91af">ComVisible</span></font>(<font color=blue><span style="color:blue">true</span></font>)]</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    [<font color="#2b91af"><span style="color:#2b91af">ClassInterface</span></font>(<font color="#2b91af"><span style="color:#2b91af">ClassInterfaceType</span></font>.AutoDual)]</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">class</span></font> <font color="#2b91af"><span style="color:#2b91af">MyPointClass</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    {</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">private</span></font> <font color=blue><span style="color:blue">int</span></font> xPos;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">private</span></font> <font color=blue><span style="color:blue">int</span></font> yPos;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">private</span></font> <font color=blue><span style="color:blue">string</span></font> name;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">void</span></font> SetPoint(<font color=blue><span style="color:blue">string</span></font> name, <font color=blue><span style="color:blue">int</span></font> x, <font color=blue><span style="color:blue">int</span></font> y) { <font color=blue><span style="color:blue">this</span></font>.name = name; xPos = x; yPos = y; }</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">        <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">void</span></font> DisplayPoint() { <font color="#2b91af"><span style="color:#2b91af">MessageBox</span></font>.Show(<font color=blue><span style="color:blue">string</span></font>.Format(<font color="#a31515"><span style="color:#a31515">&quot;X: {0} Y: {1}&quot;</span></font>, xPos, yPos), name); }</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    }</span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">[<font color="#2b91af"><span style="color:#2b91af">ComVisible</span></font>(<font color=blue><span style="color:blue">true</span></font>)]</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">[<font color="#2b91af"><span style="color:#2b91af">ClassInterface</span></font>(<font color="#2b91af"><span style="color:#2b91af">ClassInterfaceType</span></font>.AutoDual)]</span></font></p> <p><font face="Courier New" color=blue size=2><span style="font-size:10pt;color:blue;font-family:'Courier New'">public</span></font><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> <font color=blue><span style="color:blue">class</span></font> <font color="#2b91af"><span style="color:#2b91af">Component</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">{</span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">      // Success in Early Binding. </span></font><font face="Courier New" color=red size=2><span style="font-size:10pt;color:red;font-family:'Courier New'">Failure in Late Binding (Both VB6 and VBScript)</span></font> </p> <p><font face="Courier New" color=blue size=2><span style="font-size:10pt;color:blue;font-family:'Courier New'">      public</span></font><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> <font color="#2b91af"><span style="color:#2b91af">Color</span></font> clr;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">      // Success in Early Binding and Late Binding (Both VB6 and VBScript)</span></font> </p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      <font color=blue><span style="color:blue">public</span></font> <font color="#2b91af"><span style="color:#2b91af">DateTime</span></font> dt;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      <font color=green><span style="color:green">// Success in Early Binding. </span></font><font color=red><span style="color:red">Failure in Late Binding (Both VB6 and VBScript)</span></font></span></font></p> <p><font face="Courier New" color=blue size=2><span style="font-size:10pt;color:blue;font-family:'Courier New'">public</span></font><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> <font color="#2b91af"><span style="color:#2b91af">Color</span></font> DealWithColor(<font color="#2b91af"><span style="color:#2b91af">Color</span></font> col)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      {</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">          <font color="#2b91af"><span style="color:#2b91af">MessageBox</span></font>.Show(col.ToString(), <font color="#a31515"><span style="color:#a31515">&quot;DealWithColor() Method&quot;</span></font>);</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">          <font color=blue><span style="color:blue">return</span></font> col;</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      }</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">// Success in Early Binding. TODO Late</span></font> </p> <p><font face="Courier New" color=blue size=2><span style="font-size:10pt;color:blue;font-family:'Courier New'">public</span></font><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> <font color=blue><span style="color:blue">void</span></font> Info(<font color=blue><span style="color:blue">ref</span></font> <font color="#2b91af"><span style="color:#2b91af">MYPOINT</span></font> pt)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      {</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">          pt.DisplayPoint();</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      }</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">      // Success in Early Binding and Late Binding (Both VB6 and VBScript)</span></font> </p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">void</span></font> Info (<font color=blue><span style="color:blue">object</span></font> pt)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      {</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">          (pt <font color=blue><span style="color:blue">as</span></font> <font color="#2b91af"><span style="color:#2b91af">MyPointClass</span></font>).DisplayPoint();</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      }</span></font> </p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">// Success in Early Binding and in Late Binding VB6.</span></font><font face="Courier New" color=red size=2><span style="font-size:10pt;color:red;font-family:'Courier New'"> Failure in VBScript.</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      <font color=blue><span style="color:blue">public</span></font> <font color=blue><span style="color:blue">void</span></font> Info (<font color="#2b91af"><span style="color:#2b91af">MyPointClass</span></font> pt)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      {</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">          pt.DisplayPoint();</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">      }</span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial">}</span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">    'Late Binding via VB6</span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">    ''''''''''''''''''''''''''''''''''</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Dim ptc As CallNetFromVB6.MyPointClass</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Dim col1 As OLE_COLOR </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Dim objLate As Object</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Set objLate = CreateObject(&quot;CallNetFromVB6.Component&quot;)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    objLate.dt = Now                      <font color=green><span style="color:green">'Success</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">   </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Set ptc = New CallNetFromVB6.MyPointClass</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    ptc.SetPoint &quot;From Class&quot;, 11, 22</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    objLate.Info_2 ptc                           <font color=green><span style="color:green">'Success</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    objLate.clr = vbRed                    <font color=red><span style="color:red">'Fail </span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    col1 = objLate.DealWithColor(col)     <font color=red><span style="color:red">'Fail </span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    </span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">    'Late Binding via VBScript</span></font></p> <p><font face="Courier New" color=green size=2><span style="font-size:10pt;color:green;font-family:'Courier New'">    ''''''''''''''''''''''''''''''''''</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Set objLate = CreateObject(&quot;CallNetFromVB6.Component&quot;)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Set ptLate = CreateObject(&quot;CallNetFromVB6.MyPointClass&quot;)</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    objLate.dt = Now                      <font color=green><span style="color:green">'Success</span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">   </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    Set ptc = New CallNetFromVB6.MyPointClass</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    ptc.SetPoint &quot;From Class&quot;, 11, 22</span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    objLate.Info_2 ptc                           <font color=red><span style="color:red">'Fail</span></font> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'"> </span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    objLate.clr = vbRed                    <font color=red><span style="color:red">'Fail </span></font></span></font></p> <p><font face="Courier New" size=2><span style="font-size:10pt;font-family:'Courier New'">    col1 = objLate.DealWithColor(col)     <font color=red><span style="color:red">'Fail </span></font></span></font></p> <p><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font></p> <p><font face="Times New Roman" size=3><span style="font-size:12pt"> Thanks.</span></font></p> <p><font face=Arial color=navy size=2><span style="font-size:10pt;color:navy;font-family:Arial">Igor Ladnik</span></font></p> <p><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font></p> <p><font face="Times New Roman" size=3><span style="font-size:12pt">Barak Cohen</span></font></p><span> <p><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p></span></span></span>Thu, 16 Oct 2008 12:52:16 Z2008-10-21T22:47:21Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/320d39ec-8ba1-44b6-b757-0a276eccbac8http://social.microsoft.com/Forums/en-US/interopconversations/thread/320d39ec-8ba1-44b6-b757-0a276eccbac8nologinhttp://social.microsoft.com/Profile/en-US/?user=nologinHow to convert WordML files to other formats using Interop?  <p>Hi,</p> <p>I'd like to use Interop to export my WordML (docx) document to doc, rtf etc. I have seen code of creating it even to PDF with Interop. Can you give me some advice of how to do it or where I can find any project related to it?</p><hr size="1" align="left" width="25%">AndrisSun, 12 Oct 2008 23:45:52 Z2008-10-14T22:39:04Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/049fd2cd-10b0-486e-a93b-df7159090865http://social.microsoft.com/Forums/en-US/interopconversations/thread/049fd2cd-10b0-486e-a93b-df7159090865RoelofBerg4BoschDehttp://social.microsoft.com/Profile/en-US/?user=RoelofBerg4BoschDeDetecting UDP packet loss when connecting video-streamers to a Windows-2003-Server hosted application Hello,<br><br>I hope this is the right forum (I found no forum on MSDN that really matches).<br><br>We're connecting several hundred hardware video camera devices to a Windows 2003 Server system. The hardware devices speak the RTP protocol using UDP multicast. I'm currently writing the receiving application that has to handle several 100 mbit/s of incoming video data.<br><br>I'm using .NET sockets (that perform quite fast as we measured, maybe because MS did a good by using IOCP etc. :). When I use a very small UDP-Socket-Buffer size I see lots of packet losses. When I use a big UDP-Socket-Buffer I see no packet losses. So the small UDP-Socket-Version that looses packets should loose the packets in the UCP-Socket-Buffer and nowhere else, right ? So I can use the small UDP-Socket-Version as a test-tool to enforce packet-loss in the UDP-Buffer.<br><br>When I use &quot;netstat -s&quot; I don't see any of the packet loss I enforced with the small-UDP-buffer-application. It is important for us to have a tool handy for our customers (airports, banks, subways ...) to analyze in case of trouble if there's an overflow in the sockets UDP-buffer or if anything else drops too much packets (Camera, Switch, NIC, Server-Application whatever ...).<br><br>I tried not only &quot;netstat -s&quot;, I also tried almost any good-sounding perfmon counter ... but I didn't see the packet loss I enforced.<br><br>Question:<br>How can I see wether there's packet loss in the UDP-socket-buffer ? Is &quot;netstat -s&quot; the right command ? Is it reliable ? Does it depend on features of the NIC-driver ? Why don't I see the dropped packets created with my test-tool ?<br><br>Thanks a lot,<br>Roelof Berg<br><br><br>Thu, 09 Oct 2008 19:14:02 Z2008-10-13T08:21:36Z