Click here to Skip to main content
15,884,237 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 23:15
mveRichard MacCutchan22-Apr-15 23:15 
QuestionAlways on top (Task Manager) C# Pin
Rainsey Long25-Mar-15 5:45
Rainsey Long25-Mar-15 5:45 
AnswerRe: Always on top (Task Manager) C# Pin
Richard MacCutchan25-Mar-15 6:33
mveRichard MacCutchan25-Mar-15 6:33 
GeneralRe: Always on top (Task Manager) C# Pin
Rainsey Long25-Mar-15 7:01
Rainsey Long25-Mar-15 7:01 
GeneralRe: Always on top (Task Manager) C# Pin
Richard MacCutchan25-Mar-15 7:58
mveRichard MacCutchan25-Mar-15 7:58 
Questionwhere is WINVER set (resolved) Pin
bkelly1323-Mar-15 8:43
bkelly1323-Mar-15 8:43 
AnswerRe: where is WINVER set Pin
Richard MacCutchan23-Mar-15 22:27
mveRichard MacCutchan23-Mar-15 22:27 
AnswerRe: where is WINVER set Pin
Theo Buys2-Apr-15 0:27
Theo Buys2-Apr-15 0:27 
GeneralRe: where is WINVER set Pin
bkelly134-Apr-15 9:11
bkelly134-Apr-15 9:11 
QuestionUnicode and codeproject article Pin
bkelly1325-Feb-15 10:30
bkelly1325-Feb-15 10:30 
AnswerRe: Unicode and codeproject article Pin
Daniel Pfeffer25-Feb-15 21:02
professionalDaniel Pfeffer25-Feb-15 21:02 
GeneralRe: Unicode and codeproject article Pin
bkelly1326-Feb-15 3:34
bkelly1326-Feb-15 3:34 
GeneralRe: Unicode and codeproject article Pin
bkelly1328-Feb-15 10:36
bkelly1328-Feb-15 10:36 
GeneralRe: Unicode and codeproject article Pin
Daniel Pfeffer28-Feb-15 11:52
professionalDaniel Pfeffer28-Feb-15 11:52 
GeneralRe: Unicode and codeproject article Pin
Richard MacCutchan28-Feb-15 21:22
mveRichard MacCutchan28-Feb-15 21:22 
GeneralRe: Unicode and codeproject article Pin
Daniel Pfeffer28-Feb-15 22:12
professionalDaniel Pfeffer28-Feb-15 22:12 
GeneralRe: Unicode and codeproject article Pin
Richard MacCutchan28-Feb-15 22:15
mveRichard MacCutchan28-Feb-15 22:15 
GeneralRe: Unicode and codeproject article Pin
Daniel Pfeffer28-Feb-15 22:19
professionalDaniel Pfeffer28-Feb-15 22:19 
GeneralRe: Unicode and codeproject article Pin
Richard MacCutchan1-Mar-15 1:42
mveRichard MacCutchan1-Mar-15 1:42 
GeneralRe: Unicode and codeproject article Pin
bkelly131-Mar-15 5:39
bkelly131-Mar-15 5:39 
Telemetry data is usually all numbers and all binary. Economy in bandwidth is a primary goal. The only text may be things like software version embedded in some parts. Even then those are treated as binary data and handed off to the display device.

The text part is where I have a "bunch" of Excel code to build configuration files. Some assembly, make that much assembly, is required to translate the vendor telemetry map (describes all the fields of the data) to something directly usable by my application.

When not running in mission mode the app can write copious log files so I can verify what it did and why. Those are all text based for easy reading. Unicode is fine there.

Side note/rant
IRIG (Inter Range Instrumentation Group) defines telemetry standards for all government ranges. A range is a place where things like bombs are dropped and missiles shot. That standard defines bit 1 as being the MSB and bit N being the LSB. It is absolutely backwards so one of tasks of my code it to renumber all the bit fields. But the vendors do not follow the standard anyway. In one telemetry map the LSB is sometimes bit 0 and sometimes bit 1. In almost every word that has bit field definitions they have put a note that says the MSB is numbered as bit 0 or bit 1. They just cannot understand that the need to keep putting that note in there is a not so subtle indicating that they are doing things wrong. Further, they have at least six different formats for describing those bit fields. With 10,000 parameters in a telemetry stream, that becomes a nightmare for writing code to extract the data needed to process the parameters.
End of rant

It appears that when writing text files, Excel VBA code writes Unicode by default. Since Windows is now Unicode based, its seems much better to go with that. I am mostly there, but have not looked at my tokenizer code lately. (Each parameter is written to a text file, one line per parameter and as many as a dozen pieces of data in each line.) This text file must be in text rather than binary because I must be able to read it myself to check for errors.

Other than log files, none of the real time work uses any text operations. I don't care if it takes 10 bytes per character to store the configuration file.

Conclusion
I'll go with Unicode all the way.

Question
What is this deal with this WCHAR in Visual Studio? One of the articles I found said WCHAR is equivalent to wchar_t, then said no more. Ok, but being a guy with sometimes too much self doubt I still wonder: Are they really the same? Is there something subtle I have not noticed? WCHAR stands out a bit more in the declarations, but for advantages, that seems to be about it. Should I go with wchar_t rather than WCHAR?
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com


GeneralRe: Unicode and codeproject article Pin
Richard MacCutchan1-Mar-15 6:13
mveRichard MacCutchan1-Mar-15 6:13 
GeneralRe: Unicode and codeproject article Pin
bkelly131-Mar-15 15:51
bkelly131-Mar-15 15:51 
GeneralRe: Unicode and codeproject article Pin
Theo Buys13-Apr-15 4:27
Theo Buys13-Apr-15 4:27 
QuestionCAsyncSocket::Connect( (LPCTSTR) m_address, m_port_number ) Pin
bkelly1324-Feb-15 10:50
bkelly1324-Feb-15 10:50 
AnswerRe: CAsyncSocket::Connect( (LPCTSTR) m_address, m_port_number ) Pin
Richard MacCutchan24-Feb-15 22:30
mveRichard MacCutchan24-Feb-15 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.