Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Platform/API C++

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2007, 12:16 PM   #1 (permalink)
madriceg
Recruit
 
Join Date: May 2004
Posts: 1
madriceg is on a distinguished road
creating a dll from GetDXVer (GetDXVersion)

I am trying to creat a dll that will return the Directx version currently on the users machine. The dll will give the programmer options to do something with that information. I know how to use the GetDXVersion supplied by directx but I dont know how to make it a dll or create my own. Could someone point me in the right direction?
madriceg is offline   Reply With Quote
Old 06-19-2007, 01:21 PM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 701
DJMaze is on a distinguished road
Code:
// Insert your headers here

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers



#include <windows.h>


BOOL APIENTRY DllMain( HANDLE hModule, 

                       DWORD  ul_reason_for_call, 

                       LPVOID lpReserved

					 )

{

    switch (ul_reason_for_call)

	{

		case DLL_PROCESS_ATTACH:

		case DLL_THREAD_ATTACH:

		case DLL_THREAD_DETACH:

		case DLL_PROCESS_DETACH:

			break;

    }

    return TRUE;

}
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Reply

Bookmarks

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DLL Help Malachi MS Technologies ( ASP, VB, C#, .NET ) 0 05-03-2007 02:09 AM
how to create dll files? ashok rajagopal Platform/API C++ 1 10-25-2005 11:26 PM
dll authentication Eyelfixit Windows 18 07-08-2003 06:54 PM


All times are GMT -8. The time now is 12:16 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting