SlideShare a Scribd company logo
1 of 2
File I/O API - C++ Sample Program

Overview
Dictls32.exe (dictls16.exe in its 16 bit incarnation) is a C++ sample program which
utilizes the File I/O API. It is a multiple document interface (MDI) application which displays
the dictionary information from SPSS data files in one or more child windows. The user simply
selects “Open” from the “File” menu to get a standard Open File dialog. If the selected file is an
SPSS data file, its dictionary information is displayed in an edit control in a child window. The
application is terminated by selecting “Exit” from the “File” menu.

Building
The sample program has been built with versions 1.5 (16 bit) and 4.0 (32 bit) of Microsoft
Visual C++. Other compilers may work, but they have not been tested. In order to build the
sample program, perform the following steps:

1. Copy all the files from the spssdkio_dllsmpl_cpp directory on the distribution disk
      to a directory on your hard disk.

2. Make sure spssdio.h is on the compiler’s search path - either by copying it to the
     directory containing the sample program or by modifying the INCLUDE environment
     variable.

3. Made sure spssio32.lib (spssio16.lib for a 16 bit build) is on the linker’s search
     path - either by copying the file to the directory containing the sample program or by
     modifying the LIB environment variable.

4. Use the nmake utility to build the application:
    nmake -f dictls32.mak DEBUG=1
   For a 16 bit build, substitute dictls16.mak for dictls32.mak .

Each of the makefiles recognizes two options which can either be set as environment variables
or defined on the command line. The first option is “DEBUG”. If this symbol is defined
(regardless of its value), the resulting executable will contain debug symbols. The default is not
to include debug symbols. The second option is “STATICMFC ”. If this symbol is defined
(regardless of its value), the resulting executable will contain statically-linked Microsoft
Foundation Classes (MFC) and C Run-Time. The default is to use DLL-resident versions of
MFC and the C Run-Time.

The 32 bit makefile writes its intermediate and target files to a subdirectory named “32” while
the 16 bit makefile writes the corresponding files to a subdirectory named “16”. In order to
execute the resulting application, spssio32.dll (spssio16.dll for 16 bit builds) must be
accessible at execution time.

Integrated Development Environment
Most users will opt to use Microsoft’s Integrated Development Environment (IDE) to build and
debug an application. The sample application is amenable to being built in this fashion. Simply
File I/O API - C++ Sample Program


open dictls32.mak by selecting “Open Workspace” from the “File” menu. You will have to
select “Settings” on the “Build” menu to specify the name of the target file, the name of the
required DLL, and the debug build command line.

If you are using the 16 bit IDE, open dictls16.mak via the “Open” item on the “Project”
menu. Here, the name of the target file and the debug build command line are specified via the
“Project” item on the “Options” menu, and the name of the required DLL is specified via the
“Debug” item on the “Options” menu.

Constituent Files
The following files are included as part of the sample program:

    dictafx.cpp              for building precompiled headers
    dictafx.h                includes the headers to be precompiled
    dictdoc.cpp              CDocument class CDictListDoc - does all the work
    dictdoc.h                Interface to class CDictListDoc
    dictdoc.ico              Icon for class CDictListDoc
    dictlist.cpp             CEditView class CDictListEditView and a CWinApp class
    dictlist.h               Interface to classes CDictListEditView and CDictListApp
    dictls16.def             Module definition for 16 bit application
    dictls16.exe             16 bit application built with STATICMFC defined
    dictls16.mak             External makefile for 16 bit application
    dictls16.rc              Resources for 16 bit application
    dictls32.exe             32 bit application built with STATICMFC defined
    dictls32.mak             External makefile for 32 bit application
    dictls32.rc              Resources for 32 bit application
    dictmain.ico             Icon for the application’s MDI frame window
    dict-res.h               Interface to the resources




                                              -2-

More Related Content

Similar to File i o api c++ sample program

verilog basics.ppt
verilog basics.pptverilog basics.ppt
verilog basics.ppt8885684828
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docMayurWagh46
 
WP7 HUB_Introducción a Visual Studio
WP7 HUB_Introducción a Visual StudioWP7 HUB_Introducción a Visual Studio
WP7 HUB_Introducción a Visual StudioMICTT Palma
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxNEHARAJPUT239591
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJmeharikiros2
 
Creating simple component
Creating simple componentCreating simple component
Creating simple componentpriya Nithya
 
Android AOS practical programs.pdf
Android AOS practical programs.pdfAndroid AOS practical programs.pdf
Android AOS practical programs.pdfRonakTumma
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocksTech Bikram
 
Visual programming lab
Visual programming labVisual programming lab
Visual programming labSoumya Behera
 
DLL Design with Building Blocks
DLL Design with Building BlocksDLL Design with Building Blocks
DLL Design with Building BlocksMax Kleiner
 
C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...bhargavi804095
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...bhargavi804095
 
Programming in c_in_7_days
Programming in c_in_7_daysProgramming in c_in_7_days
Programming in c_in_7_daysAnkit Dubey
 
IP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG ProgrammeIP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG ProgrammeSAFAD ISMAIL
 

Similar to File i o api c++ sample program (20)

Smpl cpp
Smpl cppSmpl cpp
Smpl cpp
 
Visual programming
Visual programmingVisual programming
Visual programming
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
 
verilog basics.ppt
verilog basics.pptverilog basics.ppt
verilog basics.ppt
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
WP7 HUB_Introducción a Visual Studio
WP7 HUB_Introducción a Visual StudioWP7 HUB_Introducción a Visual Studio
WP7 HUB_Introducción a Visual Studio
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptx
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
 
Creating simple component
Creating simple componentCreating simple component
Creating simple component
 
Android AOS practical programs.pdf
Android AOS practical programs.pdfAndroid AOS practical programs.pdf
Android AOS practical programs.pdf
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
Visual programming lab
Visual programming labVisual programming lab
Visual programming lab
 
DLL Design with Building Blocks
DLL Design with Building BlocksDLL Design with Building Blocks
DLL Design with Building Blocks
 
C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
 
Programming in c_in_7_days
Programming in c_in_7_daysProgramming in c_in_7_days
Programming in c_in_7_days
 
Linkers
LinkersLinkers
Linkers
 
Unit i
Unit iUnit i
Unit i
 
CHAPTER 3
CHAPTER 3CHAPTER 3
CHAPTER 3
 
IP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG ProgrammeIP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG Programme
 

More from Prafulla Tekriwal

More from Prafulla Tekriwal (20)

Ep 01
Ep 01Ep 01
Ep 01
 
E97d402 professionalism
E97d402 professionalismE97d402 professionalism
E97d402 professionalism
 
Brochure admissions 2012
Brochure admissions 2012Brochure admissions 2012
Brochure admissions 2012
 
6d5a24 risks and benefits
6d5a24 risks and benefits6d5a24 risks and benefits
6d5a24 risks and benefits
 
783cf08 buying behaviour
783cf08 buying behaviour783cf08 buying behaviour
783cf08 buying behaviour
 
Wipro
WiproWipro
Wipro
 
Parx catalogue aw11
Parx catalogue aw11Parx catalogue aw11
Parx catalogue aw11
 
Agri presentation 7th_sept2009
Agri presentation 7th_sept2009Agri presentation 7th_sept2009
Agri presentation 7th_sept2009
 
8e537 case questions sb
8e537 case questions sb8e537 case questions sb
8e537 case questions sb
 
Cross countries analysis
Cross countries analysisCross countries analysis
Cross countries analysis
 
Campus pre-placement talk management trainee - 2012
Campus   pre-placement talk management trainee - 2012Campus   pre-placement talk management trainee - 2012
Campus pre-placement talk management trainee - 2012
 
864f0culture+and+society
864f0culture+and+society864f0culture+and+society
864f0culture+and+society
 
300 puzzles-%5 bwww.placementpapers.net%5d
300 puzzles-%5 bwww.placementpapers.net%5d300 puzzles-%5 bwww.placementpapers.net%5d
300 puzzles-%5 bwww.placementpapers.net%5d
 
91f7804 sales mgt skills competencies
91f7804 sales mgt skills competencies91f7804 sales mgt skills competencies
91f7804 sales mgt skills competencies
 
Public relations in indian context
Public relations in indian contextPublic relations in indian context
Public relations in indian context
 
Parcel management system 1
Parcel management system 1Parcel management system 1
Parcel management system 1
 
Market research case indian paints limited
Market research case  indian paints limitedMarket research case  indian paints limited
Market research case indian paints limited
 
Associaion of mutual fund of india
Associaion of mutual fund of indiaAssociaion of mutual fund of india
Associaion of mutual fund of india
 
Ambush marketing
Ambush marketingAmbush marketing
Ambush marketing
 
Retail
RetailRetail
Retail
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

File i o api c++ sample program

  • 1. File I/O API - C++ Sample Program Overview Dictls32.exe (dictls16.exe in its 16 bit incarnation) is a C++ sample program which utilizes the File I/O API. It is a multiple document interface (MDI) application which displays the dictionary information from SPSS data files in one or more child windows. The user simply selects “Open” from the “File” menu to get a standard Open File dialog. If the selected file is an SPSS data file, its dictionary information is displayed in an edit control in a child window. The application is terminated by selecting “Exit” from the “File” menu. Building The sample program has been built with versions 1.5 (16 bit) and 4.0 (32 bit) of Microsoft Visual C++. Other compilers may work, but they have not been tested. In order to build the sample program, perform the following steps: 1. Copy all the files from the spssdkio_dllsmpl_cpp directory on the distribution disk to a directory on your hard disk. 2. Make sure spssdio.h is on the compiler’s search path - either by copying it to the directory containing the sample program or by modifying the INCLUDE environment variable. 3. Made sure spssio32.lib (spssio16.lib for a 16 bit build) is on the linker’s search path - either by copying the file to the directory containing the sample program or by modifying the LIB environment variable. 4. Use the nmake utility to build the application: nmake -f dictls32.mak DEBUG=1 For a 16 bit build, substitute dictls16.mak for dictls32.mak . Each of the makefiles recognizes two options which can either be set as environment variables or defined on the command line. The first option is “DEBUG”. If this symbol is defined (regardless of its value), the resulting executable will contain debug symbols. The default is not to include debug symbols. The second option is “STATICMFC ”. If this symbol is defined (regardless of its value), the resulting executable will contain statically-linked Microsoft Foundation Classes (MFC) and C Run-Time. The default is to use DLL-resident versions of MFC and the C Run-Time. The 32 bit makefile writes its intermediate and target files to a subdirectory named “32” while the 16 bit makefile writes the corresponding files to a subdirectory named “16”. In order to execute the resulting application, spssio32.dll (spssio16.dll for 16 bit builds) must be accessible at execution time. Integrated Development Environment Most users will opt to use Microsoft’s Integrated Development Environment (IDE) to build and debug an application. The sample application is amenable to being built in this fashion. Simply
  • 2. File I/O API - C++ Sample Program open dictls32.mak by selecting “Open Workspace” from the “File” menu. You will have to select “Settings” on the “Build” menu to specify the name of the target file, the name of the required DLL, and the debug build command line. If you are using the 16 bit IDE, open dictls16.mak via the “Open” item on the “Project” menu. Here, the name of the target file and the debug build command line are specified via the “Project” item on the “Options” menu, and the name of the required DLL is specified via the “Debug” item on the “Options” menu. Constituent Files The following files are included as part of the sample program: dictafx.cpp for building precompiled headers dictafx.h includes the headers to be precompiled dictdoc.cpp CDocument class CDictListDoc - does all the work dictdoc.h Interface to class CDictListDoc dictdoc.ico Icon for class CDictListDoc dictlist.cpp CEditView class CDictListEditView and a CWinApp class dictlist.h Interface to classes CDictListEditView and CDictListApp dictls16.def Module definition for 16 bit application dictls16.exe 16 bit application built with STATICMFC defined dictls16.mak External makefile for 16 bit application dictls16.rc Resources for 16 bit application dictls32.exe 32 bit application built with STATICMFC defined dictls32.mak External makefile for 32 bit application dictls32.rc Resources for 32 bit application dictmain.ico Icon for the application’s MDI frame window dict-res.h Interface to the resources -2-