VB icon

How to compile a DLL for mIRC using Microsoft Visual C++ 6.0

Email
Submitted on: 1/3/2015 2:29:00 PM
By: Drat911 (from psc cd)  
Level: Beginner
User Rating: By 5 Users
Compatibility: C, Microsoft Visual C++
Views: 838
 
     Shows HOW to compile a mIRC DLL with Microsoft Visual C++ 6.0
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
//**************************************
// Name: How to compile a DLL for mIRC using Microsoft Visual C++ 6.0
// Description:Shows HOW to compile a mIRC DLL with Microsoft Visual C++ 6.0
// By: Drat911 (from psc cd)
//
// Assumes:Please vote for me if you like the code. :-)
//**************************************

mIRCDLL.c
Demonstrates how to compile a DLL for mIRC in MS Visual C 6.0
/* How to compile a DLL for mIRC using Microsoft Visual C++ 6.0 
by Drat911 (drat911@nwez.com)
http://rm-f.net/~drat/
*/
#include <windows.h>
#include <stdio.h>
int __stdcall funcname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
{
/*
How to execute a command:
mIRC: $dll(testmirc.dll, funcname, _)
Code:
_snprintf(data, 900, "/echo -a The DLL worked!");
return 2;
*******
How to return a value or text:
mIRC: echo -a $dll(testmirc.dll, funcname, _)
Code:
_snprintf(data, 900, "Echo in action");
return 3;
*/
}
/* You also need a .def file included in your "Source Files" containing
some info on the DLL. Mine looks like:
LIBRARY testmirc
DESCRIPTION "Example of using a DLL with mIRC"
EXPORTS
funcname
That's all, make sure you name it something.def and add it properly, 
after that, it should compile fine and give you a .dll to work with.
*/


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.