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
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.Code:[DllImport("Engine.dll", EntryPoint = "Main")] public static extern void Entry(String line);
Thank you in advance
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks