Jump to content

Recommended Posts

Guest Go123
Posted

I have got an error when running a C++ (Visual Studio 6) program which calls

a method (bolCheckInput()) from a VB 6 dll. The error is: "Unhandled

exception in TestPassword.exe (RICHED20.DLL): 0XC0000005: Access Violation".

The code portion in VC++ is as follows:

 

_stsclsFInputPasswordPtr pPassword;

 

hr = pPassword.CreateInstance(__uuidof(stsclsFInputPassword));

switch (hr) {

case S_OK:

{

VARIANT_BOOL password;

 

password = pPassword->bolCheckInput("Communication Server");

pPassword.Release();

CoUninitialize();

return(password == VARIANT_TRUE ? TRUE : FALSE);

break;

}

 

When the vb dll is runing in debug mode, no error occurs, But if the dll is

not running in debug mode, the C++ program would have this error when it is

terminates. Any idea about this error? Thanks.

 

I am running on Xp Pro SP2.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...