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

Managed C++/CLI

 
GeneralHuffman code algorithm help!!!!! Pin
huffmancoding15-Jun-04 9:48
huffmancoding15-Jun-04 9:48 
GeneralRe: Huffman code algorithm help!!!!! Pin
DavidR_r1-Jul-04 10:26
DavidR_r1-Jul-04 10:26 
GeneralRe: Huffman code algorithm help!!!!! Pin
huffmancoding2-Jul-04 11:30
huffmancoding2-Jul-04 11:30 
GeneralUpdating and Drawing Shapes on a Form Pin
magefire14-Jun-04 5:56
magefire14-Jun-04 5:56 
GeneralRe: Updating and Drawing Shapes on a Form Pin
palbano14-Jun-04 6:14
palbano14-Jun-04 6:14 
GeneralRe: Updating and Drawing Shapes on a Form Pin
magefire14-Jun-04 6:21
magefire14-Jun-04 6:21 
GeneralRe: Updating and Drawing Shapes on a Form Pin
palbano14-Jun-04 6:29
palbano14-Jun-04 6:29 
GeneralRe: Updating and Drawing Shapes on a Form Pin
magefire14-Jun-04 6:51
magefire14-Jun-04 6:51 
Thanks for the information and I tried implementing it in the paint event handler as shown below:

<br />
void formOn_Paint(Object* sender, PaintEventArgs* e)<br />
{<br />
    ... //Code for drawing and moving around the black ball.<br />
    Invalidate(); //Send paint message<br />
    Update(); //Repaint the scene.<br />
    System::Threading::Thread::Sleep(10); Sleep for 10 milliseconds.<br />
}<br />

Unfortunately, this code makes the program run extremely sluggishly and I have a new computer with a Pentium 4 so I really doubt it is the hardware. I used to have this code done in the application's idle handler (the drawing and moving of the black ball was still handled in the Form's paint event handler) as shown below:

<br />
void onIdle(Object* sender, EventArgs* e)<br />
{<br />
    Invalidate();<br />
    Update();<br />
    System::Threading::Thread::Sleep(10);<br />
}<br />


Both of these functions are members of the class that is used as the parameter to the Run() function of the Application class so the keyword 'this' is implied when referring to the functions Invalidate() and Update().
Thanks in advance for any help you can provide me with on this subject.
GeneralRe: Updating and Drawing Shapes on a Form Pin
palbano14-Jun-04 7:52
palbano14-Jun-04 7:52 
GeneralRe: Updating and Drawing Shapes on a Form Pin
magefire15-Jun-04 4:50
magefire15-Jun-04 4:50 
GeneralSHGetFolderPathW function syntax - question Pin
Stanimir_Stoyanov14-Jun-04 5:21
Stanimir_Stoyanov14-Jun-04 5:21 
GeneralRe: SHGetFolderPathW function syntax - question Pin
palbano14-Jun-04 6:10
palbano14-Jun-04 6:10 
Questiondisassembling (correctly) managed c++ assemblies? Pin
Stanimir_Stoyanov14-Jun-04 5:20
Stanimir_Stoyanov14-Jun-04 5:20 
AnswerRe: disassembling (correctly) managed c++ assemblies? Pin
cppmanuf25-Jun-04 18:03
cppmanuf25-Jun-04 18:03 
GeneralRe: disassembling (correctly) managed c++ assemblies? Pin
Stanimir_Stoyanov27-Jun-04 9:03
Stanimir_Stoyanov27-Jun-04 9:03 
GeneralRe: disassembling (correctly) managed c++ assemblies? Pin
cppmanuf30-Jun-04 16:58
cppmanuf30-Jun-04 16:58 
GeneralRe: disassembling (correctly) managed c++ assemblies? Pin
Stanimir_Stoyanov3-Jul-04 3:14
Stanimir_Stoyanov3-Jul-04 3:14 
GeneralHelp I want to change While loop to Nested for loo Pin
JawedVikia8010-Jun-04 21:51
JawedVikia8010-Jun-04 21:51 
GeneralRe: Help I want to change While loop to Nested for loo Pin
Jon G11-Jun-04 1:21
Jon G11-Jun-04 1:21 
GeneralNon-unicode to Unicode Pin
ilkertanli9-Jun-04 19:25
ilkertanli9-Jun-04 19:25 
GeneralQuick and easy question Pin
Adam Durity9-Jun-04 9:29
Adam Durity9-Jun-04 9:29 
GeneralRe: Quick and easy question Pin
palbano9-Jun-04 16:08
palbano9-Jun-04 16:08 
GeneralConversion of Unmanaged COM in VC++ to Managed VC++ or C# Pin
imran1899-Jun-04 2:55
imran1899-Jun-04 2:55 
GeneralRe: Conversion of Unmanaged COM in VC++ to Managed VC++ or C# Pin
palbano9-Jun-04 5:49
palbano9-Jun-04 5:49 
Generalimage in a window Pin
nyquisttt8-Jun-04 22:15
nyquisttt8-Jun-04 22:15 

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.