Integrating MFC application in swings

hi all,
i am supposed to write a swing application this application supports a functionality for which there is an existing MFC application. its kind of a swing based wrapper over an existing MFC application. is it possible? i dont feel JNI would solve this as its not just communicating with native dlls or exes instead its more like launching the exe and then piping the screen (UI) from MFC app to swing based application.
are there any 3rd party librariers\components that can help me achieve it? i had heard of some bridge libraries but not sure if they can let you directly integrate applications inside java applications. also i am worried about event handling :)
thanks.
regards,
amey

Look hear
http://www.teamdev.com/jniwrapper/index.jsf
You need to do next. Create a component with the AWT native window through WinPack. After your need to little change your MFC application in that way when main window of your MFC application has native window in AWT component as parent.

Similar Messages

  • How to add A Gauge Control in VC++ MFC Application

    How to add A Gauge Control in VC++ MFC Application.
    i want to add Gauge Control in my Application. like meter.
    ther meter should perform depends upon the value.
    for example , Assume the meter have 10 units 1-10 . if the value (ie, input ) is 4 the meter point out the 4 like that.

    How to implement CProgressCtrl to like this.
    https://social.msdn.microsoft.com/Forums/getfile/643828
    You need to implement this all by your own or if you are lucky you may something find @Codeproject, CodeGuru, ...
    Here you will find examples on creating custom controls (in general)
    http://www.codeproject.com/Articles/521/Creating-Custom-Controls
    https://msdn.microsoft.com/en-us/library/bk2h3c6w.aspx?f=255&MSPPError=-2147217396
    You will find a lot more stuff if you try your prefered search engine.
    Maybe this one fits the best to your requirements:
    http://www.codeproject.com/Articles/9375/CStatic-derivative-CSpeedoMeter-class
    Best regards
    Bordon
    Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar.

  • RCConsole MFC Application has encountered a problem and needs to close

    Alright, heres the issue. I am a computer lab admin trying to remote
    view workstations in my lab. I am running ConsoleOne from the server,
    once i start ConsoleOne I will be able to remote view/control maybe one
    or two computers before i get the error "RCConsole MFC Application has
    encountered a problem and needs to be closed immediately"
    I can fix this by going into the task manager and closing the
    RCConsole.exe process. However i might get one or two computers before
    it comes back. I searched the internet for a solution to this and heard
    that if i copy the ConsoleOne directory from the server to my local
    machine it will work. So I did that and yes it did work, however we are
    running a diskless boot system and if I were to copy the directory to
    the local machine it would be gone as soon as I reboot.
    Ive done some random testing and discovered the following
    the console one directory is located on the server in
    /sys/public/mgmt/consoleone/1.2/bin
    i tried copying the console one directory to the root c: and it worked
    fine
    then i tried copying it to my network drive on the server
    /data/home/grastyc/consoleone/1.2/bin and it worked fine
    so based on that i tried mapping a drive to /sys/public/mgmt and tried
    running it from there, didnt work.
    Any help would be much appreciated

    Vc++ error messages,fatal errors: Error message: Msvc32i MFC application has encountered a problem and needs to close MFC vc++ c++
    Originally Posted by [email protected]
    Alright, heres the issue. I am a computer lab admin trying to remote
    view workstations in my lab. I am running ConsoleOne from the server,
    once i start ConsoleOne I will be able to remote view/control maybe one
    or two computers before i get the error "RCConsole MFC Application has
    encountered a problem and needs to be closed immediately"
    I can fix this by going into the task manager and closing the
    RCConsole.exe process. However i might get one or two computers before
    it comes back. I searched the internet for a solution to this and heard
    that if i copy the ConsoleOne directory from the server to my local
    machine it will work. So I did that and yes it did work, however we are
    running a diskless boot system and if I were to copy the directory to
    the local machine it would be gone as soon as I reboot.
    Ive done some random testing and discovered the following
    the console one directory is located on the server in
    /sys/public/mgmt/consoleone/1.2/bin
    i tried copying the console one directory to the root c: and it worked
    fine
    then i tried copying it to my network drive on the server
    /data/home/grastyc/consoleone/1.2/bin and it worked fine
    so based on that i tried mapping a drive to /sys/public/mgmt and tried
    running it from there, didnt work.
    Any help would be much appreciated

  • Satellite Pro M30: Wireless LAN/ZeroCfgSvc MFC Application

    Whenever i turn on the wireless lan switch an error msg appears " ZeroCfgSvc MFC Application has encountered a problem and needs to close.
    What shall I do?

    Hi
    I have read on some websites that a new wireless driver update could solve this issue.
    Try to download the new wireless update from the Toshiba website:
    http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp
    or from the Intel website:
    http://downloadfinder.intel.com/scripts-df-external/Support_Intel.aspx
    Check also this site:
    http://forums.divx.com/groupee/forums/a/tpc/f/221101651/m/693108652
    http://www.neuber.com/taskmanager/process/zcfgsvc.exe.html
    Regards

  • Integration Broker Application Messages Issue

    Hi Gurus,
    We are having an issue with the Integration Broker Application Messages.
    Here's the issue, when we run Dynrole it process Application Messages. All messages go to Done status, but checking the instance, the Footer comes first, where the header should comes first. This issue happens from time to time, we only run 8 application messages at a time (header and footer included). BTW, failover is enabled on our server.
    We are trying to find a solution on this, please help us.
    Thanks,
    Red

    Hi,
    Did it resolved? If yes, please share here if possible.
    Cheers,
    Elvis.

  • Integration of Application - Very Urgent

    Hi,
    we are developed the application in Web throu CGI - 9ias,oracle81 with NT
    Now we are at final stage of the project .we have lot of applications like payroll,marketing,finance,production & etc .
    How to integrate all those application in CGI
    Thanks,
    Prakash.J.

    One option is to use 9iAS InterConnect. InterConnect provides a database adapter for integrating database applications. You would have one database adapter per application and use the iStudio GUI tool to create mappings between the objects in the various applications. You can find info on InterConnect here: http://otn.oracle.com/tech/integration/pdf/intg_twp.pdf
    HTH,
    Herb
    Hi,
    We are developed the application(Forms/Reports/Proc) in Web using 9ias throu CGI.
    we are at the final stage (Integration part) .we have lot of appilication like payroll,purchase,marketing,finance & etc. Each modules having different database user.
    How to integrate all those application in CGI.
    Thanks,
    Prakash.J.

  • Integrating BW applications in EP 6.0

    Hi Experts,
    I am in a learning process and I was wondering if anyone can provide any documents or links that gives me some
    1.)-->basic information of how to intergrate BW applications into portal.
    2.)-->Any information of the BW system with respect to Portal is also needed.
    Thank you very much for your help
    Regards
    Luke.

    Hi,
    Integrating BW application with Portal available in the following links
    http://help.sap.com/saphelp_nw04/helpdata/en/71/a202400d67c342e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/7b583c2439e66fe10000000a114084/content.htm

  • Error R6034 in simple MFC Application with OCCI

    Hello everyone,
    I´m new to the whole occi-topic, and have a little problem.
    After about 3 days of try and error and endless searching through forums I finally managed to make my first application with occi to run. It´s a Win32 console application.
    After a little "celebration" I startet to create a MFC application with the same base functions.
    If I compile the project, I get an error "R6034" when the compiler tries to access the file: "msvcp80d.dll". I think it has something to do with the manifests.
    Here is the output.
    "DBTest_MFC.exe": "D:\fh\proggen\DBTest_MFC\debug\DBTest_MFC.exe" geladen, Symbole wurden geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\ntdll.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\kernel32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "D:\fh\proggen\DBTest_MFC\DBTest_MFC\oraocci10.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "D:\oracle\product\10.2.0\client_1\BIN\oci.dll" geladen, Die Binärdaten wurden nicht mit Debuginformationen erstellt.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\msvcr71.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "D:\fh\proggen\DBTest_MFC\DBTest_MFC\msvcr80.dll" geladen, Symbole wurden geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\msvcrt.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "D:\fh\proggen\DBTest_MFC\DBTest_MFC\msvcp80.dll" geladen, Symbole wurden geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll" geladen, Symbole wurden geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll" geladen, Symbole wurden geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\gdi32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\user32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\shlwapi.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\advapi32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\rpcrt4.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\secur32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\comctl32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\oleaut32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\system32\ole32.dll" geladen, Keine Symbole geladen.
    "DBTest_MFC.exe": "C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll" geladen, Symbole wurden geladen.
    Eine Ausnahme (erste Chance) bei 0x7c91eae0 in DBTest_MFC.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x00000130.
    R6034
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    Windows hat einen Haltepunkt in DBTest_MFC.exe ausgelöst.
    Dies kann auf eine Beschädigung des Heaps zurückzuführen sein und weist auf ein Problem in DBTest_MFC.exe oder in einer der geladenen DLLs hin.
    Weitere Analyseinformationen finden Sie möglicherweise im Ausgabefenster.
    Is anyone familiar with this problem an perhaps able to help me?
    I already tried some "workarounds" and played with the manifests, but had no success.

    I assume you have the manifest tool (mt) somewhere on your system - I just open a "Visual Studio Command Prompt" when I have to use with it.
    Something you can try (I'm not certain it will resolve your issue though):
    1. Open a Visual Studio Command Prompt and change directories to %ORACLE_HOME%\OCI\lib\MSVC\vc8
    2. Copy the existing dll files to save them:
    copy oraocci10.dll oraocci10.dll.orig
    copy oraocci10d.dll oraocci10d.dll.orig
    3. Use the mt tool to embed the provided manifest files (you should already have these files in the directory):
    mt -manifest oraocci10.dll.manifest -outputresource:oraocci10.dll;2
    mt -manifest oraocci10d.dll.manifest -outputresource:oraocci10d.dll;2
    NOTE: This is not an Oracle-specific procedure. The manifest tool is used by Visual Studio itself when building projects.
    4. Depending on how you have your system configured, copy the oraocci10(d).dll files to a backup copy as before in whatever directories you have them and then copy the "new" files with the embedded manifest to those locations.
    For example, on my development machine, I have copied the files to %ORACLE_HOME%\bin so that I do not have to include %ORACLE_HOME%\OCI\lib\MSVC\vc8 in my path.
    Let us know if that helps or not!
    - Mark

  • Adding local variable using mfc-application

    Hi.
    I’m looking for a way to add a local variable to a TestStand-Sequencefile (not while the sequence is running) – out of a MFC-application. It’s not the first time this question is asked – I know. But I’m not able to get the other solutions running.
    Thought it should work like this:
    Step SequenceStep;
    TS:ropertyObjectPtr property;
    disPtr = tsEngine.NewStep(TS_SequenceAdapterKeyName, TS_StepType_SequenceCall);
    SequenceStep.AttachDispatch(disPtr);
    SequenceStep.SetName("Sequence");
    //add a local variable to the new created sequence
    property = SequenceStep.AsPropertyObject();
    property->SetValString("Locals.VarToInsert", 1, "Str");
    In TestStand I’m not able to see the
    new variable – but in the Sequencefile the following lines were added:
    [SF.Seq[0].Main[2].Locals]
    VarToInsert = "Str"
    After changing the lines to:
    [DEF, SF.Seq[1].Locals]
    VarToInsert = Str
    everything works fine. Any suggestions what’s wrong with my program?
    Thanks!

    I’ve found a solution (example in the TestStand-folder) for this problem.

  • RCConsole MFC application error

    When I use ZfD Remote Controle v6.5 (via DSRazor or command prompt), I get
    the error message "RCConsole MFC Application has encountered a problem and
    needs to close. It seems that when I use C1 the error does not occur.
    The remote machine gets the request to "accept" the remote control
    connection, but as soon as "accept" is clicked, the machine that initiated
    the remote connection gets the error.
    Error signature:
    applic name : rconsole.exe
    appver: 6.5.2.0
    modname: zrmresld.dll
    modver: 6.5.1.0 (strange that this is not 6.5.2)
    I have the latest Novell Client - 4.91.2 and I'm running ZfD Agents 6.5.20.
    Can someone help? Thanks.

    RCConsole is NOT designed for using it from the command prompt, but on 5 Jan
    2006 this article was posted on the Novell CoolSolutions.
    Total confusion or Novell at its best? :-(
    > cool solutions home
    Using RCConsole as a replacement for Wviewnt
    Novell Cool Solutions: Tip
    By Adam HobbsRate This Page
    Reader Rating from 0 ratings
    Printer Friendlytell a friendPosted: 5 Jan 2006
    ENVIRONMENT:
    ZENworks for Desktops 6.5
    ConsoleOne 1.3.6PROBLEM: Under ZENworks for Desktops 3.2 (and previous
    versions) we used to use Wviewnt.exe to remote control machines from the
    command line outside of ConsoleOne. This was very handy for
    remote-controlling regularly controlled machines, such as licence servers,
    card swipe machines etc.
    However wviewnt.exe does not seem to work with ZENworks for desktops 6.5.
    TID 10023508 does not include information for using this with ZENworks 6.5
    SOLUTION: Use RCConsole.exe from ConsoleOne 1.3.6 (in ...
    ConsoleOne\1.2\bin\zen\RCLaunch\ ) as a replacement for wviewnt.exe.
    "Shaun Pond" <[email protected]> wrote in message
    news:[email protected]..
    > Lelieg,
    >
    > you know that rcconsole isn't designed to be used from the command line?
    > desktop4
    > http://www.novell.com/documentation/...i.html#af7z6oi
    > is the supported option for that
    >
    > --
    >
    > Shaun Pond
    >
    >

  • RCConsole MFC Application encountered a problem

    Sometimes when I use "DESKTOP4.exe" to run a remote control session I
    receive an error message (no err #) stating "RCConsole MFC Application
    has encountered a problem and needs to close." and eventually searching
    through error reports the file ZRMRESLD.dll usually gets mentioned. If I
    retry things may works OK, or work OK and the message displays after I
    close the session, or the message pops-up at the beginning and I have to
    close down the application.I have tried changing between DRISHITI and
    DARPAN modes but this does not seem to make any difference.
    Any help will be greatly appreciated. Thank you. PETER
    Netware 6.5
    ZenWorks 7
    NWclient 4.91 SP2

    Peters,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • CShockwaveFlash in MFC application on Windows 7

    Dear,
    we have an MFC application (VS2010 32-bit build) in which we show a flash animation (using CShockwaveFlash) during startup of our application. This was working fine on win xp machines, but there seems to be a problem on win 7.
    On win 7, the window is shown but the animation doesn't work.
    We noticed that it does work when the focus is set to another window (e.g. a modal dialog on top of the appilcation).
    Snippet
    CShockWave::CShockWave(CWnd* Parent) : CDialog(IDD_FLASH, Parent)
       m_Shock = 0;
    void CShockWave::InitShockWave()
       RECT rect;
       GetWindowRect(&rect);
       rect.right -= rect.left;
       rect.left = 0;
       rect.bottom -= rect.top;
       rect.top = 0;
       if (_access(m_Movie.c_str(), 00) !=  -1)
          m_Shock = new CShockwaveFlash();
          if (m_Shock)
             if (m_Shock->Create("FLASH", WS_VISIBLE, rect, (CWnd *)this, 10000))
                m_Created = true;
                m_Shock->SetPlaying(FALSE);
                m_Shock->SetLoop(FALSE);
                m_Shock->SetMovie(m_Movie.c_str());
                m_Shock->Play();
             else
                delete m_Shock;
                m_Shock = 0;
    IDD_FLASH DIALOG 0, 0, 282, 226
    STYLE DS_SETFONT | WS_POPUP
    FONT 8, "Tahoma"
    BEGIN
    END
    CShockWave ShockWave = new CShockWave()
    ShockWave->Create(IDD_FLASH, NULL);
    ShockWave->InitShockWave();
    ShockWave->CenterWindow();
    ShockWave->ShowWindow(SW_SHOW);
    Any ideas/suggestions?
    When I open the swf file in IE, it is working fine.
    Thanks!

    This forum is only to discuss how the forums operate, not products
    If you go to the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the Adobe product(s) you use

  • How to add Skin/Theme to VC++ MFC Application

    How to add skin/Theme to full VC++ MFC Application.
    default Theme is looks like a old window screen . so i trying to change the theme of the application.
    i need to change the good (look and feel) Skin/Theme.
    How Can i achieve this? There is any possible to do this?
    Thanks

    First way:
    The MFC that is in use with VC2008 and later you have the possibility to use the CMFCVisualManager* classes and you can derive an own class that has a skin you create on your own. The problem is this classes are not very well documented and I would not know
    there is an good example that shows on how to do that.
    2nd way:
    You use an own skin framework and do all by your own, the advantage is you know how your skin manager works, the bad thing may be, it can be a lot of work dependig what controls / window parts you want to skin. Here a nice example on making an own skin manager:
    http://www.codeproject.com/Articles/744/EZSkin-A-Primitive-Framework-for-building-skinnabl
    3rd way:
    Using commerical tools. The good thing is you have support, if there are problems. The bad part is you must pay money:
    http://skincrafter.com/
    http://www.stardock.com/corporatesolutions/DirectSkin/
    http://www.codejock.com/products/SkinFramework/
    Best regards
    Bordon
    Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar.

  • During Palm reinstallation, when reboots get errors, "The application failed to initialize properly (0xc0000142)" and "DeviceMonitor MFC Application has stopped working."

    I'm trying to reinstall the Palm software because synchronization has been failing for the past two months.  It get to the point of synchronizing the calendar and fails with the message that there are too many events.  Hence, nothing in the process after that synchronizes.  I've tried reinstalling the Palm s/w to no avail.  Now I'm trying to uninstall and reinstall the Palm s/w only to be greeted with another error message when the system restarts (as part of the installation process).  The error is, "The application failed to initialize properly (0xc0000142).  Click OK to terminate the application."  When I choose OK, I get the error, "DeviceMonitor MFC Application has stopped working."  Windows does not notify me of a solution.  Any ideas/solutions would be greatly appreciated!
    Thanks,
    Gina
    Post relates to: Tungsten E2

    Hello and thank you for using the Palm Help Forums!
    You may need to do a clean uninstall of the Palm desktop software to resolve your issue.
    Uninstall Palm Desktop by going to your Control Panel > Add/ Remove Programs > Remove Palm and/ or PalmOne 
    Delete the following folders:
    C:\Palm
    C:\Program Files\Palm
    C:\Program Files\PalmOne
    C:\Program Files\Handspring 
    From the Windows start menu, select Run.
    Type Regedit and click Run or OK
    *NOTE* BE VERY CAREFUL IN YOUR REGISTRY KEY EDITOR. IF THE WRONG THING IS DELETED THIS CAN CAUSE SERIOUS DAMAGE TO YOUR COMPUTER'S OPERATING SYSTEM. 
    Delete the following keys: 
    HKEY_Current_User\Software\PalmDesktopAutorun
    HKEY_Current_User\Software\Palm
    HKEY_Current_User\Software\Palmone
    HKEY_Current_User\Software\U.S Robotics-- (check and make sure only palm related keys are under this one)
    Delete this key as well:
    HKEY_Local_Machine\Software\PalmSource
    Close the Registry window
    Restart PC upgrade to new palm desktop (by going to www.palm.com).
    Post relates to: Treo 800w (Sprint)
    Post relates to: Treo 800w (Sprint)

  • Cannot use BD DVD Player: WIN DVD MFC application has stopped working

    Tried to install my old version of WinDVD and failed and in the process may have accidentally deleted a file,
    for now whenever I try and use BD DVD Player I get the following message:
    'WIN DVD MFC application has stopped working '
    I tried using restore point but still get it, can anyone advise please?

    It will be interesting to know which notebook model do you have.
    Anyway, in my opinion there is some software conflict. I can imagine both players use same modules or plug-ins and there is conflict.
    I dont know what solution can be but maybe you should remove both players, restart your notebook and make clean BD player in hope it will works properly.

Maybe you are looking for