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.
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...
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.