VS2017中使用ObjectARX 2019 wizard的 ArxWizMFCSupport向导出现的bug修复前因后果

VS2017中使用ObjectARX 2019 wizard的 ArxWizMFCSupport向导出现的bug,提示脚本错误.

实际原因类似在arx2012向导的问题,需要修改C:\Program Files (x86)\Autodesk\ObjectARX 2019 Wizards\ArxWizMFCSupport\HTML\1033下的default.htm

首先查找vs2017的VsWizard.dll文件是否注册,如果注册了,会在注册表中有一个     计算机\HKEY_CLASSES_ROOT\VsWizard.WizCombo.15.0 的注册表项,

找到这项下面的clsid默认值,复制这段大括号内的值

注:如果没有这个值,那么可能是你的这个dll没有注册,你可以使用管理员启动cmd.exe,然后用regsvr32注册VsWizard.dll

如:

regsvr32 "D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VsWizard.dll"

注册即可,其中的dll路径换成你自己的vs路径.

记事本之类的软件,比如notepad++打开C:\Program Files (x86)\Autodesk\ObjectARX 2019 Wizards\ArxWizMFCSupport\HTML\1033下的default.htm

查找classid替换掉.原版的内容我以及找不到了,如果有多个<OBJECT>确保只有一个是有效的.

另外还需要修改以下两处.第一行的html注释 <!-少了一个 "-" 符号,可能会导致html编辑器打开的时候没有高亮的效果.

其次是strURL += "Common7/IDE/VC"这句没有用,会导致css无法获取,向导对话框会显示蓝色的字,页面错乱,并且这句没有分号结束.

去掉这句后向导界面正常了.

后记,当我修正了这个bug后,去官方的GitHub,发现早已经修复.很是尴尬.次文仅当解析一下这个问题..

附上官方的修正后的html源码吧..

来源地址https://github.com/ADN-DevTech/ObjectARX-Wizards/blob/ForAutoCAD2019/ArxWizMFCSupport/HTML/1033/default.htm

<!-- Copyright (c) Autodesk, Inc. All rights reserved. -->
<!--Madhukar: To test various intricate behaviors of VS WIZARD
Use:
var myMsgBox = new ActiveXObject("wscript.shell")
myMsgBox.Popup (strURL)
-->
<HTML DIR="LTR">
	<HEAD>
		<TITLE></TITLE>
		<META content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
        <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
    	<LINK ID="LINKURL" REL="stylesheet" HREF="../../../../../1033/NewStyles.css">
	    <SCRIPT>
		    var strURL =window.external.FindSymbol ("PROJECT_TEMPLATE_PATH");
		    strURL += "\\" ;
		    strURL += window.external.GetHostLocale () ;
		    strURL += "\\"+"NewStyles.css";
			/*Madhu: Not required in production
			var myMsgBox = new ActiveXObject("wscript.shell")
			myMsgBox.Popup (strURL)*/
    	    document.styleSheets ("LINKURL").href =strURL ;
    	</SCRIPT>
		<!--  -->
		<!-- The SYMBOL tag is used to set the default values for the user-defined symbols.-->
		<!--  -->
		<SYMBOL NAME="CLASS_NAME_ROOT" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="CLASS_NAME" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="CHILDCLASS_NAME" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="BASE_CLASS" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="CHILD_DIALOG_NEEDED" TYPE="bool" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CHILD_RESOURCE_NEEDED" TYPE="bool" VALUE="false"></SYMBOL>
		<SYMBOL NAME="FILTER_BASE" TYPE="text" VALUE="All"></SYMBOL>
		<SYMBOL NAME="HEADER_FILE" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="IMPL_FILE" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="CHILDHEADER_FILE" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="CHILDIMPL_FILE" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="HEADER_FILE_VALID" TYPE="bool" VALUE="false"></SYMBOL>
		<SYMBOL NAME="IMPL_FILE_VALID" TYPE="bool" VALUE="false"></SYMBOL>
		<SYMBOL NAME="INCLUDE_HEADER" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="IDD_DIALOG" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="CREATE_DIALOG" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="AUTOMATION_NONE" TYPE="radio" VALUE="true"></SYMBOL>
		<SYMBOL NAME="AUTOMATION" TYPE="radio" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CREATABLE" TYPE="radio" VALUE="false"></SYMBOL>
		<SYMBOL NAME="TYPEID" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="TEMPLATE_HEADER" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="TEMPLATE_IMPL" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DISPIID_STATIC_CONST_GUID_FORMAT" TYPE="text"></SYMBOL>
		<SYMBOL NAME="DISPIID_REGISTRY_FORMAT" TYPE="text"></SYMBOL>
		<SYMBOL NAME="CLSID_REGISTRY_FORMAT" TYPE="text"></SYMBOL>
		<SYMBOL NAME="CLSID_IMPLEMENT_OLECREATE_FORMAT" TYPE="text"></SYMBOL>
		<SYMBOL NAME="ACCESSIBILITY" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="COLESERVERDOC" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="COLECLIENTITEM" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CCOLORDIALOG" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CCONNECTIONPOINT" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CDOCOBJECTSERVER" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CDOCOBJECTSERVERITEM" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CFILEDIALOG" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CFONTDIALOG" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CPAGESETUPDIALOG" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CPRINTDIALOG" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CINTERNETSESSION" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CPROPERTYPAGE" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CCONTROLBAR" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="CVIEW" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="MAX_DOC_TYPE_NAME" TYPE="num" VALUE="15"></SYMBOL>
		<SYMBOL NAME="MAX_FILE_NEW_NAME_SHORT" TYPE="num" VALUE="15"></SYMBOL>
		<SYMBOL NAME="MAX_FILE_TYPE_ID" TYPE="num" VALUE="39"></SYMBOL>
		<SYMBOL NAME="MAX_FILE_NEW_NAME_LONG" TYPE="num" VALUE="40"></SYMBOL>
		<SYMBOL NAME="MAX_FILTER_NAME" TYPE="num" VALUE="100"></SYMBOL>
		<SYMBOL NAME="DOCUMENT_TYPE_NAME" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DOCUMENT_FILE_EXTENSION" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DOCUMENT_FILE_TYPE_ID" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DOCUMENT_FILE_NEW_NAME_SHORT" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DOCUMENT_FILE_NEW_NAME_LONG" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DOCUMENT_FILTER_NAME" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="DOCUMENT_MAIN_FRAME_CAPTION" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="MERGE_FILE" TYPE="bool" VALUE="false"></SYMBOL>
		<SYMBOL NAME="GEN_DOCTEMPLATE" TYPE="checkbox" VALUE="false"></SYMBOL>
		<SYMBOL NAME="DOCUMENT_CLASS" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="FRAME_CLASS" TYPE="text" VALUE=""></SYMBOL>
		<SYMBOL NAME="MDI_APP" TYPE="bool" VALUE="false"></SYMBOL>
	</HEAD>
	<BODY BGCOLOR="BUTTONFACE" TOPMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" ONLOAD="InitDocument(document);" ONKEYDOWN="OnKey();" ONKEYPRESS="OnPress();" TEXT="Blue">
		<TABLE CLASS="ONE" HEIGHT="100%" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table1">
			<COL WIDTH="178">
			<COL>
			<!--OPEN OF INTRODUCTORY INFORMATION TABLE//-->
			<TR VALIGN="TOP">
				<TD HEIGHT="79" WIDTH="100%" COLSPAN="2">
					<TABLE CLASS="TWO" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table2">
						<COL WIDTH="12">
						<COL>
						<COL WIDTH="12">
						<TR>
							<TD VALIGN="TOP" HEIGHT="12" WIDTH="12">
								 
							</TD>
							<TD VALIGN="TOP" HEIGHT="12">
								 
							</TD>
							<TD VALIGN="TOP" HEIGHT="12" WIDTH="12">
								 
							</TD>
							<TD CLASS="IMAGE" VALIGN="BOTTOM" WIDTH="110" ROWSPAN="2">
								<DIV CLASS="SMALLA" ID="Layer0">
									<IMG CLASS="SMALLEST" SRC="../../Images/MFCSupport.gif" WIDTH="63" HEIGHT="63"  BORDER="0">
								</DIV>
							</TD>
							<TD VALIGN="TOP" HEIGHT="12" WIDTH="6" ROWSPAN="2">
								 
							</TD>
						</TR>
						<TR>
							<TD VALIGN="TOP" HEIGHT="65" WIDTH="12">
								 
							</TD>
							<TD VALIGN="TOP" HEIGHT="65">
								<H4 CLASS="HEAD" ID="HEAD">Welcome</H4>
							</TD>
							<TD VALIGN="TOP" HEIGHT="65" WIDTH="12">
								 
							</TD>
						</TR>
						<TR>
							<TD VALIGN="TOP" CLASS="RULE" COLSPAN="5" HEIGHT="2">
								<TABLE BORDER="0" WIDTH="100%" HEIGHT="1" CELLPADDING="0" CELLSPACING="0" ID="Table3">
									<TR VALIGN="TOP">
										<TD HEIGHT="1" WIDTH="100%" BGCOLOR="BUTTONSHADOW"></TD>
										<TD HEIGHT="1" WIDTH="1" BGCOLOR="WINDOW"></TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
					</TABLE>
				</TD>
			</TR>
			<!--CLOSE OF INTRODUCTORY INFORMATION TABLE//-->
			<!--OPEN OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
			<TR VALIGN="TOP">
				<TD CLASS="Three" VALIGN="TOP" HEIGHT="100%" WIDTH="100%">
					<TABLE CLASS="fixedSize" HEIGHT="100%" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table4">
						<TR VALIGN="TOP">
							<TD CLASS="threeCustom" VALIGN="TOP" STYLE="BACKGROUND-IMAGE: URL(../../Images/MFCSupportBG.gif);">
								<!--OPEN OF NAVIGATION TABLE//-->
								<TABLE CLASS="THREE" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table5">
									<COL WIDTH="12">
									<COL WIDTH="166">
									<COL WIDTH="1">
									<TR>
										<TD VALIGN="TOP" COLSPAN="3" HEIGHT="12">
											 
										</TD>
									</TR>
									<TR height="85%">
										<TD VALIGN="TOP" WIDTH="12">
											 
										</TD>
										<TD VALIGN="TOP" WIDTH="165">
											<!--OPEN OF NAVIGATIONAL LINKS//-->
											<DIV CLASS="LINKSELECTED">
												<SPAN CLASS="VERTLINE1"><IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1"  BORDER="0">
												</SPAN><SPAN CLASS="HORILINE1">
													<TABLE WIDTH="167" HEIGHT="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table6">
														<TR VALIGN="TOP">
															<TD CLASS="DOTTEDLINE" HEIGHT="1">
															</TD>
														</TR>
														<TR VALIGN="TOP">
															<TD HEIGHT="100%">
																<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="28"  BORDER="0">
															</TD>
														</TR>
														<TR VALIGN="TOP">
															<TD CLASS="DOTTEDLINE" HEIGHT="1">
															</TD>
														</TR>
													</TABLE>
												</SPAN>
												<TABLE WIDTH="160" HEIGHT="28" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="LINKTEXTSELECTED" ID="Table7">
													<TR VALIGN="MIDDLE">
														<TD WIDTH="156">
															<SPAN ID="Main" TITLE="Specify class and file names as well as type of class to create." onclick="DisplayAboutBox(false);">
																Names</SPAN>
														</TD>
														<TD WIDTH="4">
															<IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="4">
														</TD>
													</TR>
												</TABLE>
											</DIV>
											<!--CLOSE OF NAVIGATIONAL LINKS//-->
										</TD>
										<TD WIDTH="1">
											<DIV CLASS="VERTLINE">
												<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1"  BORDER="0">
											</DIV>
										</TD>
									</TR>
									<TR>
										<TD VALIGN="top" WIDTH="12"> </TD>
										<TD VALIGN="top" WIDTH="165">
											<DIV>
												<TABLE WIDTH="166" HEIGHT="28" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="LINKTEXT" ID="Table8">
													<TR VALIGN="bottom" >
														<TD WIDTH="162">
															<SPAN CLASS="ACTIVELINK" ID="ABOUT" TITLE="" onclick="DisplayAboutBox(true);" TABINDEX="1">
																About...</SPAN>
														</TD>
														<TD WIDTH="4">
															<IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="4">
														</TD>
													</TR>
												</TABLE>
											</DIV>
										</TD>
										<TD WIDTH="1">
											<DIV CLASS="VERTLINE">
												<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1"  BORDER="0">
											</DIV>
										</TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
					</TABLE>
					<!--CLOSE OF NAVIGATION TABLE//-->
				</TD>
				<TD VALIGN="TOP" HEIGHT="100%">
					<!--OPEN OF CONTENT AND BUTTON TABLE//-->
					<TABLE CLASS="ONE" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table9">
						<COL WIDTH="100%">
						<TR VALIGN="TOP">
							<TD HEIGHT="100%">
								<!--OPEN OF CONTENT//-->
								<div id="about" style="visibility:hidden; display:none;">
									<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table13">
										<tr>
											<td colspan="5" height="12"><IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1"></td>
										</tr>
										<tr height="12">
											<td width="12" rowspan="11"><IMG SRC="../../Images/spacer.gif" WIDTH="12" HEIGHT="1"></td>
											<td colspan="3"><b><font size="2"><span id="ABOUTTITLE"></span></font></b></td>
											<td width="12" rowspan="11"><IMG SRC="../../Images/spacer.gif" WIDTH="12" HEIGHT="1"></td>
										</tr>
										<tr height="12">
											<td colspan="3" id="ABOUTVERSION">Version: </td>
										</tr>
										<tr height="12">
											<td colspan="3">Copyright ? Autodesk, Inc. All rights reserved.</td>
										</tr>
										<tr>
											<td colspan="3" height="25"><IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1"></td>
										</tr>
										<tr height="12">
											<td width="30"></td>
											<td colspan="2"><b><u>by Autodesk Developer Technical Services</u></b></td>
										</tr>
										<tr height="12">
											<td></td>
											<td width="5"></td>
											<td><b>Fenton Webb</b></td>
										</tr>
										<tr height="12">
											<td></td>
											<td width="5"></td>
											<td><b>Cyrille Fauvel</b></td>
										</tr>
										<tr height="12">
											<td></td>
											<td></td>
											<td></td>
										</tr>
										<tr>
											<td colspan="3" height="25" width="100%"><IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1"></td>
										</tr>
										<tr height="12">
											<td colspan="3">Updates freely available to ADN members on: <a href="http://adn.autodesk.com">
													<font color="blue">http://adn.autodesk.com</font></a></td>
										</tr>
										<tr height="12">
											<td colspan="3">Email wishlist items, and bug reports to: <a href="mailto:[email protected]">
													<font color="blue">[email protected]</font></a></td>
										</tr>
										<tr>
											<td colspan="5"> </td>
										</tr>
									</table>
								</div>
								<div id="content">
									<TABLE CLASS="CONTENT" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table10">
										<COL WIDTH="12">
										<COL WIDTH="193">
										<COL WIDTH="12">
										<COL WIDTH="193">
										<COL WIDTH="12">
										<TR>
											<TD VALIGN="TOP" HEIGHT="12" COLSPAN="3">
												 
											</TD>
										</TR>
										<TR>
											<TD VALIGN="TOP" WIDTH="12">
												 
											</TD>
											<TD VALIGN="TOP">
												<SPAN CLASS="itemTextTop" ID="CLASS_NAME_SPAN" TITLE="Name of the new ObjectARX MFC class that will be created.">
													<LABEL FOR="CLASS_NAME" ID="CLASS_NAME_LABEL">C<U>l</U>ass name:</LABEL>
													<BR>
													<INPUT CLASS="sideBtn" ID="CLASS_NAME" TYPE="text" ACCESSKEY="l" VALUE="" onPropertychange="OnClass();" NAME="CLASS_NAME">
												</SPAN>
												<P CLASS="ElementSpacer16"> </P>
												<table>
													<TR>
														<td>
															<SPAN CLASS="itemText" ID="BASE_CLASS_SPAN" TITLE="Name of the new ObjectARX MFC class that new class will derive from.">
																<LABEL FOR="BASE_CLASS" ID="BASE_CLASS_LABEL"><U>B</U>ase class:</LABEL>
																<BR>
																<SELECT CLASS="sideBtn" ID="BASE_CLASS" SIZE="1" ACCESSKEY="b" onChange="OnBase();" NAME="BASE_CLASS">
																</SELECT>
															</SPAN>
														</td>
														<td>
															<SPAN CLASS="itemText" ID="FILTER_BASE_SPAN" TITLE="Use this to drop down filter the bass classes into collections of specific functionality.">
																<LABEL FOR="FILTER_BASE" ID="FILTER_BASE_LABLE"><U>F</U>ilter Base Classes by:</LABEL>
																<BR>
																<SELECT CLASS="sideBtn" ID="FILTER_BASE" SIZE="1" ACCESSKEY="F" onChange="OnFilterChange();" NAME="FILTER_BASE">
																</SELECT>
															</SPAN>
														</td>
													</TR>
												</table>
												<P CLASS="ElementSpacer6"> </P>
												<SPAN CLASS="itemText" ID="IDD_DIALOG_SPAN" TITLE="ID of dialog resource. Typing in an ID will create a new dialog resource. You can also select from the list if an existing one is available. Only enabled if base class is one of the following: CDialog, CFormView, COlePropertyPage, CPropertyPage or CDHtmlDialog.">
													<LABEL ID="idd_dialog_title" ACCESSKEY="d" FOR="DialogList"><U>D</U>ialog ID:</LABEL>
													<BR>
													<INPUT CLASS="sideBtn" ID="IDD_DIALOG" TYPE="HIDDEN" NAME="IDD_DIALOG"></INPUT>
													<!-- Update COM Control Id for VS 2012 -->
													<!--<OBJECT CLASS="itemText" ID="DialogList" ACCESSKEY="d" CLASSID="CLSID:19db9a07-5ca3-461e-9e7b-b370c91aba2e">
													</OBJECT>-->
													<!--Update COM Control Id for VS2015 -->
													<!--<OBJECT CLASS="itemText" ID="DialogList" ACCESSKEY="d" CLASSID="CLSID:087da97a-e2f4-472a-bb48-0bcdfaa20fb3">
													</OBJECT>-->
													<!--Update COM Control ID for VS2017 -->
													<OBJECT CLASS="itemText" ID="DialogList" ACCESSKEY="d" CLASSID="CLSID:fc1ae18b-0282-42f1-90ae-bbd8f0181013">
													</OBJECT>

												</SPAN>
												<P CLASS="ElementSpacer6"> </P>
												<NOBR><SPAN CLASS="itemText" ID="HEADER_FILE_SPAN" TITLE="Name of header file where class will be defined.">
														<LABEL FOR="HEADER_FILE" ID="HEADER_FILE_LABEL">.h f<U>i</U>le:</LABEL>
														<BR>
														<INPUT CLASS="sideBtn2" ID="HEADER_FILE" ACCESSKEY="i" NAME="IsapiDirectoryName" TYPE="text" onPropertychange="window.external.AddSymbol(‘HEADER_FILE_VALID‘, false);">
														<BUTTON CLASS="buttonClass3Custom" ID="BrowseHeaderBtn" TYPE="BUTTON" TITLE="Browse for header file." onClick="OnBrowseHeaderFile();">
															...</BUTTON> </SPAN></NOBR>
												<P CLASS="ElementSpacer6"> </P>
												<NOBR><SPAN CLASS="itemText" ID="IMPL_FILE_SPAN" TITLE="Name of implementation file for this class.">
														<LABEL FOR="IMPL_FILE" ID="IMPL_FILE_LABEL">.c<U>p</U>p file:</LABEL>
														<BR>
														<INPUT CLASS="sideBtn2" ID="IMPL_FILE" ACCESSKEY="p" TYPE="text" onPropertychange="window.external.AddSymbol(‘IMPL_FILE_VALID‘, false);" NAME="IMPL_FILE">
														<BUTTON CLASS="buttonClass3Custom" ID="BrowseImplBtn" TYPE="BUTTON" TITLE="Browse for implementation file." onClick="OnBrowseImplFile();">
															...</BUTTON> </SPAN></NOBR>
											</TD>
											<TD VALIGN="TOP" WIDTH="12">
												 
											</TD>
										</TR>
										<TR>
											<TD VALIGN="TOP" HEIGHT="100%" COLSPAN="3">
												 
											</TD>
										</TR>
									</TABLE>
								<!--CLOSE OF CONTENT//-->
							</TD>
						</TR>
						<TR VALIGN="BOTTOM">
							<TD HEIGHT="48">
								<!--OPEN OF BUTTON HTML//-->
								<TABLE HEIGHT="48" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Table11">
									<COL WIDTH="12">
									<COL>
									<COL WIDTH="75">
									<COL WIDTH="4">
									<COL WIDTH="75">
									<COL WIDTH="4">
									<COL WIDTH="75">
									<COL WIDTH="12">
									<TR>
										<TD VALIGN="TOP" CLASS="RULE" COLSPAN="8" HEIGHT="2">
											<TABLE BORDER="0" WIDTH="100%" HEIGHT="1" CELLPADDING="0" CELLSPACING="0" ID="Table12">
												<TR VALIGN="TOP">
													<TD HEIGHT="1" WIDTH="100%" BGCOLOR="BUTTONSHADOW"></TD>
													<TD HEIGHT="1" WIDTH="1" BGCOLOR="WINDOW"></TD>
												</TR>
											</TABLE>
										</TD>
									</TR>
									<TR>
										<TD VALIGN="TOP" HEIGHT="11" COLSPAN="8">
											 
										</TD>
									</TR>
									<TR>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="12">
											 
										</TD>
										<TD VALIGN="TOP" HEIGHT="23">
											 
										</TD>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="75">
											<BUTTON CLASS="BUTTONS" ID="FinishBtn" onClick="OnFinish(document);">Finish</BUTTON>
										</TD>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="4">
											 
										</TD>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="75">
											<BUTTON CLASS="BUTTONS" ID="CancelBtn" onClick="window.external.Finish(document, ‘cancel‘);">
												Cancel</BUTTON>
										</TD>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="4">
											 
										</TD>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="75">
											<BUTTON CLASS="BUTTONS" ID="HelpBtn" onClick="InvokeArxWizardHelp();">Help</BUTTON>
										</TD>
										<TD VALIGN="MIDDLE" HEIGHT="23" WIDTH="12">
											 
										</TD>
									</TR>
									<TR>
										<TD VALIGN="TOP" HEIGHT="12" COLSPAN="8">
											 
										</TD>
									</TR>
								</TABLE>
								<!--CLOSE OF BUTTON HTML//-->
							</TD>
						</TR>
					</TABLE>
					<!--CLOSE OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
				</TD>
			</TR>
		</TABLE>
	</BODY>
</HTML>
<SCRIPT LANGUAGE="JSCRIPT">
var xmlDoc =new ActiveXObject ("Msxml2.DOMDocument") ;
var tab_array =new Array () ;
tab_array [0] =Main ;
var nDlgIndex ;
function InitDocument (document) {
	setDirection () ;

	if ( IsValidAdeskProject (window.external.ProjectObject, 3) == false ) {
		window.external.Finish (document, ‘cancel‘) ;
		return ;
	}
	//- Other texts
	HEAD.innerText ="Welcome to the " + szArxWizMFCTitle ;
	if (window.external.FindSymbol ("DOCUMENT_FIRST_LOAD") ) {
		window.external.AddSymbol ("WIZARD_DIALOG_TITLE", szArxWizMFCTitle) ;
		window.external.SetDefaults (document) ;
		var strProjName = window.external.FindSymbol ("PROJECT_NAME") ;
		window.external.AddSymbol ("SAFE_PROJECT_NAME", CreateSafeName (strProjName)) ;
	}
	PopulateDialogIDs () ;
	DialogList.Enabled =false ;
	nDlgIndex =DialogList.tabIndex ;
	DialogList.tabIndex =-1 ;
	idd_dialog_title.disabled =true ;
	xmlDoc.async =false ;
	xmlDoc.load ("mfcsupport.xml") ;
	PopulateBaseList (0) ;
	window.external.Load (document) ;

	PopulateFilterList () ;

	var oProj = window.external.ProjectObject ;
	if ( GetProjectFile (oProj, "IDL") || GetProjectFile(oProj, "ODL") )
		window.external.AddSymbol ("PROJECT_SUPPORTS_AUTOMATION", true) ;
	else
		window.external.AddSymbol ("PROJECT_SUPPORTS_AUTOMATION", false) ;
	OnBase () ;
}
function PopulateBaseList (param) {
	//- Clear the bass class list
	while ( BASE_CLASS.item (0) != null )
		BASE_CLASS.remove (0) ;
	//- Read from an XML file (create a dom document)
	var msDomQuery =".//Entry" ;
	if ( param != 0 )
		msDomQuery =".//Entry[@FilterLevel = ‘" + param + "‘]" ;
	var moNodList =xmlDoc.selectNodes (msDomQuery) ;
	for ( var nCtr =0 ; nCtr < moNodList.length ; nCtr++ ) {
		var msBaseClass =moNodList.item (nCtr).getAttribute ("name") ;
		var oOption =document.createElement ("OPTION") ;
		oOption.text =msBaseClass ;
		oOption.value =msBaseClass ;
		BASE_CLASS.add (oOption) ;
	}
	BASE_CLASS.selectedIndex =0 ;
}
function PopulateFilterList () {
	//- Read from an XML file (create a dom document)
	//var msDomQuery =".//object[@flag = ‘X‘]" ;
	var msDomQuery =".//Filter" ;
	var moNodList =xmlDoc.selectNodes (msDomQuery) ;

	for ( var nCtr =0 ; nCtr < moNodList.length ; nCtr++ ) {
		var msBaseClass =moNodList.item (nCtr).getAttribute ("name") ;
		var oOption =document.createElement ("OPTION") ;
		oOption.text =msBaseClass ;
		oOption.value =msBaseClass ;
		FILTER_BASE.add (oOption) ;
	}
	FILTER_BASE.selectedIndex =0 ;
}
function GetAttribute (msBaseClass, msAttribute) {
	try {
		var poNode =xmlDoc.selectSingleNode (".//Entry[@name = ‘" + msBaseClass + "‘]") ;
		return (poNode.getAttribute (msAttribute)) ;
	} catch ( e ) {
		return (false) ;
	}
}
function OnClass () {
	var strClassName =CLASS_NAME.value ;
	//- If dockcontrol bar with a resource Id then we have to create a child dialog
	window.external.AddSymbol ("CHILDCLASS_NAME", strClassName + "ChildDlg") ;

	if (   strClassName.length == 0
		|| (   strClassName.length == 1
			&& (strClassName.charAt (0) == "C" || strClassName.charAt (0) == "c")
		)
	) {
		if ( DialogList.ListIndex == -1 )
			DialogList.Value ="" ;
		HEADER_FILE.value ="" ;
		IMPL_FILE.value ="" ;

		//- If dockcontrol bar with a resource Id then we have to create a child dialog
		window.external.AddSymbol ("CHILDHEADER_FILE", "") ;
		window.external.AddSymbol ("CHILDIMPL_FILE", "") ;
	} else {
		var strSafeProjName = window.external.FindSymbol("SAFE_PROJECT_NAME");
		if ( strClassName.charAt (0) == "C" || strClassName.charAt (0) == "c" ) {
			if ( DialogList.ListIndex == -1 )
				DialogList.Value ="IDD_" + strClassName.substr (1).toUpperCase () ;
			HEADER_FILE.value =strClassName.substr(1) + ".h" ;
			IMPL_FILE.value =strClassName.substr(1) + ".cpp" ;
			//- If dockcontrol bar with a resource Id then we have to create a child dialog
			window.external.AddSymbol ("CHILDHEADER_FILE",strClassName.substr (1) + "ChildDlg.h") ;
			window.external.AddSymbol ("CHILDIMPL_FILE", strClassName.substr (1) + "ChildDlg.cpp") ;
		} else {
			if ( DialogList.ListIndex == -1 )
				DialogList.Value ="IDD_" + strClassName.toUpperCase () ;
			HEADER_FILE.value =strClassName + ".h" ;
			IMPL_FILE.value =strClassName + ".cpp" ;
			//- If dockcontrol bar with a resource Id then we have to create a child dialog
			window.external.AddSymbol ("CHILDHEADER_FILE",strClassName + "ChildDlg.h") ;
			window.external.AddSymbol ("CHILDIMPL_FILE", strClassName + "ChildDlg.cpp") ;
		}
	}
}
var gbDocView =false ;
var gbDocViewCheckDone =false ;
function OnBase () {
	if ( BASE_CLASS.selectedIndex == -1 )
		return ;
	var strBaseClass =BASE_CLASS.options [BASE_CLASS.selectedIndex].value ;
	//- No child dialogs to be created
	window.external.AddSymbol ("CHILD_DIALOG_NEEDED", false) ;
	//- Now find out if it supports resource id‘s
	var classOption =GetAttribute (strBaseClass, "Flag") ;
	switch ( classOption ) {
		case "C": //- Child dialog needed
		{
			window.alert ("This type of base class does not support direct resource ID handling.\nHowever, you can enter a resource ID?here and a child dialog will be created for you.\nThis will then be included in the base class implementation as a child window.") ;
			//- If this class supports child dialog, then check to see if a dialog resource is entered
			if ( DialogList.Value.length ) {
				//- Child dialogs to be created
				window.external.AddSymbol ("CHILD_DIALOG_NEEDED", true) ;
			}
		} ;
		case "R" : //- Resource supported
		case "RCW" : //- Resource supported, but actually needs to be a child window
		{
			DialogList.Enabled =true ;
			DialogList.tabIndex =nDlgIndex ;
			idd_dialog_title.disabled =false ;
			//- If it actually needs to be a child window like the fields dialog
			if ( classOption == "RCW" ) {
				//- Create a new symbol to indicate we require the childDialog.rc instead of the dialog.rc
				window.external.AddSymbol ("CHILD_RESOURCE_NEEDED", true) ;
			}
		}
		break ;

		default :
		{
			DialogList.Enabled =false ;
			DialogList.tabIndex =-1 ;
			idd_dialog_title.disabled =true ;
		} ;
	}
}
function OnFilterChange () {
	PopulateBaseList (FILTER_BASE.selectedIndex) ;
	OnBase () ;
}
function PopulateDialogIDs () {
	if ( window.external.FindSymbol ("IS_PARENT_DIALOG") == "true" ) {
		DialogList.AddItem (window.external.FindSymbol ("ITEM_NAME")) ;
		DialogList.ListIndex =0 ;
		return ;
	}
	var GNS =window.external.ProjectObject.Codemodel ;
	var strDialogIds ="" ;
	try {
		strDialogIds =window.external.GetDialogIds () ;
	} catch (e) {
		var L_WarningLocation_Text ="Error in default.htm PopulateDialogIDs():\r\n" ;
		var L_Warning1_Text ="Cannot access resource information. Check if the .rc file is opened in another editor." ;
		window.external.ReportError (L_WarningLocation_Text + L_Warning1_Text) ;
	}
	var len =strDialogIds.length ;
	var iBegin =0 ;
	var iEnd =0 ;
	while ( iEnd >= 0 ) {
		var strDialogId ;
		iEnd =strDialogIds.indexOf (",", iBegin) ;
		if ( iEnd >= 0 ) {
			strDialogId =strDialogIds.substr (iBegin, iEnd-iBegin) ;
			iBegin =iEnd + 1 ;
		} else {
			strDialogId =strDialogIds.substr (iBegin) ;
		}
		var classes =GNS.DialogClasses (strDialogId) ;
		if ( classes.Count > 0 )
			continue ;
		DialogList.AddItem (strDialogId) ;
	}
}
function SetSymbols () {
	var strBaseClass =BASE_CLASS.options [BASE_CLASS.selectedIndex].value ;
	if ( DialogList.Enabled ) {
		if ( DialogList.ListIndex == -1 ) {
			var strDialogID =DialogList.Value ;
			//- If the dialog ID is valid
			if ( strDialogID.length ) {
				var bDlgExists =false ;
				for ( var nCntr =0 ; nCntr < DialogList.Count ; nCntr++ ) {
					if ( strDialogID == DialogList.Item (nCntr) ) {
						bDlgExists =true ;
						break ;
					}
				}
				if ( !bDlgExists )
					window.external.AddSymbol ("CREATE_DIALOG", true) ;
			}
		}
		IDD_DIALOG.value =DialogList.Value ;
	}
	var strTemplateHeader =GetAttribute (strBaseClass, "template") + ".h" ;
	var strTemplateImpl =GetAttribute (strBaseClass, "template") + ".cpp" ;
	var strIncludeHeader =GetAttribute (strBaseClass, "header") ;

	window.external.AddSymbol ("TEMPLATE_HEADER", strTemplateHeader) ;
	window.external.AddSymbol ("TEMPLATE_IMPL", strTemplateImpl) ;
	window.external.AddSymbol ("INCLUDE_HEADER", strIncludeHeader) ;

	var strClassName =CLASS_NAME.value ;
	var strSafeClassName =CreateSafeName (strClassName) ;
	if ( strSafeClassName.substr (0, 1) == "C" )
		strSafeClassName =strSafeClassName.substr (1, strSafeClassName.length) ;
	window.external.AddSymbol ("CLASS_NAME_ROOT", strSafeClassName) ;
}
function OnBrowseHeaderFile () {
	var strFile ;
	try {
		L_Title1_Text ="VS Wizards Select File" ;
		L_Title2_Text ="Visual C++ Header Files (*.h)\0*.h\0\0" ;
		strFile =window.external.GetOpenFileNameViaDlg (L_Title1_Text, window.external.FindSymbol ("PROJECT_PATH"),  L_Title2_Text, HEADER_FILE.value) ;
	} catch ( e ) {
		if ( e.number != OLE_E_PROMPTSAVECANCELLED ) {
			var L_ErrMsg1_Text ="Error in OnBrowseHeaderFile()" ;
			if ( e.description.length != 0 ) {
				L_ErrMsg1_Text +=": " ;
				L_ErrMsg1_Text +=e.description ;
			}
			window.external.ReportError (L_ErrMsg1_Text) ;
		}
		return ;
	}
	HEADER_FILE.value =strFile ;
}
function OnBrowseImplFile () {
	var strFile ;
	try {
		L_Title3_Text ="VS Wizards Select File" ;
		L_Title4_Text ="Visual C++ Files (*.cpp;*.h;*.inl;*.c)\0*.cpp;*.h;*.inl;*.c\0\0" ;
		strFile =window.external.GetOpenFileNameViaDlg (L_Title3_Text, window.external.FindSymbol ("PROJECT_PATH"), L_Title4_Text, IMPL_FILE.value) ;
	} catch ( e ) {
		if ( e.number != OLE_E_PROMPTSAVECANCELLED ) {
			var L_ErrMsg2_Text ="Error in OnBrowseImplFile()" ;
			if ( e.description.length != 0 ) {
				L_ErrMsg2_Text +=": " ;
				L_ErrMsg2_Text +=e.description ;
			}
			window.external.ReportError (L_ErrMsg2_Text) ;
		}
		return ;
	}
	IMPL_FILE.value =strFile ;
}
function ValidateInput () {
	var oInvalid =null ;
	if ( !Validate (CLASS_NAME) )
		oInvalid =CLASS_NAME ;
	if ( oInvalid == null )
		if ( !Validate (BASE_CLASS) )
			oInvalid =BASE_CLASS ;
	//- Check the dialog resource id‘s
	if ( oInvalid == null ) {
		//- But before we do that, find out if we are allowed to have nothing in the ID input
		var strBaseClass =BASE_CLASS.options [BASE_CLASS.selectedIndex].value ;
		//- Now find out if it supports resource id‘s
		var classOption =GetAttribute (strBaseClass, "Flag") ;
		//- Ok, test to see if a child dialog is not wanted, if not then make sure we have a resource id
		if ( classOption != "C" ) {
			if ( !Validate (DialogList) ) {
				window.alert ("Please select a resource ID or enter one so that it can be created for you.") ;
				return (false) ;
			}
		}
	}
	if ( oInvalid == null )
		if ( !Validate (HEADER_FILE) )
			oInvalid =HEADER_FILE ;
	if ( oInvalid == null )
		if ( !Validate (IMPL_FILE) )
			oInvalid =IMPL_FILE ;
	if ( oInvalid != null ) {
		if ( gbShowError )
			window.external.ReportError () ;
		else
			gbShowError =true ;
		oInvalid.focus () ;
		return (false) ;
	}
	return (true) ;
}
var gbShowError =true ;
function Validate (obj) {
	var bValid =true ;
	switch ( obj.id ) {
		case "CLASS_NAME":
			bValid =window.external.ParentObject.ValidateMember (obj.value, vsCMElementClass) ;
			break ;
		case "BASE_CLASS":
			if ( BASE_CLASS.selectedIndex == -1 )
				bValid =false ;
			break ;
		case "DialogList":
			if ( DialogList.Enabled )
				bValid =window.external.ProjectObject.CodeModel.IsValidID (DialogList.Value) ;
			break ;
		case "HEADER_FILE":
			if ( !window.external.FindSymbol ("HEADER_FILE_VALID") ) {
				gbShowError =bValid =CanUseFileName (obj.value, true) ;
				if ( !bValid )
					break ;
				window.external.AddSymbol ("HEADER_FILE_VALID", true) ;
			}
			bValid =ValidateFileNameAndEnsureInProject (obj.value) ;
			if ( !bValid )
				break ;
			if ( HEADER_FILE.value == IMPL_FILE.value ) {
				var L_ErrMsg_Text ="Header and implementation files cannot have the same name." ;
				oErrObj =new Error (L_ErrMsg_Text) ;
				SetErrorInfo (oErrObj) ;
				bValid =false ;
			}
			break ;
		case "IMPL_FILE":
			if ( !window.external.FindSymbol ("IMPL_FILE_VALID") ) {
				gbShowError =bValid =CanUseFileName (obj.value, false, false, true) ;
				if ( !bValid )
					break ;
				window.external.AddSymbol ("IMPL_FILE_VALID", true) ;
			}
			bValid =ValidateFileNameAndEnsureInProject (obj.value, vsCMValidateFileExtCppSource) ;
			break ;
		default:
			break ;
	}
	if ( typeof(bValid) == "undefined" )
		bValid =false ;
	return (bValid) ;
}
function DisplayAboutBox (flag) {
	if ( flag == true ) {
		content.style.visibility ="hidden" ;
		content.style.display ="none" ;
		about.style.display ="block" ;
		about.style.visibility ="visible" ;
		ABOUTTITLE.innerText =szArxWizMFCTitle ;
		ABOUTVERSION.innerText =‘Version: ‘ + szWizardsVersion ;
	} else {
		about.style.display ="none" ;
		content.style.display ="block" ;
		content.style.visibility ="visible" ;
		about.style.visibility ="hidden" ;
	}
}
function Next (document, linkto) {
	if ( CLASS_NAME.length && !ValidateInput () )
		return ;
	SetSymbols () ;
	window.external.Next (document, linkto) ;
}
function OnFinish (document) {
	OnBase () ;
	if ( !ValidateInput () )
		return ;

	SetSymbols () ;
	IDD_DIALOG.value =DialogList.Value ;

	OnWizFinish (document) ;
}
</SCRIPT>
<SCRIPT language="JSCRIPT" id="INCLUDE_SCRIPT"></SCRIPT>
<SCRIPT language="JSCRIPT" id="INCLUDE_COMMON"></SCRIPT>
<SCRIPT language="JSCRIPT" id="INCLUDE_ARXCOMMON"></SCRIPT>
<SCRIPT>
document.scripts ("INCLUDE_SCRIPT").src =window.external.FindSymbol ("SCRIPT_COMMON_PATH") + "/Script.js" ;
document.scripts ("INCLUDE_COMMON").src =window.external.FindSymbol ("SCRIPT_COMMON_PATH") + "/Common.js" ;
var strPath =window.external.FindSymbol ("ABSOLUTE_PATH") ;
strPath =strPath.substring (0, strPath.lastIndexOf ("\\") + 1) ;
document.scripts ("INCLUDE_ARXCOMMON").src =strPath + "ArxWizCommon/arxCommon.js" ;
</SCRIPT>
<SCRIPT FOR="DialogList" EVENT="KeyDown(nKeyCode)">
	OnWizComboKeyDown(nKeyCode);
</SCRIPT>

  

原文地址:https://www.cnblogs.com/edata/p/11546433.html

时间: 2024-10-31 03:53:00

VS2017中使用ObjectARX 2019 wizard的 ArxWizMFCSupport向导出现的bug修复前因后果的相关文章

ObjectARX AutoCAD VC VS2008SP1中安装ObjectARX 2010向导后在VS中的ARX工具栏是空的?

初学ARX的人可能会遇到此问题,ObjectARX 2010必须在VS2008SP1中安装,默认安装完后是没有中文包的,所以显示的工具条是空的,且只有第1个按钮可以用,如果你的问题是这样的,那么你就不会像我一样走弯路了,请到下面的地址中去找中文包附件下载后复制到下面的地址中: 链接: http://pan.baidu.com/s/1ntqhshV 密码: l6f5 C:\Program Files\Autodesk\ObjectARX Wizards for AutoCAD 2010\ArxAd

VS2017中建立ASP.NET MVC 4.0项目

新的项目需要运行在WIN2003上,又不想用ASPX了,只好用回ASP.NET MVC4.0了,可是在VS2017中已经没有MVC4的模板了,网上下载的安装了也没有,只好把以前的MVC4的项目拿 出来看了一下,看看怎么由空白项目建立起来,步骤如下: 1.VS2017中建立空白的WEB项目,记得选择.NET 4.0版本的 2.NUGET包中搜索ASP.NET MVC,不要下5.0的那个版本,要下4.0的那个版本 3.自己手动建立Controllers文件夹,里面建立HomeController.c

vs2017中char* str = &quot;1234asd56&quot;;会报错,——const char*类型的值不能用于初始化char*类型的实体

原因: "1234asd56"是常量 ,正确的写法本身就是:const char* str = "1234asd56"; 之所以之前的vs版本可以写成char*是历史遗留原因,在vs2017中如题目中写时,程序可能就崩溃了,新版本VS对这个进行了更严格的控件 原文地址:https://www.cnblogs.com/shixisheng/p/9181938.html

解决VS2017中使用scanf函数报错的问题

我们在VS2017中如果使用C语言的scanf输入函数,编译的时候编译器会报error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 这个是因为VS使用的是C11新标准导致的 解决方法如下 1.在文件头部

quick-cocos2d-x 2.2.3 rc版本中 crypto.md5file() 的C++实现在ANDROID上有BUG

原来的版本是用fopen打开文件的,如果要从ANDROID的APK中取文件,直接就洗白了修改如下 void CCCrypto::MD5File(const char* path, unsigned char* output){unsigned long len = 0;//to make sure we can get data of files easily from ios,android,pc etc.//we use CCFileUtils::sharedFileUtils()->get

关于怎么在VS2017中建立一个C/C++函数库

想起来自己在大一暑假时做过飞机大战的小游戏,于是选择在VS中创建一个自己的动态链接库(C++),也是为了将加强自己对于数据结构的巩固. 因为自己也是第一次接触,于是百度来CSDN上的文章以及微软上的文章,也是比着葫芦画瓢吧. 直接分享链接吧https://docs.microsoft.com/zh-cn/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=vs-2017 原文地址:https://www

在VS2017中配置VLD(Visual Leak Detector)内存泄漏检测工具

首先在官方下载VLD 下载地址: https://github-production-release-asset-2e65be.s3.amazonaws.com/566097/583de30e-b359-11e7-99d7-0f1fb50d7654?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Da

C#控制台基础 VS2017中为控制台程序设置启动参数(string[] args)

os :windows7_x64 ide:vs2017 代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { foreach (var str in args) {

在vs2017中创建Node.js项目

https://github.com/Microsoft/nodejstools/wiki/Projects 1. 安装vs2017的时候,需要勾选Node.js 2.新建项目的时候,选择其他语言,然后JavaScript,Node.js 原文地址:https://www.cnblogs.com/chucklu/p/9104576.html