Michael Maddison
michael at ddisolutions.com.au
Sun Feb 20 16:10:28 CST 2011
Hi Gustav,
Yes, VB runtime has been tested and is ok.
I'm at the point of testing a solution but I'm just being cautious as I
don't understand what is going on here I guess.
How does Java call a COM lib? Does it 'Import' it? What if 2 libs have
the same name, what am I going to break?
I'll let you know what happens.
Cheers
michael
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Saturday, 19 February 2011 7:21 PM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Unusual VB Request
Hi Michael
But is VB runtime allowed? Or you could use FreeBasic or PowerBasic
(Stuart may advice on this).
If so, why not try? Write a dummy where getOSUserName(address, host)
always returns some username for a test.
/gustav
>>> michael at ddisolutions.com.au 19-02-2011 01:06 >>>
Hi Guys,
Maybe someone can confirm or negate my thoughts on a client request I
have received?
Consider this code...
import psdi.util.AXWin32Util;
Call to DLL:
if (this.debug) {
System.out.println("Checking for user at ip " + address + " on
" + host);
}
OSUsername = AXWin32Util.getOSUserName(address, host).trim();
Username is one value not delimeted list
if ((OSUsername != null) && (OSUsername.length() > 0)) {
if (this.debug) {
System.out.println("Found user " + OSUsername + " on " +
host);
}
OSUsername = OSUsername.toUpperCase();
I think the above is Java?
My client wants me to write a dll to replace the
AXWin32Util.getOSUserName(address, host) method call.
I don't have access to either the original source (dll) or the source to
the calling app. Just the text above.
If I create a COM dll called psdi.util.AXWin32Util.dll with a
getOSUserName method and register it on the target server what are the
chances it will work?
I suspect the answer is zero.
Dotnet is not allowed. No installation is allowed. The server is Win
2003 sp2.
Ideas anyone?
Cheers
Michael
_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com
________________________________
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1435/3452 - Release Date: 02/18/11