Click here to Skip to main content
15,914,924 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Separating Model and View Pin
led mike9-May-07 16:11
led mike9-May-07 16:11 
QuestionI Urgently Need Help About Threading ! Pin
Nonreturn9-May-07 9:57
Nonreturn9-May-07 9:57 
AnswerRe: I Urgently Need Help About Threading ! Pin
led mike9-May-07 10:38
led mike9-May-07 10:38 
GeneralRe: I Urgently Need Help About Threading ! Pin
Nonreturn9-May-07 11:49
Nonreturn9-May-07 11:49 
QuestionAutomating Excel - populating a cell Pin
BuckBrown9-May-07 8:53
BuckBrown9-May-07 8:53 
AnswerRe: Automating Excel - populating a cell Pin
led mike9-May-07 9:37
led mike9-May-07 9:37 
GeneralRe: Automating Excel - populating a cell Pin
BuckBrown9-May-07 10:22
BuckBrown9-May-07 10:22 
QuestionProblems wih bit shifting function Pin
Debun9-May-07 8:23
Debun9-May-07 8:23 
Hello,

I am trying to implement a bit shift function that would shift bit positions either to the right or left using the codes below.

The bit shift is not working can someone help with why it is not working? Sigh | :sigh:


public: System::Void apply_BitShift(String ^myString, String ^direction, int numOfShifts)
{
bitShiftVal = "";

array<__wchar_t> ^shiftArray = gcnew array<__wchar_t> (myString>Length);

//copy characters from myString into shiftArray
myString->CopyTo(0, shiftArray, 0, myString->Length);

if(direction->Equals("left"))//Perform left shifts
{
bitShiftVal = gcnew String(shiftArray, numOfShifts, (myString->Length)-numOfShifts);

for(int indx=0; indx<numofshifts; indx++)
="" bitshiftval="String::Concat(bitShiftVal," "0");=""
="" }
="" else="" if(direction-="">Equals("right"))//perform right shifts
{
for(int indx=0; indx<numofshifts; indx++)
="" bitshiftval="String::Concat(bitShiftVal," "0");
=""
="" for(int="" indx="0;" indx<shiftarray-="">Length-numOfShifts; indx++)
bitShiftVal = String::Concat(bitShiftVal, shiftArray[indx].ToString());
}

}//end of apply_BitShift


dee
AnswerRe: Problems wih bit shifting function Pin
led mike9-May-07 9:13
led mike9-May-07 9:13 
QuestionRe: Problems wih bit shifting function Pin
Mark Salsbery9-May-07 9:26
Mark Salsbery9-May-07 9:26 
AnswerRe: Problems wih bit shifting function Pin
led mike9-May-07 9:40
led mike9-May-07 9:40 
GeneralRe: Problems wih bit shifting function Pin
Mark Salsbery9-May-07 9:45
Mark Salsbery9-May-07 9:45 
Questionsave in c++ Pin
lavy28839-May-07 6:36
lavy28839-May-07 6:36 
AnswerRe: save in c++ Pin
Christian Graus10-May-07 15:42
protectorChristian Graus10-May-07 15:42 
QuestionWild number problem Pin
hasan_hasany8-May-07 18:29
hasan_hasany8-May-07 18:29 
AnswerRe: Wild number problem Pin
Christian Graus8-May-07 18:33
protectorChristian Graus8-May-07 18:33 
QuestionC2039 :Is not a member of 'System::Windows::Forms::Form' Pin
tcompter8-May-07 10:57
tcompter8-May-07 10:57 
AnswerRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
Mark Salsbery8-May-07 11:02
Mark Salsbery8-May-07 11:02 
GeneralRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
tcompter8-May-07 11:30
tcompter8-May-07 11:30 
GeneralRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
Mark Salsbery8-May-07 11:34
Mark Salsbery8-May-07 11:34 
GeneralRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
tcompter9-May-07 10:34
tcompter9-May-07 10:34 
GeneralRequest Pin
KeeperMustDie8-May-07 9:55
KeeperMustDie8-May-07 9:55 
GeneralRe: Request Pin
Mark Salsbery8-May-07 10:39
Mark Salsbery8-May-07 10:39 
QuestionAcceptButton in Dialog Box doesn't appear to work Pin
BuckBrown8-May-07 8:22
BuckBrown8-May-07 8:22 
AnswerRe: AcceptButton in Dialog Box doesn't appear to work Pin
BuckBrown8-May-07 9:49
BuckBrown8-May-07 9:49 

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.