How to call Visual Basic Component's method (DLL)in Java

Hi people ,
I need to make calls to methods from a dll . Why ? because the main project is in java and I am a java developer . This dll is the API of an other system that we need to access .
I have searched this on google as you normally do . I found Jacob and some examples using javah . But all the references are old . The latest file I downloaded (version 1.5) was written in 2004 .
Like wise all the results I get on google are old like from 2000 and even 2001 . What are standard practices for this now a days . The dll is written in Visual Basic .
Any help will be appreciated .

mycoffee wrote:
Shahzeb wrote:
Hi people ,
I need to make calls to methods from a dll . Why ? because the main project is in java and I am a java developer . This dll is the API of an other system that we need to access .
I have searched this on google as you normally do . I found Jacob and some examples using javah . But all the references are old . The latest file I downloaded (version 1.5) was written in 2004 .
Like wise all the results I get on google are old like from 2000 and even 2001 . What are standard practices for this now a days . The dll is written in Visual Basic .
Any help will be appreciated .That is history
Why do you need a method in VB? everything vb can do, java can do better :JK
Need more information to know what are you going to doWell that's an invain argument but I agree in principle .
That DLL is not my code , it is api for some other application that we need to access . A system written by some other company whose API is exposed to us in a DLL . I need to use that simple as that .

Similar Messages

  • How to call Custom or Component Controller methods from View Controller

    Hy Guys,
    how do I call Custom Controller or Component controller methods from a View or Context Controlller?
    thanks in advance
    Jürgen

    Hi Juergen
    Yes it is possible, pls follow the below approach to access the component controller in context node class
    1) since the standard component controller class is protect variable , declare a variable of type component controller in your controller class.
    say for example the public variable you declared is  g_comp_controller
    2)  now redefine the controller class method WD_CREATE_CONTEXT  and add the below lines of code
       g_comp_controller ?= me->comp_controller.
    3) go to context node class  (CNXX)  there declare the varaible which of type controller class (IMPL)  as public variable, for example g_owner
    4) redefine the method  IF_BSP_MODEL~INIT  and write the below code
         CALL METHOD super->if_bsp_model~init
        EXPORTING
          id    = id
          owner = owner.
      g_owner ?= owner.
    5) now the variable   g_owner  that is declared in  (CNXX)   contains reference to your controller class
    6) in  on_new_focus  method access your component controller in the below manner and access the entities also.
    DATA: lv_owner                    TYPE REF TO xxxxx_impl,  " Implementation class
                 lr_comp_cont                TYPE REF TO xxxx_bspwdcomponen_impl, " component controller class
                 lv_entity type ref to cl_crm_bol_entity.
    lv_owner ?= g_owner.
    lr_comp_cont    ?= lv_owner->g_comp_controller.
    IF lr_comp_cont IS BOUND.
       lv_entity ?= lr_comp_cont->typed_context->mdfcampaign->collection_wrapper->get_current( ).
    now lv_entity contains the value of component controller context node.
    Thanks & Regards
    Raj
    Edited by: bmsraj on Sep 27, 2011 3:28 PM

  • How to call visual basic exe file from LABVIEW 7.1

    Hi all,
    I would like to call a visual basic 6.0 application(executable file) from labview 7.1 kindly anyone is having code or papers send me.
    Thanks and Regards
    rajesh

    Hi all,
    i would like to run a visual basic programme from labview , i have attached my file , even though iam executing the programme iam not able execute the vb file , kindly suggest me ,
    Regards
    rajesh
    Attachments:
    active x.vi ‏18 KB

  • How to call Visual basic MACRO code in ABAP

    Hi all,
    I created one MACRO in Microsoft office and now i want to call this macro in my ABAP program.
    How to do this can anyone provide me the logic for this....
    Regards.

    What Office application/document has the macro?  What the other poster was referring to is that you can open any type of Office document, E-mail editor, PDF document, simply by executing the filename or appropriate shell command.  By opening the Office document that has the embedded macro, you would trigger that macro to execute.  Is that what you need?
    Here is a simple example (with a hard-coded filename):
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'C:\temp\mydoc.doc'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    As I mentioned, this is also useful for triggering other applications, such as your resident e-mail editor, based on a click of an e-mail address in a GUI screen:
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
        EXPORTING
          DOCUMENT               = 'mailto:(put address here)'
        EXCEPTIONS
          CNTL_ERROR             = 1
          ERROR_NO_GUI           = 2
          BAD_PARAMETER          = 3
          FILE_NOT_FOUND         = 4
          PATH_NOT_FOUND         = 5
          FILE_EXTENSION_UNKNOWN = 6
          ERROR_EXECUTE_FAILED   = 7
          SYNCHRONOUS_FAILED     = 8
          NOT_SUPPORTED_BY_GUI   = 9
          OTHERS                 = 10.

  • How to call another view controller's method from a view controller?

    Hi,
    Iam new to webdynpro . so pls clarify my doubt.
    How to call another view controller's method from a view controller in the same Web Dynpro Component?
    Thanks,
    Krishna

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • Call a portal component from a Command IU Java Class

    Hello,
    Please, how can I do to call a portal component from my Command IU Java Class?
    Thanks & Regards,
    Hassan

    Hi Hassan,
    a portal component can be called directly through URL.
    The general syntax to call the portal component (iView, page) is as follows:
    <http/https>://<server>:<port>/irj/servlet/prt/portal/prtroot/<pcd_path_of_iview_or_page>
    Replace all ":" in the pcd path by "!3a". Also replace all "/" by "!2f" in the pcd path in the URL.
    Hope this helps.
    Best regards,
    Denis

  • How to return a object from a method in a java program to a C++ call (JNI )

    Sir,
    I am new to java and i have been assigned a task to be done using JNI.
    My question is,
    How can i return an object from a method in a java program to a call for the same method in a C++program using JNI.
    Any help or suggesstions in this regard would be very useful.
    Thanking you,
    Anjan Kumar

    Hello
    I would like to suggest that JNI should be your last choice and not your first choice. JNI is hard to get right. Since the JNI code is executing in the same address space as the JVM, any problems (on either side) will take down the entire process. It dilutes the Write Once Run Anywhere (WORA) value proposition because you need to provide the JNI component for all hardware/OS platforms. If you can keep your legacy code(or whatever you feel you need to do in JNI) in a separate address space and communicate via some inter-process channel, you end up with a system that is more flexible, portable, and scalable.
    Having said all that, head over to the Java Native Interface: Programmer's Guide and Specification web page:
    http://java.sun.com/docs/books/jni/
    Scroll down to the Download the example code in this book in ZIP or tar.gz formats. links and download the example source. Study and run the example sources. The jniexamples/chap5/MyNewString demo creates a java.lang.String object in native code and returns it to the Java Language program.

  • How to install visual basics for iMac?

    HOw do I sinstall visual basics for iMac?

    If you are referring to the programming language Visual Basic from Microsoft, it is a Windows only product. You'l need to install Windows via BootCamp or virtualization to use VB.

  • How can a Visual Basic Application be used to read a Netscape LDAP server?

    I would Like to know if Visual Basic (ON AN NT WORKSTATION) can be used to access a Netscape LDAP Server (ON UNIX). And If so, will any API calls be necessary? Is there any documentation on using Visual Basic with LDAP?

    Hi Ryan,
    yes you can use VB with the nsldap32v30.dll or nsldap32v30.dll. You can get this from the iplanet page . The dll is inside the LDAP C SDK. Then, there's a 3 or 4 year old vb sdk with the declarations of the LDAP functions; but this seems not to be available in the web.
    Please send me a mail, I'll send you the doc and a sample vb prog.
    remove the nospam.
    [email protected]

  • How to call a portal component in a java program

    Hi guys,
    We need to add some more operation after user log into portal, thus we need to call a portal component after statement proxy.logon(null) from java program SAPMLogonLogic.java,
    Any ideas how can we call the component directly?
    Thanks

    Hi,
    We can access iview,page,role(pcd objects) thru APIs
    refer [this link|http://help.sap.com/saphelp_nw04/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm].
    may be u can use these APIs to do the task.
    do revert.

  • How to install visual basic 6.0 in windows 8

    Hi microsoft team,
     I recently download the visual basic 6.0 in my windows 8 laptop. But it is not working properly in my system.
    When i was run the visual basic program it will show "visual basic has stopped working window is checking solution for the problem"like this.
    My program is not running. Please tell me the remedy for this kind of problem.
    Thank you

    Hello Vijayalakshmi,
    First of all, please make sure that you run the installer with elevated permissions (run as an administrator).
    Also please take a look at the
    Install Visual Basic 6 in Windows 8 guide. It describes all the required steps for installing VB6:
    1. Right click on setup.exe of your VB6 install and check Run as Administrator with XP SP 3 compatibility pack. I tried Windows 7 compatibility, it also worked.
    2. During the setup, go to components and select everything you want to install except for "Data Access". If "Data Access" is selected, the install will hang even though everything will be installed. Disabling "Data Access"
    ensures that the install completes and restarts your computer to finalize the install. Why this hangs the system is beyond me. LOL.
    3. I am using a 64bit machine, this is not supported by Microsoft and will not be supported as VB6 is 32 bit and should be hosted in 32 bit system. Thus some controls in my system didn't work. I found my listview control didn't want to burge at all.
    4. Download and install VB6 Service Pack (SP6) Runtime Extended (what??) from http://support.microsoft.com/kb/957924?wa=wsignin1.0
    5. Now you can start vb6 ide and code, everything should be mnca!
    6. Step 1 done, now to code and install my VB6 app in some WinXp, Vista and & 7 machine!!
    crossing fingers
    Finally, you may also find the
    Visual Basic 6 on Windows 8 article helpful.

  • How to install visual basic 6.0 to windows 8.1

    plz help I want setup vb6.0 into win8.1
    I lovw it vb6.0 and also win8.1

    Hello,
    VB 6 is no longer supported by Microsoft. I’d suggest asking in one of the following third-party forums which support Visual Basic 6.
    VB forums
    VB City
    For further information, see:
    Where to post your VB 6 questions
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to call legacy system screen in web dynpro for java?

    Now I'm using Netweaver CE for building BPM (Business Process Management).
    In BPM system, I wana call legacy system screen(ERP, C/S , Web, etc..) in web dynpro.
    I'v already known how to call legacy system method and data.( using RMI, SOAP and RFC )
    But I don't konw how to call legacy system screen.
    If there is no way calling legacy system screen, I will have to build every screen using web dynpro.
    It's so terrible.
    So I think there is a way calling legacy system screen.
    It's just my opinion.
    If It can call legacy system screen in web dynpro, please let me know how to call it.
    Or, If there is no way calling legacy system, how solve I this problem?
    Thank you reading my question.

    I assume that with "legacy system screen" you mean ABAP Dynp sceens. Of cause it would be attractive to integrate into new BPM processes. However there is a conceptional issue: You could easily integrate them e.g. into a WebDypro using a URL to to the so-called WebGUI (the ITS that makes Dynp screens Web enabled).
    However the Dynp screen store all there state in the ABAP backend. This information is not available to to the process engine, e.g. to set the Task to completed or to use the data in Output Mapping.
    In fact you need a way to wrap the how UI transaction into a WebDynpro screen including data flow.

  • How to Call Webservices in ABAP(Syntax) created in abap ,java etc

    All Champs,
       Can some one explain me(programatically) that how to access webservices in following cases.
    case 1: A webservice created in ABAP (FM,BAPI,FUNCTION GROUP) by using wizard . How to call this webservice in report or in any bsp or webdynpro application.
    case 2: A webservice created in JAVA,.NET  or in any third party technology , how to use in abap(by considering that endpoint has been created for third party webservice)
    points will be rewarded .
    regards
    panky

    Hi,
    case 1: for WDP, you can create the web service model via "Import Adaptive Web Service" or "Import Web Service Model (deprecated)" by supplying wsdl URL.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2bweb%2bservice
    case 2: In ABAP, create a proxy object at trx code SE80.
    http://help.sap.com/saphelp_nw04s/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
    Both cases are wizard-based. It's pretty intuitive.
    - julius

  • How to call View of Component B in WINDOW of Component A .

    Hi Experts,
    I have 4 different webdynpro Component. On the button click of first component view, I want second component view should be open in same exiting WINDOW, and same when button click from view of second component, 3rd component view should be open .  I want all 4 component should be opened in ONE WINDOW ONLY .
    Now I am using URL of component to open next component but this is opening seperate window.
    So please guide me how to open different different webdynpro component in ONE WINDOW.
    Thanks & Regards,
    Abhiiesh.

    Hi,
    Why did you create 4 views in 4 different components when you want to use all of them in a single window?
    You could have created all 4 views in a single component.
    Answer to your query:
    Define the usage of components 2, 3 & 4 in component 1
    Add the interface views of components 2, 3 & 4 in window of Comp_1
    Create inbound and outbound plugs for the interface views and windows of components 2, 3 & 4 . Use these plugs to create navigation links in Window of comp_1.
    Use the outbound plugs of windows to navigate btw views(From view call a method in window controller which will fire the outbound plugs).
    Regards,
    Ashwin

Maybe you are looking for

  • How I was able to get a Wireless-N FIOS Router

    Short story: 1. Order upgrade from current 5/25 to 35/35 Internet speeds 2. Request Wireless N Router to replace existing Wireless G router 3. Schedule date for installer to come & install N router (for me this is 29 Nov 2011.) Long story: I decided

  • Two DNS Servers with different SOA

    Hello, I have a DNS Server in my main office (Lab environment) of an Active Directory domain. I have set up another one in a branchoffice, and they communicated to each other just fine with a ISA Server VPN Site-to-site. The link of that VPN broke an

  • Embedded PDF on web page fails to display

    We have a number of PDFs that are shown embedded in IE (versions vary).  This worked fine with Adobe Reader 9.5 but with 10, PDF fails to display.  Page takes a while to report error.  Error: There is a problem with Adobe Acrobat/Reader.  If it is ru

  • Taxes on condition types

    Hi, We have about 15 condition types in our pricing procedure. Our requirement is: The material itself is not taxable, but 5 of the condition types are taxable. We are using Vertex as the tax engine. As of now we are not able to separate out these 5

  • Can't update ipod - not enough space but nothing is there

    First, yes I have read the entire discussion a couple of threads down and it didn't help! I have a new 2gb nano and am trying to load songs for the first time, using Windows XP. Every time I try to update, I get a message that it can't because there