News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how to fix this

Started by nrdev, May 27, 2009, 12:53:22 PM

Previous topic - Next topic

nrdev

I have tried to compile my 32 bit program but it returned more then 100 errors, all of them came from windows.inc. One of them is 'language type must be specified', and is repeated about 50 times.
How can I fix this?

UtillMasm


fearless

Maybe you have an older version of the windows.inc file, but also might be an option you have or have not specified in your main asm program. Perhaps if you post some code, or attach a source file, it would help us in making a diagnosis of the problem.
ƒearless

nrdev


hutch--

Nebojsa,

There are parts of the program missing, the subclass procedure "Butn1Proc" is missing. I removed the manually specified include files and used the following,


    include \masm32\include\masm32rt.inc


I have got the error count down a lot but there are too many things wrong with it to get it going at the moment.

I looks like you have put the program together in bits without testing each addition. Start again and get the bare dialog going, then add each extra bit assembling it each time until you get it all up and going.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

nrdev

ok, I have fixed almost all errors, but I get another strange error, here is the source code so you can se what is the problem.

Error is in line 6 and 7.

source code

UtillMasm

delete line 5, 6, 7. then assembly and link ok.

dedndave

yes - if you look inside masm32rt.inc, it sets up the model and case option for you
it also has several includes for libs, macros, etc

nrdev

ok it compiles good, but it returns fatal error in windows


Dialog "Serial Number Creator","MS Sans Serif",10, \         ; caption,font,pointsize
            WS_OVERLAPPED or WS_SYSMENU or DS_CENTER, \              ; style
            5, \                                                     ; control count
            50,50,150,80, \                                          ; xy co-ordinates
            1024                                                     ; memory buffer size
                                                     
        DlgButton   "Create",                   WS_TABSTOP,100,240,50,13,100
        DlgButton   "Exit",                     WS_TABSTOP,165,240,50,13,101
        DlgButton   "About",                    WS_TABSTOP,200,240,50,13,102
        DlgProgress                             PBS_SMOOTH or WS_BORDER,3,95,253,225,103
        ;DlgGroup    "Numer of the combinations ", 10,15,80,90,104
        ;DlgRadio    "2 combinations",           WS_TABSTOP,10,20,50,13,105
        ;DlgRadio    "3 combinations",           WS_TABSTOP,10,30,50,13,106
        ;DlgRadio    "4 combinations",           WS_TABSTOP,10,40,50,13,107
        ;DlgRadio    "5 combinations",           WS_TABSTOP,10,50,50,13,108
        ;DlgGroup    "Separation",                          85,15,120,50,109
        ;DlgRadio    "Separation with '-'",      WS_TABSTOP,85,20,50,13,110
        ;DlgRadio    "Separation with one space",WS_TABSTOP,85,30,50,13,111
        ;DlgRadio    "Without separation",       WS_TABSTOP,85,40,50,13,112
        ;DlgGroup    "Combination type",                    85,50,120,90,113
        ;DlgRadio    "Only numbers",             WS_TABSTOP,85,60,50,13,114
        ;DlgRadio    "Only letters",             WS_TABSTOP,85,70,50,13,115
        ;DlgRadio    "Numbers and letters",      WS_TABSTOP,85,80,50,13,116


when I do this modification in my code everything is the same but program doesn't return any error and won't start at all.

dedndave

Bink !!!

sumpin smells stinkowith


UtillMasm

 :lol :clap: :dance: :naughty: :snooty: :toothy :bg