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 TouchToneTommy 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
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. Jasen

    How to find all the table adapters on a form?

    It seems bizarre to me that this is so difficult. You can iterate the controls collection and find things, you can iterate me.components.components, but nowhere can I find where a form keeps a collection of its early-bound table adapters. When you add them in at design time and bind them to a...
  5. Jasen

    winsock--seems to be sending binary data

    I have a very simple bit of code that instantiates a winsock object, opens a connection to port 9100, sends a string of ZPL code (zebra printer language), and quits. It works perfectly in VB. That same code ported to VBA does not work. I setup a program to act as a fake destination printer so...
  6. Jasen

    How to specify domain login in Windows Mobile?

    I have a very simple WM5 .NET app that does a quick check to a UNC path for a file, using Directory.GetLastWriteTime(). This works fine, however with the caveat that the device pops up a domain login. Some of the users running this may not have a domain login to use, and regardless it's...
  7. Jasen

    Domain authentication in Windows Mobile

    All I need to do is be able to take a name/password and authenticate with the domain that they are valid. I don't need to access any network resources or anything else. My last attempt was by adding a reference to system.directoryservices.dll and instantiating a DirectoryEntry object with the...
  8. Jasen

    How can I speed up queries to this table?

    I have a table storing hourly production counts from multiple heads on multiple machines on multiple lines. So it gets huge very fast. 10-25 million records. The primary key for the table consists of 7 columns which define exactly which head/machine/line/etc and the timestamp. There 3 more...
  9. Jasen

    DTS: not allowed to create a loop?

    As the title says. I'm trying to set it up so that if this one step of my process fails, it goes to a step that pauses for a couple minutes, then goes back to a previous step. It doesn't like this at all, it refuses to run past the first step now. Are you not allowed to do this?
  10. Jasen

    tracing a runaway SQL process

    On the same server where somebody had the bright idea to build their production database inside Master, I'm finding that the sqlservr process will start to eat up increasing amounts of CPU until the box eventually becomes unusable. They've been restarting it a couple times a week because of...
  11. Jasen

    perfmon: missing objects to monitor

    I need to do some monitoring on a SQL server that's eating up CPU. But perfmon is missing the "thread" and "process" objects. Is there a way to add them in here? Specifically, I need to see thread/%_processor_time to identify which threads in the SQL instance are causing the problem, so I can...
  12. Jasen

    Ouch.. master DB question

    I was asked to look at a SQL server at a remote site that's been acting up and bogged down. What I found was that they had built their main production database into the Master DB. So this thing is continuously logging production data into tables in Master. I about cried. What I'm asking is...
  13. Jasen

    workaround for a public array in a class?

    Since VB won't allow me to make an array public, is there another way to do this? I know for UDT's I just make the UDT it's own class module, and then I can make it a public member in another class. (Although I still think that's stupid too) But I need to expose a public array. Is there a...
  14. Jasen

    where can I find a list of all dynamic addresses out there?

    This isn't completely Sendmail related, but I ask here because I need it for my sendmail server. The title is probably confusing, so let me exlain. I know that many ISP's reject all mail that comes from dynamic/dhcp ranges. Apparenly they know which IP's say Comcast uses for it's cable...
  15. Jasen

    how to convert a varchar "hex" value

    The title probably makes little sense. I have a varchar that represents a hex value. I need to convert that to an int, then to it's character value. As in CHAR(CONVERT(int,@myhexnumber)) How do I tell SQL that my varchar is already a varbinary, without converting or casting it? When I do...
  16. Jasen

    Other methods to tell if array has been allocated yet?

    Right now I use an error trapping trick to do it, like this: Public Function TestUBound(myArray As Variant) As Long On Error Resume Next Dim size As Long size = UBound(myArray) If Err = 9 Then TestUBound = -1 Else TestUBound = size End If End Function But...
  17. Jasen

    Most efficient use of ADO when looping?

    I have a program, written as a service, that periodically opens all the files in a specific directoy, parses them out and sends the results to a stored procedure (SQL server is localhost) to be processed and stored away. Then it deletes the file and moves to the next. I've tried it a couple...
  18. Jasen

    An alternative to "addressof"?

    I'm working with a program that uses a VBA type scripting language at the moment. It has most of the functionality of normal VB, but is definitely missing many things. I would liken it to VB4. So, it does not support the "addressof" keyword. I'm trying to use an API call (it does support...
  19. Jasen

    Need a little help converting some C typedefs to VB

    Let me preface by saying I know very little about C++. What I'm trying to do is access an API in VB, but only have a C++ example to go by. Confusing to say the least. So I'm attempting to recreate the API call, and need to define some new types to do so. Not as straight forward as I thought...
  20. Jasen

    Is there a trick to passing a control as a function argument?

    So, I have a function to move controls, such as: private function MoveMe(byref obj as Frame) as boolean obj.Left = 0 etc, etc I've tried multiple ways of passing in my frame name, but nothing works. I get type mismatch error. I figured just something like: MoveMe(Frame1) would work, and...

Part and Inventory Search

Back
Top