Declare Vs Dllimport
Tech-Archive recommends: Fix windows errors by optimizing your registry
hi,
Is there any difference between Declaring APIs through Declare statement as
we used to do in VB6 and declaring it through DllImport as we often find
using in .NET plateform.
I have gone both ways and they are working properly.
I have a lot of APIs declared in my project declared VB6 ways.Do I need to
redeclare them using DllImport ?
please propvid me with some info on the same.
thanking
sanjay
.
Relevant Pages
- Re: vb6 active-x dlls in asp.net
... the asax file generates a class that inherits from the code behind. ... declaring the server controls in the codebehind, ... special code to use a vb6 component in a webservice. ... (microsoft.public.dotnet.framework.aspnet) - Re: Declare Vs Dllimport
... >Is there any difference between Declaring APIs through Declare statement as ... >I have a lot of APIs declared in my project declared VB6 ways.Do I need to ... >redeclare them using DllImport? ... (microsoft.public.dotnet.framework.drawing) - Type mismatch calling a vb6 object in vb.net
... I have a vb6 prject working perfecly, and i want to use it in a vb.net ... My problem is, when i am declaring a object from the vb6 dll, i'm ... getting a COMException: type mismatch error. ... I already register the dll, and i can see the methods in the dll using ... (microsoft.public.dotnet.framework.interop) - Constant Arrays
... I have a need for something I'm about 99.999% certain VB6 doesn't support: constant arrays. ... The best I can come up with is either an auto-instantiating class, which seems kind of overkill, or simply declaring the array as a public variable and filling it at the beginning of my project. ... I'm thinking my best bet might be to declare it as a class member in my VB6 DLL, which is auto-instantiated from Access, but I'm hoping for something a little less kludgey. ... (microsoft.public.vb.general.discussion) - Re: GetCurrentProcess.Id vs GetCurrentProcessId API
... I noticed that you declared GetCurrentProcessId as integer and not as ... Once I changed every declared function and arguments that were type ... It seems like the difference between VB6 and VB.NET when it comes with ... declaring API functions is that when type "long" is used in VB6 and ... (microsoft.public.dotnet.languages.vb) |
|