This is the Message Centre for Dancer (put your advert here)
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Started conversation May 22, 2002
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. it's a bit hard realy.
Thanks
-- DoctorMO --
Big Favour, :-)
Dancer (put your advert here) Posted May 23, 2002
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,
Dancer
Big Favour, :-)
Dancer (put your advert here) Posted May 23, 2002
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,
Dancer
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted May 23, 2002
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, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted May 29, 2002
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'.
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, :-)
Dancer (put your advert here) Posted May 30, 2002
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.
Dancer
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted May 31, 2002
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, :-)
Dancer (put your advert here) Posted Jun 1, 2002
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,
Dancer
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Jun 5, 2002
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, :-)
Dancer (put your advert here) Posted Sep 23, 2002
Just got back on h2g2 DocMO, thought you might like to know
I guess the skin change tipped you off that I'm starting to get to things (If you used my account )
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,
Dancer
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Sep 23, 2002
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 )
So you might get to see alot more of my left than my right
Yours, DoctorMO --
Big Favour, :-)
Dancer (put your advert here) Posted Sep 24, 2002
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...
Dancer
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Sep 24, 2002
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, :-)
Dancer (put your advert here) Posted Sep 25, 2002
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,
Dancer
Big Favour, :-)
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Sep 25, 2002
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
Big Favour, :-)
- 1: DoctorMO (Keeper of the Computer, Guru, Community Artist) (May 22, 2002)
- 2: Dancer (put your advert here) (May 23, 2002)
- 3: Dancer (put your advert here) (May 23, 2002)
- 4: DoctorMO (Keeper of the Computer, Guru, Community Artist) (May 23, 2002)
- 5: Dancer (put your advert here) (May 26, 2002)
- 6: DoctorMO (Keeper of the Computer, Guru, Community Artist) (May 29, 2002)
- 7: Dancer (put your advert here) (May 30, 2002)
- 8: DoctorMO (Keeper of the Computer, Guru, Community Artist) (May 31, 2002)
- 9: Dancer (put your advert here) (Jun 1, 2002)
- 10: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Jun 5, 2002)
- 11: Dancer (put your advert here) (Sep 23, 2002)
- 12: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Sep 23, 2002)
- 13: Dancer (put your advert here) (Sep 24, 2002)
- 14: Dancer (put your advert here) (Sep 24, 2002)
- 15: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Sep 24, 2002)
- 16: Dancer (put your advert here) (Sep 25, 2002)
- 17: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Sep 25, 2002)
More Conversations for Dancer (put your advert here)
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."