Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i tried to use AVI2BMP[^].

i get error msg like mentioned in the comments ("Johotech"): (click for the comment[^])

please, give me a solution!
thx!

[EDIT] Added links (Code-o-mat) [/EDIT]
Posted
Updated 27-Mar-12 7:52am
v2
Comments
Member 8763724 28-Mar-12 3:57am    
this worked well.. thanx!

1 solution

Here's what i did to make it compile (using VS2010):

1. I removed the /GS switch from the linker options. (Project properties -> Configuration Properties -> C/C++ -> Code Generation -> Buffer Security Check: No (/GS-) )

2. Now it was saying:
unresolved external symbol _memset referenced in function "void __cdecl WinMainA(void)"

I added this in avi2bmp.cpp right infront of WinMainA:
C#
#pragma function(memset)
void *memset(void *target, int value, size_t count)
{
  _memset(target, value, count);
  return target;
}


3. Now it was saying:
fatal error LNK1137: invalid argument '.text,EWRX' specified with /SECTION

In avi2bmp.h i found this line:
#pragma comment(linker,"/FILEALIGN:512 /SECTION:.text,EWRX /IGNORE:4078")
and removed the X from EWRX:
#pragma comment(linker,"/FILEALIGN:512 /SECTION:.text,EWR /IGNORE:4078")

Now it compiles and links happily, but i didn't try if it actually works.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900