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...
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...
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...
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...
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...
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...
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...
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.