Click here to Skip to main content
14,739,502 members
Home » Discussions » Managed C++/CLI
   

Managed C++/CLI

 
QuestionHow to trace an unhandled exception in C++ using Visual Studio 2017 Pin
Dominick Marciano1-Nov-18 0:03
professionalDominick Marciano1-Nov-18 0:03 
AnswerRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
Richard MacCutchan1-Nov-18 0:55
mveRichard MacCutchan1-Nov-18 0:55 
GeneralRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
AndreyAksenov7-Dec-18 3:38
MemberAndreyAksenov7-Dec-18 3:38 
GeneralRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
Richard MacCutchan7-Dec-18 4:22
mveRichard MacCutchan7-Dec-18 4:22 
AnswerRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
John Schroedl5-Nov-18 6:13
professionalJohn Schroedl5-Nov-18 6:13 
Questionmeaing of below code Pin
Member 139765087-Sep-18 23:01
MemberMember 139765087-Sep-18 23:01 
AnswerRe: meaing of below code Pin
Richard MacCutchan7-Sep-18 23:32
mveRichard MacCutchan7-Sep-18 23:32 
AnswerRe: meaing of below code Pin
Victor Nijegorodov8-Sep-18 2:07
MemberVictor Nijegorodov8-Sep-18 2:07 
Questionc++ sms send dll Pin
Member 139765087-Sep-18 2:07
MemberMember 139765087-Sep-18 2:07 
AnswerRe: c++ sms send dll Pin
Richard MacCutchan7-Sep-18 3:38
mveRichard MacCutchan7-Sep-18 3:38 
AnswerRe: c++ sms send dll Pin
Victor Nijegorodov8-Sep-18 2:04
MemberVictor Nijegorodov8-Sep-18 2:04 
AnswerRe: c++ sms send dll Pin
vidhya 360 com14-Oct-18 21:38
Membervidhya 360 com14-Oct-18 21:38 
QuestionSharpen filter of bmp image Pin
Jakub Bartczak27-Aug-18 22:21
MemberJakub Bartczak27-Aug-18 22:21 
AnswerRe: Sharpen filter of bmp image Pin
Jochen Arndt27-Aug-18 23:56
professionalJochen Arndt27-Aug-18 23:56 
Questionplease explain this lines of code Pin
Hiếu Ngô2-Aug-18 19:18
MemberHiếu Ngô2-Aug-18 19:18 
AnswerRe: please explain this lines of code Pin
Richard MacCutchan2-Aug-18 22:47
mveRichard MacCutchan2-Aug-18 22:47 
AnswerRe: please explain this lines of code Pin
Jochen Arndt2-Aug-18 23:29
professionalJochen Arndt2-Aug-18 23:29 
NewsC++/CLI support comes to ReSharper C++ Pin
John Schroedl23-Jul-18 7:22
professionalJohn Schroedl23-Jul-18 7:22 
QuestionTo find the angle of turn in a car racing game in C++/SFML Pin
Tarun Jha22-Jul-18 0:39
MemberTarun Jha22-Jul-18 0:39 
AnswerRe: To find the angle of turn in a car racing game in C++/SFML Pin
John Schroedl23-Jul-18 7:41
professionalJohn Schroedl23-Jul-18 7:41 
Consider the two chunks of code separately.

The first two lines are updating angle by a fraction of turnSpeed. If speed were == maxSpeed then speed/maxSpeed = 1. So angle += turnSpeed for a right-turn. turnSpeed = 0.08 so that's in Radians which is 4.58 degrees. This means if you're turning right or left at max speed, it'll add or remove 4.58 degrees each time through. If speed is less than the max, then the angle will change by a smaller amount (a fraction of .08 radians). Try it in the debugger and see the change.

The last two lines are updating the x,y location of the car using it's orientation (angle). cos(angle) is typically the x portion of an angle so I'm not sure why it modifies the y coor with that but that's what it does. sin(angle) or cos(angle) produces a value from 0-1 (which it uses as a percentage) * speed. That means x or y changes by a fraction of speed in the direction of angle.

It would probably help you to print out the values or use the debugger.

Hope this helps,
John
GeneralRe: To find the angle of turn in a car racing game in C++/SFML Pin
Tarun Jha25-Jul-18 8:36
MemberTarun Jha25-Jul-18 8:36 
QuestionSmall RAII-like cleanup class in C++/CLI Pin
John Schroedl15-Jun-18 10:08
professionalJohn Schroedl15-Jun-18 10:08 
QuestionInformation Edit Source code for c++ Pin
Member 1165875229-May-18 20:48
MemberMember 1165875229-May-18 20:48 
AnswerRe: Information Edit Source code for c++ Pin
Richard MacCutchan29-May-18 22:05
mveRichard MacCutchan29-May-18 22:05 
AnswerRe: Information Edit Source code for c++ Pin
Jochen Arndt30-May-18 3:55
professionalJochen Arndt30-May-18 3:55 

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.