Hello !
I'm trying xBuilder and found one problem . I'm using Hernan's browse and in some browses I'm using bitmaps from resources . This function allways return 0 and I can't to see bitmaps in columns . Also I tried with bitmaps from disk and ReadBitmap() function - this works OK . Maybe you know where can be problem of LoadBitmap() function ? Can this be problem of xBuilder resource compiler ?
With best regards ! Rimantas .
LoadBitmap() & xBuilder
- Antonio Linares
- Site Admin
- Posts: 42511
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Antonio Linares wrote:Rimantas,
Have you tried the same code with Borland ?
Also, once the EXE is built, open it with the resources workshop and check that the bitmaps are there.
I alreday wrote that with Borland that works fine , so I can't understand this "check with RW that the bitmaps are there"
![Smile :-)](./images/smilies/icon_smile.gif)
Regards ! Rimantas .
Rimantas U.
Rimantas wrote:Antonio Linares wrote:Rimantas,
Have you tried the same code with Borland ?
Also, once the EXE is built, open it with the resources workshop and check that the bitmaps are there.
I alreday wrote that with Borland that works fine , so I can't understand this "check with RW that the bitmaps are there")
Excuse , I didn't wrote that in earlier , that with Borlands works fine . I want to correct this
![Smile :-)](./images/smilies/icon_smile.gif)
Regards ! Rimantas .
Rimantas U.
- Antonio Linares
- Site Admin
- Posts: 42511
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Antonio Linares wrote:Rimantas,
You may use FindResource() function to check that the resource is available and accesible at runtime.
Thank Antonio , for advice ! I reviewed this function and have one question : FindResource( hResources, cResName, nResType ) . What to include into hResources ? 0 ?
Regards ! Rimantas .
Rimantas U.
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
EnricoMaria wrote:GetResources()
EMG
Thanks , Enrico ! I tried the advice of Antonio , sorry , the results are bads - FindResource() return 0 ..
![Sad :-(](./images/smilies/icon_sad.gif)
![Smile :-)](./images/smilies/icon_smile.gif)
Anyway , thanks for help ! With best regards ! Rimantas .
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact: