|
Looks like it needs the IMessage declaration.
Usually you import a separate idl (#include "IMessage.idl"), or directly from a tlb (#import "mylib.tlb").
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Is there anyway to package an ActiveX control to be used in a browser (IE) by a user without system administration rights?
i.e. register the ActiveX control, without though you do not have administration rights on NT/Win2K/XP machines?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
You may do that at least on W2K and XP (don't know for XPNT) by by creating manually the registry keys needed by registering under HKCU\Software\Classes instead of HKLM.
HTH,
The one who isn't misanthropist when 40 years old never loved human kind
Qui n'est pas misanthrope à 40 ans n'a jamais aimé les hommes
Nicolas De Chamfort (1740-1793)
|
|
|
|
|
Hi all,
I have a project where I sink onmouse move events on all html documents in a web page. However, there are cases when the mouse movements are not trapped. Maybe I'm missing something in my code...?
Also, I would like to unadvise my sinks in a proper way... Web pages these days can be so complicated with scripts, frames, IFrames and stuff so there are probably even more things I'm missing when unadvising the event sinks.
So, to my question, has anyone done a project like this before? If so, are you willing to share some of your experience with it... either here or by mail.
Thx,
/Tommy
|
|
|
|
|
Hi all,
I am building a Shell Namespace extension and am having trouble refreshing the folder tree view required when I add/delete nodes.
Some background info:
I am adding/deleting nodes to a backend tree/composite object structure and am using a refresh to refetch the required data to display in the namespace (ie an MVC approach). I am able to refresh the list view pane, however the Folder list in the TreeView does not update. I have tried playing with the SendMessage (a VK_F5 keystroke etc) to the tree control to try and force a refresh of the screen, without success. Manually pressing F5 or View->Refresh does refresh the screen correctly.
I have also tried browsing to the node (and also the parent) but had no luck.
// select the same folder to refresh the view.
UINT wFlags = 0;
wFlags = SBSP_SAMEBROWSER | SBSP_RELATIVE;
pShellBrowser->BrowseObject(NULL,wFlags);
So my question is how can I programatically force the equivalent of a F5 refresh.
I am new to namespace extensions so please be gentle
Thanks
David
|
|
|
|
|
Have you tried ::SHChangeNotify( ) ??
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Thanks for your reply. I gave it a go, the function returned ok but did not refresh the control
Thanks,
David
|
|
|
|
|
have looked through all the postings on this website and no one seems to have a reasonable answer to the question of using a container and microsoft word. And I am going to post the question, hopefully someone will have a useful idea. I am using VC++ 6.0 and I am trying to create a COM exe or dll. This is what I am doing: I am creating a frame window and automatically opening an ms word document so basically, it is a container window for microsoft word. This part I can get to work but there are some problems. Why are there several toolbar buttons disabled? How can I enabled them? Why does the print/print preview not work? I am not using ATL (and I prefer not too). Also, if I add a menu option of my own, how do I know when the user has selected my menu option? I have researched this through this website and MSDN and I am doing everything that was suggested. But it still isn't working. I have seen similar posting but all the answers have been things like "have you tried to record a macro through VB." and such, things that really don't help. CAN ANYONE OUT THERE HELP ME??????? IS THIS AN INFINITE PROBLEM THAT ONLY MICROSOFT CAN SOLVE??????? IS IT HOPELESS????
|
|
|
|
|
I need to add an Outlook toolbar to a .NET form? Does .NET come with such a feature? If not is there a free way to do this or must a component be purchased? If a componentmust be purchased does anyone recommend one for C++ .NET forms?
Many Thanks,
Derek
|
|
|
|
|
You've got Genghis[^], and Magic library[^].
I am not pretty sure about your exact needs, but these are two good entry points.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
Hi,
I have a project that I originally developed using VC6.0. In this project I have an Automation class. I use JavaScript to create the Automation object e.g. var a_Startup = new ActiveXObject("FFSDED.FFCom"). Well, in VC6, the code ran fine, my javascript object could access all of my IDispatch functions inside of the Automation class. Now, we are trying to recreate the project in VS.net, but the javascript can't create the automation object anymore. It doesn't seem like the code we used in the VC6 to register the Automation object works anymore. Has anyone seen anything like this before?
Thanks.
|
|
|
|
|
To make sure it's not a simple security problem (for instance ActiveX scripting is not enabled), just test this code snippet :
var xmldoc = new ActiveXObject("Msxml2.DOMDocument");
xmldoc.async = false;
xmldoc.load("someData.xml");
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
Yeah, that wasn't my problem, thanks though.
|
|
|
|
|
I am considering using monitors for a new project I was assigned. Does anyone have any experience with monikers and the ROT? I would like hear common problems/suggestions/feelings and advice. This is very important for me, so I will really appriciate your feedback. I will be using VC++ 6.0 on Win2k.
Thanks,
James Pullicino
Drinking In The Sun
Forgot Password?
|
|
|
|
|
And what suggestions are you looking for?
With best wishes,
Vita
|
|
|
|
|
I am trying to create an add-in component for Windows Messenger (Windows XP) using C++ and ATL with the Visual Studio .Net IDE. I have written the component and implemented the appropriate interfaces (and registered it!), but I cannot succeed in getting the Messenger Client to create an instance of my component although I can install it successfully (RegisterAddIn). I can create an instance of my component using the OLE/COM Object Viewer tool. I do not want to get into technical stuff at this point. Rather, I would like to know if anyone here has succeeded in implementing an add-in component for Windows Messenger.
Thanks.
|
|
|
|
|
I have found my answer: the Add-Ins were not enabled in my version of WM.
Bye!
|
|
|
|
|
Hi to all,
I have a few in process COM Components (dll's) that I need to register from my installation script withing the system in order for my application to work.
When I register these components in WIN2000 they work fine. But I cannot IN ANY WAY register them under WIN 98 or XP. REGSVR32 returns an error " THe specified module could not be found". The module it is there and it is not corrupted, but I cannot register it? Has anyone got an idea on why is this happenning and what can I do to resolve this problem?
Thanks in advance.
Best Regards
Black ghost
|
|
|
|
|
If you are using ATL, make sure your .tlb file is either embedded in the DLL file, or at least in the same directory.
If you are not using ATL, what is your implementation of DllRegisterServer() ?
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site.
|
|
|
|
|
If its an ATL project, have you included ATL.dll?
Dave
|
|
|
|
|
The static version of ATL Registrar can be also used with _ATL_STATIC_REGISTRY defined.
With best wishes,
Vita
|
|
|
|
|
1. Check the dll's with http://www.dependncywalker.com
|
|
|
|
|
I can't recieve the WM_CREATE message in my control. How could this happen? And what are the possible reasons?
thanks
|
|
|
|
|
i'm writing a directshow application that requires the \
user to be able to select an area (which can be rectangular,
circular or a freeform polygon) on the video so i can alter
this section using a filter..
i've looked at gdi in the msdn library, and i am considering
to put a transparent bitmap on top of the video and using
regions..
is there a better way (other than using directinput to define
this select)?
(don't shoot me, i'm new to this...)
|
|
|
|
|
That's right. I guess you know the IDirectDrawSurfaceX interface jas a method that gives you the current dc, so you can do virtually anything on the surface.
However you'll have to do this in a non visible surface, otherwise it flickers.
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site.
|
|
|
|