Kerala Microsoft Users Group

Embedding DLLs with application

Latest post 09-05-2008 4:29 AM by Sreejumon. 5 replies.
  • 09-05-2008 2:17 AM

    Embedding DLLs with application

    Hi there?

    Good, is there any way to embed the third party DLLs with the application?

    Any possibility of doing this using OLE and Reflection?

    Please do reply.

    Regards,

    --Kiran Chand--

    Filed under:
    • Post Points: 45
  • 09-05-2008 3:56 AM In reply to

    Re: Embedding DLLs with application

    what kind of dll, is it API!?.

    try DLLImport

    using System.Runtime.InteropServices;

    ----------- 

    public class Import
    {

     [DllImport("YourDLL.dll", EntryPoint="Logon", ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)]
     public static extern int Logon(string username, string password);
    }

    ---------

    Import.Logon(Usr_Name, Usr_Pass);

    Best Regards,

    M Shiju Prakasan

    ShiSoft

    • Post Points: 25
  • 09-05-2008 4:11 AM In reply to

    Re: Embedding DLLs with application

    No; not that Shiju!

    I'm talking about the .Net dlls that we do refer in our application.

    An example is "Google.GData" dlls in .Net, for connecting our application with Google services.

    Instead of redestributing the dlls as a seperate set of assembly, it will be fine, if I could embedd it with my application itself

    Thats the concept.

    Thanks for the instant reply.

    • Post Points: 5
  • 09-05-2008 4:15 AM In reply to

    Re: Embedding DLLs with application

    Hello Kiran,

     

    Please check the following URL.

    http://www.codeproject.com/KB/cs/DLL_as_Embedded_Resource.aspx

    Regards

    Sreejumon

    http://sreesharp.com/

    • Post Points: 25
  • 09-05-2008 4:20 AM In reply to

    Re: Embedding DLLs with application

    Exactly Sree

    Thanks a lot :)

    Regards,

    --Kiran Chand--

     

    • Post Points: 25
  • 09-05-2008 4:29 AM In reply to

    Re: Embedding DLLs with application

    You are welcome :)

    Regards

    Sreejumon

    http://sreesharp.com/

    • Post Points: 5
Page 1 of 1 (6 items) | RSS