Jump to content

Call image from dll how?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
arctushar

arctushar

    Newbie

  • Members
  • Pip
  • 4 posts
Hello
I m new in devshed and Visual basic. I want to make an application which will call images from a dll file. Is it possible. for example:
I want to make an application for kids for learning letter. Say I have 26 images for 26 different Letter (A, B, C....)
Now when some one click on button A, Image A will be shown.
Also want that images will be compact in one file (may be dll or other) So give me detail instruction

#2
ChoHacker

ChoHacker

    Newbie

  • Members
  • Pip
  • 2 posts
I dont suppose

x=msgbox("ur mssage here ",0+0,"ur title here")

would do much but it could be a idea



```````````````cho hacker

#3
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
You can add all the letters as resources in the dll and then a simple function returning the right image. Then you can just call that function from your program.

#4
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
well you could also use various API for extracting images from a dll for icons i use the ExtractIcon API u guess you should make a search on MSDN for other image types
Posted Image

#5
arctushar

arctushar

    Newbie

  • Members
  • Pip
  • 4 posts
thanx kresh7. but how can I make dll fie. I need also this tutorial

#6
VBman

VBman

    Newbie

  • Members
  • Pip
  • 8 posts
Why use DLLs?
Just use ImageBox's or whatever they are called.

#7
Samrob

Samrob

    Newbie

  • Members
  • Pip
  • 4 posts

VBman said:

Why use DLLs?
Just use ImageBox's or whatever they are called.

He is meaning that he wants to store or call in the files from a .dll file to be displayed in his program :)