Go Back   CodeCall Programming Forum > Software Development > C# Programming
Register Blogs Search Today's Posts Mark Forums Read

C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-2009, 03:00 AM
Programmer
 
Join Date: May 2007
Location: The boondocks
Posts: 115
Victor is an unknown quantity at this point
Send a message via AIM to Victor Send a message via Yahoo to Victor Send a message via Skype™ to Victor
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
__________________
Pegasus Homepage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-11-2009, 03:14 AM
Programmer
 
Join Date: May 2007
Location: The boondocks
Posts: 115
Victor is an unknown quantity at this point
Send a message via AIM to Victor Send a message via Yahoo to Victor Send a message via Skype™ to Victor
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
__________________
Pegasus Homepage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
2d cartesian and polar coordinate header Aereshaa Classes and Code Snippets 0 02-24-2009 11:58 PM
[ C++ ] Drawing Program. Max_Payne C and C++ 6 01-23-2008 10:18 PM


All times are GMT -5. The time now is 09:28 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0