Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

use microsoft cryptoapi in asp

Posted on 2000-04-15
1
Medium Priority
?
365 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 120 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

885 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