|
Hello
I want to use namespace in a com atl project in VC6. I don't know how i have to do this. I want to use this dll in C# and it will be nice to have namespace.
Tahnks,
Mihai
|
|
|
|
|
which COM support IVR(interactive voice response) on telephone by using asp.net
|
|
|
|
|
how to receive telephone calls in asp.net and automatically answer them by playing wave file . Is sound modem is compulsory for handling cable based telephone. if so plz tell its name.
i will be thankful if somebody provides help on this
|
|
|
|
|
Hello
I need to make a COM-DLL for use in VB and C# projects in vc6. I don't know how to start the vc project (what kind of new project), how i can see this dll from vb or c#. I need some documentation/sample.
Thanks,
Mihai
|
|
|
|
|
Can somebody tell me hoe to read AVI header of an AVI file using Visual C++.
Thanks in advance.
|
|
|
|
|
I have a project that uses a ActiveX that refers to a COM object, this project is runing on a server and the ActiveX should be downloaded onto the client. This does not work, but if I copy my COM project over to the client and compile it there the project on the server functions great.
My questing is this....
What do I have to do to register the COM project on the client(whithout copying the project and compiling it)
Spaz
|
|
|
|
|
You need to register it on the client machine using a simple line of code.
just try to run regsvr32.exe /s "LocalActiveXFile" on the clinet machine to register the ActiveX and then easily use it.
Hint:
When you compile a COM component, the compiler automatically does the registeration process which is done simply by running the line of code I introduced.
Hope it was helpful
|
|
|
|
|
hi
can somebody tell me why the size of the property page of the controls created using MFC is restricted to 250*62 DLU (dialog units )standard.
if i build the project in debug mode i get a warning message but if i build it in release mode i dont get any warning message. can anyone tell me that will my program face any problem if i increase the size of the property page than that of the standard one.
tulika
|
|
|
|
|
Hi,
I want to develop GUI-based plugin for Win32 IDE, like I want to add a menu item to VC++ IDE. I m a amateur in COM & ATL programming, but I suppose I can use COM & ATL to create GUI plugin for VC++ editor. Please suggest/help/direct/guide me for same?
- Manish
|
|
|
|
|
hello,
i use the ATl write a word2000 addin,and add a button into the word toolbars,and now i want to add a picture into the word document when i hit the button,this picture can be a bmp or jpeg.after i insert the picture i can drag it to a proper location.
i tried a long time,but in vain,who can help me?
|
|
|
|
|
Hello Friends,
What is the difference between ActiveX Component and COM Component?
Neelesh K J Jain.
|
|
|
|
|
They are one and the same thing! You probably wanted to ask this:
What is the difference between ActiveX Control and COM Component?
A Control is a COM object with a set of standard interfaces as defined by COM standard for a Control. If a COM object supports all the required interfaces as defined by Microsoft for a Control, then it is a Control.
|
|
|
|
|
I am trying to load this dll in my VC++/MFC class using COM. However, it generates error in the generated .tlh file. This is what i did. I import the dll in stdafx.h and insert the following on a button control.
HRESULT hresult;
CLSID clsid;
CoInitialize(NULL); //initialize COM library
hresult=CLSIDFromProgID(OLESTR("Techno.Servo"), &clsid); //retrieve CLSID of component
_Servo *t;
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_Servo),(LPVOID *) &t);
if(FAILED(hresult))
{
AfxMessageBox("Creation Failed");
return;
}
t->MOVE(); //call method
t->Release(); //call method
CoUninitialize(); //Unintialize the COM library
Can anyone please tell me where the error is?
|
|
|
|
|
I am having a simple COM object (COM wrapper) in C#. I register the object for COM Interop by using regasm and gacutil /i (.Net Command Prompt).
I am able to call my COM object from classic COM capable applications.
My question is if I want to update my COM object, it seems to me that I have to reboot my machine before the updated COM object works. If I don't reboot the machine, the COM capable applications still reference my old COM object. Is there a way to update COM object (COM wrapper) without restart the machine?
Note: I can not use Cofiguration Properties->Register for COM Interop (VS.NET 2003) because I need to deploy my COM object to my production server.
Any suggestion will be appreciated.
|
|
|
|
|
Are you un-registering and removing the old com wrapper from the GAC first? (gacutil /u , regasm /u)? Note that if there are outstanding references gacutil /u will fail and echo the reference count.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
This is what I did for register my new version of COM wrapper.
1. gacutil /u xxx
2. delete the dll and tlb files on one location. (Note: most of the time, windows won't allow me to delete the tlb file, so tlb file couldn't updated. Therefore, I will create a new directory, and register in the new directory)
3. regasm xxx.dll /tlb:xxx.tlb
4. gacutil /i xxx.dll
I check the GAC, etc. Every things updated. But when I use SQL Server, TSQL to access my COM wrapper, the COM wrapper is not my new version.
One question is do I have to use regasm /u also??
Thank YOu for your reply.
|
|
|
|
|
hchiu wrote:
One question is do I have to use regasm /u also??
if you are changing the type library, yes.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
Actually I need to stop the SQL server in order to update my COM wrapper.
Therefore, everythings work now.
|
|
|
|
|
Hello
I am using an ActiveX component in my web page, it all works fine localy on my machine, but when I put my code on a server and access it from a client the ActiveX dosent load. All I get is an error saying "ActiveX Component Can't Creat Object".
What do I have to change to make my solution work on the server
Spaz
|
|
|
|
|
hi,
I have a set of avi files how I can I read one avi and write the video and audio assoiated with that avi to another new avi(to be created).
and also let me know how to join to avi,s in c++(vc++/borland c++)
regards
shaan
se
|
|
|
|
|
Hi ,
I need to show only selected activeX controls in a list box of a dialog.
Are there any API's to do so. I came across some demo applications which show all registered MFC activeX controls but not the one which shows only user-defined.
Is there any way out ?
|
|
|
|
|
Hi,
I am trying with a program that will create an ActiveDesktop using IActiveDesktop. I want to manipulate the buttons on ActiveDesktop which is intented to manipulate the state of the ActiveDesktop as IS_NORMAL, IS_FULLSCREEN, IS_SPLIT. Is there any option for doing it programically?
Waiting your responses
Vinod
|
|
|
|
|
I want to create a group of COM+ objects and put into system pool so that:
It can access objects by name(or index) from different processes in same server along with availability to access from another machine on network. The object state will be remembered during calls.
Hope there is a solution for this. Appreciate your help in advance!
|
|
|
|
|
Hi folks!
I need to create a DCOM Server to manage multiple objects (hardware driver wrappers).
I Created DCOM Server with object classes and methods declaration, but I wanted to envelope every object in a separate DLL, to be modular. (just to make things easier if I wanna change a board, i.e.)
Now, I created a Win32 DLL (I do not need COM support, while I'm just implementing functions) but I need to get by parameter the effective class of my COM object. I tried that by including the object H file with class declaration, but it tells me that ATL_NO_VTABLE cannot be understood.
What can I do? Did I reason well? Or I need a COM DLL anyway?
Thanks a lot for now,
Morenz
|
|
|
|
|
Hi,
I'm not sure what are you trying to achieve. I assume, that you have some DCOM object, exposing a set of functions, these being implemented in different .dlls, that can be dynamically loaded from your object. Problem is, that one of the parameters to these functions implemented in .dlls should be a pointer to the DCOM object that calls them. Is that right?
I think you need to include the ATL headers into your dlls as well, to have defined the ATL macro ATL_NO_VTABLE . This will not change your .dlls to COM dlls (they will not require the registration)
There's also another problem with the ALT objects. There's an interesting twist, because of IUnknown implementation. To keep it short, simply your ATL object is not really the object being constructed. If I assume your object name is CMyObject then the object constructed is in fact CComObject<CMyObject> . So to stay on the safe side, your parameter should not be only CMyClass& , but CComObject<CMyClass>& (or pointer if you prefer)
Anyway, safest way would be to export some sort of interface from the DCOM object, that these dlls will use to communicate. Then you can take the declaration of the interface from the header file generated by MIDL and use it in the .dlls. (filename is usually projectname.h )
Hope this helps
|
|
|
|