Click here to Skip to main content
Page 1 of 30
Page Size: 10 · 25 · 50


Tag filtered by:  COM [x]
Question 8 May 2013   license: CPOL
Hi Gurus,I need to find out if user does, Right Click on a worksheet tab-->Opens Move or Copy dialog" and check the "create a copy "checkbox.Please help me how to get the handle to move or Copy dialog controls in C# or VBA.Thanks in Advance.Vieer
Answer 3 May 2013   license: CPOL
You should use Regsvr32[^] to register COM libraries properly.
Question 3 May 2013   license: CPOL
Hello!I am working on MFC dialogue based application,for that I used Dll functionality in COM. DLL is build successfully. I register it with registry editor by using GUID for the interfaces in dll application.I wrote below code for Initialise com object,but it gives error that "Class Not...
Question 2 May 2013   license: CPOL
Hi friends, I am using VS 2005Whenever I am compiling my code I got the error as :error C2059: syntax error : ',' C:\Program Files\Microsoft Visual Studio 8\VC\include\comip.h 49 Anybody explain me this error why it occurred and this error comes many time.Here is the...
Answer 2 May 2013   license: CPOL
http://msdn.microsoft.com/en-us/library/t8xe60cf(v=vs.80).aspx[^]
Technical Blog 2 May 2013   license: CPOL
[toc] Introduction Note to pedantic guys: yes Access is not a database engine, only the graphical front-end to Jet/ACE, but we’ll stand with this simplification. The sample application (Excel + VBA) and the SQL source code are available in this … Continue reading →
Question 1 May 2013   license: CPOL
Hi,I have an out of process server running as windows services.I have made another application which instantiate the class defined in the out of process server. But when it calls a method of the class, it just hangs. It though runs fine when the out of process is not running already. When...
Question 30 Apr 2013   license: CPOL
I created a Win32 dll project on VC++ using MIDL generated files and i am trying to create Proxy / Stub code from it. In the project settings i added the static libraries : rpcndr.lib, rpcns4.lib , rpcrt4.lib and added preprocessor Definitions: REGISTER_PROXY_DLL and _WIN32_DCOM.Also i added...
Question 23 Apr 2013   license: CPOL
Currently we are working on backup management solution so we are using shadowProtect interface for some trials.Shadow ProtectNow i need to call shaprotect interface functions programatically to create some backup jobs and get information ,so ShadowProtect provide me following lines of code...
Question 22 Apr 2013   license: CPOL
I have written a .NET class library (using Visual C++ 2005 and old syntax) which is exposed to VB6 via COM Interop. The assembly works quite satisfactorily. I recently decided to enhance it by documenting all classes and class members; this is done by qualifying items with a Description...
Answer 22 Apr 2013   license: CPOL
In general case, not. Actually, that's why, in addition to compatibility, COM components should support versioning.Now, why? To understand it, you should consider layout of memory pointed by interface pointer and two side: a component and using code. Here is the illustration. From C++...
Answer 18 Apr 2013   license: CPOL
player = instancePlayer as WMPLib.IWMPPlayer; //Here Object instanceFolder = null; Guid guid_IWMFolder = typeof(WMPLib.IWMPFolderMonitorServices).GUID; IntPtr ptr1, ptr2; try { ptr1 =...
Question 17 Apr 2013   license: CPOL
I try flowing code to create an WMPLib.IWMPFolderMonitorServices in C# to manage folders contain music. public partial class MainWindow : Window { private WMPLib.IWMPPlayer player; private WMPLib.IWMPFolderMonitorServices manageFolder; ...
Answer 17 Apr 2013   license: CPOL
COM has strict rules: Interfaces must be immutable. You must never, ever change the interface in a new version of a COM DLL. You may add interfaces, however.Now, supposing you have (strictly) followed the COM rules, the new DLL, supports the old interface and possibly new ones. IF object B...
Question 17 Apr 2013   license: CPOL
Hello, I have a question. I have a dll COM with version A and I have a new version of this dll (version B). Version B supports backward compatibility i.e: When I compile application with the version A of dll it works fine. When we launch it on machine that has version B installed.I suppose...
Answer 14 Apr 2013   license: CPOL
If anybody is interested, here's what I did to solve this:Since the method to do it by calling the ExecWB function with the respective arguments still not want to work, I did a somewhat ugly work around.On the OnDocumentComplete event, I simply call a Javascript function which does the...
Answer 12 Apr 2013   license: CPOL
MSXML2.0 is no more supported by Microsoft you can refer this link and check, take the latest version i.e MSXML6.0 and use it in your application, it should work or even MSXML4.0 should workout for you.http://support.microsoft.com/kb/269238[^]
COM
Answer 12 Apr 2013   license: CPOL
In C++ equivalent of adding reference is using #import "comserverdllname" ex:#import "test.dll"
Question 12 Apr 2013   license: CPOL
Hi codeproject community,normally I never bother an internet forum with my problems but I am kind of desperated right now.So here's the issue:I have an MFC application with an webbrowser control in the gui contained. For this purpose I created a new class deriving from the necessary...
Answer 12 Apr 2013   license: CPOL
I've got an idea ;)Try this:VARIANT vFontSize;VariantInit (&vFontSize);V_VT(&vFontSize) = VT_I4;V_I4(&vFontSize) = 4; //arbitrary picked zoom value out of a possible range from 0 to 4//m_pBrowser->ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, &vFontSize,...
Answer 11 Apr 2013   license: CPOL
Thank you for your time The_Inventor!I've got the problem solved by adding the chart in a IDD_DIALOG and attaching it to the ActiveX. But the ActiveX must be enabled for control container,and the dialog must have a bunch of flags setted.More InfoCheers!
Question 11 Apr 2013   license: CPOL
Hi, I need help, I need make a dll in vc++ and after register in system 32 and link with web application project for call methods from javascript thanks.NOTE:Not is c++ 6.0
Question 11 Apr 2013   license: CPOL
Hi guys!I need to manage VirtualBox from a C# Net 4.0 app using the COM API. The problem is that I get a marshaling exception when i try to get the output from a program that has been executed on the guest.The code that generates the exception is:System.Array output =...
Question 11 Apr 2013   license: CPOL
I've got a C++ client accessing some registry-free C++ COM DLLs.I followed instructions here:Registration-Free Activation of COM Components: A Walkthrough[^]and got my client working almost OK.However, my side-by-side DLL calls into many other COMs.These internal COMs appear...
Tip/Trick 10 Apr 2013   license: CPOL
C++ WMI provider with example examining Windows Security Center
Answer 10 Apr 2013   license: CPOL
As a quick answer, I would answer: better forget it.However, there are couple of remote possibilities related to System.Reflection.Emit. You can generate (emit) a whole assembly during runtime and use it. Alternatively, you can add a separate method during run-time, convert it to a delegate...
Question 10 Apr 2013   license: CPOL
Hi All,In my Application, comprising many COM-Dll's, I had added new class/interface/method, obviously, since, IID-CLSID changes, we need to register the Dll "abc.dll" using RegSvr32.exe "abc.dll", by closing the instance of Application.(pre-requisite) and replacing the newly registered...
Answer 9 Apr 2013   license: CPOL
Presuming you have a:CDC* m_pchrtMyChart;in your code then all you should have to do is:m_pchrtMyChart = mschrt20obj.m_pchrtObj or something to that extent. Often there is a HANDLE involved in order to transfer information about the object. It is a lot like using Bitmaps.
Answer 9 Apr 2013   license: CPOL
Quote:It's included with Visual Studio (as part of the Microsoft SDK) and the .Net framework (v1 and 1.1 only!) So it might be in one of the following (or more!): source: Where is gacutil.exe?[^]On my machine (MS VS 2005 installed) i've found only this...
Question 9 Apr 2013   license: CPOL
Hi All,I am writing a batch file to install my dll with gacutil.But I am not able to find out the exact location of gacutil, as different machine may have different Microsoft SDK's.Hence I am trying to use Reg.exe to do so.Eg,FOR /F "tokens=2*" %%a in ('REG QUERY...
Question 8 Apr 2013   license: CPOL
I have a standard user that running Internet Explorer (going to a web site) loads my COM DLL, but for some functionalities I need that DLL must ask Administrator Privileges to the user( admin login and pwd)or if the user is already an admin just elevate the privileges to proceed.How to do...
Answer 8 Apr 2013   license: CPOL
You need a member and method(s) that point to the mschrt20.ocx functions within the mschrt20.ocx module within your module's code. Also you will need to include mschrt20.h in your header file for you module. Then in your OnDraw() use the methods and member, that is in your header file of your...
Article 8 Apr 2013   license: CPOL
This article explains how to use Network List Manager service to identify and retrieve properties of each network that PC Connects to.
Question 8 Apr 2013   license: CPOL
Hi, I want to draw an ActiveX (mschrt20.ocx) inside the OnDraw method in my custom ActiveX made in (C++/VS2010).Someone have a clue on that?
Question 7 Apr 2013   license: CPOL
Hello All,Is it possible to Call Release() Function in COM Server Itself.We have a situation where we have to call the Release function in COM Server itself instead of Client.
Article 6 Apr 2013   license: CPOL
This article will help you to integrate ISCSI functionalities available on Windows with your base application in C++
Question 5 Apr 2013   license: CPOL
We have created an COM which will talk to some serial port.in order to simplify the clients work we created an dll which internally talks to the server.Clients will use the dll to access the server.now we are facining one problem in windows 7.In Windows 7 some applications will open in admin...
Article 5 Apr 2013   license: CPOL
This article shows how Java application can retrieve user's data from the Active Directory
Answer 4 Apr 2013   license: CPOL
You have several options. 1. Use COM+. If I remember right, there are instantiation options somewhere there (I don't have a Windows box available at the moment). 2. http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/224fc85f-f9f8-40a5-bd9a-92019d7c50b0/[^], or...
Answer 3 Apr 2013   license: CPOL
In additionallyHow to initialize object from existing DLL without registering see my answer here: importing com dll dynmaically[^]The CoCreateInstance and CoCreateInstanceEx used if case you object registered in a system or on remote PC. Once your object is OLE control or document which...
Catalog 3 Apr 2013   license: Fully Function Evaluation version
Electronic form design, form printing, form filling, data dissemination, C/C++ visualization, VB/.NET, source code component library, 100% VC++ Source Code is Shipped.
Answer 3 Apr 2013   license: CPOL
Thank you so much friends..well it was asked in one of the interview and i had answered the person that we can use co create instance or all helper methods invoked by cocreateinstance seprately ...CoGetClassObject(rclsid, dwClsContext, NULL, IID_IClassFactory, &pCF);hresult =...
Answer 3 Apr 2013   license: CPOL
If the COM DLL has to be treated as a COM object, then see solutions #1 and #2. If the DLL does not have to be treated as COM, then you could simply link to it and call the COM interfaces via conventional calls. You would still use the same marshalling, return code and exception handling...
Answer 3 Apr 2013   license: CPOL
There are some 'ufficial ways' for creating a COM objects (Matthew covered well the 'unofficial ways'). You may use CoGetClassObject and the call the IClassFactory::CreateInstance.MSDN's Instance Creation Helper Functions[^] shows other possibilities.However, I don't know if you consider the...
Answer 3 Apr 2013   license: CPOL
There's no really sensible or safe way but there is a way. Essentially you can do what CoCreateInstance does by yourself. There are a number of steps and I don't know them all by heart but they will include.Load the Dll with LoadLibraryGet one or more function pointers to the functions...
Question 3 Apr 2013   license: CPOL
Hi Experts,I wanted to know if there is any way to instantiate a COM component other than cocreateInstance and its variant.Regards,Vikas Mishra
Catalog 31 Mar 2013   license: Fully Function Evaluation version
CAD drafting, mechanical CAD, Architectural CAD, electrical CAD, CAD design, CAD annotation, printing, software development, Source code control for C/C++, .NET, 100% VC++ Source Code is Shipped.
Catalog 31 Mar 2013   license: Fully Function Evaluation version
HMI-SCADA Graphics Visualization Source Code Solution For C/C++, .NET and Web, 100% VC++ Source Code is Shipped.
Tip/Trick 29 Mar 2013   license: CPOL
The COM Interop Runtime Callable Wrapper (RCW) is a "Black Box" that creates references to memory that need to be released before the called program will end.

Page 1 of 30
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid