ATL Provider Error ATL2031
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

ATL Provider Error ATL2031

Failed to compile RGS. Syntax error: illegal else without matching if.

The RGS file contains a [!else] directive without a corresponding [!if].

The following sample RGS file generates ATL2031.

HKLM
{
 [!else]
 val testval = s 'testval'
 [!endif]
}

To resolve the error, add a [!if] directive:

HKLM
{
 [!ifexist(noncreatable]
 [!else]
 val testval = s 'testval'
 [!endif]
}
Show:
© 2016 Microsoft