|
Hi
How to start a interactive process(say calc.exe) on a remote machine USing WMIon Windows XP
Thanks In Advance
abhi
|
|
|
|
|
Hi all,
I want to develop add-in for OUTLOOK, In that for event handling use IDispEventSimpleImpl Interface, and declare handler function (fn) for the specified event using SINK_ENTRY_INFO, but whenever that particular event occurs my handler function gets call two times! why it happens so? I want to call it only single time....
MY code is.....
class ATL_NO_VTABLE CConnect :
public CComObjectRootEx<ccomsinglethreadmodel>,
public CComCoClass<cconnect, &clsid_connect="">,
public IDispatchImpl<addindesignerobjects::_idtextensibility2, &addindesignerobjects::iid__idtextensibility2,="" &addindesignerobjects::libid_addindesignerobjects,="" 1,="" 0="">,
public IDispEventSimpleImpl<1,CConnect,&__uuidof(Outlook::ExplorerEvents)>,
{
public:
BEGIN_SINK_MAP(CConnect)
SINK_ENTRY_INFO(1,__uuidof(Outlook::ExplorerEvents ),0xf002,onFolderChange,&OnSimpleEventInfo)
END_SINK_MAP()
public:
//type defination to avoid compilation 'ambigous call' errors
typedef IDispEventSimpleImpl<1,CConnect, &__uuidof(Outlook::ExplorerEvents)> ExpEvents;
void __stdcall onFolderChange();
}
Any idea about this, please suggest me...
Thanks & Regards,
Shyam
Reply
Reply
Shyam Gaikwad
|
|
|
|
|
HI all.
i want return the array in COM project.but i don't know how i should Write the code. Thank you.
|
|
|
|
|
Maybe you could return a variant with safearray
|
|
|
|
|
How to write a program in MFC BY CREATING A BUTTON BY CLICKING THAT BUTTON APOP UP SHOULD DISPLAY THAT INTERNET IS WORKING OR NOT I WANT SOURCE CODE
pradeep
|
|
|
|
|
Hi,
I have a component in vb.net. In this component i have app.config file from which I am reading the connection settings and settings for enterprise libarary exception handling.
If I use this component form .NET application it works fine but when I try to use this component from asp by registering the dll, the copmponent is not able to read any settings from app.config file.
Please provide solution to this problem i searched everywhere but not able to get the working solution.
|
|
|
|
|
To my knowledge a DLL cannot have app.config
because app.config is only for individual applications (like windows / console)
i.e. it should not be a DLL
however a DLL can read ....
for example : 1. sum.dll is reffered in math.exe
2. then sum.dll can read from app.config of math.exe
3. sum.dll cannot have it's own app.config.
|
|
|
|
|
HI all,
please if any1 could provide me with required codes for locking keyboards and mouses of computers in the same LAN using Java and under Windows XP Os.
As I am a student working on my senior project, which is 2 implement an instructor control computer, that can control students' computers connected through LAN (I will work on two Pc's only,instructor and student). the teacher can lock their keyboards and mouses, and broadcast his/her desktop screen on their monitors.
Thank you.
|
|
|
|
|
I wrote a dll by C#, and the issue is that I don't know how to call this dll from vb6.
Thank all.
|
|
|
|
|
try "tlbexp" . in vb6 , you can fin it in object reference.
|
|
|
|
|
Hi, all!
I have a following problem, and i can't find a right solution.
Description:
There is a COM server written on C++ and it works through IDispatch and it does't have a TYPELIB. And from another side there is a COM client developed on C#. Through LATE BINDING it uses a COM server
and COM server sends different events to client, but i can't implement COM event handling mechanism.
Please, anybody can help me?!
Thanks in advance!
|
|
|
|
|
If you have a look in the registry below HKEY_CLASSES_ROOT\CLSID\{<clsid of the server>}, does it contain a key named 'TypeLib'?
If not, do you have an .idl file where the interfaces of the server are defined?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
maybe you could check whether server app contains typelib using vs2005 ,like wlm.
|
|
|
|
|
Hi all,
I am been having trouble with finding an answer to this question but here goes:
Is there any way to write to MSWORD without automation through ASP.NET in C# (maybe write to an existing word document without opening it)?
I am pulling my hair out! I have tried adding IUSR, ASPNET to the web server, I have tried Identity Impersonate = True in the web.config.
My code for opening word looks like this:
object isVisible = true;
object readOnly = true;
I get a Macro storage error on the open statement. I have put a lot of time into figuring this out and I really dont want to do a TOTAL 180.
wordDoc = WordObj.Documents.Open2000(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible);
I appreciate any ideas or suggestions given!
|
|
|
|
|
I have a Local Server created in MFC. It displays a modal dialog with a "logout" button. It also contains a COM coclass "A" to which clients are connected. Everything works fine till all clients follow proper reference count rules.
But if a client terminates abnormally, then this coclass "A" has an outstanding reference count on Local server. When user clicks "logout" button, the application dialog closes but the server continues running in background because of this outstanding reference count.
I understand that when the proxy no longer exists in this case, the stub will do a cleanup automatically but after few minutes.
But the requirement is to force the application to shutdown completely when "logout" button is clicked. I have thought of few ways to do it, but I would like to know your thoughts on this so I can choose the best possible solution.
Thank you for your time.
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
i have a query that i have made a plugin(toolbar) that actually works in Outlook but the problem is that the Toolbar(plugin)also appear in the Microsoft Word and also in MS Excel i want that this toolbar plugin should only be seen and acceble in the Outlook so if anyone know the solution kindly help me in this matter
thanks in advance
|
|
|
|
|
if you implement _IDTExtensibility2, you could check application name at OnConnection().
|
|
|
|
|
Hello
I have created com dll in vb 6.0. I used it to generate the WSDL file using
Microsoft SOAP tool kit version 3 but i am not able to use the WSDL file. I am able to use the dll which i have created in vb 6.0. follwing Error is generated.
---------------------------<br />
SOAPPermitCodeTest<br />
---------------------------<br />
There is error <br />
<br />
Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A13BE - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A13BE - Client:Unspecified client error. HRESULT=0x800A13BE<br />
---------------------------<br />
OK
is there is any method to know that generated WSDL file is correct, I do not know how to verify this as i am new to these technologies(SOAP and WSDL).
Any help would be highly appreciated.
Saurabh Gupta
Software Engineer
|
|
|
|
|
Hi
Created a small VB 6.0 ActiveX control Which has an event CallMe. This event is triggered when a button the control is clicked.
Public Event CallMe()
Public Property Let Text(value As String)
txtString.Text = value
End Property
Public Property Get Text() As String
Text = txtString.Text
End Property
Private Sub cmdFireEvent_Click()
RaiseEvent CallMe
End Sub
I have tested it with a VB 6 project and it worked.When i tried to use the control in a web page, events are not getting fired.
Sub myCtrl_CallMe()
MsgBox "yes"
End Sub
<object id="myCtrl"
="" classid="clsid:55F1D62E-0C61-4637-BA76-594B493A0341">
What should be the problem?
|
|
|
|
|
Actually i want to modify my registry entry to someother but some where i read that it is the sensitive area if a small problem occurs then the entire system wont work. So please suggest what are the things i need to change i want to modify the registry entry of my component.
Thanx,
Kalaveer.
|
|
|
|
|
export all register. if os boots fail, you could boot from safe mode by F8 and restore it. ok
|
|
|
|
|
Hi
i am trying to change a component code a little bit to display some statusbar messages etc. By the way the component is devoloped in VB so i did a small change initially to the code like changed the cursor style and code to display some status message after that i did "make DLL" then that worked well on registering the newly created dll. But after that i included a single statement to setfocus to someother control and again i did the makedll this time on registering the dll the component is not at all activating so i removed the statement which i included (i.e to setfocus of some control)again i created the new dll using make dll but unfortunately the new dll(which is like the previous worked one ) not activating the component.
What could be the problem why its happening so. Please help me.
Thanks in advance.
|
|
|
|
|
In VB project properties, there are some settings for Version compatibility. The GUID must be changing on each compile probably. Please check these settings. Since I haven't worked with VB so this is just a guess. See if this is your problem.
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hihi, I am the newbies in Visual Studio, I have programming background . but not in visual studio.
Now i need to write a IE toolbar by VS 2005 . As i known , i need to understand the COM.
But i am really don't know how to go on . even in the interface of the visual studio 2005.
Can anyone have some advice for me ? or sample code ? or recommend book ?
Thanks
Sam
|
|
|
|
|
You need to study BHO[^].
|
|
|
|