CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Folders puzzle

  1. #1
    Join Date
    May 1999
    Location
    Scotland,UK
    Posts
    9

    Folders puzzle

    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




  2. #2
    Join Date
    May 1999
    Location
    Toronto, Ontario, Canada
    Posts
    155

    Re: Folders puzzle

    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

  3. #3
    Join Date
    May 1999
    Posts
    69

    Re: Folders puzzle

    If it's an existing text file you want to print, use ShellExecute with "print" as the verb.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured