Search:
Type: Posts; User: dz32
Search:
Search took 0.05 seconds.
-
All your vars are belong to us
-
vb does not have private variables.
'-------------------- class1 ------------------------------------
Private a As Long
Private b As Long
Sub showMe()
MsgBox "a=" & Hex(a) & " b="...
-
The pipe serilization can handle all the complexities that udts support like non fixed length strings,
Variant arrays that contain different types etc. the get/put support in the runtime is...
-
The stub vb uses to transfer you to copymemory is already small Chuck of asm you can see it in second half of this blog post
http://sandsprite.com/blogs/index.php?uid=7&pid=471&year=2019
Won’t...
-
For inspection like on crash or for a pause resume feature?
It would be possible to save state and restore state in some
senses but you would have to design things for it and manually implement...
-
If it’s a known static list to drive an intellisense feature you can ditch the type libs completely and just create a utility to dump them to an easier to use format. I just use text file formats. I...
-
You really have to start with the guid for the context of what’s relevant.
Different libraries can define the same function names and enum names
Anyway they want. What if a newer version of the...
-
Correct it’s a 32bit dll only
-
glad you got it. this is one way you can watch it:
#include <stdio.h>
#include <windows.h>
#include <conio.h>
#include <cstddef>
int main()
-
from a quick google, ULONG is 32bit in both 32/64 process
pointers like Variant* will be 4 bytes/8 bytes in 32/64 process
if you are expecting oInst, you want the first? 4 bytes from the...
-
this is incorrect
' union {
' ULONG oInst;
' VARIANT *lpvarValue;
' } DUMMYUNIONNAME;
-
yup, you will just have to interpret the data manually later
-
so I guess you can get the udt values by name with tli if in ActiveXdll
https://stackoverflow.com/questions/23797038/found-and-set-value-to-a-udt-member-vb6
Public Function...
-
if it was declared as public in an activex dll then it would be published in the type library.
you could use tlbinf to get the udt name, field names and types.
Dim mi As MemberInfo, ri As...
-
You can add line numbers to each line and use erl()
Private Sub Form_Load()
On Error GoTo hell
Dim a As Long
7734 a = "nope"
hell: MsgBox Erl() & " n1"
End Sub
-
You could shell 5 curl instances and watch the process id. Or 5 instances of your own program to do it.
The normal answer is to use 5 threads but it’s a fuss to do with vb
-
You could look into setunhandledexceptionfilter api. Especially if the crash is happening outside the vb code
-
to keep the links together, the integrated javascript engine, IDE and debugger that use the scintinilla wrapper are here : https://github.com/dzzie/duk4vb
-
Schmidt Posted a way to serialize udts directly in memory by writing the data to a pipe
https://www.vbforums.com/showthread.php?807205-VB6-pipe-based-UDT-serializing-deserializing-InMemory
...
-
The closest I came is working on a scintinilla wrapper with the syntax highlighting, intellisense, code tool tips, and support for breakpoints and debugger line highlighting and advanced...
-
It’s hard to get a clean bill of health with almost 70av vendors as long as it’s not the major ones I ignore it. It’s bad signatures hello world can come back with detections especially with vb6.
-
I debugged it a little bit and it looked like it used the win api directly
Edit: “windows internet api” for the pedantic.
-
I just tested one of my apps that uses this. It was returning nothing, but on further investigation the server was returning a 301 moved
message and it just was not following the location header....
-
if the loop is really long I actually prefer to use a goto label sometimes.
usually when I dont want to nest if statements another layer deep and not when an exit for will suffice.
-
Pass max and min values from .net to vb
And see how the vb data types handle them it will literally tell you if there is still a problem. If you don’t need to do math on them just pass them as a...
-
The ipc was do an easy form of marshal and synchronization across threads.
You receive the data and events fine but the ipc test would resolve any threading issues.
-
If they are in different threads try using ipc instead of a direct callback from .net to vb6
I always use wm_copy data since it’s synchronous.
http://sandsprite.com/openSource.php?id=70
It...
-
Thanks I’ll check it out :)
edit: resolved the sqllite rip converted to wchar_t did the job well.
-
It’s like a simplified regex supporting * to match multiple characters, ? To match any single one
And a couple more basics:...
-
Some more googling turned up some potential answers.
One guy did rip the pattern match function from SQLite:
https://stackoverflow.com/questions/22099599/sql-like-similar-use-in-c
And I also...
-
He has a full installer in his open source git repo
https://github.com/VBGAMER45/Semi-VB-Decompiler/tree/master/Semi%20VB%20Decompiler
-
Have a small need for a basic like operator in a c++ program.
Something relatively simple on the scale of the vb6 or sql like operators. Don’t want the complexity of a full regex library.
Any...
-
Are you doing any copymemory or other api calls?
Sounds like a memory corruption problem is causing the program to blow up at a latter time which would explain why no error handlers are catching...
-
Yup, any time you invest in learning to integrate c with your vb will be well spent. It’s like putting money in the bank. There is so much c code out there and it can interact very seamlessly with...
-
I am pretty sure I have an example of a cdecl callback here:
http://sandsprite.com/CodeStuff/vb_cdecl.zip
The best solution is to write a small c dll to wrap the api
And proxy the results back...
-
That’s probably an access denied error. I didn’t Google it explicitly though. The following thread had a couple good thoughts on it:
...
-
I only use property let /get if I need to protect an actually value or take multiple actions on it being set.
A public var in a class does indeed get auto wrapped in get/let’s by the compiler if...
-
unsigned vars and 64 bit values can be solved in a pretty seamlessly C compliant way with a couple extra classes
-
Variable Size is important. Longs are 4 byte reads, integers are 2 byte reads.
If you gobble up to many bytes with one read you will lose your alignment and start grabbing data from other fields.
...
-
here it is in its own small project. (minus the color picker)
|
Click Here to Expand Forum to Full Width
|