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...
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...
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...
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...
>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...
>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...
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...
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
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...
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...
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.
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...
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...
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.
...As Integer
Public BytesPerSector As Integer
Public ReadOnly Property DiskSize() As Long
Get
Return Cylinders * CLng(TracksPerCylinder) * CLng(SectorsPerTrack) * CLng(BytesPerSector)
End Get
End Property
End Structure
Public Enum Media_Type As Integer...
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...
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...
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.
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...
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?
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.