OLE

Programming, for all ages and all languages.
Post Reply
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

OLE

Post by i586coder »

HI, folks

I'm working around windows like paint brush,every things goes well,
but i want to add auto-open picture to my program, if you drag & drop file to window you can get file info like : path,name,size,...

note: I'm using visual basic 6 under windows xp

about the subject name OLE i think my problem solved
if i use OLE or any things like taht

any comments will help [-o<

Cheers :mrgreen:
Ahmad T. Dajani
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: OLE

Post by Combuster »

fill in the OLEdrop events - I don't know by hard which one but it has a parameter that contains a list of files
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OLE

Post by i586coder »

Combuster wrote: fill in the OLEdrop events - I don't know by hard which one but it has a parameter that contains a list of files
sorry i don't meant that, just i want to add code to my programe
to make

drag & drop any file to my window programe to get file
info. like path,...


ThankX again :shock:
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: OLE

Post by Combuster »

the filename includes the path, and for any other information you'll need the filename :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OLE

Post by i586coder »

Combuster wrote:the filename includes the path, and for any other information you'll need the filename :wink:
anyway, i need path in order to open dragged-file in my window
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OLE

Post by i586coder »

#-o ___ #-o __ #-o #-o___ #-o _________ #-o #-o
#-o ___ #-o __ #-o ______ #-o _________ #-o __ #-o
#-o #-o #-o __ #-o #-o___ #-o _________ #-o #-o
#-o ___ #-o __ #-o ______ #-o _________ #-o
#-o ___ #-o __ #-o #-o __ #-o #-o #-o __ #-o
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: OLE

Post by pcmattman »

Wow...

For a start, "dragged filename includes the path" means you do get the path, but you'll need to parse it out. Other than that, we can't help you unless you help us.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: OLE

Post by Combuster »

"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OLE

Post by i586coder »

Combuster wrote:
AhmadTayseerDajani wrote:HELP
http://www.catb.org/~esr/faqs/smart-questions.html

Code: Select all

while(1){
cout<<"I READ IT BEFORe";
}
I think you can't understand what i mean,simply i need an object(OLE) in my VB6 code to accept any other object e.g(file)
& get information from second object(file) like path,size,date..
if possible,if not i will search another method to solve my case

thx,
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: OLE

Post by AJ »

Hi,

You have already been informed that there is an OLEdrop even which passes the name of the file to your program. You can then use the file name to get other information about it. What hasn't been answered about your question?

The first Google hit for "vb6 ole drop" is here and although I had no idea how to do OLE drag and drops in VB6 I already now have a pretty good idea, particularly because of pages 3 and 4 of the article. Note that one of the objects that can be dropped is a "file list".

You should have been able to find this information yourself from the answers given above. If this does not answer your question adequately, you need to learn to phrase your questions better.

Cheers,
Adam
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: OLE

Post by i586coder »

nice link,... =D>
AJ wrote: you need to learn to phrase your questions better.
i will,..., in next post :oops:


CheerS,
Ahmad T. Dajani
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: OLE

Post by JamesM »

Code: Select all

while(1){
cout<<"I READ IT BEFORe";
}
I seriously suggest you reread it. And this time, actually understand it and put its advice into practice.

Your posts smack of someone with social problems.
Post Reply