Click here to Skip to main content
15,913,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sending File Through UDP Pin
James R. Twine10-Jan-07 4:50
James R. Twine10-Jan-07 4:50 
GeneralRe: Sending File Through UDP Pin
Tim Paaschen10-Jan-07 19:42
Tim Paaschen10-Jan-07 19:42 
GeneralRe: Sending File Through UDP Pin
James R. Twine11-Jan-07 13:38
James R. Twine11-Jan-07 13:38 
AnswerRe: Sending File Through UDP Pin
Eytukan10-Jan-07 4:56
Eytukan10-Jan-07 4:56 
QuestionWhat happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 3:18
KellyR10-Jan-07 3:18 
AnswerRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 3:38
Roger Stoltz10-Jan-07 3:38 
QuestionRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 4:01
KellyR10-Jan-07 4:01 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:12
mveCPallini10-Jan-07 4:12 
If you're writing a windowed application the you have the path inside WinMain:
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)


lpCmdLine will contain the path of your file.


On the other hand, if you have a console application, then the path of the file will be in item 1 of argv[] argument of main.
int main(int argc, char* argv[])


Smile | :)


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 4:18
KellyR10-Jan-07 4:18 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:15
Roger Stoltz10-Jan-07 4:15 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:21
mveCPallini10-Jan-07 4:21 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:30
Roger Stoltz10-Jan-07 4:30 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:36
mveCPallini10-Jan-07 4:36 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:42
Roger Stoltz10-Jan-07 4:42 
GeneralRe: What happens when I open a file with its "default" program? [modified] Pin
CPallini10-Jan-07 4:54
mveCPallini10-Jan-07 4:54 
GeneralRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 5:35
KellyR10-Jan-07 5:35 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 5:55
Roger Stoltz10-Jan-07 5:55 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 8:16
mveCPallini10-Jan-07 8:16 
AnswerRe: What happens when I open a file with its "default" program? Pin
James R. Twine10-Jan-07 4:55
James R. Twine10-Jan-07 4:55 
GeneralRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 5:29
KellyR10-Jan-07 5:29 
AnswerRe: What happens when I open a file with its "default" program? Pin
David Crow10-Jan-07 3:46
David Crow10-Jan-07 3:46 
QuestionHow to change "x" button's position on the dialog title bar? Pin
PatrykDabrowski10-Jan-07 2:02
PatrykDabrowski10-Jan-07 2:02 
AnswerRe: How to change "x" button's position on the dialog title bar? Pin
Monty210-Jan-07 2:12
Monty210-Jan-07 2:12 
QuestionSigning C++ project for Vista Pin
Vitaly Tomilov10-Jan-07 1:57
Vitaly Tomilov10-Jan-07 1:57 
AnswerRe: Signing C++ project for Vista Pin
Michael Dunn10-Jan-07 8:33
sitebuilderMichael Dunn10-Jan-07 8:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.