Context Menu Item Shell Extension example (Windows)

Share your advanced PureBasic knowledge/code with the community.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

El_Choni wrote:@Psychophanta: you're talking about a Drag and Drop Shell Handler, which is different from this one. I can have a look at that when I arrive home.
Aha! Thanx :D
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

well, El_choni did some good work here.
This is defintly a good start to create ActiveX-DLL's with Purebasic.

go on, i like it :)
SPAMINATOR NR.1
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Hi,

Fixed a couple of things in the second code, might work for you now, Edwin.

@Rings: yes, I think it's possible, but it probably needs some work, specially with two things which scare me a bit: IDispatch (is it really needed in ActiveX DLLs?) and TypeLibs.
El_Choni
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

Yes it works, :) did not expect a bitmap in the menu itself.. ha!
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

Btw, for a short period of time i put the dll over here:

http://www.hellobasic.com/trials/pbmimg.dll

You'll need to register the dll.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Edwin Knoppert wrote:Btw, for a short period of time i put the dll over here:
http://www.hellobasic.com/trials/pbmimg.dll
You'll need to register the dll.
Edwin,
what is this DLL for ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

eh?
I just compiled the project above to a dll, so you could have a brief peek.

However, i still have trouble.
On some items the stuff hangs, non images.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Edwin Knoppert wrote:eh?
I just compiled the project above to a dll, so you could have a brief peek.
:oops:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

@Edwin: could you check if that haappens in LoadImage or after?
El_Choni
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

I removed it since i had serious trouble under XP.
I believe it crashed XP when right clicking an icon on the taskbar.
(The lnk files like media player etc..)
szerda
User
User
Posts: 12
Joined: Wed Sep 14, 2005 1:57 pm

Post by szerda »

Hi


i need some help: how can i add 2 or more line to context menu?

thanks
Sorry my bad English
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I'll have a look at the code this week, it's not difficult to do what you want.
El_Choni
szerda
User
User
Posts: 12
Joined: Wed Sep 14, 2005 1:57 pm

Post by szerda »

Thanks El_Choni
i wait your reply, because i can't know how to do that
Sorry my bad English
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

Edwin Knoppert wrote:Btw, for a short period of time i put the dll over here:

http://www.hellobasic.com/trials/pbmimg.dll

You'll need to register the dll.
I mirrored (ok?) this over at:

www.amsuser.com/misc/pbmimg&source.zip

I also have a .txt file with the post with the source included.

FWIW

Thanks for sharing this and I look forward to you updates as you have time.

:!:
Intrigued - Registered PureBasic, lifetime updates user
troy
User
User
Posts: 51
Joined: Sat May 31, 2003 2:59 pm

Post by troy »

Is it possible to update the code for PB4? Got few asm errors here... :(
--
troy
Post Reply