flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Snejk47
Hi all, I'm new here
![]() I have C++ source file (SDK header) and i wanna convert it to FASM. C++ file and what i now have done. I wanna rewrite all but i don't know how to convert for example this: Code: struct TPluginInfo { int cbSize; wchar_t* ShortName; int Version; wchar_t* Description; wchar_t* Author; wchar_t* AuthorMail; wchar_t* Copyright; wchar_t* Homepage; char Flag; int ReplaceDefaultModule; }; How can I check what I have to insert instead of an "int" or "unsigned int" or "wchar_t *"? Snejk. |
|||
![]() |
|
AsmGuru62
Also, different structure packing options in C++ may cause a misalignment of last field in a structure in FASM.
|
|||
![]() |
|
addes3
You should change the DB's to EQU's.
And the L"" are wide (unicode) strings, so just wrapping them in single quotes may not work. |
|||
![]() |
|
rain_storm
The FASM equivelent would look something like this
Code: struct TPluginInfo cbSize dd ? ShortName dd ? Version dd ? Description dd ? Author dd ? AuthorMail dd ? Copyright dd ? Homepage dd ? Flag dd ? ; assumes that char is padded to dword alignment ReplaceDefaultModule dd ? ends |
|||
![]() |
|
addes3
|
|||
![]() |
|
Overflowz
rain_storm
maybe this would be better ? Code: struct TPluginInfo .cbSize dd ? .ShortName dd ? .Version dd ? .Description dd ? .Author dd ? .AuthorMail dd ? .Copyright dd ? .Homepage dd ? .Flag dd ? ; assumes that char is padded to dword alignment .ReplaceDefaultModule dd ? ends |
|||
![]() |
|
Snejk47
Thank you very much for all
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.