|
Never mind. I found a far simpler solution was to represent a link as protected text, ensuring the user could not edit it, but could see the link as simple text. Unfortunately using OLE objects would have meant one application running per link, which is inefficient and, well not good.
|
|
|
|
|
Hi All.
I develope an addon based on MotleyFool; example. User must do login to that, for using its functionality. In IE 8 when adding new tab or opening new IE window, new login is need. This occures beacause new instance of this addon creates.
How I can share any instance between multiple tab or multiple IE win?
Excuse me for weakness of my language.
thanks a'lot.
|
|
|
|
|
use some global object or file mapping object (security issue set it to low) Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
You can use Mutex to check the instance of your addon. After the first time authentication save the status to authenticated in an INI file or in Registry. Check the mutex in each tab for get the status(Any instance is there) of your addon. If your addon is running then check the Authentication status. if authenticated from one of the tabs then login directly without user inputs.
I hope it will help you to over come the existing problem
Good Luck
|
|
|
|
|
How to manage global memory in com ??
|
|
|
|
|
Your question is not very clear, can you explain more of what you are trying to achieve? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Code it yourself. Allocate in the first instance release it in the last instance.
your question implies that you need a lot of larning. Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi Guys,
Good Morning/Evening,
i want to know few basic stuff related com+
1)if a Machine is having COM registerd...how a remote machine can access them who knows only Component name and functions.
2)who is taking care of global memory allocation and deallocation.
3)what is the use tlb file.
Thanksvikas da
|
|
|
|
|
This[^] would be a good place to start. Also you could take a look at some of the articles on COM here on CodeProject. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi all. Show me, please, how to handle this event, to the link opened in same window.
In msdn says that must be replaced by a pointer to IDispatch, but it does not work.
VARIANT * v = &pDispParams->rgvarg[1];
if (v->vt == (VT_BYREF | VT_VARIANT)) v = v->pvarVal;
IDispatch* *pdisp = 0;
if ((v->vt & VT_TYPEMASK) == VT_DISPATCH){
pdisp = (v->vt & VT_BYREF) ? v->ppdispVal : & (v->pdispVal);
if (pdisp[0] != NULL){
pdisp[0]->Release();
}
g_pSite->get_Application(pdisp);
}
Values that come - commented out. What am I doing wrong? Why not this work? How can I solve this problem?
In handler DISPID_NEWWINDOW3 event comes value URL of the new windows, but don't comes other values needed for navigate2, therefore, this solution does not suit me.
Sorry for my english. 
|
|
|
|
|
It's me. I asked the question correctly?
|
|
|
|
|
Hello!Please suggest me COM objects to make a screenshots!I want to use it in my .Net application!
|
|
|
|
|
You can capture the screen using the API call CreateDC(_T("DISPLAY"), 0, 0, 0);
You can create a COM component yourself and put this call in it.
Here is some code that captures the screen for .Net applications - Capture a Screen Shot[^]
|
|
|
|
|
Ok!I'll try it!But here anothere question bubbles up : is it a way to use my COM object in my Silverlight application(will it rise Security exceptions)?
p.s. Thx for quick answer on my previous question 
|
|
|
|
|
Hello all,
I have made an ocx . It includes the Winsock and the Timer controls . But the problem is that when I try to use the ocx in the application on some other computer the application gives error about the using the correct version of the OCX. Now when I place the ".ctl" file along with the ocx , it works fine . Now It is really annoying as i have to install complete visual basic setup on the client PC so that ".ctl" file works with ocx as app does not run only on vb runtime. Please suggest the solution.
|
|
|
|
|
I remember when using VB6 it had a thing about increasing the version number at the slightest opportunity. Maybe this is the same problem? I seem to remember an option in the object to stick with a particular version, pointing the settings at a Version Compatible Component to make this happen comes to mind.
|
|
|
|
|
Hi Guys,
I have been asked a question during a presentation like how can we access a COM comonent from some other box that is not having registry info for the COM.
please help me here
Thanksvikas da
|
|
|
|
|
you should have a look at the RPC invocation methods.
|
|
|
|
|
You can also use the option of RemoteServer present in the Project properties tab . Vb makes the vbr file which can be accesible by the remote machine . the option is useful if you have made the ocx or active x exe projects
|
|
|
|
|
Hi quantimizer,
Thanks for replying me...
actually question was like there is COM+ component lets say "Maths",it been registered with machine A
there is machine B over Network it does not know anything abt machine B except component name and methods
so how can machine B use the component of Machine A.
i guess can it be done Via URI and RPC...i am just not sure...
Thanksvikas da
|
|
|
|
|
Hi Guys,
Good Morning/Evening,
i have to give a presentation for 45 mins about COM+.
can somebody suggest me what and all i should include here to make the presentation better...
Thanks
Vikasvikas da
|
|
|
|
|
Take a look at the COM articles here on CodeProject for ideas. Frankly if you need to ask this question you may like to reconsider this task. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi all
we have com objects which needs to be shared between two worker threads.to provide effective
synronization b/w worker threads we have choosen Single Threaded Apartment(STA).i am able to register
and retrieve the interface from GlobalInterfacetable successfully with the help of
registerInterfceinGlobal and GetInterfcefromGlobal api's.but the problem comes up when i invoke any
method with the interface retrieved from Globalinterfcetable.the HRESULT status is 0x80010105: The server threw an exception.
can any one tell how to sove this issue
Thanks in Advancesukumar
|
|
|
|
|
Hard to say without seeing your code. Are you doing something like this:
g_pGIT = 0;
ATLTRACE("Messemger: Calling CoCreateInstance on CLSID_StdGlobalInterfaceTable\n");
hr = ::CoCreateInstance(CLSID_StdGlobalInterfaceTable,NULL,CLSCTX_INPROC_SERVER,IID_IGlobalInterfaceTable, reinterpret_cast<void **>(&g_pGIT));
if(FAILED(hr))
{
nErrID = IDS_CREATE_GIT_FAILED;
__leave;
}
hr = g_pGIT->RegisterInterfaceInGlobal(m_pIWebLog,IID_IWebLog, &g_dwCookie);
if(FAILED(hr))
{
nErrID = IDS_REG_OBJ_IN_GIT;
__leave;
}
|
|
|
|
|
You can consider CoMarshalInterThreadInterfaceInStream() and CoGetInterfaceAndReleaseStream() functions as well.
|
|
|
|