Closed Thread
Results 1 to 2 of 2

Thread: DLL Entry Point

  1. #1
    Victor is offline Programmer
    Join Date
    May 2007
    Location
    The boondocks
    Posts
    116
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Victor is offline Programmer
    Join Date
    May 2007
    Location
    The boondocks
    Posts
    116
    Rep Power
    0

    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Constants - what's the point?
    By justanothernoob in forum C# Programming
    Replies: 9
    Last Post: 04-09-2011, 01:29 AM
  2. Point of sales HELP!
    By teddiorsenado in forum C# Programming
    Replies: 2
    Last Post: 12-05-2010, 12:53 PM
  3. Point me in the right direction
    By JanitorMoe in forum C and C++
    Replies: 32
    Last Post: 10-21-2010, 08:46 AM
  4. Floating point ...~
    By R3.RyozKidz in forum Java Help
    Replies: 3
    Last Post: 01-29-2010, 06:02 AM
  5. Is there a point?
    By Void in forum Shareware Sites
    Replies: 10
    Last Post: 11-28-2006, 09:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

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