Domanda

ho postato una domanda su questo in precedenza e si rese conto che il mio problema non è stato effettivamente risolto. In ogni caso, la mia domanda / problema è che per qualche ragione, quando eseguo il mio SDL applicazione tramite l'IDE, che si tratti di Code :: Blocks o Visual C ++ 2010 il mio BMP non verrà caricato. Tuttavia, se l'eseguo attraverso il File Explorer mostrerà i BMP correttamente. Non sono sicuro di quale sia il problema, forse è qualcosa a che fare con il fatto che sto correndo a 64-bit di Windows?

Quando l'eseguo tramite Visual C ++ 2010 ottengo i seguenti errori:

'Brain Bread.exe': Loaded 'C:\Users\UserNameHere\Desktop\Brain Bread\Debug\Brain Bread.exe', Symbols loaded.
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Users\UserNameHere\Desktop\Brain Bread\Debug\SDL.dll', Binary was not built with debug information.
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\ddraw.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\dwmapi.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\dciman32.dll'
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
The program '[4992] Brain Bread.exe: Native' has exited with code 0 (0x0).
È stato utile?

Soluzione

Probabilmente è perché quando si esegue il programma attraverso l'IDE, l'IDE imposta la directory di lavoro corrente per il programma in modo non corretto, quindi se si sta utilizzando percorsi relativi alla BMP nel codice, non funzionerà. Prova scoprire che lavora dir i set di IDE per la vostra applicazione e ci copiano le BMP.

Altri suggerimenti

Il problema è probabilmente la directory di lavoro corrente. Code :: Blocks esegue l'applicazione dal punto in cui si trova il file *.cbp. Sono sicuro che Code :: Blocks consente di modificare questo da qualche parte.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top