|
I have a problem with COM ( object is Internet Explorer )
I designed a form with Internet Explorer object. Everything seem OK but when I surf a website contain inline frame ( the inline frame's location is in other domain ), I met a problem. With the main page, I can do everthing with it such as view HTML source, list links ..etc.. but with the inline frame, I can't do anything with it ! All request return message "access denied".
Thought, the error came from something about security reason of IE ( may be cross domain ? ). I can't find a way to solve this problem. I tried to set some config on IE but nothing except "access denied" message return .
Anyone can help me ? Thanks lot !
p/s : I have admin privillige to run this program.
My English's so bad, butI hope you'll understand my question !
|
|
|
|
|
conchocon91 wrote: the inline frame's location is in other domain
That's the reason for the access-denied error. Allowing data to pass between different domains would lead to cross-site scripting[^] attacks.
|
|
|
|
|
Oh yeah ! I knew that but want to ask how to disable ( or bypass ) this security method.
Because I have full privillige and I know which website's safe to surf so I want to bypass this unvalue security method. Can you help me ?
I tried on Regmon to reconize which key contain enable/disable this security method but what a sad result !
|
|
|
|
|
Hi friends,
I've built a COM component using ATL.The component gets created succesfully,but i'm not able to see it in the registry(tried registering it manually useing regsvr32 and it said component registered successfully)..Any help will be highly appreciated.
Thanks and regards,
Rajeev
|
|
|
|
|
What code do you have in DLLRegisterServer function?
What is the content of your .RGS file?
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
HKCR
{
MITFConverter.MIConverter.1 = s 'MIConverter Class'
{
CLSID = s '{8AED5835-214E-408E-BEAE-375A95F10433}'
}
MITFConverter.MIConverter = s 'MIConverter Class'
{
CLSID = s '{8AED5835-214E-408E-BEAE-375A95F10433}'
CurVer = s 'MITFConverter.MIConverter.1'
}
NoRemove CLSID
{
ForceRemove {8AED5835-214E-408E-BEAE-375A95F10433} = s 'MIConverter Class'
{
ProgID = s 'MITFConverter.MIConverter.1'
VersionIndependentProgID = s 'MITFConverter.MIConverter'
ForceRemove 'Programmable'
InprocServer32 = s '%MODULE%'
{
val ThreadingModel = s 'Free'
}
val AppID = s '%APPID%'
'TypeLib' = s '{26B4997D-A0FD-4A5B-BB6D-A270D8FD86B3}'
}
}
}
this is the content of my rgs file
|
|
|
|
|
and what is the code in DllRegisterServer function?
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
|
Got the answer -
objCOM = Activator.CreateInstance(Type.GetTypeFromCLSID(New Guid("{4B117F12-37D1-4C19-93C8-4B318594E2A3}")))
|
|
|
|
|
i used builder 6 and got the whole cppbrowser to work but now i want to save the html into a text file,how do i convert the IDispatch to string?
this is what the help tells me.but honestly i don't understand
"Use Document to access an IDispatch interface for manipulating the contents of the HTML document through the COM object model. If there is no active document, Document is NULL. That is, you must first load a document using the Navigate or Navigate2 method before you can manipulate it using the Document interface.
For more information about this interface, see the document object section of Microsoft’s Dynamic HTML reference."
|
|
|
|
|
IDispatch is the standart interface, why you need it save?
The help just known you that Document inherited from IDispatch.
If you want to save html look for methods in Document that allow you to get HTMLBody as string and after that save it.
|
|
|
|
|
there where no methods for getting the string.but i got it working.
why i wanted to save the html was for the "background" history on the pc just for fun.
|
|
|
|
|
Hi,
I am trying to create a user in WinXP using ADSI.
I am facing problems in executing ADsGetObject.
When I try binding to LDAP using WKGUID, it gives an error.
Part of my code is:
--------------------------------------------------------
hr = ADsGetObject(TEXT("LDAP://10.175.80.24/rootDSE"),
IID_IADs,
(void**)&pRoot);
// Function written above works fine.
if (FAILED(hr)) {
wprintf(L"Bind to rootDSE failed: 0x%x\n", hr);
return hr;
}
hr = pRoot->Get(L"defaultNamingContext",&var);
wcscpy(adsPath,L"LDAP://<wkguid=");
wcscat(adspath,l"aa312825768811d1aded00c04fd8d5cd");
wcscat(adspath,l",");
wcscat(adspath,var.bstrval);
wcscat(adspath,l">");
hr = ADsGetObject(adsPath, IID_IADs, (void**) &pIADs);
// This function written just above is failing: hr is a negative value/
// pIADs comes as NULL
hr = pIADs->Get(L"distinguishedName",&var);
//At this point application crashes obviously as pIADs is NULL.
-------------------------------------------------
The 'adspath' gives the correct path as :"LDAP://<wkguid=aa312825768811d1aded00c04fd8d5cd,dc=patni,dc=com>"
I used ADsGetLastError to check the return code. But return code is success (i.e. zero)
Im unable to understand where am I going wrong.
Can anyone please help me resolving this problem?
Thanks,
Manasi
|
|
|
|
|
i want to download free ebooks on win 32 api
|
|
|
|
|
hi can any one tell me hw shud i proceed to develop a application for internet cafe.likewise we have a server and many clients.to have connection between them by providing them username ,password + time to access the web.also a windows form so dat if any one wants to continue then user shud provide the time to extend and this shud be saved on server.
|
|
|
|
|
i have worked a simple com server application
but while buiding it has not generated the .h file
which i must incorporate in the client file.
by .h file, i mean the .h header file.
is there anything that i can do with the setting?
i am working on visual studio 6.0 IDE.
|
|
|
|
|
compile your IDL file using MIDL compiler and it will generate te required header files.
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
i want to call remote class library using .net. if any one have easy process pls suggess me.
atul
|
|
|
|
|
Hi,
How to know how many clients are connected to the COM Component at pirticular time
Thanks
Nandu
|
|
|
|
|
To know no. of clients connected to your COM component, you need to create a COM+ Application.
1)->Control Panel->Admi. Tools->COM+ Applications->Computers->My COmputer->Applications->Create an empty application
2)Add your component in it, in it's components node. then
3)Export that aplication, select Application Proxy option, it will create .msi and .zip files
4)Install this .msi file on required clients.
When this component if being accessed by cleints, you can view the count of active objects of that component in
Control Panel->Admi. Tools->COM+ Applications->Computers->My COmputer->Applications->Your Aplication Name->Components
then select "detail view".
If this solves yr. problem pl. Replay me.
Rahul Patil
rp7799@rediffmail.com
|
|
|
|
|
This is good, I came to know some thing new.
But at code level shall we use referece cout to check how may clients are connected ..it is right?
Nandu
|
|
|
|
|
There is a library "COM+ 1.0 Admin Type Library" using which you can check and set state of various COM+ Application's state such like checking status and adding components to it at runtime as well as exporting application etc.
To do that you can set reference of that library in VB 6.0 IDE and check various Methods and Properties it supports.
Some of Useful Methods are
Dim loApp As New COMAdmin.COMAdminCatalog
loApp.GetComponentVersionCount(,,,)
loApp.GetMultipleComponentsInfo()
Rahul Patil
|
|
|
|
|
|
<big>HI ALL <br />
<br />
PLEASE HELP ME. I am stuck on this point and can't do any progress in my project.<br />
<br />
Currently, I am using Domain Environment. I have Active directory and I want every users when they login to the domain, a program (.exe) file will run on there machines.<br />
<br />
This as you know, can be done by configuring logon script through GROUP POLICY ( from active directoty).<br />
<br />
Any how, when I run the (.exe) file generated when compiling the code in my local machine ( THE server that host the active directory), it works well.<br />
<br />
BUT, when the users try to login and run (.exe) file the follwing error generated:<br />
<br />
************************************************** **********************************<br />
<br />
System.Security.SecurityException: Request for the permission of type'System.Security.Permissions.SeurityPermission ,<br />
mscorlib, Version=2.0.0., Culture=neural, PublicToken=b77a5c561934e089' failed<br />
<br />
<br />
at System.Security.Principal.WindwosIdentity.GetCurre nt()<br />
<br />
at TestConnection.Program.Main(Straing []args)<br />
<br />
The action that failed was:<br />
<br />
Demand<br />
<br />
The type of the first permission failed was:<br />
<br />
System.Security.Permissions.SecurityPermission<br />
<br />
<br />
The zone of the assembly that failed was:<br />
<br />
Internet<br />
<br />
<br />
************************************************** *********************************<br />
<br />
As you can see from the execption. when I use the method WindowsIdentity.getCurrent()<br />
<br />
<br />
it fails why? Howover, when I use any symbol method only let's say " Console.WriteLine() >> this will work.<br />
<br />
<br />
I found something intersting about changing the security of the project by browsing to the solution explorer then open the PROJECT PROPERTIES<br />
<br />
THEN YOU GO TO SECURITY.<br />
<br />
But I couldn't understand how to change the security of my code to make it run in any PCs requesting it from the Server.<br />
<br />
I think the whole problem is a permission problem?? SO PLZ HOW TO SOLVE IT</big>
|
|
|
|
|
Hello
I am working on a COM project in which i use Interface Inheritance.
The IDL file looks like this,
interface IEarthInterface : IUnknown
{};
interface IOceanInterface : IEarthInterface
{};
interface IPacificInterface : IOceanInterface
{};
interface IAntarticInterface : IOceanInterface
{};
interface IDataInterface : IUnknown
{};
interface IFindInterface : IDataInterface
{
HRESULT GetOceanTypeInterface(IOceanInterface** pOceanInterface);
};
From inside IFindInterface i need to figure out which Ocean is currently attached and then attach or typecast
it was IOceanInterface and send it back to client.
All i wanted to know is how to get a Interface pointer from inside another Interface.
ie, can i call CoCreateInstance or QueryInterface from inside IFindInterface and get the
Interface Pointer to IPacificInterface or IAntarticInterface.
I been already told that CoCreateInstance will not work in this case.
Any idea how to implement this?
Thanks in advance.
|
|
|
|