Search:
Type: Posts; User: georgekar
Search:
Search took 0.50 seconds.
-
I use this to get a value as signed long,
Public Function Signed(A) As Long
Dim p
p = Fix(CDec(A))
Signed = MemLong(VarPtr(p) + 8)
End Function
-
There is a good library here: https://github.com/cristianbuse/VBA-MemoryTools
which have CloneParamArray - copies a param array to another array of Variants while preserving ByRef elements.
A...
-
-
I think there is no problem to patch vb6.exe. I had the same problem with ieframe.dll in my M2000 interpreter some years ago. When you add a lot of stack, then maybe you can't load this dll (or any...
-
Try to alter stack size using editbin.exe /stack:102402048 yourfile.exe on yourfile.exe
or add to vbp:
[VBCompiler]
LinkSwitches=/STACK:32180000
the numbers was as I use for some own...
-
You are right. You want 8bytes by value, which means like you pass two long by value.
-
I think that a UDT variable is a Variant where the last 4bytes is the pointer to IRecordInfo. So each defined variant (variable) is like an object without vtable, has a pointer to a memory block...
-
So Why you don't make it like two long
typedef struct foo
long bar1;
long bar2;
} foo;
-
Maybe is just a swap, from where the pointer detach. Swapping never play with object counter.
-
This is a part of code before the invoke (at iDispatch). I have to pass the names of the named arguments in reverse order, but at 0 has to be the name of the function. So I pass the myptr(0) (by...
-
If you don't understand what you ask, and you get anything and it's good but not what you ask, perhaps you want something else, who can take you serious?
-
I make one for the OP:
https://www.desmos.com/calculator/xkvulcfma3
-
reexre,
Is pure math. What you done not work for the OP. A linear function is that when the displacement of X (from X1 to X2) return the same displacement Y (which are from Y1 to Y2) for any X. So...
-
This not work. The function in question is not linear, therefore we have to use two times the Value...at least
-
The setupcalc1 is the real MapRange function. The second one, the setupcalc2 is for the OP's calc.
This is based on this https://rosettacode.org/wiki/Map_range#Using_Class
Sub main()
Dim a...
-
Yes I put the missing line. This was from a typelib from Michel Rutten, Hidden Gems for Free.
And this is from TLBNF32.tlb
So the 0x60... used for modules (like 0x40...for UDT fields). I don't...
-
Another try to find the reason;
Works with ds2 at the last line.
Option Explicit
Private Sub Form_Load()
-
Just leave g and ds2 as variant
I try it and works:
Option Explicit
Private Sub Form_Load()
Dim ds1 As Object
Dim rs1 As Object
-
This is a part of an IDL file from a tlb. I can't understand how I can call the StrArrPtr which is in entry 0x60000002 on module VBVM6 on msvbvm60.dll.
Do anyone know how I can call this through...
-
Mr wqweto share some of the best open source code for all of us and he is not deserve to handle him with the way Black_Storm did.
-
Here is an example
I have the back form as layered window, and the top form as layered window two with owner the back window.
I found a video which show that...
-
Opacity/Tranparency....whatever. When you place it as not a Top most window you loose the Ex_layer style. That simple.
Try a form with style=0, use ZOrder 1, and resize it to full screen, then...
-
You can't make a form transparent if it isn't visible (property visible true). There is no way to pass an opacity value at the design of the form.
-
Currently I have Windows 10 Pro and the code I run was the example you provide. That's all. So if the user (like me which I had the icons small to let them have more space) do the same then the...
-
The left and top properties from a control can be ANYWHERE, not just on the visible part of the form. So this is why you can adjust the width of your form without any problem from the controls.
-
My Interest is not to have UDT for fun, but for using them calling external functions/objects from activeX.dll (the most). Because I have the Group class which is like UDT (with nested UDT) but have...
-
I found information about passing arrays of UDT to c++ external functions:
https://jeffpar.github.io/kbarchive/kb/171/Q171583/
There is a list here https://jeffpar.github.io/kbarchive/id/vbwin/...
-
Elroy, do you try to pass an UDT as member of UDT? Maybe you have to use the modified class which I provide, which do something simple: It takes a filename using a random name. Also the class can be...
-
I found the problem. I use small icons in taskbar (there is an option, the caption for that is in my language Greek, but the meaning is that, use of small icons was On). So change that to normal I...
-
-
The overlay icon not shown in Windows 10.
-
I think the problem was the opacity control.
-
Yes, the IrecordInfo is an object and not need the typelib to survive from a return from a function where we make that. The problem will be if the object happen to defined in another process. When we...
-
You don't need to touch/rearrange controls on the form, just change the size, from width (and the left property to move equally to the left), the end result will be the same.
The other idea would be...
-
Handling the width of the form you can pretend that the width is constant and the "other" part (the not visible) is hidden.
-
I check today, that we can use the class for UDT changing to make a new if we wish, and I do an experiment: I make a command button and I make there some udt, one of them already created in the...
-
-
Can You make a IDispatch2
which have this alternative functions:
rgszNames not as string
Function GetIDsOfNames(riid As IID, rgszNames As Long, cNames As Long, lcid As Long, rgDispId As Long)...
-
This is an example using a myTextBox which is a class which use a glist4 (I do some changes to sort the example)
This allow only ABCabc characters inside the label at the left and the type at the...
-
There are two ways: One to validate input at a final stage, and reject the input (but this means that the textbox may have not valid text). The other is to use the change event to check every new...
|
Click Here to Expand Forum to Full Width
|