Microsoft KB Archive/178199

= How to create a resource .dll file that contains an AVI file =

Article ID: 178199

Article Last Modified on 6/9/2005

-

APPLIES TO


 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q178199



SUMMARY
This article shows you how to add an AVI file to a resource file and then compile that file into a .dll file. Other programs, such as Visual Basic, can access the .dll file.



MORE INFORMATION
 Start Visual C. On the File menu, click New and go to the Projects tab. Click Win32 Dynamic-Link Library and enter the name of your project in the Project Name text box. Click OK to close the dialog box. Click the File View tab. Create the resource script file by completing the following steps:  On the Insert menu, click Resource to display the Resource dialog box. Click the Import button to open the Import Resource dialog box. Choose your AVI file and click the Import button to close the dialog box. The Custom Resource Type dialog box displays. Type AVI in the Resource Type dialog box and click OK to close the Resource Type dialog box. A hexadecimal dump of the Script1 resource script file displays in a window. Close this window. Save the resource script file with an .rc file name extension.</ol> </li> On the Project menu, click Add to Project, and click Files. Add your resource script file to the project.</li> Add the /NOENTRY parameter to the Project settings by completing the following steps: <ol style="list-style-type: lower-alpha;"> On the Project menu, click Settings. The Project Setting dialog box displays.</li> Click the Link tab and type /NOENTRY to the Project Options text box. Click OK to close the dialog box.</li></ol> </li> Create the .dll file. From the Build menu, click Build .dll.</li></ol>

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Arsenio Locsin, Microsoft Corporation

<div class="references_section">