Search found 63 matches

by BrendanE
Tue Aug 03, 2004 9:09 am
Forum: Announcement
Topic: POP3 User Library
Replies: 50
Views: 23967

I'm glad you find it useful. :)
Thankyou for finding that. I will fix it.
by BrendanE
Wed Jul 21, 2004 9:19 pm
Forum: Announcement
Topic: POP3 User Library
Replies: 50
Views: 23967

in a real world app you must ensure you have allocated enough to contain the entire message (you did this correctly in your previous code using the GetMsgSize() function)... (remembering to either free up the memory - or reallocate the same block every time).

but if you want to work on a test ...
by BrendanE
Wed Jul 21, 2004 8:45 pm
Forum: Announcement
Topic: POP3 User Library
Replies: 50
Views: 23967

@Shanarra : Sorry - I missed seeing your question!!
Well it downloads the complete message text / attachments and all in whatever encoded format they are in... you would have to parse those yourself.

Try downloading a message and saving it as .eml - then use Outlook to open it - you'll see what I ...
by BrendanE
Wed Jul 21, 2004 8:41 pm
Forum: Announcement
Topic: POP3 User Library
Replies: 50
Views: 23967

Hi theFool! :)
by BrendanE
Wed Jul 21, 2004 8:40 pm
Forum: Announcement
Topic: POP3 User Library
Replies: 50
Views: 23967

@GeoTrail :

Size = POP3_GetMsgSize(GetGadgetState(#Mail_list)+1)
*buffer = AllocateMemory(Size)
; POP3_BufferMsgHeader(GetGadgetState(#Mail_list)+1, *buffer )
*myCallBack = POP3_SetDebugCallBack( @myCallBack() )
POP3_BufferMsgBody( GetGadgetState(#Mail_list)+1, *buffer, *myCallBack ...
by BrendanE
Wed Jul 21, 2004 8:23 pm
Forum: Announcement
Topic: POP3 User Library
Replies: 50
Views: 23967

Hi, I'm sorry for the very late response... had a hard drive crash - but yes I'm still here!
by BrendanE
Wed Jul 07, 2004 9:47 am
Forum: Coding Questions
Topic: Detect events in other apps?
Replies: 13
Views: 11743

@Sparkie, thanks alot, that's great. It works just fine for me too - now to go and figure out what's wrong with my code!

Thanks.
by BrendanE
Tue Jul 06, 2004 11:42 pm
Forum: Coding Questions
Topic: Detect events in other apps?
Replies: 13
Views: 11743

Sparkie,
Thanks for that - yes I've done it just as you have - the hook function is in a shared dll - as is the installHook function below...


ProcedureDLL.l installHook(hDLL, *hookFunction)
hHook = SetWindowsHookEx_(#WH_MSGFILTER, *hookFunction, hDLL, 0)
EndProcedure


ProcedureDLL.l MenuFilter ...
by BrendanE
Tue Jul 06, 2004 10:43 pm
Forum: Coding Questions
Topic: Detect events in other apps?
Replies: 13
Views: 11743

Hi Sparkie,

I also had a play with writing a hook the same way pretty much.. except I have some exported DLL functions to install and remove the hook. I give the DLL a callback function to call my App with when a message is passed through... trouble is it's not working as I expected - it appears ...
by BrendanE
Mon Jul 05, 2004 1:47 pm
Forum: Announcement
Topic: Skunksoft ThreadSync Lib 1.0
Replies: 33
Views: 10209

@Polyvector : thanks, I'll have a look at the mutex info.
Still having trouble with my app locking up ... any ideas?
by BrendanE
Mon Jul 05, 2004 1:15 am
Forum: Announcement
Topic: Skunksoft ThreadSync Lib 1.0
Replies: 33
Views: 10209

Yes..... that's exactly how I've done it. Which is why I was wondering about the 'resources' and what they are connected with.

Thanks for the suggestions - much appreciated. I'll experiment some more!

:|
by BrendanE
Mon Jul 05, 2004 12:53 am
Forum: Announcement
Topic: Skunksoft ThreadSync Lib 1.0
Replies: 33
Views: 10209

Ok, I understand the explanation.... that all makes sense.

Except... how do I connect a 'resource' with the object in question.

In my case I'm doing this.....

Procedure thread()
;process a thread message....
messageProcessed = 1
EndProcedure

...main app...

messageProcessed = 0 ...
by BrendanE
Mon Jul 05, 2004 12:26 am
Forum: Announcement
Topic: Skunksoft ThreadSync Lib 1.0
Replies: 33
Views: 10209

Thanks for the reply...

Ok.... I did use it as per the example that comes with the library...

just that it doesn't explain what is a resource... or why you'd create more than one. It doesn't take any parameters - just returns a handle to a resource..... which you then call OpenThreadResource ...
by BrendanE
Mon Jul 05, 2004 12:16 am
Forum: Announcement
Topic: Skunksoft ThreadSync Lib 1.0
Replies: 33
Views: 10209

Sorry to rekindle an old thread but...

Can you explain what the command

AddThreadResource() is for and how it's used?

I'm trying to wait for a thread to change a certain variable... using this OpenThreadResource() / Close...() .... but the value is never changing - even though the thread DOES ...
by BrendanE
Mon Jul 05, 2004 12:10 am
Forum: Coding Questions
Topic: Get IP addresses of connected clients
Replies: 6
Views: 2092

Thanks fellas, works a treat!