Solved

use microsoft cryptoapi in asp

Posted on 2000-04-15
1
316 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Query performance - SQL Server 20 78
Dynamically allocate memory 9 57
Is IHttpActionResult a promise pattern? 2 60
Error creating a new C++ project in ,net 20 21
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now