After about 80 downloads of the latest update, I
haven't heard of anymore complants, so I'm
posting the complete package including the source.

I have not got around to splitting the program up
(it's one big glob), and there are some duplicate
routines that can be combined, plus some other
things that can be done to cut down on the code

But the main thing, it works.

In phase 2, I will clean up the code.

One thing that I have done since the last posted update
is to better allocate the memory, before I just
allocated a large block of memory for each control
type, now I only allocate or reallocate memory as



I forgot to include the sample Resource file.

There were 186 previous downloads.
Posted on 2002-01-26 22:59:51 by Ewayne
Hi Ewayne,

Working flawlessly here on WinME!!
Can't wait to see this implemented in AsmEdit, great work!

Posted on 2002-01-27 08:27:03 by gscundiff
To Gary:

Thanks for the feedback, I hope you can follow
the code ok.

I'm working on the integration into AsmEdit, but
I haven't made up my mind on whether to build it
in to AsmEdit or keep it as an addin.

Keeping it as an addin has it's advantages, one
of them being able to to use ResEditor in other

Any suggestions from anyone would be appreciated.


Posted on 2002-01-27 13:08:40 by Ewayne
Your reseditor is really looking good. :grin:
But if I may suggest, keep it as an add-in. It would be a great add-in. And like you said. It could more easily be adapted into other programs if needed. Also, your Asmedit code is nice, but there is alot of info there already. Adding this chunk of code to it could just make it more easy to get accidentaly confused should you decide to change or add something else to it in the future. It's always easier to look over smaller organized code then large sections of unrelated code.:rolleyes:
Posted on 2002-01-27 14:14:48 by yrret
To yrret:

Thanks for the feedback.

I added one more vote to keep it as an addin.

Posted on 2002-01-27 14:22:02 by Ewayne

Keep it as an addin :). If you built it into ASMEdit as a feature, youd have to send out the ASMEdit exe everytime you wanted to update the resource editor. If as an addin, youd only have to send out the addin.. much smaller :)

Resource editors usually need alot of maintenance so I say keep it an addin :). Then after you perfect it enough.. then you might consider making it part of ASMEdit.

Posted on 2002-01-27 14:43:52 by Torch
To Torch:

Thanks for the feedback.

Another vote to keep it as an addin.

Posted on 2002-01-27 14:50:06 by Ewayne
Hey man, just a little request. Can you make it so that you can automatically load the bitmap into the dialog without any code? I'm so tired of using Borland C++'s Resource Editor because its taking up so much space. It is the only resource editor I've seen which can do this.

BTW, good job!
Posted on 2002-01-27 17:22:25 by Tsongkie[ii]
To Tsongkie:

I'm not sure if I know what you mean by:

Can you make it so that you can automatically load the bitmap into the dialog without any code?

I'm sure I can do it if I knew what I was suppose to do.

Could you show me an example?


Posted on 2002-01-27 18:34:52 by Ewayne
Not sure if I understand but I thinks he means than in both the resource workshop and Visual C++ Resource creator. So when you add a bitmap to a dialog it will show it.

To add a bitmap:


IDB_BITMAP = number id of the bitmap, can be any number.
"bitmap1.bmp" = name of the bitmap.

And to add it to a dialog:


Where :
IDB_BITMAP = number id of the bitmap.
2,8 = x and y coords of the bitmap
24,24 = width and height of the bitmap inside the dialog.

If you dont want to implement a full bitmap editor for the resource editor you can call paintbrush. Icons are more tricky, tough.
Posted on 2002-01-27 19:54:02 by dxantos
To dxantos:

I know how to create dialogs with icons or bitmaps,
but I didn't understand what Tsongkie meant by
(automatically load the bitmap into the dialog
without any code).

ResEditor creates the bitmap code for the dialog.

Does Tsongkie mean to also create the resource code?


No problem if thats what he means.


Posted on 2002-01-27 20:20:51 by Ewayne
Yeah. I mean the resource editor that comes with borland c++ can load the bitmap into the dialog, not needing any code to go with it.

Thanks anyway.
Posted on 2002-01-27 21:35:28 by Tsongkie[ii]
To Tsongkie:

Now I'm starting to get confused(which is not
hard for me to do).

There has to be code generated somewhere.


Posted on 2002-01-27 21:46:02 by Ewayne
Sorry if I cant explain it well. My english isnt good.

Heres what I do:

1. Load a bitmap in a resource file.
2. Create a DialogEX
3. Put a Bitmap component in the dialog
4. In the caption property, I put the name of the bitmap resource
5. The dialog automatically shows the Bitmap where I can move it around easily.

Now, I just need to compile my code with the resource file I made. I dont have to call Bitblt anymore. Got it?

Sorry again
Posted on 2002-01-27 22:08:33 by Tsongkie[ii]
To Tsongkie:

Your english is probably better then mine.

I see what you mean.

When you create a Bitmap control with ResEditor
it will create the following code:

CONTROL IDC_BITICON,IDC_BITICON01,"static",0x5000090E,193,124,21,19,0x00000000

All you need to do in the resource file is to add


code, which I could generate in the program.

After you compile the resource file the Bitmap
will load with the dialog.

Try it.


Posted on 2002-01-27 22:26:57 by Ewayne
ahhh yes. Thank you very much. sorry for being such a pain.

Then, i have to ask, do this resource file work on other languages? It asks me for some header file.
Posted on 2002-01-28 01:21:28 by Tsongkie[ii]
Integrate it into asmedit. This way we can have another RadAsm type thing. But if users want to use it apart from asmedit, they can always use this one downloaded right here.

So do both :rolleyes:
Posted on 2002-01-28 01:48:33 by Asm_Freak
To Tsongkie:

The header file it is looking for is probably the
RESOURCE.H header.

Add the following to your resource file, you'll
need to change the path and make sure you have
the RESOURCE.H file, you can find it in Hutch's


Let me know if you need anymore help.

Posted on 2002-01-28 01:55:32 by Ewayne
To Asm_Freak:

What I think I will do is ResEditor will look like
it's integrated into AsmEdit, but will really be
a stand alone addin, I'm working on that concept,
plus I'm working on phase 2 of ResEditor which
will allow the user to edit exsisting dialogs
from other resource files.

Thanks for your feedback.

Posted on 2002-01-28 02:13:16 by Ewayne
Hi Ewayne,

Yes, Addin gets my vote..that would be great to have it integreted into AsmEdit AND also be able to use ResEdit as stand-alone!

Congratulations on your hard work, and hopefully Phase 2 will go smoothly!!

Posted on 2002-01-28 06:26:46 by gscundiff