Search results for query: *

  1. clweeks

    Image.SaveAdd => "a generic error occurred in GDI+"

    I've posted this on an MSDN forum also, but I figure casting a wider net is always good and I can report back here if a solution comes from there and vice versa. So, I'm trying to read through a directory of tiff images, some are single and some are multi-page -- all should be group-4...
  2. clweeks

    Group 4 compression tif

    Uh, thanks. You know, I only post here after I've tried all the obvious stuff and Googled around and checked my books, yadda, yadda. It seems like my questions should require esoteric answers, not poke-you-in-the-eye obvious ones. ;-)
  3. clweeks

    Group 4 compression tif

    This routine, returns 96 dpi image when a 200 dpi image is passed in. Anyone know why? I'm not really grokking what's going on.
  4. clweeks

    About capturing txt files

    I didn't load your code to try, but I think you just need to instantiate watchfile like you do watchfolder. Add watchfile = New System.IO.FileSystemWatcher() no?
  5. clweeks

    measuring elapsed time

    I don't really get the question, I think. But I do the following in some apps: Dim startTime, endTime As Date startTime = Now 'when you want the 'clock' to start 'do stuff here endTime = Now MsgBox("Run time was: " & (endTime - startTime).ToString)
  6. clweeks

    process could not access the file...

    See, I knew it was a brain-fart. Thanks a ton, John.
  7. clweeks

    process could not access the file...

    OK, so it's just not the code that I posted above. That code, extracted into test applications always works. But I am still confused about what's happening. Those file move subs are called from a form event right after another sub that does some GDI+ stuff as well as text logging. I think...
  8. clweeks

    process could not access the file...

    Hi, I have what must be a simple problem and I just need an extra pair of eyes. I'm looping through each FileInfo in a DirectoryInfo.GetFiles and then moving them to a new location. The app moves all of them but the last, at which point it barfs out a "process could not access the file...
  9. clweeks

    problems synchronizing XML file and Dataset

    OK, well, by reading and hacking at every possible combination of methods in every order (well, not really, but you get the idea) I've gotten to my next hurdle. I used the xsd.exe to do something -- convert my schema to a "Partial Public Class," I guess. So now I'm declaring: Private mainXML...
  10. clweeks

    Windows Based Database Program

    I think everyone recommends parameterizing your query variables instead of building queries up from raw strings and literals. My impression is that this is largely for the purpose of combatting SQL injections. But it's not much extra effort. I don't guess that executable script code can be...
  11. clweeks

    DBNull Problem

    Oh, misunderstanding. It's returning the first non-null value from the list of parameters that you've passed in. SELECT productName, COALESCE(mostRecentSalePrice, msrp, 2 * purchasePrice, 100) AS bestPrice FROM vintageLPs will return a result for every record in the table and return some...
  12. clweeks

    Display Control to DB

    I think you need to provide more of a spec. What connection do you see between the display control and the database insertion? Is there something wrong with just using a label? If you're going to accumulate several of these insertions and want to display them all, a listbox or datagridview or...
  13. clweeks

    Best Performance / Speed way of loading data

    I'm not groking enough of what you're doing to offer advice. It sounds like you're selecting all data instead of using clever queries and then processing it in your app, is that the gist? How do you feel about the performance that you currently have? How much will the database scale upward?
  14. clweeks

    DBNull Problem

    Pass a number of terms seperated by commas into COALESCE() and it will return the first non-null value. The most common thing that I've seen goes like this: SELECT key, COALESCE(datum1, 0), COALESCE(datum2, 0) FROM table or SELECT lName, fName, COALESCE(midIn, "") FROM table...
  15. clweeks

    problems synchronizing XML file and Dataset

    Hi all, I'm doinking with XML for the first time and could use some help. I'm generating two XML filesin one application with the following code and essentially a duplicate of this code with a different datatable and path: Dim XMLs AsNew StreamWriter(path & "\" & fn)...
  16. clweeks

    DBNull Problem

    I'm no expert, but I'd take the problem back further and design the database with no nullable columns. If I didn't have that option, I'd use the COALESCE function in my query to see to it that my grid never got a DBNULL.
  17. clweeks

    Picturebox with multi-page tiff problem

    (Code added above.)
  18. clweeks

    Picturebox with multi-page tiff problem

    Hi, I'm writing an application that displays the pages of a multi-page tiff as the user arrows left and right through them. I've got all the basics right and it works under some circumstances. But, for certain frames of the multi-page tiff, the Image.SelectActiveFrame(FrameDimension, Integer)...
Back
Top