Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Easy low tech question about file types Posted by MaskedCoder on 20 Jan 2003 at 6:44 PM
I was looking for a way to have files of certain types open by an application that I create. I happened upon the file type tab under folder options. However, I saw something that intrigued me. After some of the applications, "%1" appeared after the name of the program that after the files. I know it's an argument but is it how the program is told the name of the file? I assume that it's a macro and will expand once the program is open.

Main question: Does "%1" expand to the file name before it is sent to the program or will the program have to resolve the macro for itself?
Report
Re: Easy low tech question about file types Posted by pingpong on 21 Jan 2003 at 6:12 AM
:
: Main question: Does "%1" expand to the file name before it is sent to the program or will the program have to resolve the macro for itself?
:

It will be expanded, if you have a WinMain, you will get it in the 3rd parameter (the LPSTR lpCmdLine)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.