The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > The ProgrammersTalk > General Talk


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 08-14-2007, 01:26 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Whats really behind ...?

Hey,

I have always wanted to know what is really behind .dll files, .dll's that do things such as, for example burn files to a disk, you have all these SDK's with .dll files in it that do it for you really but what if you didn't have the .dll files and you had to make your own, how would you go about programming a .dll file that for example burns a file to a disk?

I know about compiling them and things like that but i mean with the code side of things, say you have a .dll that burns a file to the disk ready made, you may have code (VB this is kind of like):
Code:
'random name (GSWburner).
Dim Burner as new GSWburner.burner
Burner.burn("C:\test.avi")
That maybe the most basic but that's often how easy SDK's make things, but the code behind that is more complex than you could ever know lol (that's from what little i know about the code behind.)

Can anyone explain anything about the code behind them, maybe some examples, links to resources, tutorials and other useful things?

Hope i have not made my post confusing.
Thanks,
Lee.
Reply With Quote
  #2 (permalink)  
Old 08-14-2007, 09:55 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Well... dll's have changed - for .NET a .dll is called an Assembly File. The dll's that get generated essentially just talk to the windows API. Then the api talks to the Runtimes (in a VB or VS world) and the Runtime files communicate to the Machine-Code which talks to the hardware.

When not in the .NET world programmers used to run into "dll hell" which was truly hell - because many different versions of dll's would exist on a box and be registered and not know which one to communicate to. DLL files are dynamic link libraries - which are generally shortcuts to windows api. When you publish, release or Debug in .NET you will see an exe gets created along with a bunch of dll's (assemblies). These dll's can be thrown into a .NET website, WEbService, App, Mobile app, etc... they are all the same and expose the hooks to call their methods, construct their objects, etc...

Dim Burner as new GSWburner.burner
Burner.burn("C:\test.avi")

This constructs GSW.Burner object and calls its method to burn hope this helps... and we can explain further if you like...
Reply With Quote
  #3 (permalink)  
Old 08-15-2007, 02:27 AM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Its given me more of an insight to .dll files but what i was actually wondering is maybe an example piece of code if you have any or if you know of a website with one? The code i gave was just an example of how easy things are made, without the things like that are code would be much bigger and more to it.
Reply With Quote
  #4 (permalink)  
Old 08-26-2007, 04:20 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Have you got any links to good examples and tutorials?
Reply With Quote
  #5 (permalink)  
Old 08-28-2007, 11:19 AM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Well.. what exactly are you trying to do? Are you trying to make a Com Obect so you can execute windows process/api via Classic ASP?
Reply With Quote
  #6 (permalink)  
Old 08-28-2007, 02:50 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
I want to learn how to make .dll files and use them in my program, i know they are sometimes used for common operation i think, like photoshop might have one to handle plugins, i am making 1 application at the moment for invoices and things like that but then i will have a near duplicate program that does similar things but for another reason, so instead of recopying and then loosing track of it all i thought if i had the .dll it would then help me make my code much better as i could use it in one application and then another?

I am only looking for information and good tutorials about them as it seems they are hard to come by in this area, at the moment i am not concerned about making it C++ compatible or anything, i just want it for vb.net.

Hope that's clearer.
Thanks.
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:22 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50