|
Hi All,
I am facing one problem regarding SOAP. Below mentioned is the scenario.
I m writing a soap client. I want to access the services of COM. The COM Method what I am using is not returning any thing other than HRESULT as return value. Is there any way to get the HRESULT value in Soap Response?
Ashish
Regards,
Ashish Gupta | Systems Engineer | S I E M E N S Information Systems Ltd
Telephone: (080) 28091092
Mobile : (0) 94483 82115
www.siemens.co.in
|
|
|
|
|
Hello
I wanted to know how to register an ActiveX.EXE file (writen in VB6).
as long as regsvr32.exe only registers ActiveX.dll and .OCX files.
I tried running the file, but it didn't help while I had a previously registered activex exe (which the same name) in some other location. when I try to create an object from the activex exe, the object returned from CreateObject is the object from the first activex..
How can I create an object from the second activex exe?
(THE FIRST ACTIVEX.EXE WAS REGISTERED BY VB6 WHILE I COMPILED IT)
Also I'd be glad if you tell me how to unregister the activex exe file?
Thanks in advance.
|
|
|
|
|
Hello,
For registering Activex exe,you have to register separately.Regsvr32 or compilrer unable to register Active X exe. If you want to know more plz contact me .....;)
sanjayrvyas
|
|
|
|
|
Hello
I'd be glad if you here describe how should I register the activex exe...
Please tell the details while I have never had any idea of how to register an activex exe.
(Should I generate the ClassID and add it to registery? if yes, how?)
Thanks in advance
|
|
|
|
|
I finally could find the answer:
To register the activex exe:
ActvieX.EXE /regserver
and to unregister it:
ActiveX.EXE /unregserver
|
|
|
|
|
I'm having a problem understanding how to register Windows Shell extensions, specifically for PropertySheet extensions and their handlers.
I am not too happy with the way it's done here -
Property Sheet Shell Extension in C#
Also, can anyone direct me to an example in VB.NET for the same sort of thing that's described in that article? That is, a property sheet extension example.
Thanks for any help - Ian Thomas
|
|
|
|
|
I'm working on a COM control that's used in several places. We use ATL to work with it, in VC++. We use the COM control as an embedded control in HMTL, and also in a "standalone" application. So here's the problem. We want to listen for the arrow keys to scroll over a document, and there's an OnKeyDown handler defined, etc. This function gets called just fine when the control is in "standalone" application. I can use the debugged to see it being called when the user presses a key, and the scrolling happens. However, when we're running embedded in HTML... the OnKeyDown function never gets called! However, pressing the arrow keys will scroll the HTML page in IE.
Does IE not pass the arrow keys messages to COM controls, or what? Is there something special I need to do make IE pass the messages on?
|
|
|
|
|
As an update, I've discovered that the OnKeyUp event does arrive, but not the OnKeyDown event. WTF mate?
vir·tu·al re·al·i·ty
n. Abbr. VR
A computer simulation of a real or imaginary universe in which Microsoft APIs are thoroughly documented and behave in an entirely logical manner.
|
|
|
|
|
|
Is there any method to interact with IE (press buttons, fill forms) from outside Win32 Application?
Please help.
(any links or samles)
Thank you.
|
|
|
|
|
Hello,
I´ve created a COM Event client (using IConnectionPoint... etc. interface). It works fine if there is not too much load (i.e. events fired from the server); because the client needs some time to process the event.
However, I´m not sure who´s responsible for the "Event Queue"? What happens if there are more events comming from the server which the client can´t process within the same time? Has the server to queue the event`s? Or has the client to take care of all events and that events get lost if the client "is not ready"?
I read a lot of (good) articles concerning COM Events. But I can´t find any detailed information about this topic.
Can anyone help me with this question?
Thank you in advance,
Stefan
|
|
|
|
|
COM event is implemented through call back interface,the client is responsible for the creation of the interface which is also called event sink.
when COM server fires a event,the server searchs event map array to find corresponding event entry, if the server find event response function implemented by client,then the event is processed.
So,as you see, there is no event queue.If your server
is a single thread application,the server will not continue until the client has finished the processing of the event.
If you want to be a great programmer,then never stoplearning
|
|
|
|
|
But: What happens if the COM Server is not running in the same thread? Maybe even not within the same process?
The server will continue to fire events but the client is not able to process fast enough? Who´s responsible to "store" the events fired from the server?
Or are these events lost when the server fires and the client is not ready to process it?
|
|
|
|
|
My leader wants us to developpe a COM architecture without using connection points to perform communication between different objects. He things that connection point are not absolutely necessary to fire each other about some event so we won't use them. After all, he says, some other mechanism do exist to perform the same functionnalities like "windows messages" or "named pipes"...
But I don't understand the utility to "not use" a dedicated service provided by COM. I thing that the tools provided by COM or DCOM (a part of the app will run on another machine) are useful to avoid developping myself such a communication mechanism.
Could anyone give me some arguments to choose ?
|
|
|
|
|
I am building a data structure as a .dll file using COM since I want to access it from VB. The data structure is made up of multiple nested structures each of which I have built using an ATL object. Now I want to aggregate those objects so that the interfaces of all the inner objects are available via a single outer object. I followed all the steps in the book COM and ATL 3.0 by Andrew Troelsen. But I am only able to access the interface that is declared as [default] in the .idl file.
PLEASE HELP. This has me in tears, literally!!!
Regards
Prashant
|
|
|
|
|
Hi ,
Use the OLE data types. And define structre in idl/odl like:-
typedef
[
uuid(AAFBADE2-63FE-465B-BCAF-28990FB6C20C),
version(1.0),
helpstring("User Data Type")
]
struct UDTVariable {
[helpstring("Special case variant")] VARIANT Special;
[helpstring("Name of the variable")] BSTR Name;
[helpstring("Value of the variable")] long Value;
} UDTVariable;
And add the structure name in
library TESTATLOBJLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
struct UDTVariable;
[
uuid(9033744D-D0EB-42AB-89BB-5F950790F9E4),
helpstring("UserData Class")
]
}
and it work properly.
For more infromation pls go below link
"http://www.codeproject.com/atl/udtdemo.asp"
Anuj
|
|
|
|
|
I had a problem while adding a popup menu to Word. The popup menu is being added to Word and is not removing after closing the Word (even if I made the Menu item to TEMPORARY). One new popup menu is being added every time I open the MS Word. The same case with menu item.
please help to solve this.
Here below my code:
CComVariant varType(10);
CComVariant vtEmpty(DISP_E_PARAMNOTFOUND, VT_ERROR);
CComVariant vtTemp(VARIANT_TRUE);
CComVariant vtBefore(nMenuIndex);
// Adding the new menubar
CComPtr<commandbarcontrol> spCtrl;
spCtrl = spCtrls->Add(varType, vtEmpty, vtEmpty, vtBefore, vtTemp);
ATLASSERT(spCtrl);
CComQIPtr< Office2000::CommandBarPopup > spPopup(spCtrl->GetControl());
ATLASSERT(spPopup);
// Setting the new menubar properties
spPopup->PutCaption(OLESTR("&Templates"));
spPopup->PutVisible(VARIANT_TRUE);
// now add a menubar to the menubar
CComPtr<office2000::commandbarcontrols> spCmdBarCtrls;
spCmdBarCtrls = spPopup->GetControls();
|
|
|
|
|
i have written a simple chat application with some utils but it just
works locally. Although i can access with my ip adress from local, my friend can not connect my server app from home. I think it is about security rules
of WinXP professional. And of course maybe is not. How can i make it available to myfriend?;P
C U SOON
C U SOON
|
|
|
|
|
Do your computer run behind a router?if so,you must configure the router to open the ports needed by your application
If you want to be a great programmer,then never stoplearning
|
|
|
|
|
yes that might be the problem.
but i don t know how to configure it.
Nat - Wan - Adsl -.....
Where is this configuration ????*
C U SOON
|
|
|
|
|
currently, i try to have a list control (for logging message purpose) where it will highlight the entire row with red if it carry out error information. else, it will just highlight the entire row with green.
The Michael Dunn' s article on custom draw give me a good information:
http://www.codeproject.com/listctrl/lvcustomdraw.asp
However, I need some mechanism so that in my custom draw message handler, I know whether this row carry out error information or not.
I try to do the following approach. I use the lParam to store whether that row is error information row.
In the method which i insert item, I have
LVITEM lvi;
lvi.lParam = ERROR_INFORMATION;
Then, in my custom draw message handler, I do the following
NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<nmlvcustomdraw*>( pNMHDR );
// this is error message
//
if(pLVCD->nmcd.lItemlParam == ERROR_INFORMATION)
However, this approach just wont work. The lParam value I get in the custom draw message handler, isn't same as the lParam value I put in the insert item method.
Can anyone advice me how should my implementation be?
Thanks.
cheok
|
|
|
|
|
Hi,
I am registering a standalone (out-of-process) COM server (exe developed in VB 6) manually using the '/regserver' switch. Upon registration, I am able to see the Class ID and other registry information in OLE viewer. However, I am unable to create an instance of the server in OLE viewer (or via external code). I am getting the following error message (in OLE viewer):
IClassFactory::CreateInstance failed
No system message defined <severity>: SEVERITY_ERROR facility: <unknown facility=""> ($800A01AE)
As you can see the error message does not help much except providing an error code ($800A01AE). I have researched this error code to a significant extent and the best match for the error source is 'Class does not support automation or expected interface'. This comes from a single article on Microsoft support (Article ID : 244493), which is in the context of accessing COM objects from ASP (not the situation I am facing). Following are some investigation results that might help to isolate the source of the problem:
1> The COM registration/unregistration process seems to be working fine. I have done a detailed OLE viewer + registry search to come to this conclusion. Another means to support this statement is the fact that I have other similar COM servers, which are instantiating successfully and they have exactly similar information in the registry also showing up in OLE viewer.
2> The dependencies of the COM server in question are all correctly resolved.
A peculiar behavior is that I have a base system (Win2000 server), on which I have the COM server registered and instantiating successfully. The problem arises when I unregister the server and try to register it again. This is when things break. I am kind of a COM newbie so there may be angles that I do not appreciate. Any help in this regard is highly appreciated.
Regards,
Gautam.
|
|
|
|
|
Hi
I try to find some code for creating
a drop down menu for a IExplorer button e.g
the menu for The ShellView Visual Styles >> Thumbnails,
Tiles,Icons,List,Details .
I have a toolbar button via Registry and i have a COM Browser Helper Object
but i want to create the Dropdown menu to operate beter and set options for my
BHO.
Please help )
|
|
|
|
|
I am new to ActiveX. I just want to create s sample appln. I want to create an UI using activex control. Which contians a button called 'New Add' and a edit box called 'Name'.
How to create a dialog in MFCActivexControl wizard and this should be added in the MFC dialog.
In MFC dialog which contains a editbox namely 'Test', when the Add New button is pressed, the value in the 'name' edit box should be added to the 'Test' edit box of the mfc dialog.
Could any one tell me how to proceed this??
|
|
|
|
|
I have created a ActiveX component. I use IIS. It works well on my m/c, as the component is registerd on it, but doesn't work on other m/c's in the network. Who to register my ActiveX on other machins, when used with IE <object> tag.
And who to communicate with the server fron this ActiveX.
Plz help...
Thanx & Regards..
Vinod.
|
|
|
|