|
If the object is not having GlobalMultiUse instancing automatically the object will have its own copy of global variables. No doubts in this regard.
|
|
|
|
|
How to set the instancing property in MFC activeX? Thanks.
__________________________
S.C.
|
|
|
|
|
Just found it. It's CoRegisterClassObject(). Thanks everyone who replied.
__________________________
S.C.
|
|
|
|
|
Hai all.
I have created a Toolbar for Internet Explorer.
I need to get the window handle of an Explorer Band(Created by me) in my tool bar.
I know the class ID of the Explorer Band, and I am able to hide and unhide the Explorer Band using that Class ID , from the toolbar using ShowBrowserBar(&vtBandGUID, &vtShow, 0); function.
But for my purpose, I need to get the window handle of the Explorer Band
How I can Get the window handle?? .
Please Help me
Thanks
George
|
|
|
|
|
IWebBrowser2::get_HWND gives you handle to main explorer window.
Use EnumChildProc ,enumerates children using this handle. You should get any window you want.
|
|
|
|
|
Hai Prasad ,
Thank you very much for ur reply . it helped me to rectify my problem.
Thanks
George
|
|
|
|
|
|
i used MS Word COM (e.g 2007) in my program to do some function
but when i run my program on a
(diffrent machine with adiffrent MS Office(2003))
then the program raise an error
any body can tell how can i generalise my program and run it over any machine has MS Office?????....
|
|
|
|
|
hi
Im New In Tapi ,i want creat project that answer the Call and get the entry number
can U help???
Tanx
Mati
|
|
|
|
|
Search on CP retrieves following results, see if its useful anyway.
TAPI[^].
|
|
|
|
|
Hi,
I am working on an application that will require the creation of hot-spots on a windows form (win32). This is the scenario: I want to display a schematic diagram (like a circuit diagram) and high-light certain components as clickable hotspots. Clicking these components will result in events being generated which I can handle.
Please does anyone have ideas about how I can get about this?
acodeisacodeisacode
|
|
|
|
|
How can I access to unread messages in the Inbox folder using C++ (COM/EMAPI).
<br />
void __stdcall CAddin::OnNewMail()<br />
{<br />
}<br />
|
|
|
|
|
Hi all,
I was using COM. But when I started to use EMAPI I got a link error:
error LNK2001: unresolved external symbol _IID_IMAPIProp in
<br />
IUnknown *pUnk;<br />
spMailItem->get_MAPIOBJECT(&pUnk);<br />
CComQIPtr < IMAPIProp, &IID_IMAPIProp > pMAPIProp(pUnk);<br />
In the link tab I have mapi32.lib.
So where can be a problem?
|
|
|
|
|
Thanks to all, i've resolved the problem.
|
|
|
|
|
Hello,
I've to develop an MS Outlook Add-in, one of it's features has to add a custom header to an outgoing message (both SMTP & IMAP). I can intercept the message, so think I've a pointer to the CComQIPtr<outlook::_mailitem> spMailItem to add a header to.
For example, I need to add a header "X-MY-Header: Value".
All resolutions I've found was using .NET, I can't use that.
Any ideas?
Best Regards
Olekhnovich Alexander
-- modified at 6:48 Thursday 1st March, 2007
|
|
|
|
|
a.olekhnovich wrote: Any ideas?
Is this the only question you want to ask?
Hard to understand what your problem is...
Anyway, see if this[^] article will help you.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
The problem is I can't understand what step-by-step I must do to resolve that task - to add a custom header to the outgoing email. I've an MailItem and can get the properties, so what's then?
|
|
|
|
|
<br />
void __stdcall CAddin::MyBeforeCheckNames(IDispatch* pdispInspector)<br />
{<br />
if (gInspector)<br />
{<br />
CComQIPtr<Outlook::_MailItem> spMailItem;<br />
CComQIPtr<IDispatch> spCurrentItem;<br />
gInspector->get_CurrentItem(&spCurrentItem);<br />
spMailItem = spCurrentItem;<br />
<br />
<br />
AfxMessageBox("Passed verification");<br />
}<br />
}<br />
|
|
|
|
|
i want to start a video in a powerpoint slide how can i do?
i tried sending mouse click into the video, however it is not working
mouse_event, sendinput, sendmessage, peekmessage... all of these functions don't work to send click into video
Please write what ever you know to solve my problem
|
|
|
|
|
Hi,
Ive created a a COM client and I have been trying to generate CLSID using
hr = CLSIDFromProgID(OLESTR("TestServer.Math"),&clsid); but it is not working.
I don't understand why? Every thing else seems to be fine..
Thank You.
Thank You
|
|
|
|
|
hellofromsumedh@gmail.com wrote: I have been trying to generate CLSID
What do you mean by "generate" and what do you want to do with this "generated" CLSID?
The title of your post suggests that you're having problems in the component registration process. ::CLSIDFromProgID() is of no use while registering a component since it would use the information registered.
Still you're talking about a client in the post and I don't see how it maps to the title of the post, I find it confusing and I'm not really sure what your problem is.
Regarding the component registration:
An in-proc COM server normally exposes a function called DllRegisterServer() that should be called in order to register the component. This is done by running "RegSvr32.exe <TheServerPath>". RegSvr32.exe calls the components DllRegisterServer() .
Read more about DllRegisterServer() here[^].
Regarding creating a server from a client:
::CoCreateInstance() is the API function to use in this case with the CLSID as one of the parameters. The CLSID is usually retrieved by importing the server's typelib or similar.
Read more about ::CoCreateInstance() here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
do i have to use an image from file for the radiation pattern plotting or i have to draw it myself using source code in vb .net.this question is related to the one i have sent you before, interfacing vb .net and a hardware.each of the signal/data received is plotted in the garap (circular grapH, 360 degrees). thank you....
|
|
|
|
|
I originally posted this in the MFC boards, but suspect it's the wrong place..
I know ActiveX methods (OCX Ctrl) can return complex data types like structures or classes,I just can't quite figure out how.... For example, I have a class containing 4 data elements (strings) and 4 functions acting as getters... I want to return the class through a method call in my activex ctrl.
From what I've read, I beleive I can do it via IDispatch and a definition in the IDL file, or by returning a VARIANT...
In a nutshell, I want to return either a data structure or class to the client.
Can someone please point me to a tutorial or article that could help me figure this out?
Thanks in advance!
|
|
|
|
|
Check out this[^] article, it will tell how to pass UDT(user define types) across interface.
|
|
|
|
|
Dude, THANK YOU!!!!
In my searching I didnt find that article... exactly what I needed to learn!!!!!
|
|
|
|