473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Trying to use cryptlib in C++ project...

Hi all,

I just went back to trying my hand at some C++ after a very long break,
and I've gotta confess that I totally suck so far, and I'm actually
trying to do something that's got to be painfully easy. I just don't
know how to do it.

I've got a VS2005 solution with a single, rather simple project. I want
to encrypt some strings, so I decided to use cryptlib. I downloaded it
and added the cryptlib project to my solution. Now, I need to reference
it from my own project, and I can't get it to work.

I added a reference to the cryptlib project to my own project. That
would appear to have worked, since if I go under my project's Property
Pages, I can see cl32.lib (cryptlib) referenced at the end of the
linker's command line. In addition, I can start typing cryptInit()
within one of my classes, hit ctrl+space for Intellisense, and it finds
the function in there just fine, as well as tons of other cryptlib
functions. However, by the time I get to the parens, I get no more
Intellisense info, and if I try to compile with the line in my code, I
get "'cryptInit': Identifier not found".

I didn't know if I had to use the namespace, as well, but in looking at
the source that contains cryptInit() (cryptapi.h), I don't see a
namespace defined.

I realize it's a lame, dumb, n00b question, but since it's apparently
so elementary, I haven't had any luck finding the answer online, and
it's pretty frustrating to be stuck on this crap instead of a real
coding question. Any help would be immensely appreciated.

Thanks,
Jeremy

Sep 12 '06 #1
1 4206
All -

Sorry for the bad posting -- my issue is Visual Studio-specific, so it
shouldn't be here. I'll watch that in the future.

I was kindly emailed a solution by someone browsing the group, so I'll
briefly state it here in case someone happens to be searching for the
same thing.

When I added the cryptlib reference to my project, VS2005 did, as I
stated, add the cryptlib library to the linker's command line. To be
able to reference the header files, though, I needed to point my
project to the cryptlib source directory. In VS2005, this parameter is
found in Project -Properties -Configuration Properties -C/C++ ->
General -Additional Include Directories. Once I added cryptlib's
source dir there, I had a successful build with no further problems.

-Jeremy
pr******@gmail.com wrote:
Hi all,

I just went back to trying my hand at some C++ after a very long break,
and I've gotta confess that I totally suck so far, and I'm actually
trying to do something that's got to be painfully easy. I just don't
know how to do it.

I've got a VS2005 solution with a single, rather simple project. I want
to encrypt some strings, so I decided to use cryptlib. I downloaded it
and added the cryptlib project to my solution. Now, I need to reference
it from my own project, and I can't get it to work.

I added a reference to the cryptlib project to my own project. That
would appear to have worked, since if I go under my project's Property
Pages, I can see cl32.lib (cryptlib) referenced at the end of the
linker's command line. In addition, I can start typing cryptInit()
within one of my classes, hit ctrl+space for Intellisense, and it finds
the function in there just fine, as well as tons of other cryptlib
functions. However, by the time I get to the parens, I get no more
Intellisense info, and if I try to compile with the line in my code, I
get "'cryptInit': Identifier not found".

I didn't know if I had to use the namespace, as well, but in looking at
the source that contains cryptInit() (cryptapi.h), I don't see a
namespace defined.

I realize it's a lame, dumb, n00b question, but since it's apparently
so elementary, I haven't had any luck finding the answer online, and
it's pretty frustrating to be stuck on this crap instead of a real
coding question. Any help would be immensely appreciated.

Thanks,
Jeremy
Sep 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Elliott | last post by:
I am trying to group data. I have a daily record that contains multiple projects and multiple items in the project. I would like to roll the daily data into project 1 and all the items that go...
5
by: Kevin Buchan | last post by:
I came in today and tried to edit a project that I was working with, locally, at the tail end of last week. This web project was created, hosted, and only edited locally. I truly cannot...
5
by: Kenneth | last post by:
Hi, I've upgraded to .NET 2003 and I opened an .NET 2002 app and let the new IDE convert it to .NET 2003 project. Then I tried to start the application but it keeps on saying "Error while...
11
by: Claude seraphin | last post by:
I'am having this message while trying to rune my asp.net app on win3k server. I have set debug="true" in <compilation section in my web.config . Can anyone help me? Thanks in advance
4
by: a | last post by:
When executing the ASP.NET app, I get: "Error while trying to run a project: Unable to start debugging on the web server. A debugger is already attached. Would you like to disable future...
13
by: Kris Desmadryl | last post by:
Hi all, I create a new asp project, with just one button on the startup form but when I run I always get a messagebox with the error : "Error while trying to run project." No more information....
7
by: Kris Desmadryl | last post by:
Hi all, I create a new asp project, with just one button on the startup form but when I run I always get a messagebox with the error : "Error while trying to run project." That's all what I see...
2
by: SammyBar | last post by:
Hi all, I'm trying to send a message from ASP.NET to another PC by using MSMQ. I created my ASP.NET project by using Visual Studio 2005 but I initially set the project to be located on the File...
0
by: Stephen Thomas | last post by:
Hi there I wonder if any one has encountered this problem or can suggest what is wrong. I am trying the a procedure from the msn site but get the following message: Error 1 The type or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.