|
-
October 2nd, 1999, 07:49 PM
#1
numeric vs strings
I noticed that alot of my doc data are ints & floats, which I have to convert to strings when using many of the controls . . . so wouldn't it be better to just declare them as CStrings or regular strings since my conversions to ints & floats would be less than my conversions to strings? Hope this makes sense. Guess I would like to have some kind of rule on deciding what types to declare the data in doc (which will be persistant. Thanks for anyone's input!
-
October 3rd, 1999, 06:17 AM
#2
Re: numeric vs strings
I would say that if your data isn't really textual then using CString's would be excessive. You don't really need the comparatively large memory overhead of a CString object, so I would just keep them as simple numeric types and write some generic conversion functions to convert the different numerics to strings and back again.
MikeM
-
October 3rd, 1999, 10:36 AM
#3
Re: numeric vs strings
Mike, thanks. Appreciate your input.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|