in the windows SDK there is this file residing in the Lib-directory. Is it possible to use this file with VB6? Google found nothing about it.
If not, in which language (Excep c++) can I use it?
resp. for what is it good for (yes, I know .net winforms)
Thanks regards
Oops
That file provides the COM interface information for the .NET objects that are exposed via COM interop. You can't use it directly, as it only provides the interface information.
Related
How do you refer to the IsolatedStorage folder in VB6?
You could probably do it by creating a .NET class library that accesses IsolatedStorage and then exposing the resulting assembly as a COM library through the interop layer.
Here's an MSDN article that might help: http://msdn.microsoft.com/en-us/library/zsfww439(v=vs.71).aspx
Isolated Storage is called "isolated", because it can only be accessed by the owning software, which as far as I know, must be a .NET based software.
Because VB6 isn't .NET Based, I don't think that this is possible at all.
Is it possible (using one of the server side implementations of javascript .. see http://www.nakedjavascript.com/getting-started-55) to instantiate a COM object and invoke methods on it?
There is node-win32ole (npm install win32ole).
That depends on which server-side implementation you’re using.
When using ASP/JS (or any other framework using Microsoft’s Windows Scripting engine), that’s not a problem using the ActiveXObject constructor.
When using JSDB, you can use the ActiveX constructor.
Node.js doesn’t really work on Windows, only thru Cygwin, so ActiveX probably won’t be supported.
I have no idea how easy or difficult it would be to access COM objects from SpiderMonkey, V8 or SquirrelFish directly. They have C/C++ interfaces — and are open source, so if you know your way in the language, you could probably add it.
I'm a Java developer, so please excuse my ignorance.
I want to create a shortcut to an executable, e.g., in the user's autostart or send-to folder (I don't want an installer to do that, because the installer usually is run by an administrator). What API (C preferred) I could use for that task (maybe using JNA)? Thanks in advance.
As #Hans indicated, it requires COM (via ShellLinkObject or WScript.Shell). In Java you can call COM objects using a Java to COM bridge. There are a few available, ranging from free to commercial. A couple that I know of are:
Java2COM
JACOB
JCOM
It requires using COM, ShellLinkObject from shell32.dll. No idea what that takes in Java, but you'll find C# code in my answer in this thread.
Does Azure allow managed to native interop without the use of P/Invoke. I have a c header file and dll which I plan to wrap in a managed c++ dll, and then wrap that in a c# wrapper for ease of use.
Anyways, the header file is to complicated to use with P/Invoke, and its much easier to use the managed c++ wrapper, however I don't know if this is possible to do in Azure or any other cloud platform such as EC2 ?
Any ideas ?
Azure does allow native calls, check on this link
But it has to be 64 bit only.
Are DIA SDK & DbgEng (Not the DbgHelp) both COM based API and based on DbgHelp?
If so, how can I call DbgEng API from a C# application. I can import the DIA library to C# project using idl file (tlibimp for generated tlib file), but DbgEng doesn't have any IDL file.
I have seen an incomplete wrapper for DbgEng
which manually wraps the API using Managed C++, but that misses many of the functions.
Can I import DbgEng.DLL in C# automatically without writing any managed wrapper?
Secondly, does DIA SDK allows a process to be attached and memory to be investigated (and possibly evaluate an expression), like DbgEng or it is just to get the symbols from the pdb file? So far only example I got is Dia2dump which only parses the pdb file.
DIA SDK is only for symbols not debugging it is totality unrelated to DbgHelp.dll
DbgEng.dll have some COM API but only intrfaces you still need to-do some pinvoking to get those interfaces, its better in your case to wrap what you need with Managed C++ or expose it thru COM using C++.
It is the other way round -- dbghelp is based on DIA.