<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Checking if the c&#111;ntrol is registered</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Checking if the c&#111;ntrol is registered]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:34:57 +0000</pubDate>
  <lastBuildDate>Thu, 15 Jan 2004 06:32:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=346</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered : Ok guys, I found a solution to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=790&amp;title=checking-if-the-control-is-registered#790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=305">farhanzia</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 15 January 2004 at 6:32am<br /><br /><P>Ok guys, I found a solution to it finally. After registering the ocx file, I was failing to instantiate the class "DOCKINGPANE.DockingPaneCtrl.1" because of the license issue. The license file "DockingPane.lic" has to be at the same path where the ocx is residing while registering. Once you will register in this scenario, you will be able to instantiate the class successfully. That means we need both these 2 files to deploy a software using DockingPane. i.e.</P><P>1. DockingPane.ocx<BR>2. DockingPane.lic<BR><BR>I searched the documentation if there is any information available for deployments files, but couldn't find anything related to it. Can somebody confirm if these are the only 2 files needed for deployment?</P>]]>
   </description>
   <pubDate>Thu, 15 Jan 2004 06:32:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=790&amp;title=checking-if-the-control-is-registered#790</guid>
  </item> 
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered : Thanks guys. Both these solutions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=774&amp;title=checking-if-the-control-is-registered#774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=305">farhanzia</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 11 January 2004 at 3:24am<br /><br />Thanks guys. Both these solutions are working but we are at the same problem. The DockingPane.ocx file is getting registered successfully but after that when I am trying creating an instance of the control through code, I am getting the same error that ActiveX component can't create object. This is how I am trying to create the instance.<BR><BR>&nbsp;&nbsp;&nbsp; Dim objDockingControl As Object<BR>&nbsp;&nbsp;&nbsp; Set objDockingControl = CreateObject("DOCKINGPANE.DockingPaneCtrl.1")<BR><BR>This code only works if I have installed the complete software. Otherwise just registering the "DockingPane.ocx" file is not working. I am getting the 'ActiveX component can't create object' error on the CreateObject line. Any help in this regards? By registering the "DockingPane.ocx" file, shall I be able to instantiate the "DOCKINGPANE.DockingPaneCtrl.1" class?<BR><BR>Thanks,<BR>Farhan<BR>]]>
   </description>
   <pubDate>Sun, 11 Jan 2004 03:24:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=774&amp;title=checking-if-the-control-is-registered#774</guid>
  </item> 
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered : There&amp;#039;s an even cleaner one...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=772&amp;title=checking-if-the-control-is-registered#772</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 10 January 2004 at 10:40am<br /><br /><P>There's an even cleaner one listed on the Extreme Visual Basic Forum at <A href="http://visualbasicforum.com/t124982.html" target="_blank">http://visualbasicforum.com/t124982.html</A></P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by robs</span>]]>
   </description>
   <pubDate>Sat, 10 Jan 2004 10:40:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=772&amp;title=checking-if-the-control-is-registered#772</guid>
  </item> 
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered : farhanzia, I usualy use something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=771&amp;title=checking-if-the-control-is-registered#771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 10 January 2004 at 10:36am<br /><br /><P>farhanzia,</P><P>I usualy use something like this. Sorry for the long post.</P><P>Private Declare Function LoadLibraryRegister Lib "KERNEL32" Alias "LoadLibraryA" _<BR>&nbsp;&nbsp;&nbsp; (ByVal lpLibFileName As String) As Long<BR>Private Declare Function FreeLibraryRegister Lib "KERNEL32" Alias "FreeLibrary" _<BR>&nbsp;&nbsp;&nbsp; (ByVal hLibModule As Long) As Long<BR>Private Declare Function CloseHandle Lib "KERNEL32" (ByVal hObject As Long) As Long<BR>Private Declare Function GetProcAddressRegister Lib "KERNEL32" Alias "GetProcAddress" _<BR>&nbsp;&nbsp;&nbsp; (ByVal hModule As Long, ByVal lpProcName As String) As Long<BR>Private Declare Function CreateThreadForRegister Lib "KERNEL32" Alias "CreateThread" _<BR>&nbsp;&nbsp;&nbsp; (lpThreadAttributes As Long, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, _<BR>&nbsp;&nbsp;&nbsp;&nbsp; ByVal lpparameter As Long, ByVal dwCreationFlags As Long, lpThreadID As Long) As Long<BR>Private Declare Function WaitForSingleObject Lib "KERNEL32" _<BR>&nbsp;&nbsp;&nbsp; (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long<BR>Private Declare Function GetExitCodeThread Lib "KERNEL32" _<BR>&nbsp;&nbsp;&nbsp; (ByVal hThread As Long, lpExitCode As Long) As Long<BR>Private Declare Sub ExitThread Lib "KERNEL32" (ByVal dwExitCode As Long)<BR>Private Const WAIT_OBJECT_0 = &amp;H0<BR>Private Const NOERRORS As Long = 0</P><P>Public Enum stRegisterStatus<BR>&nbsp;&nbsp;&nbsp; stFileCouldNotBeLoadedIntoMemorySpace = 1<BR>&nbsp;&nbsp;&nbsp; stNotAValidActiveXComponent = 2<BR>&nbsp;&nbsp;&nbsp; stActiveXComponentRegistrationFailed = 3<BR>&nbsp;&nbsp;&nbsp; stActiveXComponentRegistrationSuccessful = 4<BR>&nbsp;&nbsp;&nbsp; stActiveXComponentUnRegisterSuccessful = 5<BR>&nbsp;&nbsp;&nbsp; stActiveXComponentUnRegistrationFailed = 6<BR>&nbsp;&nbsp;&nbsp; stNoFileProvided = 7<BR>End Enum</P><P>Public Function Register(ByVal p_sFileName As String) As stRegisterStatus 'Variant<BR>&nbsp;&nbsp;&nbsp; Dim lLib As Long<BR>&nbsp;&nbsp;&nbsp; Dim lProcAddress As Long<BR>&nbsp;&nbsp;&nbsp; Dim lThreadID As Long<BR>&nbsp;&nbsp;&nbsp; Dim lSuccess As Long<BR>&nbsp;&nbsp;&nbsp; Dim lExitCode As Long<BR>&nbsp;&nbsp;&nbsp; Dim lThreadHandle As Long<BR>&nbsp;&nbsp;&nbsp; Dim lRet As Long<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; On Error GoTo ErrorHandler<BR>&nbsp;&nbsp;&nbsp; p_sFileName = Trim(p_sFileName)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If lRet = NOERRORS Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If p_sFileName = "" Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 'error<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; lRet = stNoFileProvided<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; lLib = LoadLibraryRegister(p_sFileName)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; If lLib = 0 Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'error<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lRet = stFileCouldNotBeLoadedIntoMemorySpace<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Else<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lProcAddress = GetProcAddressRegister(lLib, "DllRegisterServer")<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lProcAddress = 0 Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'error<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lRet = stNotAValidActiveXComponent<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lThreadHandle = CreateThreadForRegister(0, 0, lProcAddress, 0, 0, lThreadID)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lThreadHandle &lt;&gt; 0 Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; lSuccess = (WaitForSingleObject(lThreadHandle, 10000) = WAIT_OBJECT_0)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; If lSuccess = 0 Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'error<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call GetExitCodeThread(lThreadHandle, lExitCode)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call ExitThread(lExitCode)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lRet = stActiveXComponentRegistrationFailed<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Else<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lRet = stActiveXComponentRegistrationSuccessful<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; End If<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; <BR>ExitRoutine:<BR>&nbsp;&nbsp;&nbsp; Register = lRet<BR>&nbsp;&nbsp;&nbsp; If lThreadHandle &lt;&gt; 0 Then Call CloseHandle(lThreadHandle)<BR>&nbsp;&nbsp;&nbsp; If lLib &lt;&gt; 0 Then Call FreeLibraryRegister(lLib)<BR>&nbsp;&nbsp;&nbsp; Exit Function<BR>&nbsp;&nbsp;&nbsp; <BR>ErrorHandler:<BR>&nbsp;&nbsp;&nbsp; lRet = Err.Number<BR>&nbsp;&nbsp;&nbsp; GoTo ExitRoutine<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</P>]]>
   </description>
   <pubDate>Sat, 10 Jan 2004 10:36:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=771&amp;title=checking-if-the-control-is-registered#771</guid>
  </item> 
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered : Thanks Oleg, it worked. However...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=770&amp;title=checking-if-the-control-is-registered#770</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=305">farhanzia</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 10 January 2004 at 10:31am<br /><br /><P>Thanks Oleg, it worked. However after getting that the control is not registered, I tried registering it through code the following way.</P><FONT size=2><P>Call Shell(regsvr32.exe "C:\MyFolder\DockingPane.ocx", vbHide)</P><P>I get the message popped up that registration is successful (though I have used vbHide, but I am still getting the message popped up)</P><P>But next when I try to create an object just as I did earlier (the way you have suggested), I got the error that ActiveX component can't create object.</P><P>Please let me know how can I register the docking control through code. This will help much. And also any idea how can I hide that registration message that DllReisterServer successded. I tried using vbHide in the shell command but it didn't worked.</P><P>Thanks so much for your help.</P></FONT><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 10 Jan 2004 10:31:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=770&amp;title=checking-if-the-control-is-registered#770</guid>
  </item> 
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered :  Dim objDockingControl As ObjectSet...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=769&amp;title=checking-if-the-control-is-registered#769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 10 January 2004 at 9:19am<br /><br /><P>&nbsp;</P><P>Dim objDockingControl As Object<BR>Set objDockingControl = CreateObject("DOCKINGPANE.DockingPaneCtrl.1")<BR></P>]]>
   </description>
   <pubDate>Sat, 10 Jan 2004 09:19:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=769&amp;title=checking-if-the-control-is-registered#769</guid>
  </item> 
  <item>
   <title><![CDATA[Checking if the c&#111;ntrol is registered : Hello, is there way I can check...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=768&amp;title=checking-if-the-control-is-registered#768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=305">farhanzia</a><br /><strong>Subject:</strong> 346<br /><strong>Posted:</strong> 10 January 2004 at 7:36am<br /><br /><P>Hello, is there way I can check if the DockingPane control is registered on a machine. One way to check such things is to try instantiating the control. I tried the following ways but everytime I get an error that ActiveX component can't create object.</P><P>Dim objDockingControl As XtremeDockingPane.Pane<BR>Set objDockingControl = CreateObject("XtremeDockingPane.DockingPane")</P><P>I tried this also,<BR>Dim objDockingControl As XtremeDockingPane.Pane<BR>Set objDockingControl = New XtremeDockingPane.Pane</P><P>And also this<BR>Dim objDockingControl As New XtremeDockingPane.Pane</P><P>But all these are throwing the same error that ActiveX component can't create object. Is there any way of checking if the control is already registered on a machine? Any help will be highly appreciated.</P>]]>
   </description>
   <pubDate>Sat, 10 Jan 2004 07:36:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=346&amp;PID=768&amp;title=checking-if-the-control-is-registered#768</guid>
  </item> 
 </channel>
</rss>