Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Com ou ActiveX ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Com ou ActiveX ?

 Post Reply Post Reply
Author
Message
iproject View Drop Down
Newbie
Newbie
Avatar

Joined: 19 May 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote iproject Quote  Post ReplyReply Direct Link To This Post Topic: Com ou ActiveX ?
    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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2010 at 11:52am
This are two different controls.
See at documentation.
Back to Top
iproject View Drop Down
Newbie
Newbie
Avatar

Joined: 19 May 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote iproject Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
iproject View Drop Down
Newbie
Newbie
Avatar

Joined: 19 May 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote iproject Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
iproject View Drop Down
Newbie
Newbie
Avatar

Joined: 19 May 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote iproject Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2010 at 11:17pm
where i found a simplex sample using cocreateinstance ?
On Init Codejock()
Ole Object
Codejock v13
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.160 seconds.