Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

use microsoft cryptoapi in asp

Posted on 2000-04-15
1
Medium Priority
?
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

730 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