1) The procedurename can not handle underscores twice like:
ProcedureDLL.s PBSGPLIB_BrowseForFolder_GetPath( Gadget )
2) How to make a procedure having optional parameters (NOT CDECL)
3) I'm using TB_SetGadget()
Is there a description?
What does it do?
It does not show my message requester when the control is destroyed.
Using it now as:
VT\FreeGadget = @MyFreeGadgetDummy()
VT\GetGadgetState = @MyGetGadgetStateDummy()
VT\SetGadgetState = @MySetGadgetStateDummy()
TB_SetGadget( Gadget, hWnd, @VT )
Thanks!
Creating libraries is very neat!
Also big thanks to 'tailbite'.
3 questions about exported procedures.
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
What happens if you use two underscores? Seems ok here. About TB_SetGadget, reemmber to use a global structure. Does it work ok for you now?1) The procedurename can not handle underscores twice like:
ProcedureDLL.s PBSGPLIB_BrowseForFolder_GetPath( Gadget )
Regards, and thanks for the feedback and reports,
El_Choni
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
Try to actually use the call, i believe it's there where it goes wrong.
The lib looks fine but i believe it was pb not finding the proc.
To bad about the struct being global.
I used it protected, will change, maybe therefore not seeing my destroy being handled...
About the string issue, at some point i need to use a local string to copy my BSTR stuff into, then i pass it back to the procedure as result var.
Is this still wrong, how to avoid?
(Had no time for your help yet, only briefly)
Fine tool, keep it up, even if low feedback.
The lib looks fine but i believe it was pb not finding the proc.
To bad about the struct being global.
I used it protected, will change, maybe therefore not seeing my destroy being handled...
About the string issue, at some point i need to use a local string to copy my BSTR stuff into, then i pass it back to the procedure as result var.
Is this still wrong, how to avoid?
(Had no time for your help yet, only briefly)
Fine tool, keep it up, even if low feedback.
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
The BSTR is not an issue
I copy via MoveMemory_() the BSTR contents over to a local string.
The local string is returned in the procedure.
My question is if i can use a string in pb, there was this string issue?
A few weeks ago i had a problem during a callback and the explorergadget.
I was mentioned that strings where a problem that there was only on string or so allocated???
I don't understand, i don't need conflicts.

I copy via MoveMemory_() the BSTR contents over to a local string.
The local string is returned in the procedure.
My question is if i can use a string in pb, there was this string issue?
A few weeks ago i had a problem during a callback and the explorergadget.
I was mentioned that strings where a problem that there was only on string or so allocated???
I don't understand, i don't need conflicts.
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
Any ideas about the procedurename having more _ 's?
There is no need to have any code in the procedure.
pb will not like it while tailbite compiles it fine.
==================
Tailbite:
I'm still worried about the string issue which i can not describe.
The help shows an exampe similar to what i use:
ProcedureDLL.s MyReplaceString(a$, b$, c$)
There is this remark in the help:
So, my advice would be to avoid string manipulation in your code (use direct strings, or only memory addresses),
What are direct strings?
forget the BSTR issue, i use a similar function as ProcedureDLL.s MyReplaceString(a$, b$, c$)
I simply use MoveMemory_() to copy BSTR contents to the pb string.
There is no need to have any code in the procedure.
pb will not like it while tailbite compiles it fine.
==================
Tailbite:
I'm still worried about the string issue which i can not describe.
The help shows an exampe similar to what i use:
ProcedureDLL.s MyReplaceString(a$, b$, c$)
There is this remark in the help:
So, my advice would be to avoid string manipulation in your code (use direct strings, or only memory addresses),
What are direct strings?
forget the BSTR issue, i use a similar function as ProcedureDLL.s MyReplaceString(a$, b$, c$)
I simply use MoveMemory_() to copy BSTR contents to the pb string.
