Re: Access violation error
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 06 Jul 2007 10:21:47 -0400
See below...
On Fri, 6 Jul 2007 04:32:00 -0700, karim <karim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi All,*****
i have the following code in my cpp file
**************************************************
int i = 0;
char *passwordToEncrypt = "080000151F6ECF67";
CString passwordToEncrypt = _T("08,,,67");
****
char *encpwd8 = NULL;****
char *encpwd16 = NULL;
//if i uncomment below line,then it throwing access violation error during
runtime
//i = 0605;
int l = E3Des(passwordToEncrypt, encpwd8, encpwd16, &i);
****************************************************
the method "E3Des" is defined in a dll and it is linked. so no compilation
errors:-). i have only runtime error.
I suppose that the method E3Des is defined somewhere, but you know, without TELLING US
what that definition is, we have no chance of analyzing what is going on here. Would it
have inconvenienced you too much to have told us what its prototype is and what it is
supposed to do? For example, if it is defined as
E3Des(char * passwordToEncrypt, char * & encpwd8, wchar_t * & encpwd16, int *something)
that would be quite different from the specification I suspect it might be, which is
E3Des(char * passwordToEncrypt, char * encpwd8, wchar_t * encpwd16, int * something);
without knowing the meaning of the parameter, how are we supposed to guess what is going
on here?
Of course, if you are somehow magically expecting that it is going to be able to write to
NULL pointers, you are going to be disappointed; I did not see you doing any allocation of
space to initialize those pointers.
When posing questions, it is essential to give appropriate specifications of what is going
on.
joe
*****
Joseph M. Newcomer [MVP]
can anybody help me out.
Thanks,
karimulla.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: Inheritance and MFC - Completed
- Next by Date: Re: overriding of exes
- Previous by thread: Re: Access violation error
- Next by thread: Re: Access violation error
- Index(es):
Relevant Pages
|