Создание Эльфов : Эльфостроение : Форум |
Страница 153 из 211: « 1 ... 149 150 151 152 [153] 154 155 156 157 ... 211 » |
unfunk: |
16.10.10, 22:35 |
toha257, в настройках проекта, раздел С/C++ Compiler, вкладка Language, в самом низу флажок "Enable multibyte support" |
_saper_: |
18.10.10, 01:31 |
неподскажете что это за ошибка Error[Pe137]: expression must be a modifiable lvalue который указывает на последнюю стороку Код: wchar_t str_sm4[15]=L"выходной"; wchar_t strsm[15]; strsm=str_sm4; |
mmcorp: |
18.10.10, 01:59 |
_saper_, так нельзя тупо присвоить. wstrcpy(strsm,str_sm4); |
_saper_: |
18.10.10, 23:40 |
ааа, спасибо, нада всётаки толмут распечатать)) |
zylka: |
18.10.10, 23:45 |
How to display icon in the window YesNo? I'm doing wrong and not working: Код: void yesno( BOOK* bk, GUI* ) { BOOK *YesNoGUI = new BOOK; CreateBook(YesNoGUI,0,0,"YesNoGUI",-1,0); GUI* yesno=CreateYesNoQuestionVA(0, VAR_BOOK( YesNoGUI ), VAR_YESNO_PRE_QUESTION( STR("test") ), VAR_YESNO_QUESTION( STR("test?") ), VAR_YESNO_YES_ACTION( OnYes ), VAR_YESNO_NO_ACTION( OnNo ), 0); YesNoQuestion_SetIcon( yesno, 0xe5f3 ); } |
blacklizard: |
19.10.10, 00:56 |
BTW, I don't where to post this, so here i post Код: typedef bool TBool; UUID IID_IStatusrow={0x5D,0xFE,0x94,0xA1,0x93,0x80,0x49,0x27,0x84,0x62,0xA3,0xA1,0xEF,0xD5,0x72,0x43}; UUID CID_CStatusrow={0x50,0xD7,0xBA,0x40,0x0A,0x19,0x47,0x3C,0xAA,0x51,0xF9,0x5E,0xDF,0xFB,0x4E,0x29}; class IRoot { public: virtual void* pguid(); virtual void* QueryInterface(); virtual void* AddRef(); virtual void* Release(); }; class IUIStatusrow: public IRoot { public: virtual int ShowIcon(int icon, TBool show); virtual int BlinkIcon(int icon, int mode); virtual int ShowClock(int display, TBool show); }; |
den_po: |
19.10.10, 01:57 |
zylka пишет: How to display icon in the window YesNo? I'm doing wrong and not working: works for me |
zylka: |
19.10.10, 20:09 |
For some reason, does not work on my W800 and the k800 works. Is this wrong address functions in Libya or to otherwise use it for db2010? |
blacklizard: |
19.10.10, 22:27 |
zylka, see how these function is used in the firmware :) |
blacklizard: |
20.10.10, 14:40 |
Hi, i have a little problem with CoCreateInstance. This is my code Classes Код: /============================================================= typedef bool TBool; //============================================================= UUID IID_IMusicServer={0x09,0xF1,0x89,0xDF,0xF4,0x9B,0x45,0xf0,0xB8,0xF8,0xBB,0xCF,0xD2,0x7E,0x74,0xC0}; UUID CID_CMusicServer={0x12,0x14,0x43,0x5D,0xCC,0xDC,0x4b,0xbf,0xBC,0x70,0x09,0x4C,0xD9,0x53,0xDC,0xD6}; //============================================================= class IUnknown { public: virtual void* pguid(); virtual void* QueryInterface(); virtual void* AddRef(); virtual void* Release(); }; class CMusicServer : public IUnknown { public: virtual void* unk_0x10(); virtual void* unk_0x14(); virtual void* unk_0x18(); virtual void* unk_0x1C(); virtual void* unk_0x20(); virtual void* unk_0x24(); virtual void* unk_0x28(); virtual int GetTags(int track_id,int bufsize,wchar_t* artist,wchar_t* album,wchar_t* title); virtual int GetFullInfo(int track_id,int bufsize,wchar_t* artist,wchar_t* album,wchar_t* title,wchar_t* filename,TIME* fulltime,TIME* ResumePosition,TBool* HaveAlbumArt,TBool* IsRealMediaFile); virtual int GetTrackFullpath(wchar_t track_id,int bufsize,wchar_t *buf); virtual int GetAlbumArt(int track_id,int bufsize,wchar_t* filename,int* Offset,int* Size,int* Type/*1=Jpeg,2=Gif,3=Png,4=Bmp,5=None,6=Embedded*/,TBool* IsDRMProtected); virtual int GetState(char* State); virtual int Play(int track_id); virtual int Pause(void); virtual int FastFoward(void); virtual int Rewind(void); virtual void* unk_0x50();//next virtual int Previous(void); virtual int SetElapsedTime(TIME time); virtual int GetElapsedTime(TIME* time); virtual int SetWindowMode(char mode); virtual int SetStarted(TBool started); virtual int SetStereoWidening(TBool enable); virtual int EnableEqualizer(void); virtual int DisableEqualizer(void); virtual int EqualizerGain_Set(int band,int level); }; Main Код: char state; wchar_t buff[0xff]; CMusicServer * pCMusicServer=0; CoCreateInstance(&CID_CMusicServer, &IID_IMusicServer, PPINTERFACE(&pCMusicServer)); pCMusicServer->GetState(&state); snwprintf(buff, 0xff, L"%d", state); MessageBox(0x6fffffff,Str2ID(ws,0,SID_ANY_LEN), NOIMAGE, 1, 5000,0); The interface is created, but I can't access any function in CMusicServer class. Phone reboot when executing this code Код: pCMusicServer->GetState(&state); Any help are appreciated :) |
Страница 153 из 211: « 1 ... 149 150 151 152 [153] 154 155 156 157 ... 211 » |
URL этой темы: https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=2479&start=1520 © 2005-2018 supertrubka.org |