News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

name word as a member of a structure

Started by LordAdef, October 20, 2020, 08:29:52 AM

Previous topic - Next topic

jj2007

Asmc Macro Assembler Version 2.31.24
error A2008: syntax error : typeid

So you have given up on MASM/UAsm compatibility?

nidud

#16
deleted

jj2007

Ok, I've installed latest version and it works.

I like AsmC because it's 25...30% faster than UAsm, but syntax-wise it gets weirder and weirder. And breaking a key function like type is a no-no. At least you could make /Znk the default.

PrintAny macro arg
    typeid(Print, arg)(arg)
    endm
Print?dword macro arg
    crt_printf("%i\n", arg)
    endm
Print?real8 macro arg
    crt_printf("%f\n", arg)
    endm


LordAdef

Thanks guys for clarifying all that to me. I never tried Asmc, although always wanted to. Since I've been doing my things in UASM, I don't want to change that during things.
But I find it weird that the Bass.inc contains the 'name' word in the structs, someone must have got this issue before, but it's still there

So I guess the example I was building has some other issue apart from the 'name' thing.
If any of you could try and run the attachment, it would be nice. It builds, and runs, but soon it crashes. I just want to make sure it not only on me. I didn't write the code, it's an example I downloaded.

HSE

Work well in 32 bit - win7. (Your binary don't include resources)

Building with ml , uasm32 or Asmc, no problem.


Equations in Assembly: SmplMath

LordAdef

Quote from: HSE on October 21, 2020, 07:35:17 AM
Work well in 32 bit - win7. (Your binary don't include resources)

Building with ml , uasm32 or Asmc, no problem.
Thanks HSE, so It's probably a win 10 incompatibility

jj2007

Quote from: LordAdef on October 21, 2020, 07:03:09 AMIf any of you could try and run the attachment, it would be nice. It builds, and runs, but soon it crashes.

I opened spectrum.asm in RichMasm, hit F6, and it asks me to open a playable file. It plays my mp3 just fine and without any crash. This is Windows 7-64, built with Uasm64 :cool:

TouEnMasm


Win10 test,quit just affter the start play sound.
Fa is a musical note to play with CL

Siekmanski

Creative coders use backward thinking techniques as a strategy.

TouEnMasm


Trying to rebuild:
Ml OK
link:LINK : fatal error LNK1000: unknown error; consult documentation for technical support options

Seems that libraries are responsible of the problem.
Fa is a musical note to play with CL

TouEnMasm


I suspect the bass library to create problem.
You don't need those extra libraries to play media files.
The windows MF libraries are enough to do that.
see http://masm32.com/board/index.php?topic=8780.msg95839#msg95839
Modify it a little and he play sound for you.
Fa is a musical note to play with CL

jj2007

I've tested it now on Windows 10, too, and it fails somewhere in WinMM.dll - bad luck :cool:

You could flag the issue at https://www.un4seen.com/forum/?topic=18837.0

LordAdef

Hi JJ, Marinus and TouEnMasm,
Thanks for helping!
I am somehow happy I am not the only one having a crash
QuoteSame for me Win8.1
So I guess their lib is only running on win7


QuoteYou don't need those extra libraries to play media files.
I know, but BASS has several handy addons that are convenient for a quick sketch up. ASIO drivers support, VST and so on. I am only trying to inspect the library, really. But thanks for the link, I will have a look
QuoteYou could flag the issue at https://www.un4seen.com/forum/?topic=18837.0
Thanks JJ, I am going to post a log there