Frani0 napisał(a):muszę przejść na bezpłtane rozwiązanie tylko kompletnie nie wiem jak użyć tamtych bibliotek
#pragma hdrstop
#include <mpg123.h>
#include <stdio.h>
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
mpg123_handle *m;
int i;
if(argc < 2)
{
fprintf(stderr, "\nI will give you the estimated and exact sample lengths of MPEG audio files.\n");
fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
return -1;
}
mpg123_init();
m = mpg123_new(NULL, NULL);
mpg123_param(m, MPG123_RESYNC_LIMIT, -1, 0); /* New in library version 0.0.1 . */
for(i = 1; i < argc; ++i)
{
off_t a, b;
mpg123_open(m, argv[i]);
a = mpg123_length(m);
mpg123_scan(m);
b = mpg123_length(m);
printf("File %i: estimated %li vs. scanned %li\n", i, (long)a, (long)b);
}
mpg123_delete(m);
mpg123_exit();
return 0;
}
#include <libmpg123-0.dll>
czy jak dodam lib to to pomoże
i co dać w pliku nagłówkowym jakie include
[Linker Error] Unresolved external '_mpg123_init' referenced ...
LIBRARY libmpg123-0.dll
EXPORTS
_mpg123_init = mpg123_init
// itd.
Powrót do Biblioteki i komponenty
Użytkownicy przeglądający ten dział: Brak zalogowanych użytkowników i 6 gości