Print Page | Close Window

Com ou ActiveX ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16720
Printed Date: 06 October 2024 at 9:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Com ou ActiveX ?
Posted By: iproject
Subject: Com ou ActiveX ?
Date Posted: 19 May 2010 at 2:39am
Hi,

what is the PROGID (Codejock.CommandBars.13.2.1 or Codejock.CommandBarsFrame.13.2.1)
references to ActiveX and COM ?


The realy i need know what is the correcty to use with Object COM ATL.dll


-------------
On Init Codejock()
Ole Object
Codejock v13



Replies:
Posted By: Baldur
Date Posted: 19 May 2010 at 11:52am
This are two different controls.
See at documentation.


Posted By: iproject
Date Posted: 19 May 2010 at 4:41pm
sure,

i use commandbars.13.2.1 and work fine in winXP more now i trying use in windows seven and no work..

do you know why ? imcompatible with w7 ?


-------------
On Init Codejock()
Ole Object
Codejock v13


Posted By: iproject
Date Posted: 19 May 2010 at 4:49pm
/* My code */

HMODULE hDll;
HWND hWndCtrl;
LPAtlAxWinInit    AtlAxWinInit;

hDll         = LoadLibrary( "atl.dll" );
AtlAxWinInit = ( LPAtlAxWinInit ) GetProcAddress( hDll, "AtlAxWinInit" );
AtlAxWinInit();

hWndCtrl = CreateWindowEx(
(DWORD)   0                             , // nExStyle
(LPCTSTR) "AtlAxWin"                    , // cClsName
(LPCTSTR) "Codejock.CommandBars.13.2.1" , // cProgId
(DWORD)   WS_CHILD | WS_VISIBLE         , // style
(INT)     0                             , // nLeft
(INT)     0                             , // nTop
(INT)     100                           , // nWidth
(INT)     100                           , // nHeight
(HWND)    hb_parnl( 1 )                 ,
 NULL,
 NULL,
 NULL                                    );

/* My end code */

hWndCtrl return 0 always.

With Codejock.SkinFrameWork.13.2.1
work fine in wxp and w7. more commandbar no.

someone can help ?


-------------
On Init Codejock()
Ole Object
Codejock v13


Posted By: Baldur
Date Posted: 21 May 2010 at 1:55pm
I think, because the controls are COM-Objects you must use the COM-API's like CoCreateInstance (first use "CoInitialize()").
You can import COM-Libraries to access the Properties and Methods on simply ways like ADO-Examples.
Than you can attach this to any windows.
 
Normal OCX-Objects can be placed in dialogs by designer.


Posted By: iproject
Date Posted: 21 May 2010 at 11:17pm
where i found a simplex sample using cocreateinstance ?

-------------
On Init Codejock()
Ole Object
Codejock v13



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net