Re: Turning a EXE into a DLL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I am new to VC ++ so I am in need of some help. I have an application
written in vb.net and VB. The VB.NET application is using a control
that leaks memory and I am trying to eliminate or greatly reduce this
leak. So I am transfering it to C++.

That seems like a wrong reason to do it. That would mean you are doing
something wrong in your code rather than this being a limitation
of .Net.

I have gotten it working as a
MFC application using the VS 2003. Now I need to convert it to a DLL
that I can call from a VB6 application. I have reviewed all sorts of
information about how this is suppose to work.

There are couple of ways to do this, use a MFC regular dll or make it
a ActiveX control/COM server.

The main object from
this is that the EXE has a dialog screen open with a bunch of buttons
attached to it. I need to pass some parameters from the VB6
application to this dll so that it can operate properly. If someone
can give me some help it would be greatly appreciated. I can even
email you the application to look at.

I dont understand what and why you are doing this. Why not use VB/MF/
net all the way? You are making it needlessly complex.

---
Ajay

.



Relevant Pages

  • Re: VB.NET 2008 not backward compatable?
    ... WPF has control templates and styles which offer ... a long hard slog with the API in VB6. ... Irony is you saying that Windows is COM centric and then blaming COM's bad ... VB can write a standard non-COM DLL. ...
    (microsoft.public.dotnet.languages.vb)
  • Error with TreeView Control (MSCOMCTL.OCX) via COM Interop from ASP.NET and Service Pack
    ... I have an ASP.NET application that calls all VB6 COM DLL via ... The DLL uses functionality contained in a Custom OCX Control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I make a C# UserControl into an OCX file for VB6 use?
    ... > host shim dll so it will run my stuff within vb. ... >> writing add-ins for VS .NET) - the so-called shim control. ... >> The ActiveX has a couple of public methods designed to tell the ActiveX ... >> to a VB6 form and then invoke its HostUserControl method - and voila, ...
    (microsoft.public.dotnet.languages.csharp)
  • ASP.NET calling COM DLL under SP1 (2003) or SP2 (XP) causes exception
    ... I have an ASP.NET application that calls all VB6 COM DLL via ... The DLL uses functionality contained in a Custom OCX Control ... Windows 2003 Server - Service Pack 1 ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Turning a EXE into a DLL
    ... that leaks memory and I am trying to eliminate or greatly reduce this ... Now I need to convert it to a DLL ... this is that the EXE has a dialog screen open with a bunch of buttons ... I need to pass some parameters from the VB6 ...
    (microsoft.public.vc.mfc)