 |
|
 |
What's your beef with this guy? He wasn't rude, he didn't ask you to do his homework, and he didn't offend anyone.
-- Kein Mitleid Für Die Mehrheit
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
 |
Hi, I have develope a AddIn using ATL in .Net enviroment and I want to capture [Winword Cross] application close and not document close. How can I get this event? I want to Invoke this event when I am closing a document.
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have write a program ,which can run on local computer .but it can't access to remote ad. this is my first question ,please help me.thank you . :(
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
In C++\CLI I m able to get the properties using
PropertyDescriptorCollection^ Scadapropinfos = TypeDescriptor::GetProperties(AxHost^% );
How to get the properties of control in Native C++
VIBIN
"Fool's run away,where angle's fear to tread"
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Doesn't seem like you understand the nature of WMI, Windows Management Instrumentation. It is a part of COM/DCOM components.
Jack Rong
|
| Sign In·View Thread·PermaLink | 1.36/5 |
|
|
|
 |
|
|
 |
|
 |
Hi,
I could able to create instance of the com server using oleview. But when i do the same thing in code with cocreateinstance it gives the error E_NOINTERFACE or 0x80004002. By breaking cocreate instance if found that Queryinterface return this error. How could i resolve it?
Please help many thanks in advance.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi i have a problem, i want do my project that is we have a client/server system and we have 2printer for example hp1 and hp2,and one server and for example 6 cleint computer in network. a program is install on server and printer me be connected to any client, and if click on hp1 on program in server , hp1 on any client that have hp1 print,and hp2 too.
i want help me ,what i should learn for this project? what idea you have ? i do client programing and don`t write program on network. after finish my project take my result on site.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
#include "stdafx.h"
class A { };
class B { };
int _tmain(int argc, _TCHAR* argv[]) { A* pA = NULL; B* pB = dynamic_cast<B*>(pA);//error C2683: 'dynamic_cast' : 'A' is not a polymorphic type. This is no doubt.
return 0; }
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ But if A inherits from IUnknow, the dynamic_cast compile successfully, why?
#include "stdafx.h" #include <ObjBase.h>
class A : IUnknown { };
class B { };
int _tmain(int argc, _TCHAR* argv[]) { A* pA = NULL; B* pB = dynamic_cast<B*>(pA);//Why compile successfully here?
return 0; }
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
"The dynamic_cast operator cannot be used to convert from a non-polymorphic class, that is, a class that does not define any virtual functions." (c) MSDN
So IUnknown is an interface with 3 virtual functions QueryInterface, AddRef and Release.
You can obtain such effect with
class A { virtual ~A() {} };
With best wishes, Vita
|
| Sign In·View Thread·PermaLink | 1.80/5 |
|
|
|
 |
|
 |
I wrote some COM+ Applications Using Microsoft .NET Enterprise Services and its work fine. But i don't know how to debug it. I try to use "attached to process" and it is not stop on the break point ( the break point is valid - the modules are up ).
Someone know how to debug this thing ? and why its not stopping on the break point ? ? ?   
Thanks ... 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I would like to copy file from local to remote machine using WMI in C++. Not quite sure how to do this.
According to MS doc, "Win32_Directory" can be a good candidate. Anybody go idea? Thanks in advance.
Jack Rong
|
| Sign In·View Thread·PermaLink | 1.44/5 |
|
|
|
 |
|
|
 |
|
 |
Hi, i have an dll(using ATL) file in webserver and i included it in my html page .. and when client requests for that html the ocx gets installed with his permission but the issue it"s getting successfully installed on Admin machine..but in non-admin machine even the message box that prompts to install dll is not displaying.....is there any limitation for non-admin...
pls help me out...
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
|
 |
|
 |
ya i have signed and implemented IobjectSafety to mark ATl ActiveX control as safe.... but still i was unable to install and register in non admin only....Every thing works fine in admin machine...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Wasnt there something with "per user" installations?
Press F1 for help or google it. Greetings from Germany
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi, I have an AddIn application where I am adding a one menu "Test" in Winword -->File menu. I am able to add it but i am able to sink events on this. I tried this in various ways but I am able to do that. Any idea will help.
Thanks
SNI
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Create a new COM ATL project. Insert new ATL Object(select sample object). Then go to class pane in solution explorer. Right click on class name and select implement interface. Choose a tlb/dll file and pick any one interface and click finish. Everyting works fine.
But when i try to implement interface in one existing COM project, after selection interface of tlb file when click on finish button i got following error "g_opchfcm.imports is null or not an object"
Any idea to solve this issue
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, We have developed add in for Office 2003 suite. For Word I am able to sink DocumentOpen, DocumentChange, DocumentBeforeClose events...(and other events also). When I am trying to close Word Document from word container (I am not closing Word Application but only the document) using following code DocumentBeforeClose(IDispatch*, VARIANT_BOOL *pvtCancel) { MSWORD::_DOcumentPtr pDoc; msWordApp->get_ActiveDocument(&pDoc); pDoc->Close(); } After closing document my winword application gets crash. I want to know what could be the problem here. I have wriiten it as a Word AddIn using .Net framework(VC++). Pls suggest me.
Thanks
SNI
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Crashing the application often is because you are using a NULL pointer. You can check for this simply by adding an if statement before you close..
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |