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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cwinans

  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

Part and Inventory Search

Back
Top