Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - PNG Compatibility
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PNG Compatibility

 Post Reply Post Reply
Author
Message
giro21k View Drop Down
Newbie
Newbie
Avatar

Joined: 08 July 2008
Location: Colombia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote giro21k Quote  Post ReplyReply Direct Link To This Post Topic: PNG Compatibility
    Posted: 08 July 2008 at 6:54pm
i want import PNG files to Codejock Product. Is Posible.
 
Thanks
 
Excuse me english
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 9:14pm
Yeah.

You can add png to ImageManager at runtime using LoadBitmap or LoadBitmapFromResource (tip-the resource type needs to be 'PNG').
Back to Top
giro21k View Drop Down
Newbie
Newbie
Avatar

Joined: 08 July 2008
Location: Colombia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote giro21k Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2008 at 7:28pm
how set resource type in resources editor of visual basic 6?
 
Thanks
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2008 at 1:01am
You can't. The VB6 resource editor is just an outdated and pretty useless add-in.

You need to compile your own .res file. You can do this using a MS tool called RC.exe. Here's a few links (the first one is easiest to understand):

http://www.darinhiggins.com/2007/04/22/VisualBasic6AndResourceFiles.aspx
http://www.vbaccelerator.com/home/vb/code/Libraries/Resources/Using_RC_EXE/article.asp

I've attached a zip containing a dead simple resource project.

uploads/20080802_010054_Res_Files.zip

Back to Top
TShriver View Drop Down
Groupie
Groupie
Avatar

Joined: 27 July 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote TShriver Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2008 at 4:34pm

Do you know if there is a way to use the LoadBitmapFromResource  command and see these images while in VB's IDE.  Compiling to debug is a REAL pain.  I have other 3rd party controls which don't have a problem with referencing image resources from within the IDE.

Thank you in Advance!

Tim

Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2008 at 9:31pm
Add resources to a dll. Then you can use the code in this thread to load them:

https://forum.codejock.com/forum_posts.asp?TID=9901&KW=

This works at both design time and runtime.

Back to Top
TShriver View Drop Down
Groupie
Groupie
Avatar

Joined: 27 July 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote TShriver Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2008 at 8:43am

ijwelch,

Thank you for your help!
 
Regards,
 
Tim
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.059 seconds.