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: *

  • Users: Jasen
  • Order by date
  1. Jasen

    Proper way to implement IUnknown?

    I think part of the problem is I've found multiple definitions of the QueryInterface method, depending what site you look at. MSDN lists one in the documentation for the Notify classes (network device drivers), pinvoke.net has another, and in VS if I do a Marshal.QueryInterface() it shows...
  2. Jasen

    Proper way to implement IUnknown?

    I'm working on someone else's code, which currently works, but I need to add some functionality. It uses CoCreateInstance to instantiate some COM objects which seem to implement the IUnknown interface, but QueryInterface is not accessible. I'm not as familiar with C# as other languages, so...
  3. Jasen

    weird issue with Windows locking up on a file

    Definitely not a new implementation. We used to house this on a different Win7 box, but upgraded to this Precision a few months ago. The problem started with the new workstation. Most of these are either batch files or custom installer packages we put together. We can run them dozens of...
  4. Jasen

    weird issue with Windows locking up on a file

    We have a Win7 box setup as an unofficial file server, mostly just to hold install scripts and packages. Very low volume, and only a handful of us use it. The main share is on a RAID0, basic Intel SATA raid card that came in the Dell Precision. The problem is, every once in a while it will...
  5. Jasen

    What is it all worth.?

    >Years ago, I wrote a complex program to control a machine that took me 2 months to do and I charged them $20,000. They were overjoyed because, as I found out later, their nearest other price from the "big boys" was $100,000! I was gnashing my teeth that I didn't charge more. Let me guess...
  6. Jasen

    Best modern way to automatically email reports

    >In what way do you think cdosys.dll differs from system.dll as regards being an 'external' dll? That was perhaps worded clumsily. My point being that framework dlls are going to be supported for years to come, the future of legacy COM support is dubious. Which I suppose is irrelevant if...
  7. Jasen

    What is it all worth.?

    It's one of those things that doesn't have a simple answer. When I do freelance work (regardless of language or platform requested) I might choose to go with an hourly rate or a flat charge for the end product, depending how much original work is needed. I have a codebase of previous work to...
  8. Jasen

    Newbie trying something in VBS

    Sounds like you just need to use Inputbox. Such as: strIP = InputBox("Enter the IP of the server:") If Len(strIP) > 0 Then strFileURL = "http://" & strIP & "/subfolder1/subfolder2/the_act..." Else MsgBox "You didn't enter an IP" 'Exit here, or do some other error checking End If
  9. Jasen

    Best modern way to automatically email reports

    If you want to use a modern method, one that will be forward compatible for more years than using CDO objects (which admitted are ubiquitous and simple to use still), is to use the .NET framework. There are built-in email objects to do exactly what you want, without referring to any external...
  10. Jasen

    Create Access database file (accdb) from VB.Net

    It's a bit unclear what you're trying to do. Create a new, empty .accdb file programmatically? If so, off the top of my head, there's two methods I'd try first: Instantiate an Access process and throw VBA macro commands at it to open and save a new DB file, or embed a copy of an empty .accdb...
  11. Jasen

    Excel VB 2010

    Ah, that makes sense then. I was going by what the Intellisense was reporting as the signature for the rows() object. I keep forgetting how limited the VBA version is compared to VS.
  12. Jasen

    Fax Error "80070483" and File Extension Associations

    I can't imagine that 2012 would remove the default association for .txt files? (Although I don't have any accessible to check on) Since file type associations are maintained as simple registry entries in the user hive, you could also add a quick routine in the app to ensure those keys exist...
  13. Jasen

    Excel VB 2010

    Your usage of "Rows()" is incorrect. It expects an integer, not a string with a colon in it. I'm really not even sure what you're trying to do with that line, as the input you give will look like "1:1" or "25:25". Depending what you're trying to do there, you might be better off using the...
  14. Jasen

    For Each Statement doesn't access all controls

    The problem with the original code was that "pb.Controls" is a collection. You want to avoid modifying a collection as you're walking through it in a for/each loop or you end up with unexpected results, as you saw.
  15. Jasen

    Using DeviceIOControl to get disk geometry

    I'm using the p/invoke API calls for "CreateFile" and "DeviceIOControl" in a small program that creates a disk image. As the code stands, it runs without errors, I can open the file handle (verified by reading data from it), however the call to the deviceiocontrol function to grab disk geometry...
  16. Jasen

    Unique Computer ID

    As software dev and an end user, I hate these protection schemes on consumer level products. If I have to contact the company every time I change a component on my computer or reinstall Windows, I'd just rather not use the product. There's always an alternative product that does the same job...
  17. Jasen

    I stink @ arrays

    An array needs to be dimensioned--given a size--before you can access an index inside of it. They start out empty if you declare it like such: Dim FileArray() as String Or you can declare it with a fixed size if you know exactly how many indexes you need: Dim FileArray(10) as String If you...
  18. Jasen

    Editing code no longer takes effect in application...VB 2008 express

    Are you compiling the project as debug or release... this will send the output to different directories under /bin/. You might be compiling it one way, but looking in the other directory.
  19. Jasen

    setting the "vbTab" width (or space)

    I guess I was getting at bbuk's point--you don't need to alter the tab size, you merely need to set fixed tab stops within the richtextbox. However, even those aren't always reliable with variable-width fonts, so I would still suggest fixed-width any time exact visual spacing or alignment is a...
  20. Jasen

    setting the "vbTab" width (or space)

    In terms of performance, and time to develop, what's the benefit of using API calls to alter tab size, as opposed to just defining your own constants or structs to insert line space?

Part and Inventory Search

Back
Top