Page 1 of 1
OLE
Posted: Sat Oct 25, 2008 8:42 am
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
Cheers
Ahmad T. Dajani
Re: OLE
Posted: Sat Oct 25, 2008 8:50 am
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
Re: OLE
Posted: Sat Oct 25, 2008 8:56 am
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
Re: OLE
Posted: Sat Oct 25, 2008 9:25 am
by Combuster
the filename includes the path, and for any other information you'll need the filename
Re: OLE
Posted: Sat Oct 25, 2008 10:14 am
by i586coder
Combuster wrote:the filename includes the path, and for any other information you'll need the filename
anyway, i need path in order to open dragged-file in my window
Re: OLE
Posted: Sat Oct 25, 2008 11:09 am
by i586coder
Re: OLE
Posted: Sat Oct 25, 2008 9:21 pm
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.
Re: OLE
Posted: Mon Oct 27, 2008 4:00 am
by Combuster
Re: OLE
Posted: Mon Oct 27, 2008 5:51 am
by i586coder
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,
Re: OLE
Posted: Mon Oct 27, 2008 6:39 am
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
Re: OLE
Posted: Mon Oct 27, 2008 7:27 am
by i586coder
nice link,...
AJ wrote:
you need to learn to phrase your questions better.
i will,..., in next post
CheerS,
Ahmad T. Dajani
Re: OLE
Posted: Tue Oct 28, 2008 5:47 am
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.