14,325,629 members

# C / C++ / MFC

 Re: MFC Picture Control image size. Maximilien18-Jul-19 3:50 Maximilien 18-Jul-19 3:50
 Re: MFC Picture Control image size. Richard MacCutchan18-Jul-19 4:03 Richard MacCutchan 18-Jul-19 4:03
 Algorithm Problem(C++ solution) nirvikprantor12-Jul-19 5:05 nirvikprantor 12-Jul-19 5:05
 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
 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 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
 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
 Last Visit: 14-Oct-19 3:00     Last Update: 14-Oct-19 3:00 Refresh « Prev1...19202122232425262728 Next »

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.