Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. brianon

    Searching for existence of at least one row ... quickest method ?

    Hi, I am writing a Stored Procedure that must delete an entry from table A. However, Table A's key (A_id) is a foreign key in Table B. Whats the best way to check if the value for A_id I am to find and delete from Table A, exists in Table B ? I was thinking an EXISTS would work but that would...
  2. brianon

    StringTokenizer problem...

    thanks. got it working with split().
  3. brianon

    StringTokenizer problem...

    Sorry...you can ignore the ... parseParameter(st); ...line. Was just trying somehitng out. Don't know how to edit my post :(
  4. brianon

    StringTokenizer problem...

    Hi, I'm trying to parse a string using coma as the delimeter... public ParseInputString(String inputString) { java.util.StringTokenizer st = new java.util.StringTokenizer(inputString, ","); parseParameter(st); while (st.hasMoreTokens()) {...
  5. brianon

    Java compilation error (XMLbeans/XML)

    Managed to get it to run ... java -cp $XMLBEANS_HOME/lib/xbean.jar:$XMLBEANS_HOME/lib/jsr173_api.jar:testSchema.jar:. HelloXMLBeans
  6. brianon

    Java compilation error (XMLbeans/XML)

    I fixed it (at least it comppiles) :) eventElement.setName(EventName.GPRS); However, when I run it I now get the following... java HelloXMLBeans.java Exception in thread "main" java.lang.NoClassDefFoundError: HelloXMLBeans/java ls of the current dir is... ls HelloXMLBeans.class...
  7. brianon

    Java compilation error (XMLbeans/XML)

    Thats where the problem is. I got some example code from dev2bea.bea.com and for setting the enumerated types it uses something like this. I thought from their example that... eventElement.setEventName(Event.EventName.GPRS); was correct tp selct the <xs:enumeration value="GPRS"/> When...
  8. brianon

    Java compilation error (XMLbeans/XML)

    Hi, I'm new to java and am trying to generate an XML instance doc from a schema using XMLbeans. Just trying to do this as basic as possible to start with before moving onto a much more complex schema. I can't get this to compile... My java code is... import org.apache.xmlbeans.*; import...
  9. brianon

    Popualting Schema to generate random XML

    JontyMC, I downloaded XMLSpy yesterday so am very new to it. Could you give me some pointers as to how to go about this ? Help would be much appreciated. Brian.
  10. brianon

    Popualting Schema to generate random XML

    Hi, I have an XML Schema. I can create a XML doc using this schema. What I need to do is figure out a way to populate my XML doc with random values. Is there any way to do this other than to write some process (C++ or Java) to parse the schema and generate an XML doc based on the schema. I...
  11. brianon

    Shared Library - Serious(ly Strange) Problem

    Hi, I created a shared library a while ago and its been running fine for months. Now suddenly it has stopped working, but only on one machine (Sun Ultra 10) ! The C Shared Library is being called from some C++ code and had been working fine until tested on this one particular machine. Nothing...
  12. brianon

    ltoa what include do i need to use?

    stdlib.h should do it.
  13. brianon

    '__buitin_va_list undeclared' compile error

    Hi, I'm using gcc 2.95.3 and get the following error on compilation... c++ -c -g -D__SOLARIS__ -I. -I../../include -o debug.o debug.C debug.C: In function `void LogMessage(int, char *, ...)': debug.C:117: `__builtin_va_alist' undeclared (first use this function) debug.C:117: (Each undeclared...
  14. brianon

    How to read images from a tape device ??

    Hi, I was wondering if anyone knew what I need to do to read a Tape device used for backups ? I'm using 'dd' to make the backup but must read the tape before each backup to forward the tape to the end of the last backup to make sure I don't overwrite any previous backups. you're help would be...
  15. brianon

    sleep() in C++

    sorry... the #define was a typo. I posted again properly and it turns out it was teh version of gcc I was using(3.0.3). Thanks, Brian.
  16. brianon

    sleep() in C++

    I was using gnu gcc ver 3.0.3 and was just told that its not the best version ever so I got my hands on gnu gcc ver 2.95.3 and that seems to have solved the problem. Very strange indeed. Thanks for your help. Cheer, Brian.
  17. brianon

    sleep() in C++

    c++ -c -g -D__SOLARIS__ ............
  18. brianon

    sleep() in C++

    I'm already including <sdtlib.h> Brian.
  19. brianon

    sleep() in C++

    I just trid it now but it gives same error. 'usleep' undeclared !? Could it be compiler flags ? Brian.
  20. brianon

    sleep() in C++

    yes and yes :) its very strange alright as I can't get anything done with this stuff until I try and get it all to compile. Any more ideas ? Cheers, Brian.

Part and Inventory Search

Back
Top