﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>The VNC Manager - SmartCode Solutions Forum / SmartCode ServerX VNC Server ActiveX / General Discussion  / C# sample server, problems. Please Help / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>The VNC Manager - SmartCode Solutions Forum</description><link>http://vncmanager.com/forum/</link><webMaster>forums@s-code.com</webMaster><lastBuildDate>Wed, 07 Jan 2009 02:06:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: C# sample server, problems. Please Help</title><link>http://vncmanager.com/forum/Topic2149-20-1.aspx</link><description>If you use the COM wrappers for .NET in the sample code everything works great.</description><pubDate>Thu, 28 Aug 2008 19:01:18 GMT</pubDate><dc:creator>deX</dc:creator></item><item><title>RE: C# sample server, problems. Please Help</title><link>http://vncmanager.com/forum/Topic2149-20-1.aspx</link><description>Are you getting this error while adding the ActiveX to a .Net or native Win32 based application.&lt;br&gt;&lt;br&gt;Also, you don't use the ActiveX inside a SingleClick package, do you? If you do, please note that there is a bug in the Microsoft's manifest file generator; it's spells the appointment value incorrectly.</description><pubDate>Tue, 05 Aug 2008 19:16:45 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>RE: C# sample server, problems. Please Help</title><link>http://vncmanager.com/forum/Topic2149-20-1.aspx</link><description>Yes,&lt;/P&gt;&lt;P&gt;Here is the problem I run into.&lt;/P&gt;&lt;P&gt;My program is not forum oriented it's component driven and multi threaded.&lt;BR&gt;When I do add a hidden forum I get this error.&lt;/P&gt;&lt;P&gt;ActiveX control '8818cf4d-2190-49c3-b7eb-b&lt;WBR&gt;9f2ae198cb&lt;WBR&gt;1' cannot be instantiated because the current thread is not in a single-threaded apartment.&lt;/P&gt;&lt;P&gt;It will not allow me to add the activeX object to a component.&lt;/P&gt;&lt;P&gt;Is their a way to run this in a multi-threaded application?</description><pubDate>Tue, 05 Aug 2008 11:15:15 GMT</pubDate><dc:creator>namwenio</dc:creator></item><item><title>RE: C# sample server, problems. Please Help</title><link>http://vncmanager.com/forum/Topic2149-20-1.aspx</link><description>Hi,&lt;br&gt;have you tried to create a hidden Form with ServerX placed on it?</description><pubDate>Thu, 31 Jul 2008 22:27:22 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>C# sample server, problems. Please Help</title><link>http://vncmanager.com/forum/Topic2149-20-1.aspx</link><description>This method cannot be used while the control running in the "design-time" mode.&lt;/P&gt;&lt;P&gt;I get this error every time I try to execute this code.&lt;/P&gt;&lt;P&gt;I need to be able to use the API, without adding it to a form.&lt;BR&gt;The reason for this is because it will be run as a service on client machines.&lt;/P&gt;&lt;P&gt;How would I perform this funcionality?&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Collections.Generic;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.ComponentModel;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Data;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Drawing;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Linq;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Text;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Windows.Forms;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;namespace&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; vnctester&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR&gt;        &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;partial&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Form1&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; : &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Form&lt;BR&gt;        &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;{&lt;BR&gt;            ServerX.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;CSC_ServerXControl&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; XServer = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ServerX.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;CSC_ServerXControl&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;        &lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Form1()&lt;BR&gt;        &lt;/FONT&gt;&lt;FONT size=2&gt;{&lt;BR&gt;            InitializeComponent();&lt;BR&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;        private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; button1_Click(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;BR&gt;        {&lt;BR&gt;            XServer.AddClientEx(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"an ip address"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, 5500, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"ID:1234"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;        }&lt;BR&gt;    }&lt;BR&gt;}&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 31 Jul 2008 16:08:33 GMT</pubDate><dc:creator>namwenio</dc:creator></item></channel></rss>