+ Reply to Thread
Results 1 to 2 of 2

Thread: DLL Entry Point

  1. #1
    Programmer Victor is an unknown quantity at this point
    Join Date
    May 2007
    Location
    The boondocks
    Posts
    116

    DLL Entry Point

    I have (and am still writing) a DLL library to be used with another program I've written. However, I am having alot of difficulty actually using the DLL. In the DLL, so far I have 2 classes, Main and ProcessMgt. Main has one function, Entry(), which is obviously where I want to enter the DLL. How exactly do I define the entry point? So far I have

    Code:
    [DllImport("Engine.dll", EntryPoint = "Main")]
            public static extern void Entry(String line);
    I have no idea what I'm doing wrong. I've tried Engine.Main, Main.Entry, Engine.Main.Entry. Hopefully someone here knows what I'm talking about.

    Thank you in advance

  2. #2
    Programmer Victor is an unknown quantity at this point
    Join Date
    May 2007
    Location
    The boondocks
    Posts
    116

    Re: DLL Entry Point

    I finally fixed the problem. Was so simple I kicked myself for not realizing it sooner. Since the dll is written in C# too, all I needed to do was add a reference to the project. I did think of that before, however, I didn't try it because I thought it would wrap the exe with the dll instead of bundling them together. It bundles them for anyone else who's wondering. thanks anyway

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. 2d cartesian and polar coordinate header
    By Aereshaa in forum Classes and Code Snippets
    Replies: 0
    Last Post: 02-24-2009, 10:58 PM
  2. [ C++ ] Drawing Program.
    By Max_Payne in forum C and C++
    Replies: 6
    Last Post: 01-23-2008, 09:18 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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