|
Ruhina wrote: per my understanding Cut,Copy,Paste methods are part of ITextselection interface ,which i try to implement in my class,but unable to handle those events as there is no proper event passing.
try this section :- http://www.codeproject.com/macro/[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Dear All
Is it possible to use an ActiveX control inside another ActiveX control? Or a COM component with a UI inside another COM component which will have a UI as well?
A.U Haq
|
|
|
|
|
You can use a COM inside another COM
I am not so sure how you can use an activeX control from another one if it is possible.
For me CAR is Challenge, Achievement and Recognition.
_AnShUmAn_
-- modified at 6:25 Tuesday 9th May, 2006
|
|
|
|
|
aleemulhaq wrote: Is it possible to use an ActiveX control inside another ActiveX control? Or a COM component with a UI inside another COM component which will have a UI as well?
In fact these two things are the same since an ActiveX is a COM component and the simple answer is yes.
--
Roger
It's suppose to be hard, otherwise anybody could do it!
|
|
|
|
|
Thanks for your reply...is it also possible to wrap a com component inside a .net user control (not web user control) and use it on a webform as an object?....inside <object> tag O'coz
A.U Haq
|
|
|
|
|
aleemulhaq wrote: is it also possible to wrap a com component inside a .net user control
Sorry, have no idea about that since I haven't done any .NET yet.
But I suspect it to be possible through something called "the interop layer", which lets .NET make use of COM.
I think this is a question that is better asked in the Managed C++ and .NET forum[^].
--
Roger
It's suppose to be hard, otherwise anybody could do it!
|
|
|
|
|
hi
I am running a client/server VC application which uses DCOM.Everything was working fine until i installed Windows XP Service Pack2.
Now when the client in other system wants to connect to the server in my system he gets "Access Denied" Error message.I configured all the DCOM settings (including Anonymous permissions) but still he gets the same error message???
what more do i need to do??
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
You have switched off the firewall that XPSP2 provides, haven't you?
Steve S
Developer for hire
|
|
|
|
|
Even i have tried the DCOM and faced same problem
what is firewall that XPSP2 provides?
look forword to your reply
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
-- modified at 0:49 Friday 12th May, 2006
|
|
|
|
|
XP SP2 introduced a firewall, which by default will disable DCOM, since it only allows certain connections. However, it also introduced stuff for launch and access security in DCOM. It's probably this which is affecting you. There's an article on MSDN all about it here[^]
Steve S
Developer for hire
|
|
|
|
|
This may drag up some bad feelings from the old days, but I need some help. I have a old DOS program that is running in a command window and the customer has a bad habit of closing this program out by clicking on the 'X'. Is there anyway type of program out there or setting that would not make this available on a command window? We are working on a windows app, but it just isn't ready yet.
Any help would be aprreciated.
Jude
|
|
|
|
|
Hi..
I want to use the CmdLoadFromResource() method of ths speech SDK 5.1 to make the xml file that includes the Grammar embeded but i dont know how to use this method in C#.
This code shows how i used this method:
[System.Runtime.InteropServices.DllImport("kernel32")]
private static extern long LoadLibrary(string lpLibFileName);
private void button2_Click(object sender, System.EventArgs e)
{
this.objRecoContext = new SpSharedRecoContext();
this.objRecoContext.Recognition += new _ISpeechRecoContextEvents_RecognitionEventHandler(RecoContext_Recognition);
this.objRecoContext.State=SpeechRecoContextState.SRCS_Enabled;
grammar = objRecoContext.CreateGrammar(0);
int hModule=Convert.ToInt32(LoadLibrary("ReviewWinApp.dll"));
int langID=409;
grammar.CmdLoadFromResource(hModule,"tryRecog.xml","CFGGRAMMAR",langID,SpeechLoadOption.SLODynamic);
grammar.State=SpeechGrammarState.SGSEnabled;
grammar.CmdSetRuleIdState(1,SpeechRuleState.SGDSActive);
}
When i click this button i got the error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ReviewWinApp.exe
Additional information: The specified resource type cannot be found in the image file.
I am not good in COM programming.Could any one give me a C# code sample for using this method?
|
|
|
|
|
ummm i deleted all of the hotfixes off of my computer and now the sound is screwed up. everythig on the internet sounds like chipmunks. the cd player sounds just fine tho. all i want to do is install all of the hotfixes but all i can find is articles on them- no installation- ever. if someone could help that'd be great. i cant listen to any music until its fixed !!
♥ jess ♥
|
|
|
|
|
i want create a com in VVB.net and have to use it in MFC Application. Can any one help.
mission
|
|
|
|
|
|
Can anyone tell me how to make a COM Control, that performs some or the other function when added in MS-Word, or Excel.
|
|
|
|
|
Are you talking about Addins for MS-Word or Excel which is loaded when application starts.
Knock out 'T' from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
In Word, go to View->ToolBars->ControlToolBars then select the hammer icon which is for "More Controls", I am talking about that Control.
A control which we might develop in .Net or COM
|
|
|
|
|
|
Hello,
I have a COM object and a .NET object that need to talk to each other.
The COM object creates the .NET object, but then the .NET object needs to
call methods in the COM object. It appears to me that the best way to do this
would be via connection points.
How do I do it on the .NET side? After decorating with ComSourceInterfaces,
how do I get to the interface? Note that these are not events, so I would
like to call the methods as if I had created the COM object.
Is there a way to EnumConnections?
Is there a completely different way of doing this?
Thanks,
Marius Matioc
|
|
|
|
|
hI
I am a com beginner can anyone guide related to com materials or any ebooks. if u do hv any links or ebooks then plz forward to raghuji.rao@gmail.com
|
|
|
|
|
|
I am trying to connect to MDP provider using
OLE DB For OLAP following these steps:
1-i'v got the List of providers..and choose one of them
2-i called ParseDisplayName() ,..the i called BindMoniker() method as written in the code below...
3-When i Call ppIDBInitialize->Initialize(); ..i got Access voilation exception
can any one help me please....
Here is the code:
ULONG chEaten = 0;
hr = pIParseDisplayName->ParseDisplayName(pIBindCtx,rgEnumInfo[i].wszParseName, &chEaten, &pIMoniker);
ppIDBInitialize=NULL;
hr = BindMoniker(pIMoniker, 0, IID_IUnknown,(void**)&ppIDBInitialize);
rgProps[0].dwPropertyID = DBPROP_INIT_LOCATION;
rgProps[0].vValue.vt = VT_BSTR;
rgProps[0].vValue.bstrVal = SysAllocString(L"server");
rgProps[1].dwPropertyID = DBPROP_INIT_DATASOURCE;
rgProps[1].vValue.vt = VT_BSTR;
rgProps[1].vValue.bstrVal = SysAllocString(L"FoodMart 2000");
rgProps[2].dwPropertyID = DBPROP_AUTH_INTEGRATED;
rgProps[2].vValue.vt = VT_BSTR;
rgProps[2].vValue.bstrVal = SysAllocString(L"SSPI");
DBPROPSET PropSet;
PropSet.rgProperties = rgProps;
PropSet.cProperties = 3;
PropSet.guidPropertySet = DBPROPSET_DBINIT;
IDBProperties *pIDBProperties=NULL;
hr=ppIDBInitialize->QueryInterface(IID_IDBProperties,(void**)&pIDBProperties);
hr=pIDBProperties->SetProperties(1, &PropSet);
hr = ppIDBInitialize->Initialize();
|
|
|
|
|
Using WinXP, VS2005, MFC project
We have a number of COM DLLs we register via a batch file that contains a call to regsvr32 for each DLL.
Problems
1) The regsvr32 app seems to be respawning on its own with anywhere from 10-20 instances of itself running at any given time (and instances coming and going, seemingly at random). How do I fix that?
2) I can't seem to get one of our interfaces to register. I've tried to make sure that all of the spellings are the same, and such, but it doesn't seem to want to take (doesn't show up in the registery). Can anyone list things to check?
------- sig starts
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: The regsvr32 app seems to be respawning on its own with anywhere from 10-20 instances of itself running at any given time (and instances coming and going, seemingly at random). How do I fix that?
Are all instances started from the batch file and all of them are respawning, or do they appear as banshees from virtually nowhere?
What happens if you don't call RegSvr32 with '/s' and add a "pause" between the calls to RegSvr32 in the batch file?
John Simmons / outlaw programmer wrote: I can't seem to get one of our interfaces to register.
Have you written the registration code by yourself or settled with the default implementation in DllRegisterServer?
Is the missing interface declared inside the scope of the library section in the .idl-file?
Can't say that I have a very good idea of what the problem is, but maybe it's possible to narrow it down to be able to test it...
BTW, is it a problem that has appeared all of a sudden or has this always been the case?
--
Roger
It's suppose to be hard, otherwise anybody could do it!
|
|
|
|