View Single Post
Old 07-12-2003, 11:01 AM   #30 (permalink)
Banshee
Senior Member
 
Join Date: Dec 2002
Location: Brazil
Posts: 168
Default About .TLB stuff... Something I posted in C&C Memories f

Quote:
Originally Posted by MMk4c01
tlb is the answer i had this desicution in dz board exe means almost nothing..the tlb has the source code..they tryed to add ts tlb info to ra2's tlb but it would not compile..the reason being that when u edit a tlb the id tags get messed up..this person im trying to contact says thats this is the problem and u just need to rename the id tag to what they shouod be..its just a thingy up in the air im trying to catch but could be true or false..trying to figure it out...
- Pure ilusion. TLB has the prototype only. I've opened them with Delphi, Borland C++ and Visual C++. It's all the same shit in different languages, but it's only the prototype of classes, interfaces and some other stuff. Every library consists in 2 parts: prototypes (where the program consults what kind of functions, interfaces and classes that it holds) and the botton part is the implementation that contains all instructions followed by the functions. When you compile a program, all functions that it uses (including all operational system functions, functions from libraries and all these functions goes to the exe file, because the cpu must know the address of all commands and functions used. That's why when you make a "Hello World!" program in Delphi, the compiler creates a file with several kbs... due to all windows functions it includes.

If you change the prototype, the function that was linked to it will no longer be found, which means you would loose a function. So, editing .TLB file would only be useless...

Deezire, in the end of his research, admitted that he would need to modify the executable file to be able to modify the library which is correct, however, he also confirmed that it would be impossible to do it, because he would need the original source code (which is also correct) since these programs like Delphi, Borland C++, Visual C++ (used by Deezire) and refuse to compile it back because there are several variables types and stuff that are declared in the source...

So, I really feel sorry for you, Mmk, but modifying the TLB is not a way to improve the game.

--------------------------------------------------------------------------------------

In conclusion, .TLB can be used to study the detailed way the game works, but can't be changed.
Banshee is offline   Reply With Quote