Porting windows program with winelib - compiles, but fails to link.

I'm trying to port zCPU emulator . I've got it to build and created object files. Now it doesn't link to its own functions and some wine ones
Any ideas?
As you see, I'm using small script for build.
Here's a package of what I'm building from: http://silentman.org.ua/build.tar.bz2
[sm@home-sm zcpu_emu_build] LANG="en_US.UTF-8" sh ./build.sh
zcpu_emu.o: In function `putch(int)':
zcpu_emu.cpp:(.text+0x20c): undefined reference to `_putch'
zcpu_emu.o: In function `kbhit()':
zcpu_emu.cpp:(.text+0x229): undefined reference to `_kbhit'
zcpu_emu.o: In function `getch()':
zcpu_emu.cpp:(.text+0x246): undefined reference to `_getch'
zcpu_emu.o: In function `RunLoop(void*)':
zcpu_emu.cpp:(.text+0x6ad): undefined reference to `video_event_loop()'
zcpu_emu.o: In function `PokeVideoDriver(int&, int&)':
zcpu_emu.cpp:(.text._Z15PokeVideoDriverRiS_[PokeVideoDriver(int&, int&)]+0x58): undefined reference to `con_putch(int)'
zcpu_emu.cpp:(.text._Z15PokeVideoDriverRiS_[PokeVideoDriver(int&, int&)]+0xef): undefined reference to `video_draw_rectangle(int, int, int, int, unsigned char, unsigned char, unsigned char)'
zcpu_emu.o: In function `ScratchPort(int, int)':
zcpu_emu.cpp:(.text._Z11ScratchPortii[ScratchPort(int, int)]+0x39): undefined reference to `WriteToSCSI(int, int, int)'
zcpu_emu.o: In function `GetPort(int&)':
zcpu_emu.cpp:(.text._Z7GetPortRi[GetPort(int&)]+0x1d): undefined reference to `ReadFromSCSI()'
SCSI.o: In function `InitSCSI()':
SCSI.cpp:(.text+0xe1): undefined reference to `con_write(char const*, ...)'
SCSI.cpp:(.text+0x198): undefined reference to `con_write(char const*, ...)'
SCSI.cpp:(.text+0x22a): undefined reference to `con_endl()'
SCSI.cpp:(.text+0x238): undefined reference to `con_write(char const*, ...)'
SCSI.cpp:(.text+0x23d): undefined reference to `con_endl()'
zBIOS.o: In function `DiskIO()':
zBIOS.cpp:(.text+0x11c): undefined reference to `WriteToSCSI(int, int, int)'
zBIOS.cpp:(.text+0x13c): undefined reference to `WriteToSCSI(int, int, int)'
zBIOS.cpp:(.text+0x15d): undefined reference to `WriteToSCSI(int, int, int)'
zBIOS.cpp:(.text+0x162): undefined reference to `ReadFromSCSI()'
zBIOS.cpp:(.text+0x194): undefined reference to `WriteToSCSI(int, int, int)'
zBIOS.cpp:(.text+0x199): undefined reference to `ReadFromSCSI()'
/usr/lib/wine/libwinecrt0.a(exe_main.o): In function `main':
exe_main.c:(.text+0x9d): undefined reference to `WinMain'
collect2: ld returned 1 exit status
winegcc: g++ failed
Last edited by SilentMan (2008-06-12 12:54:38)

Look like it is expecting Conio, which was a MS only console IO API. There are some implementations of Conio for Linux though. It might be worth learning ncurses, to just replace the Conio bits.

Similar Messages

  • What html code will start an EXE (program) with a click on a webpage link?

    The code in bold below worked. After I switched my browser from IE 11 to Firefox to get the hover on hotspots to work, the program gave me this error message. I moved the EXE file to my local file folder and tried it as shown below. Still no success. Any suggestions?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Family Tree Charts</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css">
    <!--
    body,td,th {
        color: #000;
    -->
    </style></head>
    <body link=blue vlink=blue>
    <table width="100%" height="25" border="0" cellpadding="4" cellspacing="0">
      <tr>
        <td width="93%" height="27" bgcolor="#EFEFEF"> <div align="center"><font color="#999999">
        <b>This Software Allows You To Review Neat Charts of Your Family Tree </b></font></div></td>
        <td width="7%" bgcolor="#CCFFFF"> <div align="center"><A href="Mementos_Menu.html"><font size="2">Back</font></a></div></td>
      </tr>
    </table><BR><center>
    <br>
    <FONT color=#ff00ff><strong>Click the link below to download a special software program for your PC.</strong></FONT><br>
    <br>
    <a href="http://jdmcox.com/"><strong>Cox Website</strong></a><br><br>
    <strong>ITEM 1</strong> (AT THIS  WEBSITE) IS  THE <strong>FAMILY TREE CHART</strong> PROGRAM.<br>
    It is called <strong>Simple Family Tree</strong><br>
    <table width="80%" border="2" cellspacing="2" cellpadding="2">
      <tr>
        <td width="49%" align="left" valign="top"><FONT color=#ff00ff><strong>Click the link below to use this special software program after you download and install the program.</strong></FONT><br>
    <br>
    <!--<a href="C:\Program Files (x86)\Simple Family Tree\Simple Family Tree.exe"><strong>Family Tree Charts Program by Doug Cox</strong></a><br><FONT color=#ff00ff>
    -->
    <a href="C:\Users\Tom and Polly\Documents\Genealogy CD\Simple Family Tree\Simple Family Tree.exe"><b>Family Tree Charts Program</b></a><br><br>
    <FONT color=#ff00ff><strong>Click  the &quot;run&quot; button for both warning messages.<br>
    Click the &quot;READ THIS!&quot; menu option when the program opens.<br>
    Click  "X" in the upper right to close the program.<br><br>
    You can update the family data in future years with this program too.</strong></FONT>
    <br></td>
        <td width="51%" align="left" valign="top"><FONT color=#ff00ff><strong>NOTE 1: Be sure your HTML code for this webpage has a proper line to link to the location where the software was installed. You can use NOTEPAD to make HTML code changes. My existing line is: </strong></FONT><br>
          "c:\<u>program files (x86)</u>\simple family tree\simple family tree.exe"<br><br>
          <FONT color=#ff00ff><strong>The underlined portion will need to agree with where the program was installed. Just change the directory (see underlined sample above). Good luck. If I am still living, call me.<br><br>
          NOTE 2: After you download, install, and try to use the program, you may get an error message window that looks like this -&quot;0 FAMS @F191 @ FAM&quot;. This means you have an individual record in your GEDCOM file that does not have a parent. Be sure all GEDCOM records have at least one parent even if you must name the parent UNKNOWN.</strong></FONT></td>
      </tr>
    </table>
    <br></center> 
    <table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#CCCCCC">
        <tr>
          <td bgcolor="#EFEFEF"> <font size="2">&copy;2002 Sales and People</font></td>
        </tr>
    </table></body>
    </html>

    Herbert:
    Here is my latest code attempt, but I get messages about the lines in BOLD that I do not understand.
    Perhaps you will see what I need to fix. Sure appreciate what you have found and shared with such a neophyte (aka dumbo).
    Tom
    <!--
    body,td,th
    -->
    function RunExe(path) {
    try {
    var ua = navigator.userAgent.toLowerCase();
    if (ua.indexOf("msie") != -1) {
    MyObject = new ActiveXObject("WScript.Shell")
    MyObject.Run(path);
    } else {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    var exe = window.Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
    exe.initWithPath(path);
    var run = window.Components.classes['@mozilla.org/process/util;1'].createInstance(Components.inteinterfaces.nsIProcess);
    run.init(exe);
    var parameters = ["/c start Simple Family Tree.exe"];
    run.run(false, parameters, parameters.length);
    } catch (ex) {
    alert(ex.toString());
    This Software Allows You To Review Neat Charts of Your Family Tree
    Back
    Click the link below to download a special software program for your PC and your GED file.
    *Cox Website*
    ITEM 1 (AT HIS  WEBSITE) IS  HIS FAMILY TREE CHART PROGRAM.
    It is called Simple Family Tree
    Click the link below to look at my GEDCOM file contents.<br>Instructions are provided in the READ THIS menu option at the top of the window.
      *Show Yarnall Chart*
    *Return to this webpage by clicking on the backarrow after looking at the chart.
    You can update the family data in future years with this program too.*
    ©2002 Sales and People
    Date: Thu, 2 Jan 2014 02:09:18 -0800
    From: [email protected]
    To: [email protected]
    Subject: What html code will start an EXE (program) with a click on a webpage link?
        Re: What html code will start an EXE (program) with a click on a webpage link?
        created by Herbert2001 in Dreamweaver support forum - View the full discussion
    Perhaps this might be helpful:
    https://addons.mozilla.org/en-US/firefox/addon/opendownload-10902/
    It allows executables in Firefox to be run - it is an extenstion, though, so it must be installed in Firefox before your page will work.
    Another option is this solution, but it will still require a manual change in Firefox:
    http://forums.mozillazine.org/viewtopic.php?f=19&t=803615
    Or this: http://stackoverflow.com/questions/6472435/running-exe-in-firefox-why- do-i-get-an-error
    However, you will still have problems with getting it to work cross-browser. Honestly, browsers are not supposed to have access like that to the client side file system, which absolutely makes sense for the web.
    That is why you may have to approach the solution from a different angle - perhaps create a server side cloud version of your application(s) which can be easily accessed and run by your family members. I believe you used C to develop the applications? Although I have no experience with this framework, Wt might be a solution to convert your projects to server side applications:
    http://www.webtoolkit.eu/wt
    Good luck!
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5972893#5972893
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5972893#5972893
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5972893#5972893. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Dreamweaver support forum at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Program with generics compiles without -source 1.5 but doesn't run.

    This could probably be considered a bug in J2SE1.5 beta 1.
    A program with generics that is compiled with JDK 1.5 beta1 without the "-source 1.5" option behaves oddly: it compiles but sometimes fails to execute. It shouldn't behave like that. It should fail in the compilation, with a complaint about using the wrong version of the language.
    This odd behaviour doesn't always occur! In the small program below, I get that behaviour when using the EnumSet.range method.
    If I only use the basic EnumSet, it does executes.
    -- Lars
    import java.util.EnumSet;
    import java.util.*;
    public class Example {
         public enum Season { WINTER, SPRING, SUMMER, FALL }
         public static EnumSet<Season> warmSeason = EnumSet.range(Season.SPRING, Season.FALL);
         public static void main(String[] args) {
              System.out.println("Season: ");     
              for (Season s : Season.values()) {
              System.out.println(s);
              System.out.println("Cold Season: ");     
              for (Season s : warmSeason) {
              System.out.println(s);

    Example.java:6: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
        public enum Season { WINTER, SPRING, SUMMER, FALL }
               ^
    Example.java:6: ';' expected
        public enum Season { WINTER, SPRING, SUMMER, FALL }
                           ^
    Example.java:12: ';' expected
            for (Season s : Season.values()) {
                          ^
    Example.java:17: illegal start of expression
            for (Season s : warmSeason) {
            ^
    Example.java:20: ';' expected
        ^
    4 errors
    1 warning

  • Java program compiles but failes to run

    WHAT IS WRONG WITH THIS PROGRAM? It compiles;
    however, when I try to run it, I get the message"
    static void main not define in class car. Please help!
    class Car {
    int passanger;
    int mpg;
    int gas;
    void range() {
    System.out.println("Distance of =:" + mpg*gas);
    class Models {
    public static void main(String args[]) {
    Car Toyata=new Car();
    Car Mazada=new Car();
    Toyata.passanger=8;
    Mazada.passanger=6;
    Toyata.mpg=30;
    Mazada.mpg=25;
    Toyata.gas=16;
    Mazada.gas=17;
    System.out.println("Toyata can carry" +Toyata.passanger);
    Toyata.range();

    The program gets compiled into two classes: Car.class & Models.class.
    class Car {
    int passanger;
    int mpg;
    int gas;
    void range() {
    System.out.println("Distance of =:" + mpg*gas);
    class Models {
    public static void main(String args[]) {
    Car Toyata=new Car();
    Car Mazada=new Car();
    Toyata.passanger=8;
    Mazada.passanger=6;
    Toyata.mpg=30;
    Mazada.mpg=25;
    Toyata.gas=16;
    Mazada.gas=17;
    System.out.println("Toyata can carry" +Toyata.passanger);
    Toyata.range();
    java Car does not produce output because the main method is in the Models.class.
    java Modelsproduces output
    Toyaota can carry 8
    Distance of :=480

  • Can I install Windows 7 with boot camp, but install all my PC games for it on an external hardrive?

    I have a new Mac, but I want to install Windows 7 with boot camp on it. However, I would only really be using it for gaming.
    On another post, someone said that you could not install boot camp entirely onto an external hardrive. As boot camp would only be for gaming, then could I install all my games (when I'm given the option to chose the file of where to install) onto an external drive which is correctly formatted? (what is the format too?) Also, which would allow for a faster gameplay, USB 3.0 or Thunderbolt? as fast gameplay is important
    Thank you

    How to move steam to another drive: 
    Delete everything in the Steam folder except for the "steam.exe" and the "steamapps" folder
    Move the steam folder over to the secondary drive you want it on
    Open the "steam.exe" and it will reconfigure steam
    Log in and BAM! All your games are recognized
    Now, you can put what ever games you want on the SSD with Steam Mover (or junctions)
    Create another folder on the C:\ drive and name it (C:\Users\Sean\Steam Games)
    Run Steam Mover and have it move the game to that location and you are done!
    Now go play the games you want!
    How to have steam on the SSD while having the games on either the SSD or HDD: 
    Delete everything in the Steam folder except for the "steam.exe" and the "steamapps" folder
    Have the "steam.exe" to a folder made on the C:\ drive (C:\Users\Sean\Steam)
    Have the "steamapps" folder on the HDD you want to store your games (D:\User\Program Files\Steam\steamapps)
    Make a junction from the "steamapps" folder to the SSD folder with the "steam.exe" in it
    Open the "steam.exe" and it will reconfigure steam
    Logged in and BAM! All your games are recognized and steam is on the SSD and the games on the other drive.
    Now, you can put what ever games you want on the SSD with Steam Mover (or junctions)
    Create another folder on the C:\ drive and name it (C:\Users\Sean\Steam Games)
    Run Steam Mover and have it move the game to that location and you are done!
    Now go play the games you want!

  • File Upload works on windows to upload local file,but fails on unix

    I have jspx page to upload excel file from my pc and I used jdev 10.3.1.4 works fine on windows, but I deployed to weblogic 10.3. I got java.io.ioexception No such file or directory when I uploaded a excell file
    from my pc.Can you some one shed some lights on my head, Thank you.

    This is my jsp page:
    <html>
    <div id =mrf>
    <!--<%@ page contentType="text/html;charset=windows-1252"%>-->
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
    <bean:define id="myUploadForm" name="uploadForm" type="com.presentation.UploadForm" />
    <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
    function submitAction(action)
         document.uploadForm.actionName.value = action;
         document.uploadForm.submit();
    </script>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <html:form method="post" action="/Upload" enctype="multipart/form-data">
    <tr>
    <td align="left">
    <bean:message key="label.upload.file" />
    <html:file property="file" size="50"/>
    </td>
    </tr>
    <html:messages id="messageId" message="true" property="uploadMessage">
    <td class="message-context" align="left" colspan="7" width="100%">
    <bean:write name="messageId"/>
    </td>
    </html:messages>
    <tr>
    <td class="page-context" align="left" nowrap>
    <P>   <p>
    <html:submit styleId="button1"
    styleClass="inputbutton">
         <bean:message key="label.upload.button.submit"/>
    </html:submit>
    </td>
    </tr>
    <table>
    <logic:present name="createMessage">
    <h2><font color="red"/><bean:message key="msg.createOrder.errmsg"/></h2>
    <logic:iterate id="IR" name="createMessage">
    <tr>
    <td>
    <bean:write name="IR"/>
    </td>
    </tr>
    </logic:iterate>
    </logic:present>
    </table>
    <html:hidden property="actionName" value="start"/>
    </html:form>
    </table>
    </div>
    </html>
    My java bean (UploadAction.java):
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.lang.reflect.InvocationTargetException;
    import java.util.ArrayList;
    import java.util.List;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    import org.apache.struts.upload.FormFile;
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
              messages.clear(); //clear all messages and errors
    int loaded =0;
    List msgList = new ArrayList<String>();
              UploadForm uploadForm = (UploadForm)form;
    String actionName = uploadForm.getActionName();
    uploadForm.setActionName("");
    FormFile file = uploadForm.getFile();
    if(actionName.equalsIgnoreCase("create")){
    System.out.println("The actionName:" + actionName);
    this.executeCreate(mapping,form,request);
    // for first time after clicked Upload from main menu.
    if(file == null || file.getFileName()== null || file.getFileName().length()== 0){
    if(count > 0) {
    messages.add("uploadMessage", new ActionMessage("msg.upload.failed"));
    saveMessages(request, messages);
    count++;
    return (mapping.getInputForward());
         //the info in web.xml under <context-param>
    String filePath = getServlet().getServletContext().getInitParameter("oracle.adf.view.faces.UPLOAD_TEMP_DIR");
    System.out.println("The file name path:" + filePath);
         File folder = new File(filePath); //create the upload folder in client's local PC if not exists
         if(!folder.exists())
         folder.mkdir();
    String fileName = file.getFileName();
    if(fileName != null || fileName.length() >0){
         System.out.println("The file name:" + file.getFileName()+" has been craeted in:" +filePath);
    try { 
         File newFile = new File(filePath, fileName);
         if(!newFile.exists()){
         FileOutputStream fos = new FileOutputStream(newFile);
         fos.write(file.getFileData());
         fos.flush();
         fos.close();
         request.setAttribute("uploadedFilePath",newFile.getAbsoluteFile());
         request.setAttribute("uploadedFileName",newFile.getName());
    } catch (IOException e) {
    log.info(e.getMessage());
    log.error(e.getMessage());
    loaded =1; //uploaded successed.
    ParseExcelFile(filePath,fileName); ------------- fails here but it works on Windows XP with Jdev 10.1.3.5/OC4J.
    saveMessages(request, messages);
    return (mapping.getInputForward());
    public static void ParseExcelFile(String localdir, String filename) {
    FileInputStream fs = null;
    try {
    String strFile = localdir+filename;
    fs = new FileInputStream(new File(strFile));
    getContents(fs);
    } catch (IOException ie) {
    log.error(ie.getMessage(),ie);
    } catch (Exception xe) {
    log.error(xe.getMessage(),xe);
    }finally {
    try {
    fs.close();
    } catch (IOException e) {
    log.error(e.getMessage(),e);
    This log file from weblogic:
    <[ERROR        ] [FINLOGSYS] 1310903306264 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'-com.business.MrfBusinessDelegate.ParseExcelFile(MrfBusinessDelegate.java :753] >>* C:/tmp/MarsUploads/MinMax_R12_template.xls (No such file or directory)java.io.FileNotFoundException: C:/tmp/MarsUploads/MinMax_R12_template.xls (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at com.cablevision.materialRequest.business.MrfBusinessDelegate.ParseExcelFile(MrfBusinessDelegate.java:750)
    at com.cablevision.materialRequest.presentation.UploadAction.execute(UploadAction.java:133)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3241)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    *<<>
    Do I missing something ? help

  • Installing windows programs with a disk

    I have to use a program/software that is Windows only for a course I am taking.
    I want to set up Windows on my macbook pro (1 yr old)...
    My question is:
    Once I have windows installed, and running... if I put in this Windows program (disk), will it work like it would on a PC?
    Thanks,
    Clueless

    Once you have Windows installed and running, you will have a PC, so yes, it will work like a PC.
    For clarification, you will need to have your Windows running when you put in your disc. I have seen some people who thought that they only needed to install Boot Camp to have windows compatibility with their Mac, and they didn't understand why their Mac wouldn't load the CD they just put in the drive. They had loaded Boot Camp so to was supposed to support Windows now (in their mind).

  • Oxford Mercury series instruments : Works with NI-MAX but fails with Labview

    Hi,
      I am trying to interface an Oxford Instruments "Mercury Series" power supply for superconducting magnets, I am using Labview 2013 and an NI USB-GPIB-HS.
    The problem I have is the following:
    1.  After connecting the instruments I run NI-MAX (ver 14.0) to check that the instruments are recognized by the GPIB-bus. Everything goes fine, the instruments are detected and I can communicate with it by typing commands in the 488.2 communicator. Read and write both work fine.
    2. Then I try to write my own code in Labview to run the instrument.  The standard 488.2 commands Send/Recieve or GPIB-Write anf GPIB-Read do not work.
    There are other instruments on the same bus also - which work fine with both NI-MAX as well as my vi-s from Labview.  I have tried doing the "obvious" things
    like intialising the GPIB before sending any command and then do a Device Clear for the specific instruments before sending other commands.
    3. So the question is : What can be the reason for an instrument to respond correctly via NI-MAX but fail to do when addressed from Labview with essentially
    similar basic commands?
    I have tried tracing the origin of the errors via I/O trace (NI-spy), but they didn't help in locating the precise problem.
    Would be grateful if somebody could suggest an answer.
    Have other people faced this before?
    Thanks-
    Kanti

    The instruments are actually newer  (rather than an older version). You are correct that they need an extra "\n" after the command string - which I had provided.
    The command tryped in NIMAX was simply  "*IDN?\n"   in response to which  the instrument sends its identification string correctly. 
    All other commands also worked properly.
    I then tried the same in Labview using   "Send" and "Recieve". The Recieve generates the error.
    I am attaching the trace file (converted to txt) and the VI. Line 10-14 has the error.
    Thanks
    Attachments:
    test07.vi ‏12 KB
    NImaxCapture_test07.txt ‏5 KB

  • EJB archive passes ejbc compilation but fails deploy on WLS7

    I'm attempting to migrate several functional
    EJBs from WLS6.1 to WLS7.0. I've made the
    deployment descriptor changes and created an
    archive containing the EJBs. The ejbc compilation
    tool successfully processes the archive so long
    as I don't specify the -iiop option.
    However, the WLS7.0 server fails to deploy
    the archive. No messages or exceptions are
    provided. I've tried deployment both as an ear and jar file. Any clues or suggestions?

    Rob Woollen <[email protected]> wrote:
    ken wallis wrote:
    Rob Woollen <[email protected]> wrote:
    ken wallis wrote:
    I'm attempting to migrate several functional
    EJBs from WLS6.1 to WLS7.0. I've made the
    deployment descriptor changes and created an
    archive containing the EJBs. You actually don't need to change any descriptors to migrate from 6.x
    (or even 5.1) to 7.0. Just deploy the ejbs in the new server.
    Of course, many people will upgrade their descriptors to take advantage
    of new 7.0 options, but I'd first ensure your beans work without
    changing anything.I tried deploying the same archive on WLS 7.0 that I've already deployedto WLS
    6.1. It faired exactly the same as the previous version.
    The ejbc compilation
    tool successfully processes the archive so long
    as I don't specify the -iiop option.
    However, the WLS7.0 server fails to deploy
    the archive. No messages or exceptions are
    provided. I've tried deployment both as an ear and jar file. Anyclues or suggestions?
    Hmmm. That's odd. How are you deploying it, and how do you know it
    didn't deploy?
    I've copied the archive into the mydomain directory then used the Adminpages
    to select it for deployment. It works its way to a page stating thatits 'Activating'
    the archive and reports the start time. However, this process neverdisplays
    the end time or returns. Instead, the WLS server merely exits andthe Admin console
    suddenly displays the imfamous 'page not found' page.WLS should never just exit. It sounds like the JVM crashed. Are you
    using the JVM bundled with WLS? What platform are you on? Is there
    a
    core file or any *.log files left over from the jvm?Win 2000 w/ JDK 1.3.1_03 but I've not altered the WLS basic configuration so it
    should still be using its own.
    I attempted to redirect out and err to log files, but nothing gets captured and
    WLS leaves nothing that I've found. I even placed a 'pause' at the bottom of
    the start command file; the WLS window exitted without waiting for it.
    >
    You might also try just copying the jar/ear to the server's applications
    directory. I'd be interested to see if this works.
    I tried. The Admin server never starts.
    >
    >
    >>
    I've located the following error message in the mydomain\logs\wl-domain.log,although
    it provides no real information.
    <Sep 13, 2002 5:56:59 PM CDT> <Error> <Deployer> <CI069311> <myserver><ExecuteThread:
    '10' for queue: 'default'> <kernel identity> <> <149233> <Unexpectederror was
    encountered during the deployment process.>
    Incidentally, before I can attempt to restart the WLS, I have to manuallyremove
    the archive from the config.xml.

  • This program is well compiled but does not work.

    I would like to know why this program does not work properly:
    the idea is :
    1. the user introduces a text as a string
    2.the progam creates a file (with a FileOutputStream)
    3. then this file is encripted according to DES (using JCE, cipheroutputStream)
    4.the new filw is an encripte file, whose content is introduced in a string (with a FileInputStream)
    (gives no probles of compilation!!)
    (don know why it does not work)
    here goes the code:
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.io.*;
    import java.security.*;
    import javax.crypto.*;
    public class cuadro extends Applet{
         private TextArea area1 =new TextArea(5,50);
         private TextArea area2 =new TextArea(5,50);
         private Button encriptar=new Button("encriptar");
         private Button decriptar=new Button("decriptar");
         public cuadro(){
              layoutApplet();
              encriptar.addActionListener(new ButtonHandler());
              decriptar.addActionListener(new ButtonHandler());
              resize(400,400);
              private void layoutApplet(){
              Panel keyPanel = new Panel();
              keyPanel.add(encriptar);
              keyPanel.add(decriptar);
              Panel textPanel = new Panel();
              Panel texto1 = new Panel();
              Panel texto2 = new Panel();
              texto1.add(new Label("               plain text"));
              texto1.add(area1);
              texto2.add(new Label("               cipher text"));
              texto2.add(area2);
              textPanel.setLayout(new GridLayout(2,1));
              textPanel.add(texto1);
              textPanel.add(texto2);
              setLayout(new BorderLayout());
              add("North", keyPanel);
              add("Center", textPanel);
              public static String encriptar(String text1){
              //generar una clave
              SecretKey clave=null;
              String text2="";
              try{
              FileOutputStream fs =new FileOutputStream ("c:/javasoft/ti.txt");
              DataOutputStream es= new DataOutputStream(fs);
                   for(int i=0;i<text1.length();++i){
                        int j=text1.charAt(i);
                        es.write(j);
                   es.close();
              }catch(IOException e){
                   System.out.println("no funciona escritura");
              }catch(SecurityException e){
                   System.out.println("el fichero existe pero es un directorio");
              try{
                   //existe archivo DESkey.ser?
                   ObjectInputStream claveFich =new ObjectInputStream(new FileInputStream ("DESKey.ser"));
                   clave = (SecretKey) claveFich.readObject();
                   claveFich.close();
              }catch(FileNotFoundException e){
                   System.out.println("creando DESkey.ser");
                   //si no, generar generar y guardar clave nueva
              try{
                   KeyGenerator claveGen = KeyGenerator.getInstance("DES");
                   clave= claveGen.generateKey();
                   ObjectOutputStream claveFich = new ObjectOutputStream(new FileOutputStream("DESKey.ser"));
                   claveFich.writeObject(clave);
                   claveFich.close();
              }catch(NoSuchAlgorithmException ex){
                   System.out.println("DES key Generator no encontrado.");
                   System.exit(0);
              }catch(IOException ex){
                   System.out.println("error al salvar la clave");
                   System.exit(0);
         }catch(Exception e){
              System.out.println("error leyendo clave");
              System.exit(0);
         //crear una cifra
         Cipher cifra = null;
         try{
              cifra= Cipher.getInstance("DES/ECB/PKCS5Padding");
              cifra.init(Cipher.ENCRYPT_MODE,clave);
         }catch(InvalidKeyException e){
              System.out.println("clave no valida");
              System.exit(0);
         }catch(Exception e){
              System.out.println("error creando cifra");
              System.exit(0);
         //leer y encriptar el archivo
         try{
              DataInputStream in = new DataInputStream(new FileInputStream("c:/javasoft/ti.txt"));
              CipherOutputStream out = new CipherOutputStream(new DataOutputStream(new FileOutputStream("c:/javasoft/t.txt")),cifra);
              int i;
              do{
                   i=in.read();
                   if(i!=-1) out.write(i);
              }while (i!=-1);
              in.close();
              out.close();
         }catch(IOException e){
              System.out.println("error en lectura y encriptacion");
              System.exit(0);
         try{
              FileInputStream fe=new FileInputStream("c:/javasoft/t.txt");
              DataInputStream le =new DataInputStream(fe);
                   int i;
                   char c;
                   do{
                        i=le.read();
                        c= (char)i;
                        if(i!=-1){
                        text2 += text2.valueOf(c);
                   }while(i!=-1);
                        le.close();
              /*}catch(FileNotFoundException e){
                   System.out.println("fichero no encontrado");
                   System.exit(0);
              }catch(ClassNotFoundException e){
                   System.out.println("clase no encontrada");
                   System.exit(0);
              */}catch(IOException e){
                   System.out.println("error e/s");
                   System.exit(0);
              return text2;
         class ButtonHandler implements ActionListener{
         public void actionPerformed(ActionEvent e){
              try{
              if (e.getActionCommand().equals(encriptar.getLabel()))
                   //     area2.setText(t1)
                   area2.setText(encriptar(area1.getText()));
                   //area2.setText("escribe algo");
                   else if (e.getActionCommand().equals(decriptar.getLabel()))
                        System.out.println("esto es decriptar");
                        //area2.setText("hola");
         }catch(Exception ex){
              System.out.println("error en motor de encriptacion");
                   //else System.out.println("no coge el boton encriptado/decript");

    If you don't require your code to run as an applet, you will probably get more mileage from refactoring it to run as an application.
    As sudha_mp implied, an unsigned applet will fail on the line
    FileInputStream fe=new FileInputStream("c:/javasoft/t.txt");
    due to security restrictions. (Which, incidentally, are there for a very good reason)

  • Windows Programming with Java??? Is it possible???

    I have a small request from a client (Windows User) who wants a really simple POP3 email checker. I basically need to achieve the same thing that many email clients do, where they show some sort of symbol in the System tray when there is new email. I, however want to do this without the actual email client. All I want is the checker. This program will not download the email, gather information or anything. It will simply check the POP3 account and let the user know if there is new email.
    1.Can I get an icon to appear in the system tray and have a program that runs in the background, simply checking the POP3 account for new mail???
    2.If it is possible to interact with windows, then how is it done??? If this is too large of a question and you know of some resources that can answer this question for me, that will do.
    3.Is it even possible to have Java programs run in the background without appearing in the task bar??
    4. Am I trying to do something with Java that it just plain cannot do???

    Another really god option is to use the coroutine package from http://www.nevaobject.com/java/index.htm. This allows you invoke COM and Windows API's without having to write the JNI yourself. Its about $695 for a site-wide development license and has no binary distribution costs. A nice, cheap solution to spending lots of hours doing it youself. From the few things I tinkered with, it really does a great job too, but I have not deployed in a real production environment.
    Chuck

  • Recovering Windows 7 with advanced format drive failes without SP1

    I have a dv6-2150us and the hard drive failed.  I acquired a new drive and ran recovery disks.  Unfortunately many features do not work correctly on an advanced format drive in Windows 7 without SP1.  The key feature is Windows update does not work which prevents me from upgrading to SP1.  I tried many fixes to Windows update and downloaded SP1 from Microsoft's site, but they all fail to install because update fails to run.
    Any advice?  I tried to install a fresh ISO of Windows 7 SP1 which works fine, but I would rather not pay for an OS I already own.  My Windows license key doesn't work with the Windows 7 SP1 install.
    This question was solved.
    View Solution.

    dv6guy,
    Did the HP Recovery Discs actually fail to install??? Does the recovered install fail to boot completely or correctly. Or does the recovered install not only have isues with Windows update and/or other software???
    If the recovery completes and you can enter Windows please try to use ABR Beta With Windows 7 Support to backup the installed HP OEM SLP key and HP OEM SLP certificate. Once you have these, save the complete ABR folder to an external location, like a USB stick. Next, install Windows 7 SP1 from your fresh ISO. Do not enter a product key when requested and do not allow Windows to try to activate the computer. Now, restore the key and certificate to your fresh Windows 7 SP1 install. Verify that Windows is activated. Post back and let us know if this succeeded or failed
    Please see this forum thread entitled How to Install Windows 7 Without the Disc for more on the subject.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Program with Dynamic selection but no LDB is used

    Hello Friends,
    Can any one tell me the any standard program name, In which Dynamic selection (Free Selection) is used but LDB(Logical Data Base) is not used.
    Lalit Soni

    Not possoble with out LDB, it uses selection-screen dynamic selections for table <tabname> in ldb, one alternative is using the screen table to hide selection.
    E,.g
        loop at screen.
          if screen-group1 = 'FS1' .
            screen-active = 1.
            modify screen.
          endif.
        endloop.

  • I need to run Adobe Avtive X on my 64 bit Windows System with Mozilla Firefox but do not seem to be able to download one that works

    I use Firefox on a 64 bit Windows system. I need to use Adobe Active x but cannot get a download to work. Any suggestions

    It is working for me if I open a second Firefox instance with its own profile by starting Firefox with the -no-remote command line switch.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Bypassing_the_Profile_Manager
    Use the -no-remote command line switch to open another Firefox instance with its own profile and to run different Firefox instances simultaneously.
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • How can I transfer files from one external HD (WD My Passport) to another external HD (Seagate Backup Plus)?  WD drive was improperly ejected and Finder no longer recognizes it.  Tried fixing with Disk Utility but failed.

    How can I transfer files from one external HD (WD My Passport 2T) to another external HD (Seagate Backup Plus 2T)?  WD drive was improperly ejected (although we did tell it to eject) and now Finder no longer recognizes it.   Using MacBook Pro and I just upgraded to Yosemite before this happened. Was told at Apple Store to use Disk Utility to repartition, but it failed.  It says to backup files and restore.  But how do I backup files?  Or would appreciate any other suggestions to repair drive.

    You may drag & drop between external hds. 
    Should you run into trouble.
    Take the exernal drive appart.  Take out the harddrive.  Try reading the data via a usb adapter. Put a household finan on the hd.
    http://www.cablewholesale.com/products/usb-firewire/usb-2.0-products/product-40u   2-01000.php?utm_source=Nextag&utm_medium=cpc&zmam=54972865&zmas=1&zmac=4&zmap=4 4 77

Maybe you are looking for