Создание Эльфов : Эльфостроение : Форум |
Страница 155 из 211: « 1 ... 151 152 153 154 [155] 156 157 158 159 ... 211 » |
jonico: |
07.11.10, 00:22 |
This is working for me: w810 r4ea031 Код: typedef struct { char dummy[0x19]; char status; char dummy_ [0x20]; char preset; char dummy2 [69]; wchar_t unk1; wchar_t unk2; wchar_t tracks_count; char dummy3 [2]; char RepeatMode; char ShuffleMode; } WALKMAN_BOOK2; Thanks zilka. |
den_po: |
07.11.10, 00:46 |
zylka пишет: How to use the REQUEST_UI_OAF_START_APPLICATION to run java applications ? Please example code. http://perk11.info/svn/SE/BookManager/ |
blacklizard: |
07.11.10, 17:05 |
I have a weird problem with MetaData_Desc_GetCoverInfo Код: void *MetaData_Desc = MetaData_Desc_Create(Dpath, Dname); if (MetaData_Desc_GetCoverInfo(MetaData_Desc,&cover_type,&size,&cover_offset)) { ... } MetaData_Desc_Destroy(MetaData_Desc); MetaData_Desc_Destroy cause restart if MetaData_Desc_GetCoverInfo is called, this only happens in A2, it works fine in DB2020. Anyone knows why? Thanks in advance Добавлено 8.11.10 01:41 Never mind, I'm using GetAlbumArt(...) from IMusicServer |
IronMaster: |
07.11.10, 22:32 |
blacklizard, problem not in MetaData_Desc_Destroy, problem in Код: { ... } because MetaData_Desc_GetCoverInfo always return 1 (only for A2). Update LibraryDLL. Problem fixed. |
blacklizard: |
08.11.10, 00:03 |
IronMaster, thanks for the update but still its the same. Theres no reboot when i remove this Код: if(MetaData_Desc) MetaData_Desc_Destroy(MetaData_Desc); Here is my code, works good in DB2020 Код: int main() { char pImageType; int Offset, Size; wchar_t imageID; wchar_t Dpath[255],Dname[255]; GetCurrent_Track(Dpath,Dname); void *MetaData_Desc = MetaData_Desc_Create(Dpath, Dname); if(MetaData_Desc_GetCoverInfo(MetaData_Desc,&pImageType,&Size,&Offset)) { int f; if (f=_fopen(Dpath,Dname,0x1,0x180,0x0)>=0) { if (lseek(f,Offset,0)>=0) { char * my_buf=new char[Size]; fread(f,my_buf,Size); ImageID_GetIndirect(my_buf,Size,0,Type(pImageType),&imageID); } fclose(f); } } if(MetaData_Desc) MetaData_Desc_Destroy(MetaData_Desc); wchar_t buffer[128]; snwprintf(buffer,128,L"%d",pImageType); MessageBox(0x6fffffff,Str2ID(buffer,0,SID_ANY_LEN),imageID,1,0,0 ); elf_exit(); return(0); } [ Редактировано blacklizard в 8.11.10 05:11 ] |
IronMaster: |
08.11.10, 01:22 |
blacklizard, Код: char pImageType; int Offset, Size; wchar_t imageID; wchar_t * image_type=0; void * MetaData_Desc = MetaData_Desc_Create(L"/card/music",L"test.mp3"); if (MetaData_Desc_GetCoverInfo(MetaData_Desc,&pImageType,&Size,&Offset)) { int f; if (f=_fopen(L"/card/music",L"test.mp3",0x1,0x180,0x0)>=0) { if (lseek(f,Offset,0)>=0) { char * my_buf=new char[Size]; fread(f,my_buf,Size); switch(pImageType) { case 0: image_type=L"jpg"; break; case 1: image_type=L"gif"; break; case 2: image_type=L"png"; break; case 3: image_type=L"bmp"; break; } ImageID_GetIndirect(my_buf,Size,0,image_type,&imageID); } fclose(f); } } if (MetaData_Desc) MetaData_Desc_Destroy(MetaData_Desc); wchar_t buffer[128]; snwprintf(buffer,128,L"%d",pImageType); MessageBox(0x6fffffff,Str2ID(buffer,0,SID_ANY_LEN),imageID,1,0,0 ); works fine. Have you reboot after LibraryDLL update? |
blacklizard: |
08.11.10, 01:34 |
IronMaster, thanks, It works now and I did reboot after update the dll. Thanks again :) Is there any error in my code? |
blacklizard: |
14.11.10, 17:59 |
Hi, i'm trying to get the width of font so that i can figure out the width of a string. width_of_string = width_of_font*wstrlen(...) So I tried this Код: SetFont(15); int width_of_font=GetImageWidth(' '); but width_of_font always return 30px no matter what size of font i choose Is there any other way to get font's width/height? |
jamesbond22: |
14.11.10, 21:09 |
blacklizard, look here: http://perk11.info/svn/SE/CoverArt/labels.c |
toha257: |
16.11.10, 21:26 |
Доброго времени суток. Подскажите пожалуйста в чём проблема, при нажатии на пункт ребут Код: |
Страница 155 из 211: « 1 ... 151 152 153 154 [155] 156 157 158 159 ... 211 » |
URL этой темы: https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=2479&start=1540 © 2005-2018 supertrubka.org |