A2008 Masm Error
Contents |
MASM Forum » General » The Campus » error A2008: syntax error : , «
Error A2008: Syntax Error : C
previous next » Print Pages: [1] Author Topic: error A2008: syntax syntax error endp error : , (Read 9229 times) Magnum Member Posts: 2180 error A2008: syntax error : , « on: September 08, 2013, 01:53:55 AM » C:\MASM32\SOURCE\DialOut.asm(55) : error A2008: syntax error : ,I know the comma is not supposed to be there, but don't know how to fix it.AndyCode: [Select]; Hang_Up.asm Sever POT connection huntingspace,
;
include \masm32\include\masm32rt.inc
include \MASM32\include\rasapi32.inc
includelib \MASM32\lib\rasapi32.lib
.data?
lpRasConn dd ?
dwCb dd ?
dwConnections dd ?
.code
start:
xor eax,eax
mov dwCb,eax
mov dwConnections,eax
mov lpRasConn,eax
; Call RasEnumConnections with lpRasConn = NULL.
; dwCb is returned with the required buffer size and a return code of ERROR_BUFFER_TOO_SMALL
invoke RasEnumConnections,lpRasConn, addr dwCb,addr dwConnections
.if (eax== ERROR_BUFFER_TOO_SMALL)
; Allocate the memory needed for the array of RAS structure(s).
invoke GetProcessHeap
mov edi,eax
invoke HeapAlloc,edi,HEAP_ZERO_MEMORY,dwCb
.if !(eax & eax)
printf("HeapAlloc failed!",13,10)
;printf("RegOpenKeyEx %s\n\n", LastError$())
jmp exit0
.endif
mov lpRasConn,eax
; The first RASCONN structure in the array must contain the RASCONN structure size
mov esi,lpRasConn
mov [esi].RASCONN.dwSize,sizeof RASCONN
; Call RasEnumConnections to enumerate active connections
invoke RasEnumConnections,esi,addr dwCb,addr dwConnections
; If successful, print the names of the active connections.
.if !(eax & eax)
printf("The following RAS connections are currently active:",13,10)
xor ebx,ebx
.repeat
lea eax,[esi].RASCONN.szEntryName
printf("%s",13,10),eax
add esi,sizeof RASCONN
inc ebx
.until (ebx>=dwConnections)
.endif
;Deallocate memory for the connection buffer
invoke HeapFree,edi,0,lpRasConn
LearningModern CodeNetworkingOpen SourceStorageToolsDeveloper TypeEmbedded SystemsGame DevMediaTechnical, Enterprise, HPCWebOSAll ToolsAndroid*HTML5Linux*OS X*Windows*ResourcesCode SamplesContact SupportDocumentationFree SoftwareIntel Registration CenterProduct ForumsSDKsResourcesPartner with IntelAcademic ProgramPartner SpotlightBlack Belt DeveloperDeveloper MeshInnovator ProgramSuccess StoriesLearnBlogBusiness TipsEventsVideosSupportContact SupportDeveloper EvangelistsFAQsForums Search form Search You are hereHome › Forums › Intel® Software Development Products › Intel® C++ Compiler FacebookLinkedInTwitterDiggDeliciousGoogle Plus error A2008: syntax error : . in the .asm file error A2008: syntax error : . in the .asm file shippi Wed, 05/12/2004 - 21:03 hi, let me first give a little background of what i am trying to acheive before ithrow my query. i wrote a small helloworld.cpp file in microsoft visual studio.netand then compiled http://masm32.com/board/index.php?topic=2339.0 this file to get a helloworld.asm file. However i found that the microsoft visual studio.net ignores the .asm file and compiles and runs only .cpp file. for microsft Visual studio to consider my .asm file, i right clicked on the .asm file and in the properties>custom build setup> I entered the following Command line: c:masm32inml /c /Cx /coff .Debughelloworld.asm Outputs : $(InputName).obj https://software.intel.com/en-us/forums/intel-c-compiler/topic/310243 Now when i click on the build icon, the compiler gives a syntax error in the .asm file. Assembling: .DebugHelloworld.asm.DebugHelloworld.asm(55) : error A2008: syntax error : ..DebugHelloworld.asm(59) : error A2008: syntax error : .Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step" The code on line 55 and 59 is a as follows __RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase __RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown Can anyone help me understand what this error is and how i can get rid of it. Thanks in advance RSS Top 6 posts / 0 new Last post For more complete information about compiler optimizations, see our Optimization Notice. Log in to post comments Maximillian D. (Intel) Thu, 05/13/2004 - 15:00 Dear Shippi, I don't have a windows compiler to try this out and it's unclear if you are using the MS compiler or icl to compile from .cpp to .asm. From the symbols shown that seem to cause the error, here's a guess - RTC = run time check. Do you have options on the command line to specify some run time checks? Maybe if you
error A2008: syntax error : MENUINFOMenuToolbar.asm(279) : error A2006: http://www.asmcommunity.net/forums/topic/?id=22330 undefined symbol : MENUINFOMenuToolbar.asm(279) : error A2195: parameter or local cannot have void typeMenuToolbar.asm(285) : error A2006: undefined symbol : hbrBackMenuToolbar.asm(286) : error A2006: undefined symbol : cbSizeMenuToolbar.asm(287) : error A2006: undefined symbol : fmaskMake error(s) occured.Total compile syntax error time 430 msPlease help and advise on how to restore the above error which I am getting in assembling& compiling a tutorial made for RadASM IDE with rap file.Thanks!Naiman Posted on 2005-11-09 18:11:09 by nkhan Re: error A2008: syntax a2008 masm error error : MENUINFO HiMENUINFO declaration is missing in your code.Here it is:
MENUINFO struct
cbSize DWORD ?
fmask DWORD ?
dwstyle DWORD ?
cyMax DWORD ?
hbrBack DWORD ?
dwContextHelpID DWORD ?
dwMenuData DWORD ?
MENUINFO ends
KetilO Posted on 2005-11-10 02:38:04 by KetilO Re: error A2008: syntax error : MENUINFO Thanks for replying! you are right , infact it was not declared in windows.inc which I have now added.However this problem is now resolved.Thanks! great reply!Naiman Posted on 2005-11-10 11:08:50 by nkhan