(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-15-24 01:09 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Virtual HDC's in VB New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6295 days
Last view: 6295 days
Posted on 03-13-06 10:05 PM Link | Quote
Alrighty I can't find any documentation on this at all and i'm using VB6. Any one care to explain
Arthus

140


 





Since: 11-17-05
From: Australia

Last post: 6507 days
Last view: 6507 days
Posted on 03-13-06 11:59 PM Link | Quote
SOunds like your creating an editor, I know how to write to a certain part of an image, but not get one from a file. Did you try looking for examples? A few ROM hackers here have some good ones.
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6295 days
Last view: 6295 days
Posted on 03-14-06 12:09 AM Link | Quote
I've been looking for docs on Virtual HDC's i've seen some code but they were using Pixels not hdc's, so yeah. I got the Tiles I need but I want to put them on the Virtual HDC so the user doesn't see them while the program loads the the TSA stuff.
Guy Perfect









Since: 11-18-05

Last post: 6297 days
Last view: 6295 days
Posted on 03-20-06 12:15 AM Link | Quote
In which case, you're gonna want to look up GDI. A subset of GDI that uses some advanced memory management called DIB Sections that are the fastest way to do things. Both will create a DC in memory so it will not be on-screen when you manipulate it.

Visual Basic handles memory automatically, so be careful if you decide to go for DIB Sections. If you fail to deallocate memory, all of the people who use your program will hate you. Also, "hDC" is VB's specific keyword that refers to a handle to a DC. "DC" is the proper term to use for a GDI device context.

Information on the GDI can be found here, which is the section of the MSDN Library devoted to it. It's documented in C++, but you can easily convert it to Visual Basic for your various needs.

Also check out the API Text Viewer program which should be in your Start Menu with Visual Basic (it's one of the Tools). That program can get you access to all GDI functions in VB format. But still use the MSDN Library for documentation on how to use them.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - Virtual HDC's in VB |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.009 seconds; used 359.48 kB (max 425.16 kB)