Click to See Complete Forum and Search --> : Folders puzzle


stuart
May 7th, 1999, 05:42 AM
I have two small questions:

1. How do I create an empty folder using code?

and

2. Is there code/command I could use to simply print a text file?

I would be well pleased if you could help me with these small, yet iritating problems......

Cheers,

Stu

Safai Ma
May 7th, 1999, 09:37 AM
1. There is a function called CreateDirectory (CreateDirectoryEx) that you can use.

2. printing is much involved. You need CPrintInfo to setup the printer then you can use the DC in CPrintInfo to draw your text using GDI Textout functions. Take a look at the Online help.



-Safai

Hardeep Singh
May 8th, 1999, 01:19 AM
If it's an existing text file you want to print, use ShellExecute with "print" as the verb.