![]() |
Com ou ActiveX ? |
Post Reply
|
| Author | |
iproject
Newbie
Joined: 19 May 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Baldur
Senior Member
Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 May 2010 at 11:52am |
|
This are two different controls.
See at documentation.
|
|
![]() |
|
iproject
Newbie
Joined: 19 May 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
iproject
Newbie
Joined: 19 May 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Baldur
Senior Member
Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
iproject
Newbie
Joined: 19 May 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 May 2010 at 11:17pm |
|
where i found a simplex sample using cocreateinstance ?
|
|
|
On Init Codejock()
Ole Object Codejock v13 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |