|
How to start several Excel books at the same time with IDIspatch?
I know how to start only one Excel book using C.
And it is very easy to start several Excel books by VBA.
Thanks very much! :
|
|
|
|
|
Hi,
Does anyone knows how to set the Shutdown Privilege to WMI on Remote Computers in Visual C++ ?
Microsoft did not documented this very well as usual.
Any reply is welcome.
Thanks in Advance.
Best Regards,
Mario M.
|
|
|
|
|
I'm having some trouble with screen flickering when the browser window (or active X test control container) is scrolled.
It is really quiet bad, Is ther any way to get better redrawing? with less flickering? I've tried some double buffering but it doesn't seem to work. Especially with the CDC that the OnDraw function gives me.
It is an MFC base Active X control.
Any ideas, would be great
thanks,
JAred.
|
|
|
|
|
It is probably EraseBackground that causing this excessive flicker. Try to intercept WM_ERASEBKGND and return 1. Worked for me.
|
|
|
|
|
If you BitBlt a bitmap to the background through the WM_ERASEBKGND and the bitmap is bigger than the dialog it will
flicker. Make sure the bitmap is exactly the size of your rect
or smaller.
|
|
|
|
|
Environment: Windows 2000, VC++ 6.0
Hello,
I wrote an ActiveX control: MyCtrl.
I wrote a composite control that uses MyCtrl.
How do I call functions of MyCtrl?
I can get the CWindow of that control but
I need the CMyCtrl object !!!
For regular controls I found the "atlcontrols.h" file
in the MSDN, but I don't know how to call functions
of a new control I wrote like:
m_myCtrl.SetBitmaps(IDB_HELLO);
Any help will be appreciated.
|
|
|
|
|
Hi,
I want to write ActiveX about Editbox,
I mean, i want to add some tools to EditBox.
But in first i want to know:
I wanna show usual editbox in my ActiveX,
How can i do that ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Environment: Windows 2000, VC++ 6.0
Hello,
I wrote an ActiveX control: MyCtrl.
I wrote a composite control that uses MyCtrl.
How do I call functions of MyCtrl?
I can get the CWindow of that control but
I need the CMyCtrl object !!!
For regular controls I found the "atlcontrols.h" file
in the MSDN, but I don't know how to call functions
of a new control I wrote like:
m_myCtrl.SetBitmaps(IDB_HELLO);
Any help will be appreciated.
|
|
|
|
|
Environment: Windows 2000, VC++ 6.0
Hello,
I wrote an ActiveX control: MyCtrl.
I wrote a composite control that uses MyCtrl.
How do I call functions of MyCtrl?
I can get the CWindow of that control but
I need the CMyCtrl object !!!
For regular controls I found the "atlcontrols.h" file
in the MSDN, but I don't know how to call functions
of a new control I wrote like:
m_myCtrl.SetBitmaps(IDB_HELLO);
Any help will be appreciated.
|
|
|
|
|
Your control is CONTAINED by the composite control. You need to expose the interfaces on your controls through the composite control, or have a method on the composite control that returns an interface to your control.
|
|
|
|
|
Hello,
I don't need a client to use the inner control. Only the composite control uses the ActiveX control.
I've dragged the control on to the composite dialog and now I want in the code of the composite dialog to call functions of
the control. How do I do that?
Thank you,
Penina.
|
|
|
|
|
Try GetDlgControl to get IUnknown for control your are interested in. It should be easy once you have IUnknown. As an alernative you can use custom windows messages to comunicate with hosted control.
HRESULT GetDlgControl( int nID, IUnknown** ppUnkCtrl );
|
|
|
|
|
Hello,
How would it be possible to "extend" any SIP of any appplication ? I mean I would like to insert a processing that would modify/verify each user input from any kind of SIP, of any application, before the input string is sent to the application currently owning the SIP.
Do I have to write a DLL, how could it work ? I plan this of course under Windows CE. Do one need something related to hooking (I know that is very restricted under Windows CE) ?
Thank's in advance.
--Francois
|
|
|
|
|
Hi,
Can I call COM object from device driver (from kernel mode)?
I would like to do is to load up COM, so I can hook it up later.
Thanks
BD
|
|
|
|
|
I am preparing a dialog based application in VC++(MFC).In that I want to prepare a report based on some sql query.I am trying to use "msdbrptr.dll"
and "msdbrpt.dll" and "msde.dll".
Now when I try this code
_DataReportPtr pDr(__uuidof(_DataReport))
It throws an exception "class not registered" .Send me the sample code explaining how to print a report(data report)using mfc.
if there is any other way to prepare a report (with print option) then please let me know.
I don't want to use crystal reports.
|
|
|
|
|
Hi,
I am adding function to DCOM Clients and Servers. Ammending previously written code, so i have little knowledge of the technical details of DCOM.
What I wish to do is return a series of records, 3 strings to be precise.
I was thinking of having one function to return a block of Record Keys. And then having one function to get individual records. Is there are any better ways of doing this?
Cheers
Rich
|
|
|
|
|
Hi,
I have an ATL interface (IOLEDBConnectionPool) for which I want to expose a function
(Initialize) with a DBPROPSET (an OLEDB propertyset struct) but the MIDL compiler doesn't
recognize the DBPROPSET. If I use another variable-type and compile and then change the corresponding
.c and .h files afterwards it works just fine but it is not a nice solution so what can I do to make
the .IDL file compile (see extract from .IDL-file below)?
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(D5602000-F5DA-45A0-9A14-066B0D23AAE1),
helpstring("IOLEDBConnectionPool Interface"),
pointer_default(unique)
]
interface IOLEDBConnectionPool : IUnknown
{
[helpstring("method Initialize")] HRESULT Initialize([in] DBPROPSET *pPropSet);
};
....
Johannes
|
|
|
|
|
There are two ways you can get around this. One, add the definition of the DBPROPSET struct to your IDL so it know what you mean. This will work if the clients are C++, VB, VBScript and the like won't. Two, since the param you are passing is a pointer just use a LONG and convert in into a DBPROPSET* when you get it. This would be the prefered method.
|
|
|
|
|
Hi
I need to pass many variables from a client written in VB to a COM server written in VC++. My idea is to modify them by reference in the server. Is there any way to send a structure or a class, containing my variables? The types are int string and bool. Tips or links to articles/examples would be greate.
thanks
|
|
|
|
|
Can i open an ADE file with CDataSource to check it's status. Have tried various provider strings etc.
any ideas
Robbie G
|
|
|
|
|
I have built an activex control that I need to sign and package for network (&internet) delivery. MSDN make references to cabarc.exe and a Cabinet SDK as beening the only way to make cabinet files yet does not provide them on VC++6.0 only on VC++ 5.0 CD set. Is there a new way to make cab files that MSDN eludes to tell me about? Where on Microsoft site can I download cabarc.exe? I am lost!
Many Thanks
Gary,
|
|
|
|
|
|
Thanks Mike,
I spent a few hours yesterday chasing my tail on the MSDN site. A fellow developer suggested searching www.download.com (cnet site). There were a few CAB utilities there that seemed to do the trick so I am out of deep water for now! (Freeware/Shareware once again does the trick... many thanks to all producers of such software)
Gary.
|
|
|
|
|
hi
anybody has any code to drag and drop a url/link from
a IE control. the code would be in c++ and com api.
thanks.
From
Am4000
|
|
|
|
|
Can anyone tell me how to compile the proxy DLL for an .exe COM server which has interface functions that take a BSTR parameter. The VC 6.0 compiler says the proxy requires at least NT 4 to run. This server should run on 9x, NT 4/5
|
|
|
|