Solved

use microsoft cryptoapi in asp

Posted on 2000-04-15
1
320 Views
Last Modified: 2013-11-25
ms cryptoapi sources are written in C.
how can i use them in asp?
make activex control? how? MFC or ATL? any example?
how can i set properties of a control like this in asp?
0
Comment
Question by:sunlinoff
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 40 total points
ID: 2720304
You cannot call Windows API functions directly from ASP.  You can only call ASP functions or load a COM component that implements the IDispatch interface (and an ActiveX control fits this definition) and load it using CreateObject.  You can then call properties and methods on the object's interface.

In you case, the easiest way would be to wrap your C API functions in an ATL ActiveX component.  Visual C++ V6 makes this fairly easy.  Once you've done this your component will work just like any other component in ASP.

As far as an example, forget it for 40 points.  It's not difficult to do this but there are a lot of things to worry about.  Check the VC++ documentation for how to create an ATL component, it's in there.

If you're new to this whole thing, a good book on this subject is "Professional COM Applications with ATL".  By Li and Economopoulos and published by WROX Press.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Socket Programming (Unix) 8 128
Messagebox for a Web Site Application 4 71
Problem to open text file 11 110
c++, dynamic object by json 1 42
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question