Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Loading bitmap image from resource

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Mahesh Babu Sad...

Posts: 2
Registered: 10/30/16
Loading bitmap image from resource  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 22, 2017 5:24 AM
I am trying to use the below code to load an image from resource but getting an exception.
Please look into it and provide a solution in tokyo 10.2.1 c++ builder

Resource File(.rc)


Source Code:

TImage *trialerImageBitmapDynamic;

TResourceStream *obj= new TResourceStream((int)HInstance,IDB_DRAWBAR_TRAILER_IMAGE,RT_BITMAP);


Project raised exception class EBitmalLoadingFailed with message 'Loading bitmap failed'
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02