JNI support to COM dll????

HI all,
I have a COM dll built not using either C or C++. So my question is whether JNI supports only C and C++ dlls or it also supports COM components built using C#.
I have a dll built using C#,
Can I use JNI to invoke some operations on that dll???? if so How????
Waiting for ur response
Thx in advance
MK

See
http://simtel.net/product.php[id]93010[SiteID]simtel.net

Similar Messages

  • Forms with COM dll

    Hello!
    Our program developed by Forms 6i.
    Can we call to COM dll and how can we do it if possible?
    Thanks!

    if you're on client-server there are two possibilities:
    Use ORA_FFI to map the C-calls from the dll to pl/sql-calls or (if supported by COM.dll) use OLE to communicate with the COM.dll over OLE.
    Be aware that migrating your application to 10g (which you will need to do at some time) the ORA_FFI-solution will be harder to migrate.
    For details on ORA_FFI have a lok at the Forms 6i-online help, there should be examples in it.

  • Calling COM DLLs using JNI

    I am able to call ordinary dlls from my java application using JNI, by exporting the function from my DLL.
    What can I do to call COM DLLs using JNI which do not expose the
    Functions directly.
    please help!
    thanx,
    -sachin

    Is this a COM dll that you have written or do you merely have the dll?
    If you merely have the dll, there are some third party tools that will generate Java interfaces to COM objects from the dll.
    Although I don't endorse these products or work for them I've used them before with some success:
    o J-Integra -- http://www.intrinsyc.com/
    o jacoZoom -- http://www.infozoom.de/
    -- rob

  • JNI communication with MFC COM DLL issue

    Hello all,
    I have a MFC COM dll which exposes a method to be called from Java. For this I am using JNI.
    This method is written to set an integer value into a Microsoft Project Plan. There is some unknown error at the statement where the setting is done, causing the Java application to crash (JVM crash).
    What could be the reason?
    Regards,
    Hemanth

    if the JVM crashes, the problem is in the native code. "Something" in the DLL is causing an error. What that something is nobody can tell you.
    If you can, I would create a shadow setup in a C++ application that does exactly the same as the Java code and see if that works; if it does at least you know there is something wrong with the JNI setup. If it doesn't you can easily debug the problem.

  • CR XI R1: viewer can't open report with UFL from COM dll

    Hello all!
    I faced the following problem: report which is uses functions from COM dll doesn't works on customer's pc. CRViewer throws exception when calling ViewReport() method. GetLastError() gives just 0 ...
    All other reports without functions from COM DLL are working on that PC however. Moreover, reports which uses function from non-COM DLL are also working.
    Versions & environment:
    - Report file is designed in CR11, CR Developer; Product type: Full, Product Version: 11.0.0.895
    - Runtime files on customers pc installed by .msi created from merge modules for Crystal Reports XI RDC Deployments (latest available SP4 for CR XI R1: [crxi_rdc_merge_modules.zip|http://resources.businessobjects.com/support/communityCS/FilesAndUpdates/crXI_rdc_merge_modules.zip], as listed on [this|http://resources.businessobjects.com/support/additional_downloads/runtime.asp] page)
    - target OS: WindowsXP SP3, all updates are installed
    - i'm using COM crviewer, but there are some points in application where report is opened using CRPE api - it is also crashing on reports with custom functions from COM DLL
    - UFL DLL is registered and loaded correctly (investigated by debug output), looks like crash occured during attemt to call function
    - just for test I tried to install CR Developer on customers PC: it successfully opens all "problem" reports, but the viewer in application still crashing ...
    I would appreciate any tips / suggestions. Please also let me know if I need to specify versions of other products / components.
    Thx,
    Andrew

    Sorry, but you have to define "viewer just crashed". To different people this means different things; error, viewer never shows up, application terminates, etc., etc., etc....
    If the issue is only 10% of computers then it is not
    Re. "...could be caused by:"
    - previous installation of CR8.5 (or earlier) runtime (how to cleanup it correctly?)
    possibly - see below
    - OS configuration (what we need to ajust?)
    probably not - as long as it's the same OS and SPs
    - something missing in our code (but why it works in 90% cases?)
    -no
    - something wrong with CRXI runtime (but we a using latest available MSMs, and again, this works in 90% ...)
    possibly see below.
    I would approach the issue by running [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] and comparing the dlls loading on a computer that works and one that "crashes"...
    Your second utility is [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] but ProcMon creates large and difficult to read files.
    Oh, and get the powers that be to start to consider moving away from this legacy "stuff". Like I said, PE APIs have been gone since version 9 of CR and RDC has been retired in CR XI R2 (11.5). Neither product is supported anymore.
    - Ludek

  • 64Bit COM Dll not get registered.

    Hi ,
    I'm trying to register 64 COM dll on 64 bit machine but it not get register with regsvr32. It gives error as follows
    "The module 'C:\program Files\XYZ.dll' was loaded but entry-point DLLInstall was not found. Make sure that C:\program Files\XYZ.dll' is valid dll or OCX file and try again"
    Dll exist at that path. On some 64bit it get registered.Please provide me a solution.
    Thanks in advance.

    Hello,
    The best way is to ask the provider for the documentation of how to register the COM properly. Your question is not realated to Visual C# language.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • JNI support for OCI driver

    Oracle documentation at:
    http://oradoc.photo.net/ora816/java.816/a81354/overvw5.htm#1000980
    claims that the release 8.1.6 OCI JDBC driver supports JNI, but that is not the case.
    What is the status of JNI support for the OCI driver? My company is prepared to help Oracle test or even implement JNI support.
    Rock Howard
    CTO
    Tower Technology Corporation
    [email protected]
    null

    Oracle documentation at:
    http://oradoc.photo.net/ora816/java.816/a81354/overvw5.htm#1000980
    claims that the release 8.1.6 OCI JDBC driver supports JNI, but that is not the case.
    What is the status of JNI support for the OCI driver? My company is prepared to help Oracle test or even implement JNI support.
    Rock Howard
    CTO
    Tower Technology Corporation
    [email protected]
    null

  • Error in generating COM DLL via DCOM Object Builder

    Hi,
    Iam creating a COM DLL for a BAPI and I always get the error when generating the DLL. I have Visual C++ 6.0 installed in the same PC.  Pls help.  Thanks.
    C:\vb>CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\vcvars32.bat"
    Setting environment for using Microsoft Visual C++ tools.
    Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
    Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
         midl.exe /Oicf /h "Flights.h" /iid "Flights_i.c" "Flights.idl"
    Microsoft (R) MIDL Compiler Version 5.01.0164 
    Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
    Processing .\Flights.idl
    Flights.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\oaidl.idl
    oaidl.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\objidl.idl
    objidl.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\unknwn.idl
    unknwn.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\wtypes.idl
    wtypes.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\ocidl.idl
    ocidl.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\oleidl.idl
    oleidl.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\servprov.idl
    servprov.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\urlmon.idl
    urlmon.idl
    Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\msxml.idl
    msxml.idl
    Processing C:\Program Files\SAPpc\SAPGUI\rfcsdk\include\sapconn.idl
    sapconn.idl
         rc.exe /l 0x407 /fo "Flights.res" /d "NDEBUG" "Flights.rc"
         cl.exe /nologo /GX /MD /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_ATL_DLL" /FD /c /Fp"Flights.pch" /Yc"FlightsAfx.h" FlightsAfx.cpp
    FlightsAfx.cpp
    bapiret2.h(116) : error C2059: syntax error : 'constant'
    bapiret2.h(117) : error C2146: syntax error : missing ';' before identifier 'rfc_padd_4_1bperC'
    bapiret2.h(117) : error C2059: syntax error : 'constant'
    bapiret2.h(119) : error C2146: syntax error : missing ';' NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
    Stop.
    Regards,
    Kelvin
    [email protected]

    Hi,
    For those who might encounter a similar problem, I manage to solve the problem by installing the DCOM Connector from the same SAP GUI CD (ver 6.2).   I had the impression to download the DCOM Connector from sap.com but they have the 4.6D version which causes a problem if you are using a higher version of SAP Gui.  The rule of thumb is to install the RFC SDK and DCOM Connector from the the same SAP GUI CD.
    Just note that DCOM Connector is reaching End-of-life.
    Cheers,
    Kelvin

  • Reading the Interfaces name which the class is implementing in a COM dll is implementing.

    Hi All,
    I'm using .NET Reflection to read a COM dll. I'm able to fetch the classes that are present in the dll. But I would like to know interface name which this class is implementing.
    For a .NET dll we can know the name of class's implementing interface name using the <classname>.BaseType.Name property.
    How can I know the interface name which this class is implementing (if any).
    Please let me know how to do this for a COM dll.
    Thanks in advance,Satish
    Thanks, Satish Bommideni "Success usually comes to those who are too busy to be looking for it."

    Hi,
    Thanks for the reply.
    I'm reading the COM assembly using the methods available in oleaut32.dll.
    Also I've imported the namespaces
    System.Runtime.InteropServices.ComTypes;
    System.Runtime.InteropServices;
    to use its respective methods and thus I'm able to read it's classes.But donot know what property to check for this class's interface.
    Kindly let me know if you need any further information.
    Thanks, Satish Bommideni "Success usually comes to those who are too busy to be looking for it."

  • How to use COM DLL in LabWindows

    Hello
    I have a COM .dll which looks like that when opened with dll export viewer:
    I would like to use the Get4AxisPos function in LabWindows.
    I understood that, as I only have the .dll, the only way of calling these functions are with the LoadLibrary() and GetProcAddress() functions.
    My problem is that the Get4AxisPos function is not of type Exported Function but COM Method so I don't know how to use it in my LabWindows project!
    My questions are: Is it possibleto use this dll in Labwindows? If yes how?
    Thanks
    Solved!
    Go to Solution.

    Hi ,
    I am new to C++ and COM  .
    i need to implement a client application in C(lab windows CVI) , server is a c++ COM object.
    steps followed by me
    ---> accessed the registered COM object with Labwindows CVI active x controller template,output was a c file which is implementation of the class names in COM (interfaces).
    I can use majority of the functions directly from the generated, but i need to implement some event functions like message box events and then use it.
    I have seen one method of accessing in C++ client sample ,
    which implements Queryinterface function...takes the IID_Unknown as input and returns interface pointer(inhereted static_castof the required class, uses static_cast for that) as output.
    when i try to follow up the same in c , i am lost  with the inheritance concept.
    In short i need to send IID Unknown to the Queryinterface function and should get the interface pointer of message box type or other class type ...
    Sorry for the long mail,Please guide me
    Thanks in advance ,
    Satish

  • COM dlls in the Standard and Professional Editions of Crystal Reports

    Post Author: enz0
    CA Forum: Deployment
    Hi.
    Do the Standard and Professional editions of Crystal reports install all the com dlls?
    thanks

    Hi,
    The crystal reports trainign for SAP Business One is designed for partners and customers and provided for free to them.
    It's not available to non-customers. You will need to have a login to the partner or customer portal to use it.
    Alternatively you can use the regular Crystal Reports training resources or available books to get yourself skilled for Crystal Reports. Being able to work with Crystal Reports is 90% of the work where as the SAP Business One specific's are in the area of ....
    - Release 8.8: the datasource connections; working with variables in the report; intergration and distribution of reports
    - Release 2007: linking the reports into the SAP Business One menu and making them secured available to the end users.
    Best regards,
    Peter

  • Dll hell version prbblem for a COM dll developed in VC++

    Hello
    We have developed a COM dll in VC++ ATL. We have developed a client application in labview using Ver1.0 of our dll. And now we have changed our dll to Ver2.0 .So now when we register ver2.0 dll, the first client application which is using ver1.0 is not working. Is this because of the dll hell versioning problem. Is there any other way we can do in labview so that we can avoid this dll hell versioning problem. Please let me know.
    Thanks in Advance.

    I supposed your dll is a COM server registered it into the Windows registry.
    In that case you need a reference to call its functions. Place an Automation Open VI, connect an automation refnum constant to the input, right click on it, select ActiveX class Browse... there you should find your objects, the COM servers.
    The Automation Open's output reference can be used to the Invoke Node VIs, to call dll methods.

  • How to call LabVIEW dll from ATL COM dll

    I have tried to call simple LabVIEW 8.6 Dll from win32 test application, class Library.
    I have include LabVIEW generated SharedLib.h file and SharedLib.lib file in the test application which I created as simple win32 console project and also from win32 class Library. I was sucessfully able to call my LabVIEW dll funtion. 
    But when I create ATL COM project and try to add SharedLib.h file and SharedLib.lib file I used to get following erors
    Error 1 error C2733: second C linkage of overloaded function 'StrCatW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 463 
    Error 2 error C2733: second C linkage of overloaded function 'StrCpyW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 464 
    Error 3 error C2733: second C linkage of overloaded function 'StrCpyNW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 465 
    Error 4 error C2733: second C linkage of overloaded function 'StrCmpW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 466 
    Error 5 error C2733: second C linkage of overloaded function 'StrCmpNW' not allowed d:\program files\national instruments\labview 8.6\cintools\extcode.h 467 
    these many errors.
    Will some one explain me how to call LabVIEW dll from ATL COM dll.
    Thanks & Regards,
    Jay

    I also had this problem.  My application is unicode-aware, but I was attempting to link it to a library with primitive C-string arguments.  You could dynamically load the DLL as suggested (more work), modify the header files (really not recommended), or if you are feeling lucky you could try fooling the compiler, as I was successfully able to do in Visual Studio 2010, by steering the preprocessor around those functions (assuming you're not using them, of course -- otherwise this probably wouldn't work):
    // prepare for NI extcode.h inclusion. avoid linker errors for this project.
    #define StrCatW(a,b)     IgnoreLinkError_StrCatW(a,b);
    #define StrCpyW(a,b)     IgnoreLinkError_StrCpyW(a,b);
    #define StrCpyNW(a,b,c)  IgnoreLinkError_StrCpyNW(a,b,c);
    #define StrCmpW(a,b)     IgnoreLinkError_StrCmpW(a,b);
    #define StrCmpNW(a,b,c)  IgnoreLinkError_StrCmpNW(a,b,c);
    // header file for my LabView-built DLL (ASCII single-byte character arguments)
    #include <MyLibraryHeader.h>
    // clean up afterwards, put things back to 'normal'
    #undef StrCatW
    #undef StrCpyW
    #undef StrCpyNW
    #undef StrCmpW
    #undef StrCmpNW

  • Is data transfer included in the 90-day tech support which comes with a new MacBook Air?

    I would think so.  A friend is buying a new MacBook Air, and needs to know if data transfer is included in the 90-day technical support offer from Apple.  I'm pretty sure it is, but just would like to make sure I'm steering her in the right direction.
    Thanks.

    Instructions yes, performing the actual data transfer, not likely.  Here are a couple of links that may be useful:
    http://pondini.org/OSX/Setup.html
    http://support.apple.com/kb/HT5872
    Ciao.

  • Is there any support that comes with the OnPlus ON100 devices

    Is there any support that comes with the OnPlus service, or just this forum?  I lost conectivity with all three of the ON100 devices that I had deployed several weeks ago shortly after a firmware upgrade according to the event logs.  Rebooting the devices have not helped.  Two of the sites have Cisco ASA firewalls, the other is 3rd party.         

    OnPlus is supported by the Small Business Support Center. Additionally, this forum allows you to interact directly with the OnPlus Team.
    Regarding the devices losing connectivity, have you attempted a cold reboot or resetting PoE, if applicable? In the new releases our TCP/UDP ports required have not changed. Have any network changes been made since that would block the required ports? Does the site have port scanning?
    If you can confirm the network changes and the device has been cold rebooted, the next step would be to reset the device. This is completed by holding down reset for 15 seconds. I would also recommend trying it at a different site/network to verify the network is not the issue.
    If you do not have a connection after these steps, the next step would be to RMA the device.
    Please let me know if you have any questions.
    Thanks,
    The OnPlus Team

Maybe you are looking for

  • ORA-25307: Enqueue rate too high, flow control enabled

    I am stuck. I have my stream setup and they were previously working on two of my dev environments well. Now when I get the streams setup the CAPTURE process has a state of "CAPTURING CHANGES" for like 10 seconds and then changes to state "PAUSED FOR

  • Spry:repeat Help

    Help. I am new to Spry (although been doing JS for years) and am attempting to get a handle on it. Here is my issue. I am attempting a simple spry:repeat and all I am getting is my last node. Here is the XML chunk: <?xml version="1.0" encoding="iso-8

  • User not found error when connecting to MDM server using NWDS

    Hi, I am getting the error as " User not found " when i am connecting to MDM server from the code written in NWDS. If i make that user as admin in usermapping in MDM den it works fine bt if that user is not admin den get the error as user not found.

  • Finding the master user records , how to find the active users

    Hi friends,   i want  master user information, which table consists master user information and also which table consists active users , like address ADRC is the master table like that for users which is the master table . can any one help me urgentl

  • IOS 8 Hidden Photo Data

    Okay, I'm running iOS 8.1.3 on my iPhone 6 and trying to clean off space. I have cleared off ALL of the pictures in the photo app, even in the deleted pictures folder. However, for some reason iTunes and the Settings app say I have 1.1GB of space tak