|
Yeah,
It is using xpcomglue_s.lib ..I m already including this lib file.
So plz let me know if u have anyother idea..
Thanks.
|
|
|
|
|
veer_in wrote: So plz let me know if u have anyother idea..
Probaly, you can try forums, using these libs.
Prasad
MS MVP - VC++
|
|
|
|
|
Thanks u so much for your help
|
|
|
|
|
The following code fails and return "0x80004002" error Invalid Syntax.
Can any one provide me direction to solve this problem.
Is there any sample VC++ to get list domain in Primary Domain Controller, and to list the users in one domain
WCHAR szTest [100];
swprintf(szTest,L"%s","WinNT://development/ilanthendralr,user");
HRESULT hr = CoInitialize(NULL);
IADsUser *pUser;
hr = ADsGetObject(szTest,IID_IADsUser,(void**)&pUser);
if (FAILED(hr))
{return ;}
BSTR bstr;
hr = pUser->get_FullName(&bstr);
printf("User: %S\n", bstr);
SysFreeString(bstr);
CoUninitialize();
for thendral
|
|
|
|
|
Hi guys,
I am calling a managed dll build in 2.0 from a vb 6.0 application, the dll runs well under clr 2.0 but the vb application breaks.
I was previously using managed dll built with 1.1, and that was working fine. i have framework 1.1 and 2.0 installed with windows server 2003.
can u guys tell me what could be the problem??
Thank You.
Saswat
|
|
|
|
|
|
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
|
|
|
|