Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

dll calls

komotokomoto Member Posts: 10
Hello

I am trying to make a Visual Basic program to replace the its current DOS one. The problem is that the DOS program makes calls to a DLL called 'BXODDB.DLL'. Is there a way of finding out what calls and commands this DLL file will accept so I can utilise it. Is it even possible to make calls to a DLL that would normally be used by a DOS program.

Thanks

Komoto

Comments

  • infidelinfidel Member Posts: 2,900
    : Hello
    :
    : I am trying to make a Visual Basic program to replace the its current DOS one. The problem is that the DOS program makes calls to a DLL called 'BXODDB.DLL'. Is there a way of finding out what calls and commands this DLL file will accept so I can utilise it. Is it even possible to make calls to a DLL that would normally be used by a DOS program.

    Add a module to your program and put something like this in it:

    Public Declare Function OpenProcess Lib "kernel32" _
    (ByVal dwDesiredAccess As Long, _
    ByVal bInheritHandle As Long,
    ByVal dwProcessID As Long) As Long

    You will, of course, need to know the name of the function, it's arguments and their types, and the return type, and replace kernel32 with the name of your DLL.
  • nimnul2nimnul2 Member Posts: 131
    You have to find out what functions are in that DLL and what the arguments are of those functions and what their type. Only then you can call the DLL. To get the names of the functions you can use the Dependancy Walker of Microsoft Visual Studio.

    Also, you can try to write your code without the DLL. Maybe, the tasks you want to complete are easier that you can see and don't need that DLL.
  • komotokomoto Member Posts: 10
    Thanks guys, that is a good help.

    The DLL serves a special purpose of looking at the graphics buffer of a gamesconsol, so I wont be able to figure it out without the DLL :)

    Komoto
  • nimnul2nimnul2 Member Posts: 131
    First, try to find a DLL that does the same job. If it doesn't exist on the Web I don't know what you can do around this problem.

    Decompile the DLL and see how the functions are written?

    To use the Dependancy Walker that comes with the VS 6.0 and see the functions' names?

    Find a DLL caller program determining what the arguments are?

    Find the person who wrote that damned DLL?

    Start programming anything else?

    Can anyone here help this guy/girl?

  • Andre YoungAndre Young USAMember Posts: 0

    _____ | http://forcoder.org | free ebooks and video tutorials about \ Objective-C Swift JavaScript Visual Basic MATLAB Go PHP Java Python Scratch PL/SQL Perl C# C Ruby C++ R Assembly Visual Basic .NET Delphi F# Dart Erlang Julia ML Awk Ada Fortran FoxPro VBScript D Bash SAS Scheme Crystal Apex Kotlin ABAP Alice Rust Hack Scala Transact-SQL Clojure COBOL Prolog LabVIEW Lua Logo Lisp \ _______

Sign In or Register to comment.