Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Delphi, .NET, Asm (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   Связь dll на vs2005 (https://forum.antichat.xyz/showthread.php?t=66010)

rhurshidbek 31.03.2008 15:39

Связь dll на vs2005
 
Всем привет!! Помогите разобраться в Чем проблема pls. :confused:
Скомпилил dll в которой использую функцию fstat()
но в самой проге выпадает ассерт с сообщением _osfile(fildes) & FOPEN) :confused:

Вот код
Цитата:

// in DLL
_declspec(dllexport) int scands(int ds)
{
struct stat sb;
...
//ds - id открытого файла
if(fstat(ds, &sb) == -1) {
printf("Can't fstat descriptor %d\n", ds);
return -1;

}
//using open file

}


Время: 19:29