F0X Posted September 25, 2010 Posted September 25, 2010 (edited) I'm having some troubles with the mfmplayer library, seems the .lib file is no good.Writing a keygen template in assembler, when I link I get this: Assembling: H:\KEYGEN_BASE\main.asmH:\KEYGEN_BASE\mfmplayer.lib(1) : error A2008: syntax error : !H:\KEYGEN_BASE\mfmplayer.lib(2) : error A2044: invalid character in fileH:\KEYGEN_BASE\mfmplayer.lib(3) : error A2044: invalid character in fileH:\KEYGEN_BASE\mfmplayer.lib(3) : error A2039: line too longH:\KEYGEN_BASE\mfmplayer.lib(4) : error A2044: invalid character in fileH:\KEYGEN_BASE\mfmplayer.lib(5) : error A2044: invalid character in fileetc. etc.H:\KEYGEN_BASE\mfmplayer.lib(100) : fatal error A1012: error count exceeds 100; stopping assemblyAnd all I do is, include mfmplayer.inc (which works fine ) then I include the library with includelib mfmplayer.liband I get those 100 errors... without the lib its alright so it is something with the .lib file. Anyone a clue whatcould be happening? In an other project I have it works fine so I do not get what's going on here. Note: This is even before I add some code, just linking the library gives problems. Edited September 25, 2010 by F0X
ragdog Posted September 25, 2010 Posted September 25, 2010 Look here in this source for add Mfm/>http://reversing.do.am/Download/Music.rar
hmi222 Posted September 25, 2010 Posted September 25, 2010 can yu attach the whole keygen code with lib?then i try here...it's this line i think it's the interresting point: "H:\KEYGEN_BASE\mfmplayer.lib(1) : error A2008: syntax error : !"I think the others are followed errors.
ragdog Posted September 25, 2010 Posted September 25, 2010 "H:\KEYGEN_BASE\mfmplayer.lib(1) : error A2008: syntax error : !"I dont know what wromh in you code please upload your source for more help or look in this sourceMusic.rar
F0X Posted September 25, 2010 Author Posted September 25, 2010 You did not even understand what I was saying... The problem is with the lib file, _not_ with my code, this is what I use in my source file AND in my other project (where it works fine): push esi INVOKE FindResource, hInstance, IDM_MUSIC, RT_RCDATA push eax INVOKE SizeofResource, hInstance, eax mov nMusicSize, eax pop eax INVOKE LoadResource, hInstance, eax INVOKE LockResource, eax mov esi, eax mov eax, nMusicSize add eax, SIZEOF nMusicSize INVOKE GlobalAlloc, GPTR, eax mov pMusic, eax mov ecx, nMusicSize mov dword ptr [eax], ecx add eax, SIZEOF nMusicSize mov edi, eax rep movsb pop esi INVOKE mfmPlay, pMusicThe code is perfectly fine, the problem is with the .lib file. And your lib file gives the exact same error, and yes it says:"H:\KEYGEN_BASE\mfmplayer.lib(1) : error A2008: syntax error : !"This ! is also present in your lib file, if you looked you could have seen it.
ragdog Posted September 25, 2010 Posted September 25, 2010 (edited) I have this same error if i use include mfmplayer.lib Assembling: Music.asmmfmplayer.lib(1) : error A2008: syntax error : !mfmplayer.lib(2) : error A2044: invalid character in filemfmplayer.lib(3) : error A2044: invalid character in filemfmplayer.lib(3) : error A2039: line too longYou must write include mfmplayer.incincludelib mfmplayer.libAnd now works this.And i have say look ín this source Edited September 25, 2010 by ragdog
F0X Posted September 26, 2010 Author Posted September 26, 2010 Ah right, nice typo of mine there. Now the other thing is, whenever I do not include the mfmplayer.lib file project is fine now but when I do, user32.lib is not found. Exact error is: LINK : fatal error LNK1104: cannot open file "\masm32\lib\user32.lib" Obviously it's there, before I added mfmplayer support the project compiled fine, just without a nice tune. Guess there's some order in which I have to do the includes. Right now I've got it like this: include windows.incinclude kernel32.incinclude user32.incincludelib kernel32.libincludelib user32.libinclude gdi32.incincludelib gdi32.libinclude oleaut32.incincludelib oleaut32.libinclude mfmplayer.incincludelib mfmplayer.lib I've been moving them around in combinations but can't get it right :/ Bit of an odd error, guess it has something to do with mfmplayer but don't really know what.
F0X Posted September 26, 2010 Author Posted September 26, 2010 (edited) Double postage, sorry about that.I found out that the error is caused by: invoke mfmPlay, pMusicWhen I add that line it will give the linking error.And yes I looked at the sources you guys provided, I was doing the exact same thing. It's just that mfmPlay causes a linking error.. which I really don't understand the cause of. Edited September 26, 2010 by F0X
F0X Posted September 26, 2010 Author Posted September 26, 2010 http://forum.tuts4you.com/index.php?showtopic=12005&view=findpost&p=57508Solved my problem. Sorry.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now