CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2005
    Posts
    2

    how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    please help me

  2. #2
    Join Date
    Dec 2004
    Location
    Florida, United States
    Posts
    43

    Re: how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    With the DLL's it's dependant on what they were written in and how, but most *.ocx's should work fine.

    For ocx files...
    Open a project in Visual Studio, expand the "Toolbox", right-click anywhere in the Toolbox and click "Add/Remove Items", click "COM Components", click "Browse"...locate the file on your harddrive in the the Browse dialog and click "Open", make sure that the control is checked in the list, and then click "OK". The control should show up in the list of controls on the Toolbox, and you can drag&drop one onto your form.

    For dll's...
    Open a project in Visual Studio, right-click on "References", click "Add Reference", click "Browse", locate the file and click "Open". The DLL will show up in a list at the bottom and you can click "OK". Visual Studio will determine whether or not it can use the DLL, and if not it will let you know.

    In that event, you're going to need to call on the DLL in your code, so you'll need the exact names of the functions as they're known in the DLL. If you need the code for referencing a DLL at runtime, let me know.

  3. #3
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    how do i include dlls ocxs and everything in one exe
    If I understand U correctly ...
    Input: dlls, ocxs, souce code.
    Output: one exe file which includes all input inside that exe (U distribute only one exe without dlls and ocxs because they are already included in exe)

    Is it IT what U want?

    Best regards,
    Krzemo.

  4. #4
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    vb.net 2001
    I think you meant vb.net 2002
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  5. #5
    Join Date
    Nov 2004
    Location
    North Idaho
    Posts
    18

    Re: how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    Krzemo: I tried asking that same question just recently with no resolution. That is how I understood the question as well tho'. Do you have a way of doing that?

    usfeb14: Unless someone else has a solution I am unaware of, I was forced to continue using a self executing zipfile that unzips the app and supporting files into a safe location and executes it from there.

    Anyone else?

    DS

  6. #6
    Join Date
    Jun 2003
    Location
    Malaysia (P.J)
    Posts
    410

    Re: how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    As far as I know... there isn't a way where u can deploy one exe with all the dlls n ocx inside it.

    Only in VC++ there is a way by including as MFC Static library.

    An alternative is using install sheild
    Back after a long hibernation.

  7. #7
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Re: how do i include dlls ocxs and everything in one exe in vb.net 2001,2003

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured