Thread overview |
---|
July 25, 2001 NEED HELP!!!!!!! | ||||
---|---|---|---|---|
| ||||
I need your help. I want to write a program that 1) looks in the generated map file for every undefined symbol 2) stores the symbol name into an array of strings 3) looks in the generated obj file for the the strings of the symbol name array 4) replaces the name of the found symbol with the same same without @x I included my unfinished and faulty source code. Please help me finishing this code becaus then you can import any dlls without regard to the @x suffixes. They aren't needed for linking and executing. Please help me!!! Please!!!!! Best regards Chris |
July 25, 2001 Re: NEED HELP!!!!!!! | ||||
---|---|---|---|---|
| ||||
Posted in reply to SStallone | Hi I managed to show all undefined symbols to stdout. Now the program must search for each in the obj file and remove the @x suffixes: _glVertex3f@12 becomes to _glVertex3f where @12 is overwritten with the char 0x00 Can you also tell me how to free the memory with malloc. I return the pointer to char. How can I free this memory after the function jumped back to main??? Help me finishing the project. Have fun Thanks Best regards Yours sincerly *g ;-) Chris |
July 25, 2001 Re: NEED HELP!!!!!!! | ||||
---|---|---|---|---|
| ||||
Posted in reply to SStallone | Please help me finishing and optimising the code. I will put it how I did it ever under GPL. With your help it will become a good tool, I think. Thanks Chris |
July 25, 2001 Prove for my theory | ||||
---|---|---|---|---|
| ||||
Posted in reply to SStallone Attachments: | In order to prove my theory I send you an example using my method. Although I was forced to slightly modify the include file glu.h because it didn't produce the __imp__ prefix. All I done was adding WINGDIAPI before every function prototype in gl.h. Then it worked. Try yourself with sc water.obj gdi32.lib opengl32.lib glu32.lib water.exe Don't forget my poject (map2obj!!!) Regards Chris |
Copyright © 1999-2021 by the D Language Foundation