Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
What information does a .NET DLL provide to Visual Studio?
I'm using Visual Studio 2008 and writing a VB.NET test program. This program uses a DLL as a resource. The DLL was written in C and compiled with VS2008 with the /clr (Common Language Runtime) switch.
Will Visual Studio's intellisense automatically display the DLL's API, or must I manually type code to prototype the DLL's API with DECLARE statements and/or SYSTEM.RUNTIME.INTEROP.DLLATTRIBUTES statements?
So far, intellisense has not picked up the DLL's API, and I have to manually enter the API function prototypes.
Also, is a default namespace automatically assigned to C DLL functions compiled with the /clr switch? If so, what is it, and how is it specified for the VB.NET "imports" command?
1 Answer
- killerfly1670Lv 41 decade agoFavorite Answer
The most likely issue is there is an incorrect header or something like that, or the version is outdated.
To get your own namespace, I'm pretty sure you have to import it into the VB Express libraries. Look up where you could do this in the tools, since I'm not too sure.
The simplest thing is to statically type the statements for the API as you are doing, since the next easiest solution is probly to re-write the dll.