|
Hello all:
At first , I make a ocx control which build a SSL connection by OpenSSL ,and then ,I want IE can share this connection ,which means that IE do not need SSL authentication again ,so IE can connect the WEB server on the SSL tunnel.
Now,SSL connection is built by OpenSSL. But ,I do not know IE how to share the SSL connection.
Any hits is welcomed !
Thank you very much!
|
|
|
|
|
|
Hello Garth J Lancaster:
Thank you for your rely firstly.
But, I have built a SSL connection using OpenSSL. And I put this function in a ocx control ,then put this control into Web page . After connecting the WEB server by this control ,I want that IE can keep this connection(SSL tunnel), and keep accessing the WEB server by this connection.
Now, I do not know how to keep this connection ,which is built by myself in IE.
Ssl proxy maybe is not my need ,because I want to implement this function by myself,not third-part software.
Thank you all the same.
Any other hits ?
Lampa
|
|
|
|
|
I wasnt suggesting you buy/purchase the product, it was for the 'idea'. I dont think you're going to be able to 'replace' the SSL functionality in IE or the IE Control (I seem to remember there being such an object) .. ergo you're going to need to tunnel/proxy using your OCX
If its the wrong idea, 'good luck and keep looking'
'g'
|
|
|
|
|
Thank you for your reply.
I understand what your mean. and I will find out this answer.
PS, i have another question: when I build the SSL connection by IE ,Then ,I click the superlink ,which forward to another web page .why not need to SSL authentication again in this way. Do you know what happened ?
Thank you !
Lampa
|
|
|
|
|
Hi all,
I'm automating Excel from within an ActiveX control and I'm wondering if anyone knows how to highlight the contents of a cell.
I'm writing a specialised search routine and I have no problem finding the cells I want but when I select them only the perimeter of the cell gets highlighted. I'm after being able to highlight the contents but haven't found what I need in the type library. Recording a macro didn't throw any light on the issue either.
Thanks in advance for any ideas.
Cheers
Tom
Philosophy: The art of never getting beyond the concept of life.
Religion: Morality taking credit for the work of luck.
|
|
|
|
|
there's some code following from a MS MFC example : Look at excelApp.GetRange(COleVariant("A1"),COleVariant("C6")).Select();
does that help ?
'g'
#include "excel8.h"
// ...
OleVariant covTrue((short)TRUE), covFalse((short)FALSE), covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
_Application excelApp;
if(!excelApp.CreateDispatch("Excel.Application"))
{
// error handling
}
excelApp.GetWorkbooks().Add(covOptional);
excelApp.GetRange(COleVariant("A1"),COleVariant("C6")).Select();
excelApp.GetActiveCell().SetFormula("Hello World!");
excelApp.SetVisible(TRUE);
|
|
|
|
|
Thanks for the response.
Adding text as you have done seems to change it somewhat. Unfortunately, I'm dealing with read only files and as such I'm only trying to highlight what's already present. The call to Select() doesn't highlight the content, only the outline of the cell
Thanks though
Cheers
Tom
Philosophy: The art of never getting beyond the concept of life.
Religion: Morality taking credit for the work of luck.
|
|
|
|
|
Hi,
In my application i am using ActiveX control(creted by .net2.0) to capture PrintScreen image.
when i am using it through http://localhost it gives error
Request for the permission of type ‘System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed
But when i run same page by using computer name its work i.e.
http://computername/Applicationname/xyz.aspx
How to give permission for activeX.
Thanks in advance.
|
|
|
|
|
hemant.kaushal wrote: How to give permission for activeX.
Use DCOM config admistrative utility.
|
|
|
|
|
is anybody know how to create a COM wrapper around the C# class.
Please let me know full tutorial or any links having relevanmt information
Thanks in advance
Datta
|
|
|
|
|
You should read the documentation that comes with your compiler. There's tons of material on NET and COM Interop.
Over at MSDN: Exposing .NET Framework Components to COM[^] is as good a place to start as any.
Another reference is: How to Create COM Wrappers[^].
I've read that you can do this with your source code, but, it is an extremely error prone process, as .NET types don't always map unambiguously to COM types.
|
|
|
|
|
This is a question to all you old school folks.
When I create a dll in VS 2005 and mark the option to register it for com interop and then build the project, I get the usual dll but I also get a tlb (type library) file in the output folder. I know what a tlb file is and what it contains but what I don't understand is what the relation is between the outputted dll and tlb. Can you use the tlb and dll separately in a COM-based application or are they connected and meant to be used together?
|
|
|
|
|
TLB contains only the declarations.
DLL contains definitions or implementations.
TLB is enough to create wrappers.
But when the wrappers are actually called, it will call into the DLL.
« Superman »
|
|
|
|
|
Thank you so much for your answer Santosh!
There is another thing I wonder also. When you build COM interoperated dlls and let VS do the work, is the tlb then usually embedded into the dll so that you can call the dll directly without having to go through the tlb?
|
|
|
|
|
That is correct.
VS embeds the type library within the DLL by default.
You can change that by removing the TYPELIB from the .rc file.
« Superman »
|
|
|
|
|
Thats why #import "XYZ.dll" regularly works. I use this sometimes to COM interop with MS-dll, ie msxml6.dll.
Greetings from Germany
|
|
|
|
|
Hi All,
Has anyone any idea on using the office web components for reporting.
I am trying to use it by giving reference in the .net web application, but none of the component is appearing on toolbox.
Do I need office 2000 installed on my machine?
I have OFFICE WEB COMPONENT 11 installed.
Please help!!
Thanks
|
|
|
|
|
Hi,
I need to set up a server Bulk Statement Download in my VMWare machine, I have copied all the files and folders of the existing server as it is. And loaded the required softwares and run the registries as it is from the existing server.
Copied the COM components and registered them in my new VMWare machine. Then made everything same including the OS and its Service pack same.
LDAP connections also same. Every thing same.
But the bulk statement download is working the existing server but not working in my WM machine.
Can anybody pls. suggest me what is missing, pls. help me because I am not good COM or VB programmer.
Please help me in this, as what else is missing.
Thanks a lot,
Abdul Aleem.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Greetings everyone.
I have been doing things in C on *NIX platforms for a long while.
So, I am trying to jump in both feet first I guess.
I am breaking in my nice, new shiny Visual Studio 2008.
What I want to create here for educational purposes is a control that does sockets.
I want to use it in a language I am more familiar with that is Windows based.
I was thinking a control that had some methods, some properties and some events.
Some properties would be say, the remote port and the remote host to connect to.
A method I would want is when there has been data received... and some methods to connect, disconnect, etc.
I guess what I am getting at is implementing a socket engine.
The language in question (Visual Dataflex) to my knowledge cannot deal with anything that complex even with API calls.
I see that Windows has select() - that will work for my experiment and learning experience.
So, to move on I tried making one using the wizard, ended up with an MFC ActiveX control.
For giggles I named it 'test'
I found out that I needed to add methods by expanding the tree in the class view and the item in particular
'testlib' to reveal '_DTest' and right click -> add method.
So, ok.... my function.. return type... CHOKE.
What is CHAR as opposed to char? or CY?.. BYTE? .... BSTR?
Varying OLE_* and so forth....
The *only* one in the list that makes sense to me is 'void'
I just want a function like...
int connect(char *server, char *port) {..code..}
So, I started googling for what the 'equivalents' are to char, and int, etc etc.
Then, we have the parameters.... which have the same sort of names, some of them I am assuming are pointers of that type (like BSTR*)
So, to make a long story short I am very lost in the windows world.
I have done C in windows, but not in Visual Studio. (I have used 'edit' and gcc for a long time.. too long )
Is there any hope for a guy like me in the Windows world doing C/C++ ?
Anyone have any pointers to help me over these initial hurdles?
|
|
|
|
|
LoyalServant wrote: What is CHAR as opposed to char? or CY?.. BYTE? .... BSTR?
CHAR is currently a wrapper for the standard C char datatype. In MS-C++ Most of the upper case data types are wrappers for a standard data type[^].
Some MSDN reference:
Windows Data Types[^]
BSTR was not listed in that MSDN reference for some reason. It is basically a wide character/unicode string. Another reference:
BSTR[^]
LoyalServant wrote: Is there any hope for a guy like me in the Windows world doing C/C++ ?
Anyone have any pointers to help me over these initial hurdles?
The DCOM D-Mystified[^] series by Brian Hart[^] may be a good place to start. There are several articles in the series. To make your transition smoother you may want to pick up a few books.
My beginnings were also in the *nix world. I don't regret moving to Windows development, I find that my low level unix experience gives me an advantage in many cases.
Best Wishes,
-David Delaune
|
|
|
|
|
hi
i'm having troubles debugging an BHO with IE7 and VS 2008
i'm using the BHO from http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx[^]
the application is working fine for me
I searched to how to debug BHO. this is what I found:
"Set your IE home page set to about:blank . That way you can start up the browser as fast as possible and go where you need to. So, start up the first IE window. Then, from VS.NET use the Attach to Process item in the Debug menu to attach to iexplore.exe. Set breakpoints in your BHO. To break within the constructor, just open a second IE window."
I did that but it didnt work for me
it's just ignoring my breakpoints
do you know otherway to debug?
or maybe I'm missing something?
thanks
|
|
|
|
|
I am running into the same issue here, and have tried a few options already. Anyone know how to solve this one?
|
|
|
|
|
Hello,
Even after making all the possible changes in the InstallShield, I am still not able to get the CLSID in the registry while installing a software. What changes do I have to make in the InstallShield to get it done or how to enter CLSID in the registry?
thanks in advance.
Software Developer
Sanjay Khapre
|
|
|
|
|