Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,

I am implementing one print module in vc++ 6.0. I want to create Headers for test report generated by software already implemented in vc++ 6.0 Now in my print module I have to implement one dialogbox on which I entered all information which should be in header (Like company_name,address,website,model,Orderno). and save it into access database.
My question is after saving this all information in database, Now how to read this information and write on text file in vc++? I am new in vc++.

just guid me for how to write text in single editbox data on file. for show this data as a print preview.

Thank you.
Posted

1 solution

Because you work with the MFC you can use the CFile class from Microsoft. Take care to check EVERY function call for errors. Use some trace or logging function to detect errors.

Your code should look like the Microsoft example code.
 
Share this answer
 
Comments
Kishor-KW 6-Jan-16 4:24am    
Ok I already find some solution similar to this. I will also try this one. and let you know. Thanx for reply

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900