|
There can be two reasons at least :
- bad attribute usage in the VB.NET code : hard to help without knowing anything about your code and your resulting idl.
- type-library not in the gac : make sure to read the comments (regasm, ...) in the article previously mentioned. In some cases, there are things that must be done manually.
RSS feed
|
|
|
|
|
I've found the problem
I had to use CComBSTR not BSTR type, and it works.
Thanks again
|
|
|
|
|
Hi all
I'm deveploping an Application, and i need a Component that can convert image( may be .gif, or png..) to flash.
help me
thanks
|
|
|
|
|
Hi all,,,
I make an application that will connect to a remote database on a Win98 machine..
I want to use the 3-tier architecture and call Middle tier components on the Win98 machine
can this be done using DCOM or any other method ?
any links - suggestions are appreciated
|
|
|
|
|
How to make COM+ event class and subscriber in Visual C++ .NET
|
|
|
|
|
Hi Gurus!
I've written COM-server (executable, out-of-process) and COM-client. Both works successfully through DCOM on separate PCs. Is it possible to obtain information about calling client in COM-server (I want to know computer’s name and its IP address, username who launch the COM-client) ? How?
Yours sincerely,
Alex Bash
|
|
|
|
|
Check out CoQueryClientBlanket and IServerSecurity interface. That should give you some info about the client if impersonation level is higher than RPC_C_IMP_LEVEL_IDENTIFY
Edward
|
|
|
|
|
Anyone know how to automate internet explorer ? And I need to be able to fill in forms click buttons run javascript etc... more than just navigate to a page?
|
|
|
|
|
How can i cast varEnum to CString e.g VARENUM vt=VT_I2;
Now i want to show that VT_I2 through string. How can i do that.
Thanx in advance
Regards
INAM
Inam
|
|
|
|
|
can you give me some code samples or advice?
|
|
|
|
|
Can anybody tell me..How to insert table in richtextbox control as in MS word..I'll be helpful to u...PLease help me sir..
I'll be very thankful to u.
OK! Good Bye...Have a Nice Life..Bye. Sumit Kapoor
Never consider anything Impossible before trying to solve that..---Sumit Kapoor---
|
|
|
|
|
Hi all,
I try to design my own script debugger in the basis of ms windows script
debug interfaces. But i met some problems.
i read one article from MSDN online -- Active Scripting APIs: Add Powerful
Custom Debugging to Your Script-Hosting App.
First, the author said one rule is imperative to reach, that is to execute
your script code one time, then you can set the breakpoints correctly. i
debugged the sample attached and that's right. otherwise, the
IDebugCodeContext pointer is empty and the breakpoint can't be set enabled.
this seems so strange if there are some UI elements or operations in your
code.
Second, How can i debug one script segment of global code? I changed that sample a little so that global code can directly run not by invoking some named function. I found any breakpoint set in some of global code was invalid.
Thanks a lot
alan
|
|
|
|
|
Hi everybody,
I’m developing an MFC application. I‘ve created an event sink for IHTMLFormElement, using BEGIN_DISPATCH_MAP-END_DISPATCH_MAP macros.
In this event sink, I’m catching submit event of the form. For most of the sites it’s working fine. But for some of the SSL sites like bankofamerica.com, the form sink does not get submit event. How to get submit event for such sites?
I tried put_onsubmit, but it is also not working. I might be making some mistake doing it. The code I tried is:
hr = m_pUnkSinkForm->QueryInterface (IID_IDispatch, (void **)&pSelfDisp);
VariantInit(&vargID);
vargID.vt = VT_DISPATCH;
vargID.pdispVal = pSelfDisp;
IHTMLFormElement *pIHTMLFormElement = NULL;
hr = m_pUnkSrcForm->QueryInterface(IID_IHTMLFormElement, (void**)&pIHTMLFormElement);
if(SUCCEEDED(hr))
{
hr = pIHTMLFormElement->put_onsubmit(vargID);
If there is any other workaround except put_onsubmit, please mention, I’ll try it out.
Thanks in advance…
Avya.
|
|
|
|
|
Hi All
I have a MFC client wich is a part of big 3-tier application. Recently, I've begun to convert some parts of it into managed code.
By that, I mean that I rewrote some components of the app using C# and imported them into my app as a COM components (including the communication with the server wich I changed from COM+ to .Net remoring).
It works fine, but when I close the application I get exception in call to corExitProcess().
Does anybody know something about that?
Do I have to shut the CLR in some way?
thanks!
|
|
|
|
|
Is it possible to write my own outlook, but only interface (UI) wise? In other words, does Outlook provide access to it's internals (database, code to send recieve email, account information, etc.)?
Sammy
"A good friend, is like a good book: the inside is better than the cover..."
|
|
|
|
|
There's an object model, so yes, at least partially. However, it may be that some operations bring up bits of Outlook's own GUI.
Steve S
|
|
|
|
|
I am able to get document for the window, but how can I get interface pointers multiple documents.
A window can contain multiple documents. To be precise, if a document has multiple frames each frame has its own document. How can I access the document associated with particular frame.
Avya.
|
|
|
|
|
Hi,
How do a COM client interacts with an EJB ?
or
How can I call Java functions (specifically EJB interfaces) from within a C++ program? Is this possible in the first place.
God Is Great
|
|
|
|
|
how do we interact 2 way BETWEEN A COM COMPONENT[say written in MFC COM] and a simple java class/EJB component.
say i wish to call a method in the java class from the COM component.
From MFC COM component ,i pass it a number,the java class/component must multily it by say 10 and return the result back to MFC COM component.
Is it possible.
Both reside on same machine.
God Is Great
|
|
|
|
|
Hi,
Can anyone tell me how to get the DLL name/path from a CLSID or PROGID? I have a CLSID and I want to know what the exe or DLL is that serves it.
Thank you.
|
|
|
|
|
You can query registry value
HKEY_CLASSES_ROOT\CLSID\{your clsid}\InprocServer32
and/or LocalServer32
Edward
|
|
|
|
|
Hello All
I am in a bit of trouble,
I want to use a function
Sub Verify( _
ByVal SignedMessage As String, _
[ ByVal bDetached As Boolean ], _
[ ByVal VerifyFlag As CAPICOM_SIGNED_DATA_VERIFY_FLAG ] _
)
in C++ now _bstr_t object is to based as the first parameter, but the problem is that the File which I want to load is in DER format, I have tried different things like CFile, fstream and FILE to open it and convert the char buffer into _bstr_t but only some portion of File is read. I wanted to know is there any thing in COM libariaries to laod a DER format file or some way to make a _bstr_t from a File.
I dont have experties in COM based programming, and I have to use it for thies purpose
best Regards
Muhammad Aftab Alam
|
|
|
|
|
I have a clsid of a com component now i want to know its interface identifier. How can i do it.
Thanx in advance
Regards
INAM
Inam
|
|
|
|
|
A CLSID is a GUID that references a coclass; whereas an IID is a GUID that references an interface in the coclass. I'm not sure I understand what you're really wanting becuse a coclass can support more than one interface - which means there will be more than one IID. Are you sure you're not wanting the ProgID? if so you can use:
CLSIDFromProgID
or
ProgIDFromCLSID
Regards,
|
|
|
|
|
I created a user control using c#.it automatically saved as .cs file.it works
properly.what i want now is to use it in a web page.but i can't find it's class id.i tried regedit.i typed the path of the project & searched.but no use.can somebody help meee?????
madara
|
|
|
|