can i find file location by using mouse programming

6 replies [Last post]
ravi joshi
Offline
Last seen: 10 years 33 weeks ago
Joined: 2009-07-29
bOt Points: 62

Hi,
I want to know about mouse programming.Actually i want to do is that there is a *.docx file in my computer(windows-XP)and i have a c program which can read-write the content of *.docx file.so first i have to give input(the location of the *.docx file) to that C program then it can read the content of that *.docx file.I want that when i simple one click on *.docx file then it will be input for that C program.I want to ask you also that can i find file location by using mouse programming?So how can i do this???

robo.genius
Offline
Last seen: 6 years 35 weeks ago
Joined: 2009-04-12
bOt Points: 265
are you referring to

are you referring to OPEN FILE mechanism of Windows? 

robo.genius
Offline
Last seen: 6 years 35 weeks ago
Joined: 2009-04-12
bOt Points: 265
check out this link
ravi joshi
Offline
Last seen: 10 years 33 weeks ago
Joined: 2009-07-29
bOt Points: 62
can i find file location by using mouse programming

hey robo.genius,

                           First of all i want to say thanks for that link .Now coming to my problem. Actually i want to read/write the cantent of any *.docx file by smiply one clicking. How to do this? I am thinking that if i would be able to find the location of that *.docx file (by C progarm not by searching option in windows) .I would be able to read/write the content of that file via my C program.So finally how to find the location of that .docx file which was clicked by me.Is there any function in mouse programming so that i am able to know the file location?

                       ok if  you are confused.read it.Suppose there is a file *.docx in your computer and you double click on it .it will open and you are able to read/write its content.But in my case i click single and if i single click on the *.docx file i am able to read/write its content.Actually i do not want to open it. I only read its content in dos mod.I think it should be now clear to you.

robo.genius
Offline
Last seen: 6 years 35 weeks ago
Joined: 2009-04-12
bOt Points: 265
ravi u online?

ravi u online? 

robo.genius
Offline
Last seen: 6 years 35 weeks ago
Joined: 2009-04-12
bOt Points: 265
hi ravi

first of all u shd try to open ur docx file by right clicking on it and then choosing your program from Open With option. If docx file successfully opens in your c++ program then only u shd proceed further. have u tested this? 

ravi joshi
Offline
Last seen: 10 years 33 weeks ago
Joined: 2009-07-29
bOt Points: 62
can i find file location by using mouse programming

hey robo.genius,

                           i have already do this job.That program can open the file and also read/write.