Sunday, August 23, 2009
Indexed Properties
fromhttp://www.codeproject.com/KB/mcpp/CppCliProperties.aspx?msg=1361608Indexed properties
Indexed properties allow array like access on an object and there's also support for a default indexed property - essentially a nameless property which lets you directly use
[]
on the object. Below example features both named and default index properties. I believe C#ers call indexed properties as indexors so perhaps you might see these two words used interchangeably.ref class R { private: Hashtable^ h; public: R() { h = gcnew Hashtable(); } //Named property property int Age[String^] { protected: int get(String^ s) { if(h->ContainsKey(s)) { for each(DictionaryEntry de in h) { if(s->CompareTo(de.Key) == 0) return (int)de.Value; } } return 0; } void set(String^ s, int age) { h->Add(s,age); } } //Default property property int default[String^] { int get(String^ s) { return Age[s]; } void set(String^ s, int age) { Age[s] = age; } } };
It took me more than an hour to figure out what the extra parameter in the set() method of an indexed property. It turns out that it is the right hand term when you attempt to modify a property.
Example:
R SomeClass = gcnew R();int RightHandTerm = 10;String ^LeftHandTerm = "No Name";
SomeClass->Age[LeftHandTerm] = RightHandTerm; //assignment to property Age, //Set() method will be called
void set(String^ s, int age)
will correspond to: s=LeftHandTerm, age=RightHandTerm
Saturday, August 22, 2009
Export a dll with no headers
http://home.hiwaay.net/~georgech/WhitePapers/Exporting/Exp.htm
-----
Why are people debugging the dll?
You all idiots, I told you the export names there is nothing to hack.
Quote:
Looks to be in .NET, too, terrible language - why use this?
.Net isn't a language ffs. C++ .NET is and it isn't C++ .net at all - I code in dev. Idiot <_<
You a$sholes are so stupid I give you a bypass, tell you to change the export values - and you open the dll to try and take my bypass? I knew some ****** would do it which is why you need to do more than a memory dump to steal my bypass.
If there is someone out there who does want to make this and dosn't want to try and rob my bypass just to leech like a whore then ill tell you even simpler.
To the no brainer's, stop asking for hacks, waiting for a release like this, then find out your too dumb to change an export in C++.
code needed to read exports.
hDLL = LoadLibrary("BYPASSDLL");
if( hDLL == NULL )
{
MessageBox("Could not load Bypass.dll");
}
else
{
export = export * 2; // do this for each export
}
This will be patched soon, don't expect an update.
Some of you are too damn arrogant.
Attached file: GG_bypassrec.rar (Project WH)
NOD32 URLMON.DLL coolezweb false detection
Were you hit by NOD32's false detections like me? One of NOD32's Aug 30 updates falsely detected urlmon.dll as a virus. I made NOD32 delete the it and after a restart, my IM's, IE, System Restore, and installers stopped working. I tried the solutions posted at :
But I had no success. I had to do a repair via Win XP CD to have my system up.
Just one file and it resulted to such disaster.
Is your ISP shaping your traffic?
« on: August 04, 2008, 07:40:48 PM »Quote If you think your ISP is either throttling, rate shaping, or blocking your P2P or bittorrent usage, you might want to test your ISP. The Electronic Freedom Foundation (EFF) has a relatively new tool out named "Switzerland" to test if your ISP is content neutral or if it is obeying the RIAA/MPAA/bigbusiness. I guess the tool is named after Switzerland for "content neutrality".
Switzerland P2P verification tool:
http://www.eff.org/testyourisp/switzerland
I found this post at bakabt.
Sunday, August 16, 2009
Friday, August 14, 2009
Tuesday, August 11, 2009
Monday, August 3, 2009
Subscribe to:
Posts (Atom)