Re: vb6 active-x dlls in asp.net



the asax file generates a class that inherits from the code behind. so the
code behind will have no knowledge of it. aspx pages get around this by
declaring the server controls in the codebehind, and inheriting them.

you should have serveral options, create the objects in the codebehind, and
place them in the application object. create a module with static methods to
retieve the objects. create static mehods in the application object.

note: because vb6 object are apartment model, you must use the aspcompat
attribute on every page that references them (there is a performance cost to
this). also because aspcompat is not supported by webservices, you will need
special code to use a vb6 component in a webservice.

-- bruce (sqlwork.com)


"Markus" <prediger @itb-web.de> wrote in message
news:uVI6NRkfFHA.3584@xxxxxxxxxxxxxxxxxxxxxxx
> hi ng,
>
> i've declared some com-objects from vb6 in my asp.net project in the
> global.asax file.
> (with text editor because vs.net only opens the code behind file...)
>
> like
>
> <object runat="server" scope="session" id="goARINI"
> progid="ARINIManagerLib.ARINIManager" />
>
>
> but when i Want to use it in visual studio it says name "goARINI" was not
> declared.
>
>
> is it normal behaviour or are there better ways to use vb6 activex dlls in
> asp.net?
>
> I need these objects global for the session.
>
>
> thx, MP
>
>


.



Relevant Pages

  • Re: .NET DLL use in VB6
    ... I need to create my own C# class that inherits a VB6 COM interface ... from a VB6 DLL and then use this C# DLL that I export to a TLB file in VB6. ... void AlfaBVIO._BVInput.Initialize(ref DSDataObjects.DSDataType ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)
  • 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)