|
Hi Uttam ,
can you please. le mw know.
Is is really possible to make the ATL COM component embedding the active x (.ocx) inside it.
If yes can you please provide me the steps to do so.
I have an assignment . to make the ATL COM component with embedding the .ocx.
Here is the brief of the requirement.
I am having on e.ocx provideed by the vendor say as scanner.ocx.
What is need to do is make one another ATL COM or active x using this .ocx file. This componet which I am creating also support one dialog and should be all the controls( like buttons combo, I mean all the user interface,)
How to do that.
we need to make ATL COM or use the active x wizard for that.
can you please let me know the steps do so. It's urgent.
Thanks,
|
|
|
|
|
Hi Nikkiee,
Looks like you want to create a wrapper of existing OCX. In ATL you can also use OCX. You need to use ocx in the same way getting used in MFC with very little difference. Use #import. Let me know if you find prob.
Regards;
Uttam
Regards;
Uttam Kumar
|
|
|
|
|
Uttam,
Can you please let me know the steps need to be followed.
In VC++ 6.0 , what should i need to choose,
1. ATL COM Application Wizard
2. MFC Active X Control\Wizard
Basically I am C++ developer and very new and a beginner for the ATL COM or active X.
in which method i can create my own dialog ( for user interface).
I would really greatful, i you can help me in this. This is urgent.
|
|
|
|
|
Uttam,
Can you please let me know the steps need to be followed.
In VC++ 6.0 , what should i need to choose,
1. ATL COM Application Wizard
2. MFC Active X Control\Wizard
Basically I am C++ developer and very new and a beginner for the ATL COM or active X.
in which method i can create my own dialog ( for user interface).
I would really greatful, i you can help me in this. This is urgent.
Actually, I need to write an .ocx\dll using this vendor provided .ocx.
|
|
|
|
|
When do you need it? I might create a a sample but only if I get time. Please very clearly let me know what do want?
If I'm not wrong all you need is:
ATL Component with UI i.e. Dlg and would host another OCX given by a 3rd Party right?
Regards;
Uttam Kumar
|
|
|
|
|
Yes you are very much right, It would be great if you can help me in this.
can you pLease create a sample as soon as you get time. Actually i need it urgently.
Thanks,
|
|
|
|
|
In ATL you can create UI including dialog. Wizard Steps:
File - New - ATL COM APP Wizard
Check Dll or EXE if you want exe.
Tick MFC if you want to use MFC methods
Go to Insert - Select ATL Object - Choose Misc - Dialog ( If you want Dlg) Or you can you composit control from control.
Then do the coding.
Regards;
Uttam Kumar
|
|
|
|
|
Thanks a alot Uttam, you have been very helpful.
Is there any good document, to follow for event handling of this dialog( user interface) which i am gonna be used.
and what I need to do to expose all the functions, which my vendor provided .ocx is having.
To out-side of this ATL COM dll.
Now I have added the Dialog as you suggested, now I really need to add the ocx using Project->Add to Project->Components and Controls->Components and Control Gallery.
To add the ocx in dialog .
I'm confused.
Sorry if i am bugging you to much
modified on Thursday, December 4, 2008 10:07 AM
|
|
|
|
|
The given sample crashes in release mode
at the line
wnd.AttachControl(...);
|
|
|
|
|
Can you please let me know how to add the events for key down of shift/ctrl buttons. I am able to select the rows which are in next to next. If i want to select the rows like 1, 4, and 6th row then how to do that?
-KirriK
|
|
|
|
|
:(hello frnds...I have to use MS web browser control on a composite control.I dont want to create it at run time, i just wana add it as other activex control on the composite control.I obtained its handle as
HWND m_hwnd = GetDlgItem(IDC_EXPLORER1) ;
m_pBrowser= ( CWebBrowser2* ) CWnd::FromHandle ( m_hwnd ) ;
m_pBrowser->Navigate("www.google.com",NULL,NULL,NULL,NULL);
but navigate function is giving a run time error.Any suggestions???
Never complain,never explain,just do your work.
|
|
|
|
|
Hi,
i want to create Activex control in ATL without using MFC.
is this possible to create activex control .
Give me some step to create control in ATL.i don't know much about ATL.
Is any link or tutorial for this. so that i will fastly do.
waiting for +ve response
|
|
|
|
|
Yes it's possible. The best example you will find in MSDN. Search there for ATL Tutorial. That the best one.
Regards
Uttam
Regards;
Uttam Kumar
|
|
|
|
|
I tried this method to create a MSFlexGrid but it seems not works in Windows Server 2003,
all the instruction in the CreateObject() work fine, but the last operation
m_VarGrid = pUnk
(I have tried to change it with
hr = pUnk->QueryInterface(IID_IMSFlexGrid,reinterpret_cast<void**>(&m_VarGrid)))
leave the m_VarGrid = NULL, and the QueryInterface return E_NOINTERFACE (but in the previous instructions everything works). In the machine with Windows 2003 there wasn't Visual Studio, but as soon as I've installed it, everything work again.
Unfortunately I need the ActiveX work on a machine without Visual Studio
Can you help me?
Thank you very much
Doris
|
|
|
|
|
Hi,
I've created the ATL Composite control and within that I've created MSFlexGrid control.
The .tlh file generated has the event ids as below.
extern "C" const GUID __declspec(selectany) DIID_DMSFlexGridEvents =
{0x609602e0,0x531b,0x11cf,{0x91,0xf6,0xc2,0x86,0x3c,0x38,0x5e,0x30}};
How do I know which id is for which event?
Thanks,
VK
|
|
|
|
|
Hi,
I have created a ATL composite control. Now I already have a
dialog implemented with me. What I wanted to do is create this
dialog on this ATL control so that I get all the functionality.
However the creation is failing.
I have written following code in my OnInitDialog() of this ATL
control:
CMYdialog dlg;
if ( dlg.Create( IDD_MYDIALOG, (CWnd*)this) )
{
if ( dlg.m_hWnd)
{
dlg.ShowWindow(SW_SHOW);
}
}
Dialog creation is failing and hence I see nothing on my control.
Can somebody please help me here?
Thanks in advance,
-Sundeep.
|
|
|
|
|
Hi Sundeep,
It looks like you are not creating ATL Dlg. If that's the case then do the following:
1. Click on Insert Menu
2. New ATL Object
3. Select Miscllaneous and select the Dialog
Hope it will solve you problem.
Regards;
Uttam Kumar
|
|
|
|
|
Hi Uttam,
I am not creating a ATL dialog. I have a simple
dialog (derived from CDailog) implememted with me
in the project. I want to create this dialog on
the ATL composite control. This is where creation
is failing. I am trying to create it in OnInitDialog
of this control.
During the investigation I found out that if I create
this dialog later, after the control is up, on some event
say a button click, it works. Looks like some creation
proecss glitch.
Thanks,
-Sundeep
|
|
|
|
|
If I put Slider Control on the Composite Control ( i.e The Dialog) I happen to see the EDGE or Dotted Rectangle near the Slider Control, can you please help me for removing the EDGE or That Dotted rectangle....
---------------------------------------------
using : vc++ 6.0
ATL WIZARD for creating Composite control
Selected All STOCK properties
--------------------------------
cheers
Balkrishna Talele
|
|
|
|
|
Can you show the code containing OnInitDialog() and CreateObject() ?
I'm trying to figure out how to embed/in-place an OCX in an ATL container.
|
|
|
|
|
hi can any one tell me how to allow users - dynamically add /delete columns to the displayed mslfexgrid control, on an vb applcaiton screen?
pl send a reaply to my e-mail dwaraka.mohan@in.abb.com
thank you
|
|
|
|
|
Hi all,
Everybody knows how to use Msflexgrid control with unicode text fill?
Thanks.
|
|
|
|
|
Compiled and linked the msflexgrid project in VS.Net2003. It hangs with:
" Unhandled exception at 0x7c1f173a (MFC71.dll) in tstcon32.exe: 0xC0000005: Access violation reading location 0x014c2a48 "
when I try to load it into a test container. Works OK when using VC++6. Any idea what could be the problem ?
Regards
Rainer
|
|
|
|
|
:-OHi
I am trying to create MappointControl on a ATL composite control just following the same steps used in "MSFlexGrid Control On ATL Composite Control", but no success. Will anybody please tell me how can I create a MappointControl(MappointControl.ocx) on ATL composite control without care for licence key problem(because my ATL activex control's user will be having MappointControl installed on his machine).
I would very gratefull for the quickest reply.
Thanks in advance.
-Bahubali
|
|
|
|
|
Attach zip file corrupted, can you renew it?
|
|
|
|