Click here to Skip to main content
15,910,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: close view but leave document open Pin
Gary Kirkham6-Jun-02 15:37
Gary Kirkham6-Jun-02 15:37 
GeneralEmpty document on SDI App Pin
6-Jun-02 3:51
suss6-Jun-02 3:51 
GeneralRe: Empty document on SDI App Pin
Tomasz Sowinski6-Jun-02 4:10
Tomasz Sowinski6-Jun-02 4:10 
GeneralSynchronization problem (how do I make it read-only?) Pin
6-Jun-02 3:11
suss6-Jun-02 3:11 
GeneralRe: Synchronization problem (how do I make it read-only?) Pin
6-Jun-02 3:19
suss6-Jun-02 3:19 
GeneralCode to change data from Big Endian to Little Endian Pin
JMajors986-Jun-02 3:19
JMajors986-Jun-02 3:19 
GeneralRe: Code to change data from Big Endian to Little Endian Pin
6-Jun-02 3:16
suss6-Jun-02 3:16 
GeneralRe: Code to change data from Big Endian to Little Endian Pin
Joaquín M López Muñoz6-Jun-02 3:46
Joaquín M López Muñoz6-Jun-02 3:46 
This should work:
template <typename T> T change_endian(T in)
{
  T out;
  char *pin=reinterpret_cast<char *>(&in);
  char *pout=reinterpret_cast<char *>(&out)+sizeof(T);
  for(size_t n=0;n<sizeof(T);++n)*--pout=*pin++;
  return out;
}


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Generalusing SAFEARRAY Pin
RaphaelBr6-Jun-02 2:24
RaphaelBr6-Jun-02 2:24 
Generalgeoreferenced tiff files Pin
jpg6-Jun-02 2:16
jpg6-Jun-02 2:16 
GeneralRe: georeferenced tiff files Pin
Chris Losinger6-Jun-02 2:55
professionalChris Losinger6-Jun-02 2:55 
Generalstl iterator Pin
_Magnus_6-Jun-02 2:10
_Magnus_6-Jun-02 2:10 
GeneralRe: stl iterator Pin
Chris Losinger6-Jun-02 2:57
professionalChris Losinger6-Jun-02 2:57 
GeneralRe: stl iterator Pin
Joaquín M López Muñoz6-Jun-02 2:56
Joaquín M López Muñoz6-Jun-02 2:56 
GeneralRe: stl iterator Pin
_Magnus_6-Jun-02 3:29
_Magnus_6-Jun-02 3:29 
GeneralRe: stl iterator Pin
John M. Drescher6-Jun-02 6:28
John M. Drescher6-Jun-02 6:28 
GeneralRe: stl iterator Pin
Mike Nordell6-Jun-02 10:22
Mike Nordell6-Jun-02 10:22 
GeneralRe: stl iterator Pin
John M. Drescher6-Jun-02 10:21
John M. Drescher6-Jun-02 10:21 
GeneralSysListView32 (Desktop) Pin
[xan]6-Jun-02 2:01
[xan]6-Jun-02 2:01 
GeneralProblem with Adobe SVG ActiveX Pin
6-Jun-02 1:33
suss6-Jun-02 1:33 
GeneralPCM To True Speech WAV Conversion Pin
AJ1235-Jun-02 22:52
AJ1235-Jun-02 22:52 
GeneralRe: PCM To True Speech WAV Conversion Pin
NotYourAverageGuy6-Jun-02 8:12
NotYourAverageGuy6-Jun-02 8:12 
GeneralUnhandled Exception-0xC0000005:Access Violation Pin
Rsh5-Jun-02 22:08
Rsh5-Jun-02 22:08 
GeneralRe: Unhandled Exception-0xC0000005:Access Violation Pin
Joaquín M López Muñoz5-Jun-02 22:12
Joaquín M López Muñoz5-Jun-02 22:12 
GeneralRe: Unhandled Exception-0xC0000005:Access Violation Pin
Rsh6-Jun-02 1:40
Rsh6-Jun-02 1:40 

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.