|
just3ala2 wrote: Dear all, i'm developing an activex component to use in a web application. my task requires using a dll to do some work...
When i try to add it to the references of the project i get the message of "can't add a reference to the specified file"
I'm using Visual Studio 6 and vb6 as a language
It sounds like you are trying to add a reference to a dll that isn't a COM dll. VB6 does provide a way to access them, but it involves creating a module file and writing code to import all the functions that you need to call in the dll.
Nathan
|
|
|
|
|
I c
Thanx nathan, i found another dll that does the same job and can be added as a reference
Best Regards
3ala2
|
|
|
|
|
Hey ,
Can you please explain the diffrence between .idl and .h file?
Also How to create a new .idl file in VC6?
Thanks,
Ash.
|
|
|
|
|
The idl-File is the input for the midl-compiler which creates an _i.c and .h file for further use. See MIDL-Compiler for more information. For creation of an idl-file use the ATLCOM-wizard in the VS.
|
|
|
|
|
I am learning COM. And has come to know about one of the Advantages of the COM over .dll file. That
It extends the functionality of (client)application without rebuilding.
I.e. If you make the changes in function of .Dll File which client application is using you need to recompile the application. But if you are using the COM you dont need to do recompilation of client application
But How ?? afterall the COM ( inprocess COM) is also a .dll
|
|
|
|
|
Well you don't necessarily have to rebuild the entire app that is using a dll when it changes. Think about how Microsoft provides patches or updates to DLLs. Do you need to rebuild your OS to use the new DLLS
As long at the function interface does not change you don't need to worry about rebuilding the app that uses the DLL.
COM provides interfaces that other app use. As long as the interface is not changed everything will be fine if the COM object has some code changes.
Let's say a code of a COM interface was modify like a bug fix, then the app using the old COM object will be able to use the new COM object because all it needs to do is CoCreate the COM object and Query for it's interface. This part remains the same in the app, so the app doesn't need to be changed.
|
|
|
|
|
I m thinking to learn COM but not getting from where to start ?. If u know about any good book please tell. If you can provide the link to the Ebook it will be gr8 HELP!.
Thnx in Advance.
|
|
|
|
|
|
Thnx but I have already read this article b4 and other aricles from the codeproject.com. So if u know about any good Book which have explained COM in Depth please tell me.
|
|
|
|
|
Essential COM by Don Box.
|
|
|
|
|
Essential COM - by Don Box
you may also want to look at
Inside COM - by Dale Rogerson
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hi,
How will you talk with Activex or COM(could be created in MFC) From C#?
Plzz send me ur valuable suggestions to me as soon as possible...Thanks to u..What is CCW and RCW?How to use it?
spalanivel
|
|
|
|
|
|
Thanks for ur information.. and if any coding related to these it will be more useful...
|
|
|
|
|
|
|
I have a COM component with no .h files.
I want to use,but how should I begin?
Thanks.
GOOD LUCK!
|
|
|
|
|
IDispatch can help
or
use #import[^] on the Type library which could be a seperate file or embeded in the COM server DLL
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Thanks very much.But I am a beginer of COM,would you like to give me a demo of such task?
GOOD LUCK.
|
|
|
|
|
Some interfaces in Windows Media Player are only available by using a "remote" host. I'd like to remote the player control from my OCX which is embedded in IE. I am searching for way to get a reference to a container that would support IObjectWithSite (ideally IE itself) to set up my remote host object in order to create the remoted WMP instance... any assistance, ideas or comments would be greatly appreciated.
Addition: BTW all this works fine when done from an MFC app... but I can't get a container reference in the OCX.
-- modified at 12:10 Wednesday 12th September, 2007
|
|
|
|
|
Here's exactly what's going wrong -
CAxWindow *m_pView;
CComPtr<IAxWinHostWindow> spHost;
RECT rectWMP={1,1,1,1};
AtlAxWinInit();
m_pView = new CAxWindow();
hr = m_pView ? S_OK : E_OUTOFMEMORY;
if(SUCCEEDED(hr))
{
MessageBox(_T("Got AxWindow"), _T("WMP Container"), MB_OK);
m_pView->Create(m_hWnd, rectWMP, NULL, WS_CHILD);
hr = ::IsWindow(m_pView->m_hWnd)? S_OK : E_FAIL;
}
Is it clearer what is going on from that? (this same code works fine in a local app)
|
|
|
|
|
Hi All,
I am trying to retrive message from a computer that is running Microsoft Exchange Server
using OnSyncSave(IExStoreEventInfo pEventInfo, string bstrURLItem, int lFlags)
The bstrURLItem i am getting is of this format
file://./backofficestorage/London.ukproject.com/
Public Folders/Exch test msg-87539250.EML
The message subject given was Exch test msg
Why are these numbers appended to Message Subject ?
Ashish Vasudev
|
|
|
|
|
I would like to learn COM to use in WTL. But I can't find no tutorials that are up to date for C++. And actually goes through it all. And not just skip around expecting you to know everything.
|
|
|
|
|
|
Hi Experts,
How can I check for particular version of MS-Outlook from registry value.
Thanx in advance.
|
|
|
|