[FONT=Arial][SIZE=2]MRSDLL.dll is an easy way for all programmers to be able to access the MAIET
Printable View
[FONT=Arial][SIZE=2]MRSDLL.dll is an easy way for all programmers to be able to access the MAIET
omg T6 i think this is ur best work ever
thank you fore sharing ur work
very nice job
how do i encrypt thr MRS files with this??
anyways thanks
Is this a new version or something really diff.? And a new idea : Make an editor to edit .DLL files <3.
I'm inclined to think you have no idea what a DLL is.
Anyway, since the C++ code given in his example was a little botched and a little hard to read, I made a simple little project showing how to implement the DLL in C++ (using Visual Studio 2005, not sure if it'll work in 2008, I doubt it in a way).
Opens model.mrs and shows all the files in it. Simple enough.Code:#include <windows.h>
#include <iostream>
using namespace std;
typedef bool (__stdcall* _OpenMRSFile)(char* MRSFileName);
typedef bool (__stdcall* _CloseMRSFile)();
typedef int (__stdcall* _GetFileCount)();
typedef char* (__stdcall* _GetFileName)(int Index);
int main(int argc, char* argv[])
{
_OpenMRSFile OpenMRSFile;
_CloseMRSFile CloseMRSFile;
_GetFileCount GetFileCount;
_GetFileName GetFileName;
HINSTANCE hInst = LoadLibrary(TEXT("MRSDLL.dll"));
OpenMRSFile = (_OpenMRSFile)GetProcAddress(hInst, "OpenMRSFile");
CloseMRSFile = (_CloseMRSFile)GetProcAddress(hInst, "CloseMRSFile");
GetFileCount = (_GetFileCount)GetProcAddress(hInst, "GetFileCount");
GetFileName = (_GetFileName)GetProcAddress(hInst, "GetFileName");
if(OpenMRSFile("model.mrs"))
{
for(int i = 0; i < GetFileCount(); i++)
{
cout << "file " << i << ": " << GetFileName(i) << "\n";
}
CloseMRSFile;
}
return 0;
}
Thanks RoA, a little note to C++ users, when putting a full path use double backslashes.
Example Wrong: C:\IJJI\Gunz\system.mrs
Example Right: C:\\IJJI\\Gunz\\system.mrs
Awesome Release.
T6 Ur my idol still xD. finally been waiting for another of your releases =)\
But i still don't get how to use it
It's for programmers to be able to open, extract, view mrs files.
I luv it!, very useful..
what it is do?? i didnt understood..
and how i can use it?
Just a note to everyone. This is really not a thread to read if your not into programming.
ThievingSix is kind enough to provide us with a very usefull, basic source to unpack an .mrs file.
The goal of this release is to get people like me to get and extend the source, build an eviroment around it, and especialy getting things off the to-do list. If you really want to help, I suggest you learn the basic of programming the source, which lies in C++.
Learn C++: C++ Language Tutorial
The DLL isn't coded in C++ btw, it's coded in Delphi.
[quote=war
so for system.mrs is...
Code:#include <windows.h>
#include <iostream>
using namespace std;
typedef bool (__stdcall* _OpenMRSFile)(char* MRSFileName);
typedef bool (__stdcall* _CloseMRSFile)();
typedef int (__stdcall* _GetFileCount)();
typedef char* (__stdcall* _GetFileName)(int Index);
int main(int argc, char* argv[])
{
_OpenMRSFile OpenMRSFile;
_CloseMRSFile CloseMRSFile;
_GetFileCount GetFileCount;
_GetFileName GetFileName;
HINSTANCE hInst = LoadLibrary(TEXT("MRSDLL.dll"));
OpenMRSFile = (_OpenMRSFile)GetProcAddress(hInst, "OpenMRSFile");
CloseMRSFile = (_CloseMRSFile)GetProcAddress(hInst, "CloseMRSFile");
GetFileCount = (_GetFileCount)GetProcAddress(hInst, "GetFileCount");
GetFileName = (_GetFileName)GetProcAddress(hInst, "GetFileName");
if(OpenMRSFile("system.mrs"))
{
for(int i = 0; i < GetFileCount(); i++)
{
cout << "file " << i << ": " << GetFileName(i) << "\n";
}
CloseMRSFile;
}
return 0;
}
Very handy :)
Damn, T6 ur the man!
Wow, mad bumpers.
sorry for bumpin this old topic but anyone re-upload pls?
http://www.mediafire.com/?dymizmjronm
Has source and compiled DLL.
No wai?
I'm certain it zipped it, lol.
Lemme check it again or this PC is bullshit.
---------- Post added at 11:45 AM ---------- Previous post was at 11:39 AM ----------
http://www.sendspace.com/file/myedhp
http://i46.tinypic.com/o50odl.png
22 Bytes =))
http://www.sendspace.com/file/myedhp
Works fine for me.
Everyone who just posted realizes that there is full source to this and all my other MRS projects in another thread here, right?
Nice But i have another ways