Search:
Type: Posts; User: yrwyddfa
Search:
Search took 0.08 seconds.
-
Bet you've all buried this thread in the midst of your deep dark subconcious in an effort to forget it, huh?
-
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 ...
...
-
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...
-
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...
-
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...
-
'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...
-
This sort routine has a bug in it.
(Low + High) \ 2 might overflow, replace with Low + (High - Low) \ 2 won't.
-
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...
-
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,
...
-
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...
-
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...
-
Thanks, Bill. Unfortunately, it doesn't. There seems to be a bug in code contracts not being able to analyse instance methods.
-
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?
-
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,
//...
-
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...
-
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...
-
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
{
-
Hi guys, long time ...
have to admit - didn't know about the 'not not arrayname' method, and am reviewing my code appropriately.
Nice one!
-
I am still watching you lot. I am, y'know.
-
Well the software debate actually is delineated between two camps:
Knuth:= Art
Pressman: = Engineering
I suspect the reality is somewhere in between.
-
Hi all,
Using this code:
Private Sub IPrinter_Prnt(uPrintJob As PRINT_JOB)
On Error GoTo ERR_Prnt
-
Yes the one vote with 4 is me. I can't help it if the telly ain't working ...
-
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
-
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...
-
I see your use of the English language still hasn't improved Wossy!
-
Since when did you become an over-bearing moderator? And my code is still faster than yours ;)
-
-
Talk about digging in the dirt!!
-
txtEdit.MaxLength = uField.Geometry.LineQty * uField.Geometry.LineLength
lWidth = txtEdit.Width
lFontSize = 72 * 1.5 * (lWidth / GetDeviceCaps(picDocument.hdc, LOGPIXELSY))...
-
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?
...
-
Thanks.
The '^-{0}\d+\.\d+$' expression does evaluate reals, but does not exclude 0.0
-
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
-
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
-
Start, or sign up, to an e-Petition here
-
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:...
-
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...
-
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...
-
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...
-
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...
-
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.
|
Click Here to Expand Forum to Full Width
|