|
Hi,
How do I create an ActiveX control in VB 6 which will install a certificate to Internet Explorer's Personal Certificate category automatically with the click of a button named "Install Certificate" in IE's web page.
Kindly provide me the code required for the ActiveX control.
Thanks in advance.
Subrahmanyam K
|
|
|
|
|
I've added a dll (added as refernce)
and I am trying to create a new class from the dll
but I get this error:
Retrieving the COM class factory for component with CLSID {DD683B25-1820-412E-AA8A-7AA92321EBC8} failed due to the following error: 8007007e.
in the tips: it tell me something about the location
of the dll and it not being found
can someone please help me?
|
|
|
|
|
i want the code for x to the power n divided by n factorial
aman
|
|
|
|
|
i am working on a project which is a namespace extension which supports drag and drop of file between windows folder and our namespace folders. The technique used to drag and drop a file from our namespace folder to windows folder is like this:
1. when drag is initiated,
a)details of the dragged object are stored in a global variable.
b)IDataObject(which supports 2 formats-CF_HDROP for between windows and private format for between our namespace folders) is created and drag loop is initiated by calling DoDragDrop().
2. In IDataobject::Getdata, for CF_HDROP format, a temp dir is created and the path is written to clipboard.
3. we have a copy hook handler which actually does the work of copying the file from namespace folder to windows folder.The Copycallback method of copyhookhandler gets the info from global variable and puts into windows folder and returns IDNO.
The product is working on thousands of systems correctly but on a perticular system with xp its not working.
log files show that IDataObject::GetData() is called n times with CF_HDROP , temp folder is created and folder path is written to clipboard. But ICopyHook::copyCallback() is not called.Deleting the copyhook handler registry key should create the temp folder(as we have placed this folder path on the clip board in IDataObject::Getdata() and our copyhook handler is not present) in drop target but its not happening here.
what might have gone wrong?can anyone help me?
|
|
|
|
|
I am writing a attributed COM component in Visual Studio .NET 2003 (VC++ 7.1). For reusing the types defined in some other TLB, I want to import this TLB that I do by inserting the following line in stdafx.h.
[ importlib("test.tlb") ];
This 'importlib' attribute places this line in the library block of the IDL file. However, now if some of the interface methods in my COM component want to return an interface defined in test.tlb, it gives me IDL compilation error.
Perhaps, it is probably since the automatic IDL generation by the compiler puts all the interface declarations of my component outside the library block, and the importlib attribute generates the importlib line inside the library block... and, so the interface declarations of my component are not able to recognize the interface types defined in the imported type library.
Can anyone suggest me if I am importing the library in a wrong way, or if there is any other solution to it ?
Thanks & Regards,
Arun
|
|
|
|
|
Hi all
I Am working on windows server 2003 cluster and i need to use WMI for this..
can i know what all we can do with WMI for clusters etc
can i have some script examples for this
Thanks in advance
abhi
abhi
|
|
|
|
|
Hi
As we list all the shared assemblies in GAC using gacutil on a paritcular system.
Is there any way to list or find all those assemblies which are registered as COM component using regasm either programmatically or through some utility.
Regards
Kamal Chauhan
|
|
|
|
|
Reposting a question multiple times and adding "Very Urgent" to the subject is not going to get you an answer, just annoy people.
Have you tried using google ?
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
Hi
As we list all the shared assemblies in GAC using gacutil on a paritcular system.
Is there any way to list or find all those assemblies which are registered as COM component using regasm either programmatically or through some utility.
Regards
Kamal Chauhan
|
|
|
|
|
hi all
i developing a library use service Com+
that library is Server application proxy
When i Export type Application Proxy after that i setup file .MIS on orther computer but run is faile(Access is denied) so i have create Role for Com+ in Server(Everyone permisstion) ????
Network is LAN and workgroup
AND if on orther computer dosen't setup file MIS so that library become Server application .this much not security ??????
Some body help me
|
|
|
|
|
I developed an Add-in for Outlook 2003 with Visual Studio 2005 Team Suite.
My solution was created via:
Other Project Types -> Extensibility -> Shared Add-in
And I selected support for Microsoft Outlook.
Question 1:
I uncheched all the "Exclude" option of the assemblies in the Setup Project and builded it successfully.
The Add-in installed and ran well in another computer which had also VS 2005 Team Suite on it. However, on a third computer, which only had .NET Framework 2.0 but not VS 2005, the Add-in installed normally but did not load when Outlook started. What's the problem?
Question 2:
My CommandBarButton runs only a few times.
I added a CommandBarPopup to the Main Menu and then added a MsoControlType.msoControlButton to the popup. In the ClickEventHandler of the button, a Windows Form object is created and shown.
The problem is, each time I start Outlook, the button is available for only a few times, usually 2-3 times, sometimes only once. Afterwards it becomes unavailable at all. It gives no response when I click it.
Some of the codes are as follows:
//Acquire the "Menu Bar" and create a new control on it
menuBar = ((Outlook.Application)applicationObject).ActiveExplorer().CommandBars["Menu Bar"];
commandBarControl_CM = menuBar.Controls.Add(MsoControlType.msoControlPopup, 1, "", 6, true);
commandBarControl_CM.Visible = true;
commandBarControl_CM.Caption = "Sychronization";
//Add buttons to the newly created control
CommandBarPopup commandBarPopup_CM = (CommandBarPopup)commandBarControl_CM;
CommandBarControl commandBarControl_SI = commandBarPopup_CM.CommandBar.Controls.Add(
MsoControlType.msoControlButton, 1, "", 1, true);
commandBarControl_SI.Visible = true;
commandBarControl_SI.Caption = "Calendar Sychronization";
//Add button event handlers
CommandBarButton button_showinfo = (CommandBarButton)commandBarControl_SI;
button_showinfo.Click += new _CommandBarButtonEvents_ClickEventHandler(button_showinfo_Click);
private void button_showinfo_Click(CommandBarButton Ctrl, ref Boolean CancelDefault)
{
System.Windows.Forms.Form form_CalMng = new Form_CalMng();
form_CalMng.Show();
}
|
|
|
|
|
Question 2 has been solved. The button object has to be declared at class level.
But help me with Question 1, please!
|
|
|
|
|
OctopusThu wrote: However, on a third computer, which only had .NET Framework 2.0 but not VS 2005, the Add-in installed normally but did not load when Outlook started. What's the problem?
Are you sure its registered there? can you confirm it by seeing registry ?
Possibly its not registered there due to unavailablity of some dependent dlls.
|
|
|
|
|
It is right there in the registry:
HKLM -> Software -> Microsoft -> Office -> Outlook -> Addins -> OlCalAddin.Connect
It just does not load when I start Outlook......
I begin to believe that it has something to do with the developing environment. I tried the Add-in on two computers without VS2005 and got the same result, which is that the Add-in did not load. However, I tried it on another two computers WITH VS2005 on them and the Add-in loaded successfully.
Any hint?
OctopusThu
|
|
|
|
|
OctopusThu wrote: I tried the Add-in on two computers without VS2005 and got the same result, which is that the Add-in did not load. However, I tried it on another two computers WITH VS2005 on them and the Add-in loaded successfully.
Thats why I believe, its installation missing some dependent dll, which required to ship with that dll.
In case on VC2005 installed machines, that dll is already present there.
|
|
|
|
|
However, I unchecked all the "Exclude" Option of the assemblies in "Detected Dependencies" of the Setup project. That is to say, all dependent dlls are included in the Setup.(Except the global ones, e.g., System.Data, System.XML, etc...)
OctopusThu
|
|
|
|
|
OctopusThu wrote: " of the Setup project.
I never used this wizard. I use to check dependent dlls using dependency walker. See if it can throw some light on problem.
|
|
|
|
|
|
somebody who read the book neame "Inside COM"?in this book,the chapt 10(the server of the EXE) i have many problems, that i couldn't known what should i do to build a complete project which can work well.What the steps of the work?i'm eager for hands?
someone known mastered COM would tell me.
what mean makefile?(there he tell me the makefile can buld some certain files!)
Thanks
|
|
|
|
|
Try using google before posting here, finding out what a makefile is will take a second or two, less than the time it took you to ask this question.
Also, I am not having a go at your level of English but can you rephrase your question as it is difficult to understand what you mean.
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
We used AJAX to call a page by passing some parameters through querystring. Based on the parameters, the page will perform some operations. IE always caches the files and when the same page is called with some other parameters, sometimes IE takes the cached page with old parameters and because of our validations, it says that duplicate not allowed. Is there a way to force IE to always get the file from the server and not from Cache
|
|
|
|
|
I have a 3rd party COM application that I use to retrieve 3d map information over the web. All the methods work fine accept one method. That method (SaveRenderToFile) saves a render of the present image to a file on the computer. Occasionally (about 1 in every hundred calls) it will lock the application and sometimes kill it.
I don’t know how to prevent this from happening. I NEED the image rendered. I think I’m screwed and I’ll have to hope that the company fixes its method.
Here is my code…
/*
* Function: SaveImageToFile
* Save the RenderToAFile
* Returns: path to the saved image if successful.
*/
BSTR CTE3DWindow::SaveImageToFile()
{
ISnapShot2Ptr pISnapShot2;
BSTR image = L"no image";
long iPicQual = -1;
char szBuffer[256];
CoInitialize(NULL);
pITE5.QueryInterface(IID_ISnapShot2, (ISnapShot2**)&pISnapShot2);
pISnapShot2->PutRenderQuality(0);
sprintf(szBuffer, "CTE3DWindow::SaveImageToFile entering try->SaveRenderToFile");
LogDebugInfo(szBuffer);
try
{
image = pISnapShot2->SaveRenderToFile();
}
catch(_com_error const &e)
{
sprintf(szBuffer, "CTE3DWindow::SaveImageToFile failed was ");
strcat(szBuffer, (char*)e.Description());
LogDebugInfo(szBuffer);
return image= L"no image";
}
sprintf(szBuffer, "CTE3DWindow::SaveImageToFile Completed SaveRenderToFile, image is ");
strcat(szBuffer, (char*)image);
LogDebugInfo(szBuffer);
CoUninitialize();
return image;
}//END SaveImageToFile
Thanks
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
The following is a serious error:
BSTR image = L"no image";
A BSTR is not just a wide string. First it's prefixed with a length and the length is ***BEFORE*** the position the pointer points. Secondly a specific allocator is assumed. To fix this error make the following change:
BSTR image = SysAllocString(L"no image");
You also should add a call to SysFreeString to free the string when it's no longer needed. An understanding of BSTR s is essential if you're going to use COM in C/C++ without any wrappers (and probably even if you are).
The calls to CoInitialize and CoUninitialize also worry me. Although this need not be a mistake (I'd have to see more code) the normal pattern is to initialise COM once when the app starts and uninitialise it once when the app exits. You should not uninitialise COM while COM objects still exist -- that's what it look like you may be doing.
Steve
|
|
|
|
|
Thank You EVERY MUCH for the feedback it may not have solved my problem but I'm sure it will help my application to be better.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
Hi all,
I wrote a very simple user control in C#, and I'm trying to access it from my C++/MFC code. The control contains a single label in it. Here's the control code itself:
namespace HelloCom {
[Guid("F0AE1BB2-A840-4341-B785-D8A54C81E643")]
public interface HelloCom {
}
[Guid("111DCC11-900D-431c-B3A0-4B95C539A47D")]
public partial class HelloComImpl : UserControl, HelloCom {
public HelloComImpl() {
InitializeComponent();
}
}
}
Here's what I've done so far:
* Signed my control with a strong key
* Clicked the "expose assembly to COM interop" and "make visible to COM" options
* regasm HelloCom.dll /tlb:HelloCom.tlb
* gacutil -i HelloCom.dll
However, despite all this, I still cannot see my control in the Toolbox on the C++ side, nor can I insert it via the "Insert ActiveX Control" menu option. What am I doing wrong ?
|
|
|
|