Developer Security DLL won't work

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Developer Security DLL won't work

Postby ConvertFromOldNGs » 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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Developer Security DLL won't work

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:30 pm

by Anonymous >> Wed, 7 Jan 2004 13:03:11 GMT

OK, I coded a test routine to call into he DLL and it confirmed that the parameters were being received OK so I took a closer look and ... I was passing 1 back from FunctionSelected instead of 0 to allow access. You live and learn.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests