How to compile a DLL for mIRC using Microsoft Visual C++ 6.0
Shows HOW to compile a mIRC DLL with Microsoft Visual C++ 6.0
AI
एआई सारांश: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
सोर्स कोड
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 ([email protected]) 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. */
मूल टिप्पणियाँ (3)
Wayback Machine से पुनर्प्राप्त