error C2512: 'Cryptography::CRC32' : no appropriate default constructor available
-
librarie project
namespace Cryptography { class __declspec(dllexport) CRC32 { public: CRC32(void); [..] } }
test program projectusing namespace Cryptography; CRC32 *pcrc=new CRC32();
when I try to use my CRC32 class I get this error error C2512: 'Cryptography::CRC32' : no appropriate default constructor available whats up ?? :sigh: -
librarie project
namespace Cryptography { class __declspec(dllexport) CRC32 { public: CRC32(void); [..] } }
test program projectusing namespace Cryptography; CRC32 *pcrc=new CRC32();
when I try to use my CRC32 class I get this error error C2512: 'Cryptography::CRC32' : no appropriate default constructor available whats up ?? :sigh:Since noone else has replied... Your code as shown compiles for me (if I add the missing semicolon and comment out the "[..]") with no errors/warnings. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
librarie project
namespace Cryptography { class __declspec(dllexport) CRC32 { public: CRC32(void); [..] } }
test program projectusing namespace Cryptography; CRC32 *pcrc=new CRC32();
when I try to use my CRC32 class I get this error error C2512: 'Cryptography::CRC32' : no appropriate default constructor available whats up ?? :sigh:Just a guess, but are you sure that when you compile your test program that the code
class __declspec(dllexport) CRC32
becomesclass __declspec(import) CRC32
Chris Meech I am Canadian. [heard in a local bar]
-
Just a guess, but are you sure that when you compile your test program that the code
class __declspec(dllexport) CRC32
becomesclass __declspec(import) CRC32
Chris Meech I am Canadian. [heard in a local bar]
-
Since noone else has replied... Your code as shown compiles for me (if I add the missing semicolon and comment out the "[..]") with no errors/warnings. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
librarie project
namespace Cryptography { class __declspec(dllexport) CRC32 { public: CRC32(void); [..] } }
test program projectusing namespace Cryptography; CRC32 *pcrc=new CRC32();
when I try to use my CRC32 class I get this error error C2512: 'Cryptography::CRC32' : no appropriate default constructor available whats up ?? :sigh: -
I don't seee anything that would prevent it from running either... I don't know whats wrong...
CiNN wrote:
I don't seee anything that would prevent it from running either...
Running or compiling?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
CiNN wrote:
I don't seee anything that would prevent it from running either...
Running or compiling?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I don't seee anything that would prevent it from running either... I don't know whats wrong...
Hmm since I copied the code and compiled it, I can only assume your'e not showing us something :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hmm since I copied the code and compiled it, I can only assume your'e not showing us something :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
my last post has the source code which still don't compile with me http://www.rarhost.com/download-pvyb7b.html