Search:

Type: Posts; User: yrwyddfa

Page 1 of 13 1 2 3 4

Search: Search took 0.35 seconds.

  1. Replies
    728
    Views
    20,132

    Re: What's right and wrong?

    Bet you've all buried this thread in the midst of your deep dark subconcious in an effort to forget it, huh?
  2. Re: Problem with Public UDT: 'Only public user defined types......

    Serialising UDT's is a little more tricky than a straight CopyMemory.

    Here's my code from 8 years ago (!!) that will serialise most UDT's: some restrictions, however ...
    ...
  3. Re: VB - Quick Sort algorithm (very fast sorting algorithm)

    For reference, anyway. you shouldn't be middling the partitions - although it's a very common thing to do. The principle is quite clear; if the list is almost sorted the partitions will be...
  4. Re: VB - Quick Sort algorithm (very fast sorting algorithm)

    Yes, it's always possible.

    This calculation refers to the array index, not the array contents; you only need greater than 2^30 items in the array, regardless of element size which is just over a...
  5. Replies
    7
    Views
    4,105

    Re: mjwPDF Class under Windows 8

    My guess is restricted access to the registry (if indeed that class uses the registry) - and you can't just assign admin permissions to get around it, either.

    EDIT: just checked, this class...
  6. Re: A simple program to open an excel file in vb6.0

    'Modern' Excel file format is now a zipped file (rename a .xslx file to .zip to access the internal format) containing a number of XML files that describe the contents of the Excel file. It is...
  7. Re: VB - Quick Sort algorithm (very fast sorting algorithm)

    This sort routine has a bug in it.

    (Low + High) \ 2 might overflow, replace with Low + (High - Low) \ 2 won't.
  8. Re: Variable uses an automation type not supported in Visual Basic

    Without the DLL, a VB6 compiler, a MIDL compiler, I think it's the end of the road for me, then.

    If I may suggest, the IDL that you've shown is *so* geared towards C++, and it also seems to be...
  9. Re: Variable uses an automation type not supported in Visual Basic

    Here's the last one I wrote (some years ago, I might add) that bound an unmanaged and non-COM DLL to COM via IDL so that it is useable in VB6. You should be able to figure it all out from there,

    ...
  10. Re: Variable uses an automation type not supported in Visual Basic

    Redeclare the BlockPropertyId in the same style as the GUID one earlier, and pass in the BlockProperty variable as [in] BlockPropertyId* PropertyId

    VB passes UDTS around as a pointer, not as a...
  11. Replies
    3
    Views
    2,037

    Re: Code Contracts - [Pure] Methods

    Got it: if you want to use an instance method derived from an interface, you need to do it as a read-only property. Evidently, the Code-Contracts thingy accepts getters as [Pure] and therefore...
  12. Replies
    3
    Views
    2,037

    Re: Code Contracts - [Pure] Methods

    Thanks, Bill. Unfortunately, it doesn't. There seems to be a bug in code contracts not being able to analyse instance methods.
  13. Re: Variable uses an automation type not supported in Visual Basic

    Is this a COM DLL, or a bog-standard DLL like something you might see in the Win API? Where is the datatype BlockPropertyId defined? What is it?
  14. Re: Variable uses an automation type not supported in Visual Basic

    You have to use the [PropGet], and [PropSet] attributes if you want VB to see them as native properties, and you must use 'known' datatypes.

    For instance - here's one I made earlier,



    //...
  15. Thread: What is COM?

    by yrwyddfa
    Replies
    3
    Views
    882

    Re: What is COM?

    VB6 effectively is a BASIC interface to Microsoft's (C)omponent (O)bject (M)odel platform - in many ways VB6 is (was) the ultimate COM beasty.

    It is still widely used, although most of the code is...
  16. Re: Variable uses an automation type not supported in Visual Basic

    My view is that you're going to need to declare the GUID in IDL, and, also, redeclare LPVOID* as long*, and then derference to get to the actual value.

    A similar problem occurs when you try to...
  17. Replies
    3
    Views
    2,037

    [RESOLVED] Code Contracts - [Pure] Methods

    Been a long time since I posted on here!

    I am trying to get to grip with code contracts on interfaces. Here's some example code



    using System.Diagnostics.Contracts;

    namespace Scratch
    {
  18. Re: Classic VB - How do I check if array has been initialized?

    Hi guys, long time ...

    have to admit - didn't know about the 'not not arrayname' method, and am reviewing my code appropriately.

    Nice one!
  19. Thread: Ask Dr. Dis

    by yrwyddfa
    Replies
    862
    Views
    65,504

    Re: Ask Dr. Dis

    I am still watching you lot. I am, y'know.
  20. Thread: Bad idea ...

    by yrwyddfa
    Replies
    122
    Views
    7,121

    Re: Bad idea ...

    Well the software debate actually is delineated between two camps:

    Knuth:= Art
    Pressman: = Engineering

    I suspect the reality is somewhere in between.
  21. This Window Has Already Been Registered As a Drop Target

    Hi all,

    Using this code:



    Private Sub IPrinter_Prnt(uPrintJob As PRINT_JOB)

    On Error GoTo ERR_Prnt
  22. Replies
    47
    Views
    1,674

    Poll: Re: Do You Have Children?

    Yes the one vote with 4 is me. I can't help it if the telly ain't working ...
  23. Thread: Bad idea ...

    by yrwyddfa
    Replies
    122
    Views
    7,121

    Re: Bad idea ...

    The sum of death of secular wars (fought over land, or political ideals) far exceeds that of faith-based conflict, especially in the 20th century (aka modern times) Look here
  24. Replies
    13
    Views
    1,107

    Re: I'm sick of Israeli - Palestinian conflict.

    The only way forward for peace is to send in the peacekeepers for two generations so the pesky people in that part of the world forget how much they hate each other for no apparent reason other than...
  25. Replies
    22
    Views
    824

    Re: Really Depressing Fact

    I see your use of the English language still hasn't improved Wossy!
  26. Replies
    19
    Views
    3,319

    Re: Object Orientation Pt 3

    Since when did you become an over-bearing moderator? And my code is still faster than yours ;)
  27. Replies
    19
    Views
    3,319

    Re: Object Orientation Pt 3

    How quaint and amusing
  28. Replies
    19
    Views
    3,319

    Re: Object Orientation Pt 3

    Talk about digging in the dirt!!
  29. Replies
    2
    Views
    732

    Re: Selecting Font Size

    txtEdit.MaxLength = uField.Geometry.LineQty * uField.Geometry.LineLength
    lWidth = txtEdit.Width
    lFontSize = 72 * 1.5 * (lWidth / GetDeviceCaps(picDocument.hdc, LOGPIXELSY))...
  30. Replies
    2
    Views
    732

    Selecting Font Size

    VB6, GDI . . .

    If I have a textbox, and I want to resize the font so that the textbox width can only contain a certain number of characters regardless of size how do I calculate the font size?
    ...
  31. Replies
    4
    Views
    730

    Re: Regular Expression: Non negative real

    Thanks.

    The '^-{0}\d+\.\d+$' expression does evaluate reals, but does not exclude 0.0
  32. Replies
    4
    Views
    730

    Re: Regular Expression: Non negative real

    Thanks for the quick reply, but that's not a regular expression.

    For instance, a non-negative integer can be matched using '^-{0}[0-9]+$' which denotes the set of integers 0,1,2,3,4 . . .n
  33. Replies
    4
    Views
    730

    Regular Expression: Non negative real

    I'm stumped.

    Can anyone give me the regular expression for testing a string to see if it's a non negative real?

    ie

    0.000 F
    0.001 T
    0.101 T
    1.000 T
  34. Replies
    10
    Views
    981

    UK Only: Make your opinion felt

    Start, or sign up, to an e-Petition here
  35. Replies
    3
    Views
    520

    Re: SQL2k Scope Problem

    Yes it was - many thanks for helping me, aka the village idiot. Now I'll just have to rebuild the server and take the binary collation off. Don't trust them techie guys, chaps.

    Don't trust 'em:...
  36. Replies
    3
    Views
    520

    [Resolved] SQL2k Scope Problem

    Morning, all. Got this problem and can't figure it out - must be missing something extremely simple. Here's the code:


    create function IncAlpha
    -- Increments a single alpha character
    -- uses...
  37. Re: Resolved: Performance Choice: IF Exists, or use Join

    As I've said, I've done this for years - it really isn't that helpful in my query unless I can get 10,000 users on board (a slight exaggeration) I just couldn't weight up the options unless I had a...
  38. Re: Performance Choice: IF Exists, or use Join

    Many thanks. I've used the Query Optimiser for years, and it really doesn't show a great deal of difference on a single user DB - hence useless. I needed corroborated ideas that will enable queries...
  39. Resolved: Performance Choice: IF Exists, or use Join

    I have two tables. I will allow a record to be returned from one table if a bit flag is set in the other. So the question:

    Is it faster to perform an IF EXISTS query the the second table to see if...
  40. Replies
    145
    Views
    7,692

    Re: RIP Saddam Hussein

    I actually agree with quite a lot of this; you are correct - if everyone avoided tax and re-channeled the money into charities they support the govt. would certainly have to change their ways.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width