[gameprogrammer] Re: Create dll files ?
- From: "Kevin Fields" <drunkendruid@xxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 13 Sep 2004 08:22:31 -0300
There are issues you need to be aware of with creating a .dll though.
If the .dll is intended to run as a process (ie. It contains a DllMain), it
might not be allowed to run without the proper security settings. Even then,
with using it on XP, and possibly Win2k, every time the process is created
for the .dll, the OS has to perform a security check to see if the .dll is
allowed to run. This can be a huge pain in the ass, because calling the .dll
multiple times a minute will seriously kill performance.
Now, if you just want to use the .dll as a class/function library and omit
the DllMain function, then you wouldn't have those security checks. And so,
you wouldn't run into the slowdown.
As for an idea of how to make a .dll with .NET, you could use the ATL method
that was mentioned, or you could also do the following:
1. Create a new Win32 project.
2. When the final dialog appears, click on "Application Settings" and choose
DLL as the project type.
3. In the "Additional Options" area, if you want to code the DLL from
scratch (ie. use it as a class/function library), select "Empty Project",
which will start the project with no files. Now, if you want to create the
DLL as a process, leave Empty Project unchecked.
4. "Export Symbols" will create a simple class, a simple function, and a
variable, and set them up so they can be exported to your other application.
This method isn't so bad when you don't know how to set up a DLL.
Personally, I only use DLLs as a process when I'm working on a tool. Any
other time, the DLL serves as a class library.
If you need more information, http://www.flipcode.com/ has a tutorial on
creating and using DLLs.
http://www.flipcode.com/tutorials/tut_dll01.shtml
It's not too bad. And should be able to give you some ideas.
Hope that made some sense,
Kevin
From: "Tri M. Dang" <tridangus@xxxxxxxxx>
Reply-To: gameprogrammer@xxxxxxxxxxxxx
To: gameprogrammer@xxxxxxxxxxxxx
Subject: [gameprogrammer] Re: Create dll files ?
Date: Sun, 12 Sep 2004 21:42:47 -0700 (PDT)
in C++.net, lib files or any other project type have the output wrapped in
dll. If you create a Visual managed C++ class library project and combine
it, what you will have as output is a standalone, version controlled .dll
file that you can reference to from any other project.
To create dll file in VS.net/VC++:
select ATL project for window control lib
or managed C++ class library project for shared library
classes.
Then combine the project and you will have a .dll as output.
tran nhat khanh <nhatkhanh1984@xxxxxxxxx> wrote:
I've read several books but I can't find how to create
dll files using C++.net. Can you show me how to do
that ? Does anyone know the diffirent between dll and
lib file ?
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
Other related posts: