Developer Security DLL won't work
Posted: Fri Aug 07, 2009 12:30 pm
by Anonymous >> Wed, 7 Jan 2004 12:06:31 GMT
I'm implementing a security DLL (in Visual C++) to control access to the JDE. It broadly looks like the following:
Header:
extern "C"
{
int _declspec(dllexport) jadeDevelopmentUserInfo ( const char* userName,
const char* password ) ;
int _declspec(dllexport) jadeDevelopmentFunctionSelected ( const char* userName,
const char* taskName,
const char* entityName ) ;
}
Source:
int _declspec(dllexport) jadeDevelopmentUserInfo ( const char* userName,
const char* password ) {
return 0 ; // Just for testing.
}
(Simlar for jadeDevelopmentFunctionSelected).
DUMPBIN confirms the names are undecorated and the JOM log is not complaining that it can't find the functions in the DLL. However, the JDE simply won't let me in, saying I don't have access to Browse Classes. I can't tell whether it's UserInfo () or FunctionSelected () that's stopping me getting in as I get the same message even if I deimplement FunctionSelected () (indicating that I get the same message if it's UserInfo saying no). Note that I;'m not declaring the functions as JOMAPI as per the JOM Guide as they don't get exported if I do.
I'm implementing a security DLL (in Visual C++) to control access to the JDE. It broadly looks like the following:
Header:
extern "C"
{
int _declspec(dllexport) jadeDevelopmentUserInfo ( const char* userName,
const char* password ) ;
int _declspec(dllexport) jadeDevelopmentFunctionSelected ( const char* userName,
const char* taskName,
const char* entityName ) ;
}
Source:
int _declspec(dllexport) jadeDevelopmentUserInfo ( const char* userName,
const char* password ) {
return 0 ; // Just for testing.
}
(Simlar for jadeDevelopmentFunctionSelected).
DUMPBIN confirms the names are undecorated and the JOM log is not complaining that it can't find the functions in the DLL. However, the JDE simply won't let me in, saying I don't have access to Browse Classes. I can't tell whether it's UserInfo () or FunctionSelected () that's stopping me getting in as I get the same message even if I deimplement FunctionSelected () (indicating that I get the same message if it's UserInfo saying no). Note that I;'m not declaring the functions as JOMAPI as per the JOM Guide as they don't get exported if I do.