The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => Miscellaneous Projects => Windows Projects => Topic started by: Manos on December 20, 2004, 03:12:00 PM

Title: BooksCollection (with source code)
Post by: Manos on December 20, 2004, 03:12:00 PM
I had build this project for personal use,but I think that it will be applicative for others.
Therefor,I upload this with source code.
By a small modification,you can use this as SongsCollection.
Download this from:
http://www.manoscoder.gr/mbbs/category-view.asp


Manos.

Title: Re: BooksCollection (with source code)
Post by: Robert Collins on December 31, 2004, 01:04:43 AM
OK, I assembled Frame.asm. It compiles OK but it doesn't work. There is no menu bar
Title: Re: BooksCollection (with source code)
Post by: Manos on December 31, 2004, 08:39:55 AM
Robert,

From menu File press New.
Then,menu bar will change and appears in menu the 'Wiew'.
Press View and then press Main Form.

Regards,
Manos.
Title: Re: BooksCollection (with source code)
Post by: Robert Collins on December 31, 2004, 02:16:01 PM
Quote from: Manos on December 31, 2004, 08:39:55 AM
Robert,

From menu File press New.
Then,menu bar will change and appears in menu the 'Wiew'.
Press View and then press Main Form.

Regards,
Manos.


Yes, that is exactly how it works if you run the already included .exe file. However, I reassembled the application using Frame.asm as the main source file. It assembled and linked without any problems but when I run the new .exe file the window appears just as it does in the included .exe file but it is missing the menu bar. There are place-setters for the menu items but they are missing the text and do not have any functionality. Below is link to the .exe file so you can see what I am talking about

http://www.futureedge.com/Frame_asm/Frame.exe
Title: Re: BooksCollection (with source code)
Post by: Manos on December 31, 2004, 10:51:07 PM
Robert,

You are right.
I 'll try to fix the problem.

Thank you,
Manos.
Title: Re: BooksCollection (with source code)
Post by: Manos on December 31, 2004, 11:38:15 PM
Robert,

Unzip the attach file,add in the project folder and try again.

Manos.


[attachment deleted by admin]
Title: Re: BooksCollection (with source code)
Post by: Robert Collins on January 01, 2005, 02:53:14 AM
Didn't help, same problem. Maybe it's the way I am assembling it. Since there was no build file attached I simply used the assemble/link feature of QEditor. It assembles clean that's for sure.
Title: Re: BooksCollection (with source code)
Post by: Manos on January 01, 2005, 08:33:40 AM
Robert,

Because you use QEditor the problem is in name of .rc file.
Change the name from ColectRes.rc to rsrc.rc

Try the attach file.

[attachment deleted by admin]
Title: Re: BooksCollection (with source code)
Post by: Robert Collins on January 01, 2005, 09:23:47 PM
OK, that didn't work either. I am just too new at this Win32 assembly stuff to know right from wrong but I am beginning to think that there is no way to assemble the project using QEditor's 'Assemble and Link' feature. I think it requires a build.bat file which has that stuff in it about including resource files. I have seen something like that but have no idea how to put one together myself.
Title: Re: BooksCollection (with source code)
Post by: donkey on January 01, 2005, 09:44:59 PM
Hi Robert,

Why not try RadASM, it is a much more powerful RAD system. The dialog editor is top notch and you will find the wealth of plugins and tools designed specifically for it make coding much faster.
Title: Re: BooksCollection (with source code)
Post by: Manos on January 01, 2005, 10:01:49 PM
My source code is OK.
I builded this work with two differnts IDEs without problem.

For Donkey:
Have you any problem when build this code ?

Regards,
Manos.
Title: Re: BooksCollection (with source code)
Post by: donkey on January 01, 2005, 10:14:17 PM
Hi Manos,

I did not try to build it, it is in MASM and though I have a copy of MASM somewhere it is no longer installed on my system. Converting it to GoAsm was an option but I have not looked into it too closely. I am afraid I just don't have the time I used to to look at other's projects so it takes a while to get to them sometimes. I will take the time to re-install MASM once I reformat later this month.
Title: Re: BooksCollection (with source code)
Post by: Manos on January 01, 2005, 10:22:54 PM
The problem seems to be in .rc file

Robert,
If you use QEditor,
compile rsrc.rc,then assemble Frame.asm and then link.
Or select build.

Manos.

Title: Re: BooksCollection (with source code)
Post by: Robert Collins on January 01, 2005, 10:39:51 PM
Quote from: Manos on January 01, 2005, 10:22:54 PM
The problem seems to be in .rc file

Robert,
If you use QEditor,
compile rsrc.rc,then assemble Frame.asm and then link.
Or select build.

Manos.



OK, I assembled rsrc.rc first. Then I opened up 'Frame.asm' and tried to build it with QEditor. But now, instead of QEditor's 'Assemble and Link' doing anything it just sits there waiting for me to enter something which I have no idea what. I can assemble/link other projects without any problems but for some reason it wants me to input something for this project. :(
Title: Re: BooksCollection (with source code)
Post by: Manos on January 01, 2005, 10:57:37 PM
Robert,
Copy the folder BooksCollection and paste this in folder masm32.
Then open QEditor from masm32 folder,open Frame.asm and then
from menu Project press ' Compile Resource File ',then press ' Assemble Asm File ',
then press Link Obj file.

Or press Build All.

Manos.
Title: Re: BooksCollection (with source code)
Post by: pbrennick on January 02, 2005, 12:28:54 AM
Robert, Manos,
I will take a look at this problem.  The solution is usually something very simple.  I will get back to you all just as soon as I can.

Robert,
Please be patient with Manos, he wants to help but there is a language issue.  He has asked me for help and here I am.
Paul
Title: Re: BooksCollection (with source code)
Post by: Robert Collins on January 02, 2005, 12:52:08 AM
Your last post. It works. Sorry about not replying back......I did reply but I clicked on 'Preview' then forgot to click on 'Post'

Thanks alot. Manos, I appreciate all your efforts and the way you said I followed it 'exactly' and it is good.   
Title: Re: BooksCollection (with source code)
Post by: hutch-- on January 02, 2005, 12:52:17 AM
I just downloaded the original file, renamed the resource file to RSRC.RC, added the include and lib paths in frame.inc and it builds and runs fine.

Its just that Manos did not build the original in MASM32 format so it would not build without a few simple modifications.
Title: Re: BooksCollection (with source code)
Post by: pbrennick on January 02, 2005, 01:48:55 AM
Thanks guys,
Since you have it working there is no point in my posting my copy.  I like it when the solutions are nice and easy.

Goodnight all.
Paul