WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (7) 1 2 3 4 5 [6] 7   ( Go to first unread post )

WinAsm Studio goes open source, here is the full WinAsm Studio source code for you to download and contribute for making it ever better!

ToutEnMasm
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 23665
Joined: 21-June 09


I have tried to compile the source code and got this at link:
Seems that something is missing

CODE
WinAsm.obj : error LNK2019: unresolved external symbol _GetFileName@8 referenced in function _ShallICompile@8
WinAsm.obj : error LNK2019: unresolved external symbol _GetFilesTitle@8 referenced in function _SetAsModule@4
WinAsm.obj : error LNK2019: unresolved external symbol _DrawRectangle@8 referenced in function _DockWndProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _GetTextRange@16 referenced in function _FindIDName@8
WinAsm.obj : error LNK2019: unresolved external symbol _ClearPendingMessages@12 referenced in function _RCDlgProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _GetFilePath@8 referenced in function _GetProjectBinName@8
WinAsm.obj : error LNK2019: unresolved external symbol _RemoveFileExt@4 referenced in function _GetProjectBinName@8
WinAsm.obj : error LNK2019: unresolved external symbol _GetItemParameter@8 referenced in function _ResourcesDialogProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _SetItemParameter@12 referenced in function _BrowseResourceButtonProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _ChangeCase@8 referenced in function _MainWndProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _DeleteFiles@8 referenced in function _DeleteObjReslstExpFiles@0
WinAsm.obj : error LNK2019: unresolved external symbol _ReplaceBackSlashWithSlash@4 referenced in function _BinaryFilesDialogProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _DrawFocusRectangle@8 referenced in function _RCDlgProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _IsThereSuchAClass@4 referenced in function _ReCreateControl@4
WinAsm.obj : error LNK2019: unresolved external symbol _BinToDec@8 referenced in function _BinaryFilesDialogProc@16
WinAsm.obj : error LNK2019: unresolved external symbol _StreamInProc@16 referenced in function _LoadFile@8
WinAsm.obj : error LNK2019: unresolved external symbol _StreamOutProc@16 referenced in function _SaveOutText@4
WinAsm.exe : fatal error LNK1120: 17 unresolved externals

Sponsored Links
PMEmail Poster
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 892
Member No.: 5019
Joined: 13-May 07


Hi

I have no problems by compile it

with Masm32 v10

Greets,
PMUsers Website
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 728
Member No.: 11
Joined: 16-May 04


So, I thought I'd compile WinAsm to make some minor cosmetic changes for my own purposes.

I get the following error:

F:\WinAsmSource\WinAsm v 5.1.8.7\WinAsm.asm(5621) : Error A2228: Invalid operand for SIZEOF: MAX_PATH+1

line 5621 of WinAsm.asm =

MOV EAX,SizeOf MAX_PATH+1

Clearly this is an error. I assume it was meant to just do

MOV EAX,MAX_PATH+1

I'm using jwasm, so maybe no one ever tried it before?



PMEmail Poster
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 892
Member No.: 5019
Joined: 13-May 07


Also under masm32 works fine with
MOV EAX,SizeOf MAX_PATH+1

you try it with Jwasm support Jwasm SizeOf?

Try it in lowercase sizeof


But why Sizeof?

MAX_PATH is define as MAX_PATH equ 260
in Windows.inc

after Compile it is it

00401705 |. B8 05010000 MOV EAX,105 (261)

and by MOV EAX,MAX_PATH+1

00401723 |. B8 05010000 MOV EAX,105 (261)

Sizeof :Returns the number of bytes in variable or type.

Regards,

PMUsers Website
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 728
Member No.: 11
Joined: 16-May 04


Exactly.
"Sizeof :Returns the number of bytes in variable or type."
i.e. the number of bytes it takes to store a piece of data.
MAX_PATH a constant, set by an equ, without any particular size.
Best case would be that the answer would always be 4, a value stored in a 4 byte integer.
Why would anyone want to do that?

If you want the value of MAX_PATH, use MAX_PATH, not sizeof MAX_PATH.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (7) 1 2 3 4 5 [6] 7  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google