P
prophasi
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
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