15,665,353 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: Algorithm Problem(C++ solution) OriginalGriff12-Jul-19 5:10 OriginalGriff 12-Jul-19 5:10
 Re: Algorithm Problem(C++ solution) Joe Woodbury12-Jul-19 10:02 Joe Woodbury 12-Jul-19 10:02
 Re: Algorithm Problem(C++ solution) Stefan_Lang15-Jul-19 2:05 Stefan_Lang 15-Jul-19 2:05
 Re: Algorithm Problem(C++ solution) Gerry Schmitz15-Jul-19 8:14 Gerry Schmitz 15-Jul-19 8:14
 Overflow check on integer multiplication in C ? Hans9999-Jul-19 2:01 Hans999 9-Jul-19 2:01
 Re: Overflow check on integer multiplication in C ? Daniel Pfeffer9-Jul-19 3:10 Daniel Pfeffer 9-Jul-19 3:10
 Re: Overflow check on integer multiplication in C ? Joe Woodbury9-Jul-19 7:41 Joe Woodbury 9-Jul-19 7:41
 Re: Overflow check on integer multiplication in C ? leon de boer10-Jul-19 3:35 leon de boer 10-Jul-19 3:35
 It will take more effort and cpu cycles to pick off the overflow than simply move it to next size up integer, do the mult on a that type and look at the result for overflow So for 16 bit int and 32bit long as an example ```long b = a; b *=25 b /=10 if (b & 0x7FFF0000 != 0) { // error result in b is larger than an int } a = (int) b;``` If you want to do it proper anal uses standard ints ```#include int16_t a = ????; int32_t b = a; b *=25 b /=10 if (b & 0x7FFF0000 != 0) { // error result in b is larger than an int } a = (int16_t) b;``` In vino veritasmodified 10-Jul-19 9:41am.
 Re: Overflow check on integer multiplication in C ? CPallini10-Jul-19 4:57 CPallini 10-Jul-19 4:57
 I have created a Wrapper but while calling a function from C# its moving to my Lib file and giving below error andy solution? Member 143147593-Jul-19 22:14 Member 14314759 3-Jul-19 22:14
 Re: I have created a Wrapper but while calling a function from C# its moving to my Lib file and giving below error andy solution? leon de boer4-Jul-19 2:39 leon de boer 4-Jul-19 2:39
 "crosslinking " - different architecture libraries - is is possible? Vaclav_1-Jul-19 10:54 Vaclav_ 1-Jul-19 10:54
 Re: "crosslinking " - different architecture libraries - is is possible? Richard MacCutchan1-Jul-19 20:56 Richard MacCutchan 1-Jul-19 20:56
 Re: "crosslinking " - different architecture libraries - is is possible? leon de boer2-Jul-19 5:03 leon de boer 2-Jul-19 5:03
 Created .Dll from and .ocx using C++/CLI but interop is not loading in C# Member 143147591-Jul-19 3:16 Member 14314759 1-Jul-19 3:16
 Return From DoModal with RadioButton ForNow30-Jun-19 4:50 ForNow 30-Jun-19 4:50
 Re: Return From DoModal with RadioButton Victor Nijegorodov30-Jun-19 6:43 Victor Nijegorodov 30-Jun-19 6:43
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 7:13 `Randor` 30-Jun-19 7:13
 Re: Return From DoModal with RadioButton ForNow30-Jun-19 7:53 ForNow 30-Jun-19 7:53
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 8:08 `Randor` 30-Jun-19 8:08
 Re: Return From DoModal with RadioButton ForNow30-Jun-19 9:43 ForNow 30-Jun-19 9:43
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 14:22 `Randor` 30-Jun-19 14:22
 Re: Return From DoModal with RadioButton ForNow30-Jun-19 16:24 ForNow 30-Jun-19 16:24
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 17:34 `Randor` 30-Jun-19 17:34
 Re: Return From DoModal with RadioButton Victor Nijegorodov30-Jun-19 21:37 Victor Nijegorodov 30-Jun-19 21:37
 Last Visit: 31-Dec-99 18:00     Last Update: 31-May-23 16:11 Refresh ᐊ Prev1...169170171172173174175176177178 Next ᐅ