News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

visual studio 2015 express and masm64

Started by markallyn, October 11, 2017, 10:01:15 AM

Previous topic - Next topic

markallyn

Hello everyone,

I finally managed to get VS2015 Express edition up and running properly.  I was wondering if it was possible to assemble masm64 bit code (Win 7) using the IDE.  Got conflicting answers from Google. Could someone here clarify?

Thanks,
Mark Allyn

aw27


markallyn

Good afternoon, aw27,

Good to hear this.  How do I do it--what do I have to click on the GUI?

Mark



aw27

It is nothing I can explain easily without making a full article.
I learned from google, better you give it another try.

LiaoMi

Quote from: markallyn on October 13, 2017, 05:30:37 AM
Good afternoon, aw27,

Good to hear this.  How do I do it--what do I have to click on the GUI?

Mark

Hi Mark,

Assembly Programming with Visual Studio 2010/2012
https://www.codeproject.com/Articles/271627/Assembly-Programming-with-Visual-Studio
Guide to Using Assembly in Visual Studio .NET
https://www.cs.virginia.edu/~evans/cs216/guides/vsasm.html
Getting Started with MASM and Visual Studio 2015
http://kipirvine.com/asm/gettingStartedVS2015/index.htm
Introduction to writing x64 assembly in Visual Studio
http://lallouslab.net/2016/01/11/introduction-to-writing-x64-assembly-in-visual-studio/

AsmHighlighter 1.6 - VS2010 + VS2012
https://asmhighlighter.codeplex.com/

8) :t

markallyn

Good morning, LiaoMi,

Thanks for the links.  After getting encouragement from aw27 I managed to partially solve the problem.  But, I'm not there yet.

Mark

markallyn

aw27, LiaoMi,

Well, I got partway there and then ran into issues adjusting the linker/assembler options on the property page.  For some reason, probably a bad download, the "OK", "Cancel", and "apply" buttons don't show up (actually on all the "properties" button on relevant taskbar menu items as well as "solution explorer".  So, I'm running a "repair" of the installation in hopes that they will magically reappear. 

Mark Allyn

markallyn

Hello everyone,

As aw27 said, it can indeed be done.  All you have to do is right click on the project in the solutions explorer window, go to the "Build dependencies" line, then click on  the "build customizations" line, and select masm in the drop-down lisk, and then "OK".

Two questions remain unresolved for me.

1.  Why does the IDE insist on naming the entry point "mainCRTStartup"?
2.  If I want to change the entry point to something else, how do I do it?  I know how to find the relevant line in the "properties" page or the linker options, but I don't know how to change it.  There are no "apply" or "OK" buttons on the page where I make the edit.

Thanks,
Mark Allyn

dedndave

mainCRTStartup is the standard entry name given by the C compiler under windows

https://docs.microsoft.com/en-us/cpp/build/reference/entry-entry-point-symbol

it would be a lot easier to just change the name of your main routine  :biggrin:

aw27

Quote from: markallyn on October 16, 2017, 03:56:01 AM
Hello everyone,

As aw27 said, it can indeed be done.  All you have to do is right click on the project in the solutions explorer window, go to the "Build dependencies" line, then click on  the "build customizations" line, and select masm in the drop-down lisk, and then "OK".

Two questions remain unresolved for me.

1.  Why does the IDE insist on naming the entry point "mainCRTStartup"?
2.  If I want to change the entry point to something else, how do I do it?  I know how to find the relevant line in the "properties" page or the linker options, but I don't know how to change it.  There are no "apply" or "OK" buttons on the page where I make the edit.

Thanks,
Mark Allyn

Hello markallyn,
I don't know the reason for the buttons not being visible and will not speculate about possible reasons.
You can get rid of the default mainCRTStartup and use your own with that name or set your own EntryPoint in the Properties as you found. Probably you will have to Ignore some default libraries as well.



nidud

#10
deleted