Click here to Skip to main content
15,887,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question Authentication client-server using message queues in c language Pin
ralph 230-Jul-10 22:47
ralph 230-Jul-10 22:47 
GeneralMessage Removed Pin
1-Aug-10 22:27
SortaCore1-Aug-10 22:27 
GeneralRe: Question Authentication client-server using message queues in c language Pin
Richard MacCutchan1-Aug-10 23:19
mveRichard MacCutchan1-Aug-10 23:19 
QuestionOpening a file with my program Pin
mmagill030-Jul-10 1:58
mmagill030-Jul-10 1:58 
AnswerRe: Opening a file with my program Pin
Sauro Viti30-Jul-10 2:20
professionalSauro Viti30-Jul-10 2:20 
AnswerRe: Opening a file with my program Pin
Cool_Dev30-Jul-10 2:30
Cool_Dev30-Jul-10 2:30 
AnswerRe: Opening a file with my program Pin
mmagill030-Jul-10 2:41
mmagill030-Jul-10 2:41 
GeneralRe: Opening a file with my program [modified] Pin
Cool_Dev30-Jul-10 2:52
Cool_Dev30-Jul-10 2:52 
__argc is an integer variable holding the count of commandline arguments. __argv is pointer to two dimensional character array of comand line strings.

first argument __argv[0]
second argument __argv[1]

last argument __argv[__argc-1]

alternatively you can use GetCommandLine API also

If your registry settings for file association are correct, you will be getting the file path as a commandline argument to your application.

modified on Friday, July 30, 2010 9:24 AM

AnswerRe: Opening a file with my program Pin
Richard MacCutchan30-Jul-10 3:27
mveRichard MacCutchan30-Jul-10 3:27 
QuestionRe: Opening a file with my program Pin
David Crow30-Jul-10 3:29
David Crow30-Jul-10 3:29 
QuestionC++ Variable value in SQL Query Pin
T.RATHA KRISHNAN29-Jul-10 23:47
T.RATHA KRISHNAN29-Jul-10 23:47 
AnswerRe: C++ Variable value in SQL Query Pin
«_Superman_»29-Jul-10 23:52
professional«_Superman_»29-Jul-10 23:52 
GeneralRe: C++ Variable value in SQL Query Pin
T.RATHA KRISHNAN30-Jul-10 0:03
T.RATHA KRISHNAN30-Jul-10 0:03 
GeneralRe: C++ Variable value in SQL Query Pin
«_Superman_»30-Jul-10 0:09
professional«_Superman_»30-Jul-10 0:09 
GeneralRe: C++ Variable value in SQL Query Pin
Cedric Moonen30-Jul-10 0:16
Cedric Moonen30-Jul-10 0:16 
QuestionHow can insert or add image in Access databse? Pin
Le@rner29-Jul-10 23:32
Le@rner29-Jul-10 23:32 
QuestionWiX : how to find dependencies Pin
Leif Goodwin29-Jul-10 22:47
Leif Goodwin29-Jul-10 22:47 
AnswerRe: WiX : how to find dependencies Pin
Sauro Viti29-Jul-10 23:19
professionalSauro Viti29-Jul-10 23:19 
GeneralRe: WiX : how to find dependencies Pin
Leif Goodwin29-Jul-10 23:26
Leif Goodwin29-Jul-10 23:26 
QuestionProblem Pin
john563229-Jul-10 21:32
john563229-Jul-10 21:32 
AnswerRe: Problem Pin
«_Superman_»29-Jul-10 21:55
professional«_Superman_»29-Jul-10 21:55 
GeneralRe: Problem Pin
Sauro Viti29-Jul-10 22:30
professionalSauro Viti29-Jul-10 22:30 
GeneralRe: Problem Pin
Emilio Garavaglia30-Jul-10 3:11
Emilio Garavaglia30-Jul-10 3:11 
GeneralRe: Problem Pin
Sauro Viti30-Jul-10 4:24
professionalSauro Viti30-Jul-10 4:24 
Questionfile.txt size problem Pin
dilara semerci29-Jul-10 21:27
dilara semerci29-Jul-10 21:27 

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.