Follow us on Twitter!
You cannot teach a man anything; you can only help him find it within himself. - Galileo
Wednesday, April 16, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 17
Guests Online: 15
Members Online: 2

Registered Members: 82808
Newest Member: Krish
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

accepting files in C/C++


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-10-10 13:10
Problem Statement:
When a Html file is double clicked,Windows starts Firefox and passes the file to it.

I have created a tiny html reader and set it as my default browser.

But when any html file is double clicked,the reader pops open,BLANK,and an error pops up saying:[My fault Error,rectified thanks to spyware]"There was a problem sending the command to the program"

How do I tell the Prog. to accept the file?

I prefer C to C++.

Thanks in advance for suggestions/answers.Smile




Edited by on 28-10-10 15:51
Author

RE: accepting files in C/C++

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 28-10-10 15:39
You did not get a popup saying "Error passing the file to the program", post the real error.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: accepting files in C/C++


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-10-10 15:50
My bad,it says:"There was a problem passing the command to the program"

Thanks for that Spyware..I was writing it from memory..not a very good thing..considering the fact that I am unable to even remember the names of my friends.Smile


Author

RE: accepting files in C/C++

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 29-10-10 00:48
I'm not entirely familiar with how this works, but iirc this error is caused by the DDE connection failing. DDE is a windows feature it uses to see if the program is already running to avoid popping up two separate instances, and I think your program must have support for it or else it will fail. DDE can be turned off, however I don't have a clue how.


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .
http://www.stealth-x.com
Author

RE: accepting files in C/C++

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 29-10-10 02:32
stealth- wrote:
I'm not entirely familiar with how this works, but iirc this error is caused by the DDE connection failing. DDE is a windows feature it uses to see if the program is already running to avoid popping up two separate instances, and I think your program must have support for it or else it will fail. DDE can be turned off, however I don't have a clue how.


If you google things, at least google properly: http://bit.ly/6IFUEB



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: accepting files in C/C++

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 29-10-10 02:46
spyware wrote:
If you google things, at least google properly: http://bit.ly/6IFUEB


Well, I generally try not to just google things for other people. I'm not a human google proxy. >.>


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .
http://www.stealth-x.com
Author

RE: accepting files in C/C++


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-10-10 13:29
Works GREAT!!
Thanks!!

This is why I love HBH!!!Smile


Author

RE: accepting files in C/C++

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 29-10-10 13:35
stealth- wrote:
Well, I generally try not to just google things for other people. I'm not a human google proxy. >.>


Sorry, it rather seemed like you googled the error and found the problem, but not the answer. I guess this wasn't the case.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net