Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC DLL Distribution Question Pin
John Clump11-Aug-03 19:34
John Clump11-Aug-03 19:34 
GeneralRe: MFC DLL Distribution Question Pin
HPSI11-Aug-03 20:02
HPSI11-Aug-03 20:02 
GeneralRe: MFC DLL Distribution Question Pin
David Crow12-Aug-03 4:27
David Crow12-Aug-03 4:27 
Generalviewing an MS-Access Report without MS-Access Pin
sagmam11-Aug-03 18:59
sagmam11-Aug-03 18:59 
GeneralRe: viewing an MS-Access Report without MS-Access Pin
wb11-Aug-03 19:16
wb11-Aug-03 19:16 
GeneralHelp to understand these codes! Pin
colormyiris11-Aug-03 18:32
colormyiris11-Aug-03 18:32 
GeneralRe: Help to understand these codes! Pin
ZoogieZork11-Aug-03 18:41
ZoogieZork11-Aug-03 18:41 
GeneralRe: Help to understand these codes! Pin
igor196011-Aug-03 18:42
igor196011-Aug-03 18:42 
If your question is not some kind of a joke:
Here is an answer:
I assume this code converts array of BYTES into Array of LONGS.
m_sTeks is BYTE array
m_lTeksArry is LONG array.

What each basically does is for each 4 elements in BYTES array:
convert each element to long, by shifting and & so each BYTE element occupies appropriate BYTES in resultan LONG.

However, from what I see you can just easily achieve the same result by doint the following:

for(int m_iCountTeks=0;m_iCountTeks++)
{
m_lTeksArry[m_iCountTeks]= *(LONG *)(&m_sTeks[4*m_iCountTeks]);
}


Regards

"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralSetting Master Volume Pin
NorthWoodsman11-Aug-03 17:48
NorthWoodsman11-Aug-03 17:48 
GeneralRe: Setting Master Volume Pin
David Crow12-Aug-03 5:03
David Crow12-Aug-03 5:03 
QuestionHow to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 17:27
suninwater11-Aug-03 17:27 
AnswerRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
pranavamhari11-Aug-03 17:43
pranavamhari11-Aug-03 17:43 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 19:14
suninwater11-Aug-03 19:14 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
igor196011-Aug-03 19:46
igor196011-Aug-03 19:46 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 19:59
suninwater11-Aug-03 19:59 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
igor196011-Aug-03 20:26
igor196011-Aug-03 20:26 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 21:01
suninwater11-Aug-03 21:01 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
Steve S11-Aug-03 21:59
Steve S11-Aug-03 21:59 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 22:48
suninwater11-Aug-03 22:48 
QuestionOnCtrlColor - how do I set a button fore color? Pin
michael thomas11-Aug-03 16:01
michael thomas11-Aug-03 16:01 
AnswerRe: OnCtrlColor - how do I set a button fore color? Pin
Ryan Binns11-Aug-03 20:04
Ryan Binns11-Aug-03 20:04 
GeneralRe: OnCtrlColor - how do I set a button fore color? Pin
michael thomas12-Aug-03 3:11
michael thomas12-Aug-03 3:11 
AnswerRe: OnCtrlColor - how do I set a button fore color? Pin
HPSI11-Aug-03 20:08
HPSI11-Aug-03 20:08 
GeneralRe: OnCtrlColor - how do I set a button fore color? Pin
michael thomas12-Aug-03 3:12
michael thomas12-Aug-03 3:12 
QuestionError "Recordset is read-only" ??? Pin
_skidrow_vn_11-Aug-03 15:56
_skidrow_vn_11-Aug-03 15:56 

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.