Microsoft KB Archive/303054

= BUG: SDK Messaging Samples Do Not Compile without Errors =

Article ID: 303054

Article Last Modified on 8/5/2004

-

APPLIES TO


 * Microsoft BizTalk Server 2000 Standard Edition

-



This article was previously published under Q303054



SYMPTOMS
Several Microsoft Visual C++ sample projects in the \Microsoft BizTalk Server\SDK folder will not compile without generating errors. See the &quot;More Information&quot; section of this article for specific projects and error messages.



RESOLUTION
Install the Microsoft XML (MSXML) 3.0 SDK release from the Microsoft Download Center:

Xmlsdk.exe

When the Xmlsdk.exe file has been downloaded, implement the following changes to the Visual C++ environment to compile the BizTalk Messaging samples:  On the Tools menu, click Options. Click the Directories tab, and then add the following paths to the Directories area for Include files:

\Program Files\Common Files\Microsoft Shared\Enterprise Servers\Commerce

\Program Files\Microsoft BizTalk Server\SDK\Include

\Program Files\Microsoft XML Parser SDK\inc

 Add the following path to the Directories area for Executable files:

\Program Files\Microsoft BizTalk Server

 Add the following path to the Directories area for Library files:

\Program Files\Microsoft XML Parser SDK\lib

</li> Implement the following changes to the \Program Files\Microsoft BizTalk Server\SDK\Messaging Samples\CustomPreProcessor\CustomPreProcessor.dsw workspace:

<ol style="list-style-type: lower-alpha;"> Change the properties of all files in the folder so that they are not read-only.</li> Open the CustomPreProcessor.dsw workspace.</li> Change line 32 of file PreProcessor.cpp to #include <Msxml2.h>.</li> On the Project menu, click Settings. The Project Settings dialog box appears.</li> Click the Link tab and add Msxml2.lib to the list of libraries in the Object/library modules area.</li></ol> </li> Implement the following changes to the \Program Files\Microsoft BizTalk Server\SDK\Messaging Samples\BTSAppIntegration\VC\ATL\AtlBTSComp.dsw workspace:

<ol style="list-style-type: lower-alpha;"> Change the properties of all files in the folder so that they are not read-only.</li> Open the AtlBTSComp.dsw workspace.</li> Change line 6 of file BTSComp.cpp to #include <Msxml2.h>.</li> On the Project menu, click Settings. The Project Settings dialog box appears.</li> Click the Link tab and add Msxml2.lib to the list of libraries in the Object/library modules area.</li></ol> </li> In the \Program Files\Microsoft BizTalk Server\SDK\Xlang Samples\Loop\LoopControl\LoopControl.dsw workspace, change the properties of all files in the folder so that they are not read-only.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in BizTalk Server 2000.

<div class="moreinformation_section">

Custom Preprocessor
Project Location: \Program Files\Microsoft BizTalk Server\SDK\Messaging Samples\CustomPreProcessor

Error Message:

midl : command line error MIDL1001 : cannot open input file btsaic.idl Error executing midl.exe.

CustomPreProcessor.dll - 1 error(s), 0 warning(s)

BTSAppIntegration
Project Location: \Program Files\Microsoft BizTalk Server\SDK\Messaging Samples\BTSAppIntegration

Error Message:

midl : command line error MIDL1001 : cannot open input file btsaic.idl Error executing midl.exe.

AtlBTSComp.dll - 1 error(s), 0 warning(s)

Pipeline Component
Project Location: \Program Files\Microsoft BizTalk Server\SDK\Messaging Samples\PipelineComponent

Error Message:

midl : command line error MIDL1001 : cannot open input file pipecomp.idl Error executing midl.exe.

AtlPipelineComp.dll - 1 error(s), 0 warning(s)

Loop Control
Project Location: \Program Files\Microsoft BizTalk Server\SDK\Xlang Samples\Loop\LoopControl

Error Message:

midl : error MIDL2212 : error while writing to file .\LoopControl.h Error executing midl.exe.

LoopControl.dll - 1 error(s), 0 warning(s)

<div class="references_section">