Search:
Type: Posts; User: wqweto
Search:
Search took 0.03 seconds.
-
Only own class private members i.e. a method (private or not) in a class is able to access private members of the same class through a reference (of the same class).
This is the reason why...
-
It's pretty much the same. It's just that the namespaces in VB6 coincide with projects i.e. in a project you have only one namespace which is named exactly like your project.
You cannot have...
-
There a numerous "optimized" memcpy version floating around but Linus deliberately left their memcpy based on MOVSx, rumor says to force Intel/AMD to make MOVSx fastest in their new CPUs and not...
-
This is a cool piece of technology you have here.
Btw, it will need admin privileges to install a new network adapter in Window so this cannot be done by a regular user "on a wish".
Installing...
-
Both shortcomings of the compiler (that TB will probably fix as these are low-hanging fruits).
Friend variables on a class is a clear omission.
For the public constants it's more complicated as...
-
MOVSD is like MOVSB but works on dwords. Both "move" data from ESI to EDI -- there are no registers involved except ECX which is decremented by one i.e. for MOVSD the initial ECX is number of...
-
Besides MOVSB there are MOSVW (16-bit word transfers) and MOSVD (32-bit dword transfers) but yet faster would be to use MOVDQA i.e. SSE instruction to load 128-bit registers which can be done in...
-
One of the most weird ADO connection string I've seen recently. SQLNCLI is SQL Server Native Client 9.0 OLEDB provider for MSSQL 2005 and here are some sample strings i.e. very logically using...
-
Btw, it's a one time edit in your .vbp file. (You don't have to "remember" about it once it's edited.)
cheers,
</wqw>
-
You don't need an add-in for this if you are willing to one time manually edit your .vbp file and copy/paste these two lines of undocumented LinkSwitches.
cheers,
</wqw>
-
Deliberately does not use any API calls so is not the sharpest tool in the shed
'--- mdSHA2.bas
Option Explicit
DefObj A-Z
Private PowerOf2(0 To 31) As Long
Private Function...
-
Works on WinXP
cheers,
</wqw>
-
Btw, here is a byte-arrays pure VB6 implementation based on your class but reduced to about 175 LOC by removing mostly unnecessary cruft:
'--- mdSHA256.bas
'--- Based on clsSHA256 by Phil...
-
Well, you can use .NET implementation of SHA-2 like this
Private Sub Form_Click()
Dim baInput() As Byte
Dim baHash() As Byte
baInput =...
-
For instance try putting these helper functions in a module
'--- Module1.bas
Option Explicit
Private Declare Function CryptAcquireContext Lib "advapi32" Alias "CryptAcquireContextW" (phProv...
-
First, you have to learn how to work with byte-arrays in crypto. Your "238dbd3bd53ee4c53c505ca2b56e1756e622aa0c" is a *string* literal -- so called hex dump of a byte-array. You need helper functions...
-
So you executes both .exes on the same XP machine?
This looks like something is going on with the .exe certificate check or anti-virus check or .exe reputation check or .exe 'Zone.Id' alternative...
-
It was a certain Win 10 update which *revealed* the problem.
I mean the dormant issue must have been there all along but did not cause any issues with previous OS versions.
cheers,
</wqw>
-
Usually it's when you append to an dynamic array you just check size and resize if needed and then assign last element If lSize > UBound(arr) Then ReDim Preserve arr(0 To lSize * 2) End If :...
-
Try to follow this with
ReDim Preserve u(0 To 10) As MyUdt
u(0).i = 42
Second line assignment fails with resized UDT arrays but works ok with arrays of scalar (primitive) types.
cheers,...
-
Tweak the SafeArrayAllocDescriptor API declare and can be used without wrapping the SA pointer into a Variant like this
Option Explicit
Private Declare Function SafeArrayAllocDescriptor Lib...
-
This looks bad and metafiles stink.
(Keeping an eye on the thread.)
cheers,
</wqw>
-
Here is a direct link to PSC submission: ucScrollbar 1.0 (rv 4) by Carles P.V.
> VBForums has a newer version
You can post a link to it too.
cheers,
</wqw>
-
When you are downloading 100 files in order to add a progress indicator (% complete) of the overall download operation you have to know file sizes of each of these downloads so that you can compute...
-
Here is a cDownloader class which wraps WinHttpRequest object and can download asynchronously to a local file. Needs a project reference to Microsoft WinHTTP Services, version 5.1 to compile.
...
-
Mostly yes, unless you have RaiseEvent Click() in a routine in which case any error in the event handler(s) for your class/control Click event does not trap in your current error handler but the...
-
Do what every professional piece of code happens to do eventually -- instrument logging error handlers in each and every routine in each and every module of your application.
In production you...
-
I have couple of unasked advices for you:
1. Learn to separate data (so called model) from your UI (so called view)
In your case you have various lists control (List1, List4, etc.) which are...
-
You got him triggered now and how dare you not be interested in VFB -- the best chinese copycat of VB6 ever -- so the cannonade of illegible posts is going to thunder here a couple of days at least...
-
I can only advise you to start a new thread outside of CodeBank forum with a simplified version your failing send mail under Win7.
Post a full working code which has trouble with CDO under Win7 in...
-
Wait. . . Is EMF+ compatible with GDI and/or IPicture?
I though that EMR_ALPHABLEND is just the macro/playback record for AlphaBlend API function call as recorded by the capturing DC.
So it...
-
Now that would be hilarious. . . Really?!
cheers,
</wqw>
-
On the machine you have troubles start Internet Explorer (not Edge) and navigate to https://www.howsmyssl.com/ and notice info under Version section.
It says TLS 1.2 here but I have Service Pack 1...
-
CDO and IE use Schannel library for TLS and you can configure default Schannel protocols/ciphers through registry so an app using default settings can be forced to use or not to use TLS 1.2 for...
-
It says "Standard EXE project" pretending to be an ActiveX EXE by sharing instances through OBJREF monikers i.e. without registering class factories in registry and ROT like an Ax-EXE does.
...
-
> not sure why people are not using it
This is a million $ question -- why in these forums only baka uses Direct2D and everyone else runs for GDI+ when loading PNGs or anything remotely graphical...
-
ByVal vs ByRef for reference types (As Object) has a completely different semantics than ByVal vs ByRef for value types (Long, Double, *String*, UDT, etc.) For reference types (a.k.a. pointers) the...
-
This is probably configuration problem with TLS version being supported by Schannel. Try to configure Win7 to support TLS 1.2 by default.
Note that you have to have Service Pack 1 for Win7...
-
> And lets be real here, do we really want to start manually padding our structures just to get Len to work?
Been there done that. Now I realize that this was only to *force* Len to return correct...
-
You probably saw what AlphaBlendImage does.
I'm begging every VB6 dev doing GDI+ please initialize GDI+ on demand but don't try to shut it down at all. Please!
It's 2022 and there is no need to...
|
Click Here to Expand Forum to Full Width
|