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. cwinans

    Passing structs between C# and C

    I can also do without having to resort to unsafe code. [wink] -- Casey Winans
  2. cwinans

    Passing structs between C# and C

    I've found a work-around... at least I'm going to try it. I will be using an IntPtr in place of trying to use the object struct. I can do this because I don't have to access anything within the object struct directly. The c library has a couple of functions to get the ObjectID and ClassID for...
  3. cwinans

    foreach with a string and Hashtable

    I'm pretty sure the error is with this line: foreach (string s in linetext) What is essentially happening is you are moving through a collection of chars not strings (strings are just an array of characters). The following code would be correct, but not what you are looking for: foreach (char...
  4. cwinans

    Passing structs between C# and C

    I'm currently working on a language binding for the Y Window system. I'm attempting to pass a struct from my C# library to a C library. I'm very new to this but I have considerable experience with C#. Here is the struct defined in C: struct object { int oid, cid; struct object *next...
  5. cwinans

    Oracle Timestamp to Sql Server Datetime conversion

    I'm importing data from an Oracle database into Sql Server. Everything is going smoothly except oracle table timestamp columns. I've made the conversion from timestamp to char using TO_CHAR(field_name,'MM/DD/YYYY HH:MI:SS PM') which puts in in the sql server format. Am I doing something wrong...
  6. cwinans

    Advice for reading BIG files please.

    I think you are confused on how the BufferedReader works... the buffer deals with the current line that is being read. Your file may be large but I'm sure that each line is not an insane amount of characters. This class should work for you without a hitch. Have you tried implementing this class...
  7. cwinans

    Number Format Exception

    For the most part when I get that exception the value I'm apparently passing to the parse methods turns out to be a null value... this is the first thing you should explicitly check for. I hope this helped! ;-) - Casey Winans
  8. cwinans

    executing sql server stored procs in php

    Can anyone give me a nice example of how to execute sql server stored procedures in php... I've searched everywhere I could think of and found nothing? Maybe instead of using the built in mssql* functions someone knows how to do it using the generic odbc functions? Is it even possible? I hope...
  9. cwinans

    javac.Hello.java > a.txt Is it possible ?

    I just tried it and it didn't work for me either.... it created the text file for me but still spit the error messages to the console. So I'm baffled too. I hope this helped! ;-) - Casey Winans
  10. cwinans

    Oberser pattern and MVC problem

    I've only skimmed these questions and responses, but I would like to suggest a different approach. You are using the Observer interface and Observable class. These are great ways to implement an MVC architecture in a simple application. You have numerous things happened from one user action...
  11. cwinans

    I'm currently developing a version

    Thank you both for your help. I have already figured it out using the MouseListener.. but now someone else in the future will have good examples to look at. Thanks a bunch. I'll put a link to the game in another post when I get it done. It's due the middle of December and I love to program so I...
  12. cwinans

    I'm currently developing a version

    I'm currently developing a version of MineSweeper in Java for my Special Topics course at Penn State. I've seen lots of versions out there... none utilizing the full benefits of Java and it's object oriented abilities. I've written the underlying model for a truly object-oriented version. I'm...
  13. cwinans

    How to manipulate dateformat

    Yes. Try using DateFormat or SimpleDateFormat. They can both be found in the 'java.text' package. I hope this helped! ;-) - Casey Winans
  14. cwinans

    getting thru a proxy

    I am behind a proxy at work. I found an example to get through it but it doesn't work. It was just a matter of setting a couple properties such as: Properties props = System.getProperties(); props.put("http.proxyHost", "http-proxy.trans.ge.com")...
  15. cwinans

    Is there a Javascript (JScript) API available?

    Is there a Javascript (JScript) API available for manipulating PDF files in a web browser such as searching for text within a pdf file being displayed in Internet Explorer? I hope this helped! ;-) - Casey Winans
  16. cwinans

    Finding Text In A PDF From An External Source (IE)

    I was recently given the challenge to find a way to find text in a pdf file from out side the pdf viewer. For example, there is a framed web page, on the left is a list of "bookmarks" which are all links from an html page. The right frame is loaded with an PDF file. My employer wishs...
  17. cwinans

    Replacing Line Breaks with BR tags

    I'm not really quite sure but try this methodology. Try replacing &quot;\n&quot; with &quot;<BR>&quot; As far as String documentation goes, visit this site for the Java API documentation. String resides in the &quot;java.lang&quot; package. http://java.sun.com/j2se/1.3/docs/api/index.html...
  18. cwinans

    Free JSP space needed

    I use www.mycgiserver.com It is not too bad. I don't know of any others as of yet. I hope this helped! ;-) - Casey Winans
  19. cwinans

    oracle Driver

    Also... you can replace 'thin' with 'oci' depending on what your use is ... I'm not real adept at what the differences are but you can find lots of info on them at http://technet.oracle.com I hope this helped! ;-) - Casey Winans
  20. cwinans

    oracle Driver

    Driver : 'oracle.jdbc.driver.OracleDriver' Url : 'jdbc:oracle:thin:@ip_address:port:database' ip_address is ip of oracle box port is the port the oracle dbms listens on (1521, 1526, etc) database is the name of the database I hope this helped! ;-) - Casey Winans

Part and Inventory Search

Back
Top