Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: check disk API Pin
Adam Roderick J28-Jul-09 19:38
Adam Roderick J28-Jul-09 19:38 
AnswerRe: check disk API Pin
Madan Chauhan28-Jul-09 19:58
Madan Chauhan28-Jul-09 19:58 
GeneralRe: check disk API Pin
Iain Clarke, Warrior Programmer28-Jul-09 23:38
Iain Clarke, Warrior Programmer28-Jul-09 23:38 
Questionobtain minimum allowed new User ID from a table by SQL Pin
includeh1028-Jul-09 17:04
includeh1028-Jul-09 17:04 
AnswerRe: obtain minimum allowed new User ID from a table by SQL Pin
_AnsHUMAN_ 28-Jul-09 18:36
_AnsHUMAN_ 28-Jul-09 18:36 
Questionhow to capture the URL of the image Pin
shi baoshi28-Jul-09 16:55
shi baoshi28-Jul-09 16:55 
AnswerRe: how to capture the URL of the image Pin
shi baoshi28-Jul-09 21:26
shi baoshi28-Jul-09 21:26 
GeneralRe: how to capture the URL of the image [modified] Pin
Code-o-mat28-Jul-09 21:49
Code-o-mat28-Jul-09 21:49 
There is an application, i sadly can't recall the name, but maybe you can google it up, that will list you what data formats are "contained in a drag-drop operation", so to say (all you have to do is grab an image in your browser and drop it onto the window of this app). You probably won't be able to gain the URL from the FILEDROP format BUT using this app (it's free btw, could be that it is even somewhere here on CodeProject) you could check what other formats the browser gives to you when you drag a picture and one of these might just be what you need. If i can remember the name of this app i will tell you...

p.s.: Are you handling WM_FILEDROP? If so, i recommend you rather use the OLE way, check this[^] article.
And hey, that article uses the proggie i mentioned before, it is called "ClipSpy". What are the odds...

[EDIT]
So i checked it myself dragging from FireFox, the drop contains the URL in many formats, seems like it has CF_TEXT and CF_UNICODETEXT or a format called UniformResourceLocator or UniformResourceLocatorW and some other formats which all contain the URL (http://www.whatever.com/pics/picturename.jpg for example).

[EDIT]
I just checked it with IE too and it seems to contain only UniformResourceLocator for the URL so that's your best bet.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

modified on Wednesday, July 29, 2009 4:13 AM

GeneralRe: how to capture the URL of the image Pin
shi baoshi29-Jul-09 3:14
shi baoshi29-Jul-09 3:14 
GeneralRe: how to capture the URL of the image Pin
Code-o-mat29-Jul-09 3:28
Code-o-mat29-Jul-09 3:28 
GeneralRe: how to capture the URL of the image [modified] Pin
shi baoshi29-Jul-09 3:51
shi baoshi29-Jul-09 3:51 
AnswerRe: how to capture the URL of the image Pin
Rozis29-Jul-09 10:37
Rozis29-Jul-09 10:37 
GeneralRe: how to capture the URL of the image [modified] Pin
shi baoshi30-Jul-09 4:19
shi baoshi30-Jul-09 4:19 
Questionneed a class for generating security file Pin
includeh1028-Jul-09 16:29
includeh1028-Jul-09 16:29 
AnswerRe: need a class for generating security file Pin
«_Superman_»28-Jul-09 16:35
professional«_Superman_»28-Jul-09 16:35 
GeneralRe: need a class for generating security file Pin
includeh1028-Jul-09 16:55
includeh1028-Jul-09 16:55 
QuestionCTime and time zone calculations Pin
john john mackey28-Jul-09 13:25
john john mackey28-Jul-09 13:25 
AnswerRe: CTime and time zone calculations Pin
David Crow29-Jul-09 2:51
David Crow29-Jul-09 2:51 
QuestionVector C++ Pin
resolvequestion28-Jul-09 12:23
resolvequestion28-Jul-09 12:23 
AnswerRe: Vector C++ Pin
David Crow29-Jul-09 2:53
David Crow29-Jul-09 2:53 
QuestionOverloaded functions - best approach Pin
john john mackey28-Jul-09 11:57
john john mackey28-Jul-09 11:57 
AnswerRe: Overloaded functions - best approach Pin
Rick York28-Jul-09 15:04
mveRick York28-Jul-09 15:04 
AnswerRe: Overloaded functions - best approach Pin
«_Superman_»28-Jul-09 16:37
professional«_Superman_»28-Jul-09 16:37 
GeneralRe: Overloaded functions - best approach Pin
john john mackey29-Jul-09 6:31
john john mackey29-Jul-09 6:31 
AnswerRe: Overloaded functions - best approach Pin
KarstenK28-Jul-09 21:07
mveKarstenK28-Jul-09 21:07 

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.