473,216 Members | 1,501 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,216 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 4194
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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.