This is the Message Centre for Dancer (put your advert here)

Big Favour, :-)

Post 1

DoctorMO (Keeper of the Computer, Guru, Community Artist)

I need to ask for a favour, you know that test DLL you gave me, any chance I could get the source code? I have the VB end of the app but no the DLL end and I need to make a DLL. smiley - sadface it's a bit hard realy.

Thanks

-- DoctorMO --


Big Favour, :-)

Post 2

Dancer (put your advert here)

I don't really know where it is.
Tell me what kind of DLL you want and I'll make it for you real quick
(I promise it won't take more then a day or 2 this time)

Tell me what you give as input and what you want as output....

Yours,
smiley - hsif
Dancer


Big Favour, :-)

Post 3

Dancer (put your advert here)

I don't really know where it is.
Tell me what kind of DLL you want and I'll make it for you real quick
(I promise it won't take more then a day or 2 this time)

Tell me what you give as input and what you want as output....

Yours,
smiley - hsif
Dancer


Big Favour, :-)

Post 4

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Thanks for the offer Dancer, I managed to find some related material to give me information on how to create a DLL. only think now is I don't know many people who are experts at LonWorks and even then with the nitty gritty Type Def Files. So I gues it's just one of thoughs Research for everything projects.

You up to much?

-- DoctorMO --


Big Favour, :-)

Post 5

Dancer (put your advert here)

No note reall...
Well, acutally, just a bit too much...

smiley - hsif
Dancer


Big Favour, :-)

Post 6

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Yes I know the feeling, nothing realy going on in front but much too much going on behind. 'some projects get finnished others are just ideas to better places'. smiley - winkeye

I gota now work out a way to get a float to convert into a double with all the signed and exponent. grrr. I got to the stage were I got the float cut it three.

-- DoctorMO --


Big Favour, :-)

Post 7

Dancer (put your advert here)

What kind of float and double (ASM/CPP or VB)... It's not a really problematic transformation.

Also why do you need it? if you don't need full percision, there might be optimised ways to get good approximations.

smiley - hsif
Dancer


Big Favour, :-)

Post 8

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Input is 4 bytes (in string)

using a union, the bytes are entered into a long with bit shifting
the float (32 bits) then has to be displaied, so it is exported using
CString.format("%f",Union.Float)

hmmm, I got it to work I think, but not very dynamicly, which means that if you put in a wierd number, it will die.

-- DoctorMO --

-- DoctorMO --


Big Favour, :-)

Post 9

Dancer (put your advert here)

This process hardly makes sense... Maybe I'm missing some of the picture.

Why don't you memcopy into the float of the union? and why aren't you using a standard conversion? float to double conversions in c++ are simple, and string to float conversions are standard as well (atof creates a double that can be easily converted to a 32 bit float)

I see (by the use of CString functions that performance isn't a critical issue here, but in case it is, if you want to deal with the bytes (for optimisation reasons) be sure that:

1. Youre more optimized then you compiler (For this make a small program with optimisation on and then disassamble it and see what the compiler created)

2. You know the float bitwise structure:
C++ float type have 4 bytes:
A sign bit.
An 8-bit excess-127 binary exponent.
And a 23-bit mantissa.
The mantissa represents a number between 1.0 and 2.0. Since the high-order bit of the mantissa is always 1, it is not stored in the number.

This representation gives a range of approximately 3.4E–38 to 3.4E+38 for type float.

3. Don't use CString... even a char* with a sprintf is much faster then using a class as CString.

Yours,
smiley - hsif
Dancer


Big Favour, :-)

Post 10

DoctorMO (Keeper of the Computer, Guru, Community Artist)

I don't know if I mentioned, but I got the mantissa and the exponent and even the sign bits out with some lovly shift/masking, but then I couldn't put them back together again into a double.

-- DoctorMO --


Big Favour, :-)

Post 11

Dancer (put your advert here)

Just got back on h2g2 DocMO, thought you might like to know smiley - smiley

I guess the skin change tipped you off that I'm starting to get to things (If you used my account smiley - winkeye)

You can still feel free to use it to manage the PC, as It'll take time till I have the time to get back on fully.

Yours,
smiley - hsif
Dancer


Big Favour, :-)

Post 12

DoctorMO (Keeper of the Computer, Guru, Community Artist)


smiley - winkeye

Don't worry these not been many request and I'm just tring to find were Yankee-Shoe but his request... I think I got the PC under control for now.

How are you doing? still as buisy as ever? or have you finished your work now?

You know I'm a Comunity artist now? (if you look in brunel at my space you should see the new badges smiley - winkeye)

So you might get to see alot more of my left than my right smiley - laugh

Yours, DoctorMO --


Big Favour, :-)

Post 13

Dancer (put your advert here)

Sounds great.

Actually, if you look in the lilly pond, you can see I'm still swamped...

smiley - hsif
Dancer


Big Favour, :-)

Post 14

Dancer (put your advert here)

I was wondering, how did you decide the order in which to put new people in the PC? I always put people "in order of appearance" so that new people are last, but I think you added people in the middle...

smiley - fish
Dancer


Big Favour, :-)

Post 15

DoctorMO (Keeper of the Computer, Guru, Community Artist)

no I added them in order of finding, because a few people got lost in the backlog and I coun't find them untill someone said somthing. sorry.

-- DoctorMO --


Big Favour, :-)

Post 16

Dancer (put your advert here)

That's not a problem rally, Thanks, adn good job.

You can still consider yourself an operator of the PC, and we can use this thread to let each other know what we do or plan.

It's also a good thing to let the people on the thread (Like the signup thread for new people) know you did what they asked on the thread, so that way, it pops up in their conversations, and the message is relevant to them...

I did the Platform update for twinkle yesterday...

Yours,
smiley - hsif
Dancer


Big Favour, :-)

Post 17

DoctorMO (Keeper of the Computer, Guru, Community Artist)

Ah good, I'll have a look it there's anything to do. I'm sure it's not been coming up on my conversations!

-- DoctorMO --


Key: Complain about this post