15,793,139 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: MFC Picture Control image size. Maximilien18-Jul-19 4:50 Maximilien 18-Jul-19 4:50
 Re: MFC Picture Control image size. Richard MacCutchan18-Jul-19 5:03 Richard MacCutchan 18-Jul-19 5:03
 Algorithm Problem(C++ solution) nirvikprantor12-Jul-19 6:05 nirvikprantor 12-Jul-19 6:05
 Re: Algorithm Problem(C++ solution) OriginalGriff12-Jul-19 6:10 OriginalGriff 12-Jul-19 6:10
 Re: Algorithm Problem(C++ solution) Joe Woodbury12-Jul-19 11:02 Joe Woodbury 12-Jul-19 11:02
 Re: Algorithm Problem(C++ solution) Stefan_Lang15-Jul-19 3:05 Stefan_Lang 15-Jul-19 3:05
 Re: Algorithm Problem(C++ solution) Gerry Schmitz15-Jul-19 9:14 Gerry Schmitz 15-Jul-19 9:14
 Overflow check on integer multiplication in C ? Hans9999-Jul-19 3:01 Hans999 9-Jul-19 3:01
 Hello, I need to multiply integer value with a factor and want to do an overflow check with INT_MAX, INT_MIN for this. Integer contains 4 bytes on my machine an this is the max variable-size. I need to do this check for signed integer and unsigned integer. Only integer math/variables allowed. The factor always comes as fraction with a nominator and denominator. The denominator always is 10 Factor might be greater 1 or less than 1 ```So for example fraction is 25/10, varible a is signed integer a = (a * 25)/10 -> may cause overflow, because (a * 25) can be > INT_MAX ( or < INT_MIN ) Overflow checks: if (a > (INT_MAX * 10)/25 -> not possible because of overflow, INT_MAX is the maximum number the compiler can store. if (a > INT_MAX * (10/25) -> not possible because 10/25 is 0.4 which will be 0 in integer math. So any idea how to solve my problem? Thanks for any hint!```
 Re: Overflow check on integer multiplication in C ? Daniel Pfeffer9-Jul-19 4:10 Daniel Pfeffer 9-Jul-19 4:10
 Re: Overflow check on integer multiplication in C ? Joe Woodbury9-Jul-19 8:41 Joe Woodbury 9-Jul-19 8:41
 Re: Overflow check on integer multiplication in C ? leon de boer10-Jul-19 4:35 leon de boer 10-Jul-19 4:35
 Re: Overflow check on integer multiplication in C ? CPallini10-Jul-19 5:57 CPallini 10-Jul-19 5: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 23:14 Member 14314759 3-Jul-19 23: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 3:39 leon de boer 4-Jul-19 3:39
 "crosslinking " - different architecture libraries - is is possible? Vaclav_1-Jul-19 11:54 Vaclav_ 1-Jul-19 11:54
 Re: "crosslinking " - different architecture libraries - is is possible? Richard MacCutchan1-Jul-19 21:56 Richard MacCutchan 1-Jul-19 21:56
 Re: "crosslinking " - different architecture libraries - is is possible? leon de boer2-Jul-19 6:03 leon de boer 2-Jul-19 6:03
 Created .Dll from and .ocx using C++/CLI but interop is not loading in C# Member 143147591-Jul-19 4:16 Member 14314759 1-Jul-19 4:16
 Return From DoModal with RadioButton ForNow30-Jun-19 5:50 ForNow 30-Jun-19 5:50
 Re: Return From DoModal with RadioButton Victor Nijegorodov30-Jun-19 7:43 Victor Nijegorodov 30-Jun-19 7:43
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 8:13 `Randor` 30-Jun-19 8:13
 Re: Return From DoModal with RadioButton ForNow30-Jun-19 8:53 ForNow 30-Jun-19 8:53
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 9:08 `Randor` 30-Jun-19 9:08
 Re: Return From DoModal with RadioButton ForNow30-Jun-19 10:43 ForNow 30-Jun-19 10:43
 Re: Return From DoModal with RadioButton `Randor` 30-Jun-19 15:22 `Randor` 30-Jun-19 15:22
 Last Visit: 31-Dec-99 19:00     Last Update: 2-Dec-23 18:27 Refresh ᐊ Prev1...188189190191192193194195196197 Next ᐅ