Search Results - VBForums

# Search:

Type: Posts; User: Jonney

Page 1 of 10 1

1. ## Thread: [RESOLVED] VB6 Convert Double to Binary String

by Jonney
Replies
4
Views
191

### Re: VB6 Convert Double to Binary String

Sorry for misleading you.
What I need is to convert C# int to VB's binary data.
I didn't notice C# int is the same with VB's Long in Signed 32-bit length. I used double type array to hold c#'s...
2. ## Thread: [RESOLVED] VB6 Convert Double to Binary String

by Jonney
Replies
4
Views
191

### Re: VB6 Convert Double to Binary String

doesn't work as I expect.
3. ## Thread: [RESOLVED] VB6 Convert Double to Binary String

by Jonney
Replies
4
Views
191

### [RESOLVED] VB6 Convert Double to Binary String

Can you please help me Convert Double to Binary String?

for example, -1.75888576432121E+16 to Binary string.

My code only can deal with Long type.

Public Function...
4. ## Thread: [RESOLVED] VB's &HFFFF vs C#'s 0xFFFF

by Jonney
Replies
4
Views
238

### Re: VB's &HFFFF vs C#'s 0xFFFF

Thanks.
20+ years old VB6 still has secret I never knew.
5. ## Thread: [RESOLVED] VB's &HFFFF vs C#'s 0xFFFF

by Jonney
Replies
4
Views
238

### [RESOLVED] VB's &HFFFF vs C#'s 0xFFFF

In C#,

int latch = 327710;
int Result = latch & 0xFFFF;

The computation gives 30.

But why in VB6:

Dim latch as Long
6. ## Thread: [RESOLVED] VB6 bigger number (BigInteger)

by Jonney
Replies
14
Views
403

### Re: VB6 bigger number (BigInteger)

I am on final decision using string type of BigInteger instead of Double/Currency data type due to Maximum 45 digits computing on Numeric mode of pdf417.
7. ## Thread: [RESOLVED] VB6 bigger number (BigInteger)

by Jonney
Replies
14
Views
403

### Re: VB6 bigger number (BigInteger)

I hit the wall by using LeftShift function which limits for Long type.

Your code is OK.

Thank you,Sir.
8. ## Thread: [RESOLVED] VB6 bigger number (BigInteger)

by Jonney
Replies
14
Views
403

### Re: VB6 bigger number (BigInteger)

After trying PSC CodeID=62738, Look like BigInteger works:

Dim i As Long
Dim t As String

Dim CodeWords(4) As String
Dim bytes(5) As Byte
9. ## Thread: [RESOLVED] VB6 bigger number (BigInteger)

by Jonney
Replies
14
Views
403

### Re: VB6 bigger number (BigInteger)

Dim i As Long
Dim t As Long

Dim CodeWords(4) As Long
Dim bytes(5) As Byte

bytes(0) = 1
10. ## Thread: [RESOLVED] VB6 bigger number (BigInteger)

by Jonney
Replies
14
Views
403

### [RESOLVED] VB6 bigger number (BigInteger)

On pdf417 specification, The binary compaction use an algorithm to compact 6 bytes into 5 bytes:

for example:
the 6 bytes: &H1, &H2, &H3, &H4, &H5, &H6
algorithm : 1 * 256^5 + 2*256^4 +...

by Jonney
Replies
16
Views
2,359

### Re: vb6 MultiThreading ?

stable Multi-threading in VB6? It is impossible for most cases. Don't waste time,my friend.
12. ## Thread: [RESOLVED] VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

by Jonney
Replies
4
Views
315

### Re: VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

Your eyes are so sharp.

Thank you,sir.
13. ## Thread: [RESOLVED] VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

by Jonney
Replies
4
Views
315

### Re: VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

In my computer with lcid=2052,strconv and WideCharToMultiByte returns different result:

Private Function ToShiftJIS(ByVal Wide As String) As Byte()
Dim lngResult As Long
Dim...
14. ## Thread: [RESOLVED] UDT array in private Class

by Jonney
Replies
8
Views
325

### Re: UDT array in private Class

I will go for option 1. It is easy.

Thank you,sir.
15. ## Thread: [RESOLVED] VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

by Jonney
Replies
4
Views
315

### [RESOLVED] VB6 StrConv/WideCharToMultiByte vs C# GetEncoding

C# code:

protected byte[] EncodeContent(string content)
{
byte[] contentBytes;
try
{
contentBytes =...
16. ## Thread: [RESOLVED] UDT array in private Class

by Jonney
Replies
8
Views
325

### Re: UDT array in private Class

I don't have knowledge on COM, but I agree with you as Dilettante also said. My concern is that if project has so many UDTs, I have to add the same amount of Classes, the project look mess. And, UDTs...
17. ## Thread: [RESOLVED] UDT array in private Class

by Jonney
Replies
8
Views
325

### Re: UDT array in private Class

yes. You are right.

OK,sir.
18. ## Thread: Disable wireless connection

by Jonney
Replies
7
Views
254

### Re: Disable wireless connection

put below text into disablewireless.bat and Run As Administrator.

netsh interface set interface "Wireless Network Connection 3" Disable
19. ## Thread: [RESOLVED] UDT array in private Class

by Jonney
Replies
8
Views
325

### [RESOLVED] UDT array in private Class

Actually, the error is very famous.

This error occurs when I access UDT array from another private class in standard exe project.

'in Class cECISet
20. ## Thread: [RESOLVED] Algorithm ： Zooming+ two dimensional array

by Jonney
Replies
1
Views
211

### Re: Algorithm ： Zooming+ two dimensional array

I comes up with those codes:

Dim m_lmoduleCount As Long
Dim m_lMagnification As Long

Dim incrementL As Long
21. ## Thread: [RESOLVED] Algorithm ： Zooming+ two dimensional array

by Jonney
Replies
1
Views
211

### [RESOLVED] Algorithm ： Zooming+ two dimensional array

I need to put Magnification=2 (or some else >=1) to re-size two dimensional array and also the contents. Something likes zoom the DIB bits.

Let me give an example:

The original two dimensional...
22. ## Thread: Floor() & Power() Function Not In VB 6.0

by Jonney
Replies
30
Views
23,617

### Re: Floor() & Power() Function Not In VB 6.0

The thread haven't yet colsed:D that means the problem haven't yet resolved.

Just kidding. I put my comment in case someone come across this thread by searching.
23. ## Thread: [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

by Jonney
Replies
12
Views
449

### Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

Thanks. It helps!
24. ## Thread: Floor() & Power() Function Not In VB 6.0

by Jonney
Replies
30
Views
23,617

### Re: Floor() & Power() Function Not In VB 6.0

Javascript Math.Floor is exactly same with VB6 Int.

by Jonney
Replies
12
Views
31,584

good catch!
26. ## Thread: [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

by Jonney
Replies
12
Views
449

### Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

14 should be 00001110

MS says -14 is 11110010 in two's complement binary. I don't know exactly what is the meaning of complement.

by Jonney
Replies
12
Views
449

28. ## Thread: [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

by Jonney
Replies
12
Views
449

### Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

Thank you very much. Look like those codes works. I will make some tests.
VBAccelerator has similar codes but it works as Unsigned Right Shift Operator (like javascript operator >>>) .

29. ## Thread: [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

by Jonney
Replies
12
Views
449

### Re: JavaScript Bitwise Right Shift Operator (>>) in VB6

I am converting some Javascript codes to vb6. The codes used lot of bitshifting operator.

I don't know why -14 is 11110010 in two's complement binary. VB6 has this data type?
refer to...
30. ## Thread: [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

by Jonney
Replies
12
Views
449

### [RESOLVED] JavaScript Bitwise Right Shift Operator (>>) in VB6

What is the equivalent code to replace JAVAScript Bitwise Right/Left Shift Operator (>> and <<) in VB6?

for example:

-14 >> 2 = - 4
14 >> 2 = 3

-14 << 2 = - 56
14 << 2 =...
31. ## Thread: Reed Solomon Error Correction

by Jonney
Replies
2
Views
375

### Re: Reed Solomon Error Correction

this site got source, but it is not VB6.

Edited: QR Code use Reed-Solomon.
32. ## Thread: [RESOLVED] Val(True) = 0. Why?

by Jonney
Replies
8
Views
293

### Re: Val(True) = 0. Why?

you can use -cInt(True)
33. ## Thread: [RESOLVED] Barcode Code 128 Auto Mode

by Jonney
Replies
5
Views
367

### Re: Barcode Code 128 Auto Mode

Thanks. I understand better.
34. ## Thread: [RESOLVED] Barcode Code 128 Auto Mode

by Jonney
Replies
5
Views
367

### Re: Barcode Code 128 Auto Mode

What is the mean 1a. If the data consists of two digits, use Start Character C. ???
Is the data contains 2 digits or the first two digits? For string 12ABc231, there're 5 digits in total and the...
35. ## Thread: [RESOLVED] Barcode Code 128 Auto Mode

by Jonney
Replies
5
Views
367

### Re: Barcode Code 128 Auto Mode

Found the GS1-128 specifications regarding the rules even though they are complicated, but look like not all barcode software observed the rules.

According to the encoding instruction of GS1,...
36. ## Thread: [RESOLVED] Barcode Code 128 Auto Mode

by Jonney
Replies
5
Views
367

### [RESOLVED] Barcode Code 128 Auto Mode

I can't find the accurate specification for the priorities of START A / START B/ Start C and Code A/Code B/Code C on Code 128 Auto mode.

For example:

String "12ABc231"

Code 128 Auto...
37. ## Thread: [VB6] Tabulator, Crosstab Class

by Jonney
Replies
10
Views
2,431

### Re: [VB6] Tabulator, Crosstab Class

The Tabulator class is good to hold tabulated data. I think you can expand functionality to insert/delete/swap rows and insert/delete/swap/sort cols.
38. ## Thread: Is there a control to replace Acro PDF viewer?

by Jonney
Replies
8
Views
341

### Re: Is there a control to replace Acro PDF viewer?

gibra, your website got register problem long time ago. The mail server failed to send email to gmail.
39. ## Thread: [RESOLVED] StrConv(fileData, vbFromUnicode) causes different Results :/

by Jonney
Replies
23
Views
817

### Re: StrConv(fileData, vbFromUnicode) causes different Results :/

For proper reading a text file, you should check BOM at first. I leave this part to you for BOM checking.

Just copy pieces of my old code for your reference.

Case UEF_UTF16LE
On...
40. ## Thread: [RESOLVED] Textout API issue with few pixels gap

by Jonney
Replies
9
Views
380

### Re: Textout API issue with few pixels gap

You also great as well. I love VBForums community which always helps me a lot.
Results 1 to 40 of 361
Page 1 of 10 1

Featured

Click Here to Expand Forum to Full Width

Survey posted by VBForums.