![]() |
|
Unexpected results using al_findnext |
James Bunting
Member #30
April 2000
![]() |
Does anyone have any idea why all of the file names returned by al_findnext using the code below have 8 characters missing from the front of each name? For example: I am using MSVC 2005 and downloaded the precompiled Allegro binary v4.21 (allegro-msvc80-4.2.1.zip). This is confusing at everything seems pretty standard with no external code. I get the feeling its something to do with my setup although I can use the rest of Allegro OK. Thanks in advance, input and output screenies attached! James PS: I an running XP Pro 32 bit
|
Matthew Leverton
Supreme Loser
January 1999
![]() |
I ran your program as-is on the unstable 4.9 branch and it worked correctly. Could you attach your EXE? |
James Bunting
Member #30
April 2000
![]() |
Sure I uploaded the whole project in a zip file. Probably got my headers mixed up from an older Allegro version or something (I did a few compile attempts before downloading the binary), I will run an fc.exe on the downloaded and installed headers. FIXED IT! I had the wrong version of alleg42.dll in my system32 folder. Now I feel stupid for wasting your time! James |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Your supplied EXE works fine for me too. (I'm probably using the same alleg42.dll.) You could double check that you're using the 4.2.1 DLL, but you really should get an error message if it is mismatached. Edit: I guess that was it. |
James Bunting
Member #30
April 2000
![]() |
Thanks for speedy service (frankly amazing). I guess the fact that the DLLs have the same names but are different can often cause issues. When I deploy my apps I put the DLL in the game folder (not system32 thankfully). I keep the "current" Allegro DLL in system32 for general Allegro development. Thanks again, on with coding the masterpeice... James |
|