Solved

use microsoft cryptoapi in asp

Posted on 2000-04-15
1
305 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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

771 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

10 Experts available now in Live!

Get 1:1 Help Now