Type: Posts; User: Schmidt
Search took 0.03 seconds.
Yep, Orderbook is quite similar to the Lendbook-query, which we already have an example
(further above somewhere)...
Here' Lendbook in conjunction with the MemDB-storage:
Dim BitFinex As...
Yes - that call is capable to handle streams, when correctly fed...
In either case you should test and compare your filehasher (when finished) using
checks on the same binary file for example...
The Demo is related to the Discussion here: http://www.vbforums.com/showthread.php?792225-Program-Testers
and I plan to post an extended version here in this thread soon.
But reexre has made some...
A ClassName *is* a user-definable DataType (as are Enums, or "normal TypeDefs" - and as are
Form-Classes, which I prefix with 'f' ...and also UserControl-Classes, which I prefix with 'uc' for...
I'm able to run your project (in the VB6-IDE) without any problems (on Win8, as well as on Win7).
A few points maybe, which could cause the behaviour in IDE-mode on your Dev-machine:
- As I've...
Maybe a few suggestions in that regard...
Your mRequest.bas module is looking nice so far (codewise) - though from an architectural point of view,
you should consider the case (e.g. when you plan...
As said, I cannot help much, when I don't see *concretely* what you have
done in your own project.
In my Demo-Zip I don't use fTestBak for example.
I also don't know if you have specified Sub...
Instantiation over the ProgID can be done in VB6 in two different ways:
- CreateObject (usually used to create Instances which are not Control-COMponents)
- Controls.Add (used to instantiate - and...
To elaborate a bit more, the problem is not as trivial as it seems at the first glance...
Here's a Wikipedia-Link to that topic.
I think, that this was the question which was asked (your Step1 and Step2 were already solved as it seems).
You might want to Fix your version (avoiding the usage of the Int-Function), in case
you want to stay compatible to VBs built-in Mod-Operator (for negative Dividends):
I've implemented your suggestion in cwFileList now.
Please wait a few days for a new release of vbWidgets
(since I also implement a cwPropertyGrid currently, which I need for a Form-Designer...
Was on the same track - but I did it per OutOfProcess-COMServer-Remoting -
and the whole thing was slow as hell here, tried to optimize a bit, but not much luck.
Even with the optimizations (to...
Did you check the GetAsyncKeyState-API already?
This might worth a try.
Well, and I'll refrain from...
Just played that through:
- after downloading the latest RC5-BaseLibraries, and registering them
- on a Win7-64Bit
- using the Project from the original Zip - as linked to in Post #1
Well, wasn't *that* obvious to me, that the VB6-native compiler was *that* clever in this case,
so let's just encapsulate the same code in a small function, and return 'dump' as a result.
It is quite fast - but why has a check for a correctly initialized Array be faster than,
say, ... 0.2µsec (Micro-, not Milliseconds), ... as is achievable with this function:
As already mentioned by others, for a true comparison on max achievable speed,
you would need to:
- use the VB6-native-Compiler (checking in all the extended Options in the appropriate Dialogue)...
The On Error Check (as in the small routine I've posted) is necessary *only*
for VB-Array-Variables, which are completely uninitialized (have an ArrPtr of Zero,
aka: no SafeArray-Struct assigned...
Always put it beside vbRichClient5.dll for regfree deployment, so this is correct.
No, what's already there inside Sub Main was correct - and ensures that
the vbWidgets.dll can use *other...
No, such a test is not necessary, since the case is completely covered by:
UBound(Arr) - LBound(Arr) + 1 (not triggering any error then)
The "0 to -1" case is just a SafeArray which is already...
This routine would return incorrect sizes for any LBounds which differ from Zero...
You might want to correct this function to:
Private Function GetbSize(bArray() As Byte) As Long
Just noticed (after a closer look) that you're using the MemDB in a converter-function
which works at the "single-value-level".
That's quite inefficient, to create a MemDB-instance (and a table...
Yep, nice code... :)
Just one last suggestion - when you use a Class-Encapsulation instead of the
Module-Code you have so far, you could spare yourself the BitFinex-
Upon Process-Termination, any memory-allocation which happened inside a Process is cleaned up of course.
During Runtime, there's an (SQLite-library-internal) Cache-allocation of a few Megabyte...
Well, took you "3 full days" or so (spread over a week) - and that's not bad for incorporating
and understanding a so far not used, new approach to "nice and powerful GUI-stuff".
And yes - in...
Well, these "UnixEpoch"-Timestamps are apparently in UTC.
So, simply adding the Unix-StartDate will not be enough.
SQLite for example has a nice built-in function-set for this kind of...
With COM-Events there's no queuing-mechanism at all - it's just delegated function-calls we talk about here -
(calls, which always "go through" to the EndPoint-Sink, if there is one...
Glad you have it working also with Parameter-calls (in Authenticated Mode).
For completeness, I've updated the Base-Class in post #3 one last time
(this time just a small enhancement on the...
That's (basically) the right approach - meaning, the Methods in the Class should be used
generically (for any authenticated ot unauthenticated API) - and if Parameters are
requried, then those...
That's only the output of the unparsed content of the JSON-Collection
(which works on any content, and I listed it therefore as the "generic example" in #3).
Though the whole point of...
Ok, thanks for testing that...
As for your question above, any API should be doable now with the Class - so the following is,
how to use it in that case: according to ...
Ok, in case of the "/balances" call, the error happened, because the JSON-result is not returned as a JSON-Object,
but as a JSON-array - and thus I cannot simply add a Key/Value pair as e.g. my:...
Max, could you please try with an absolutely unchanged cBitFinex-Class (as updated in #3)...
I've even added a second Public Method DoUnauthenticatedRPC to it now, so that the complete...
Yes, sorry - forgot to give the correct JSON-decoding-method (for UTF8-ByteContent) in the above code:
Set DoAuthenticatedRPC = New_c.JSONDecodeToCollection(http.ResponseBody)
had to be:
Here's a VB6-class-encapsulation which covers the above,
(it has dependencies to vbRichClient5 and WinHttp 5.1):
Edit: Note, that the RichClient-version has to be at least 5.0.26 (the SHA384 and...
There's tons of example-code out there for that (when you google for [VB6 RTF EM_FORMATRANGE] )
Here's one of them (first link in the google-results ... haven't tested, if it's any good though...)...
In place of your question-mark, there (obviously) needs to be an Object
(a Class-Instance, which has all your different "Function-Names" defined as Public Methods).
e.g. a Class, named...
On your site you're currently using only "modernizr.js"...
You could avoid a whole lot of trouble with "navigating roundtrips" (resulting in a new page),
when you'd do some Ajax-calls instead (to...
Ah - I see where your misunderstanding comes from...
Well, the COM-library of the MS-Browser-Control which is available to VB6-users,
is by no means "outdated" or something...
Click Here to Expand Forum to Full Width
Survey posted by VBForums.