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

Managed C++/CLI

 
AnswerRe: Help with Angle Rotations pls.. Pin
Luc Pattyn20-Aug-10 2:00
sitebuilderLuc Pattyn20-Aug-10 2:00 
Hi,

1.
first of all, are you on the right forum? have you switched from native C/C++ coding to managed C++/CLI coding all of a sudden?

2.
please use PRE tags to show code snippets and do show the relevant code; nobody is going to download a ZIP/RAR file to help you out.

3.
if you want N spokes, your best bet is using a for loop. They are pretty good at executing the same code over and over with a slight twist; and add 90 degrees to the angle each time.

4.
Stop using all those magic constants (180, 3.1415926, 161, 52, 41). Either use a function parameter, use an object property (e.g. drawing size), use an official const such as Math.Pi, or if all else fails provide an actual const yourself. You will get more readable code with fewer errors.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


QuestionHow to create a .resx file in windows forms application (VS2005) Pin
roshihans10-Aug-10 10:17
roshihans10-Aug-10 10:17 
QuestionGenerating Runtime code(structs,classes) in C++/CLI Pin
glitteringsound6-Aug-10 5:03
glitteringsound6-Aug-10 5:03 
AnswerRe: Generating Runtime code(structs,classes) in C++/CLI Pin
N a v a n e e t h6-Aug-10 8:03
N a v a n e e t h6-Aug-10 8:03 
Questionnew line on Edit Control... Pin
lgmanuel1-Aug-10 14:35
lgmanuel1-Aug-10 14:35 
AnswerRe: new line on Edit Control... Pin
Richard MacCutchan1-Aug-10 21:37
mveRichard MacCutchan1-Aug-10 21:37 
AnswerRe: new line on Edit Control... Pin
Luc Pattyn2-Aug-10 1:12
sitebuilderLuc Pattyn2-Aug-10 1:12 
QuestionHelp need on Ip Helper functions example:GetUnicastIpAddressEntry. Pin
G Haranadh31-Jul-10 18:59
G Haranadh31-Jul-10 18:59 
QuestionMap file generation on VS2008 Pin
Member 225379327-Jul-10 19:25
Member 225379327-Jul-10 19:25 
AnswerRe: Map file generation on VS2008 Pin
N a v a n e e t h27-Jul-10 19:49
N a v a n e e t h27-Jul-10 19:49 
GeneralRe: Map file generation on VS2008 Pin
Member 225379327-Jul-10 20:22
Member 225379327-Jul-10 20:22 
GeneralRe: Map file generation on VS2008 Pin
Sauro Viti27-Jul-10 21:01
professionalSauro Viti27-Jul-10 21:01 
GeneralRe: Map file generation on VS2008 Pin
Member 225379327-Jul-10 21:12
Member 225379327-Jul-10 21:12 
GeneralRe: Map file generation on VS2008 Pin
Sauro Viti27-Jul-10 21:36
professionalSauro Viti27-Jul-10 21:36 
QuestionHow could I pass data from MFC application to .Net user control? Pin
Daniel Tong20-Jul-10 13:20
Daniel Tong20-Jul-10 13:20 
AnswerRe: How could I pass data from MFC application to .Net user control? Pin
Nish Nishant20-Aug-10 6:41
sitebuilderNish Nishant20-Aug-10 6:41 
Questionhow to save IHTMLElement of Tag IMG Pin
voo doo129-Jul-10 20:45
voo doo129-Jul-10 20:45 
QuestionIE BHO in C++/CLI? Pin
ddoutel8-Jul-10 3:15
ddoutel8-Jul-10 3:15 
AnswerRe: IE BHO in C++/CLI? Pin
ddoutel8-Jul-10 5:55
ddoutel8-Jul-10 5:55 
QuestionError declaring a class from the same namespace Pin
Lomedil7-Jul-10 0:17
Lomedil7-Jul-10 0:17 
AnswerSOLVED: Error declaring a class from the same namespace Pin
Lomedil7-Jul-10 1:13
Lomedil7-Jul-10 1:13 
QuestionMaking a collection in a Property Grid be uneditable. Pin
TheBerk6-Jul-10 11:11
TheBerk6-Jul-10 11:11 
Question.NET assembly not creating as backgrouond process using System.Process Pin
glitteringsound6-Jul-10 1:46
glitteringsound6-Jul-10 1:46 
QuestionException occured While loading dynamically EXE assembly in C++/CLI (Could not load file or assembly ', Version=1.0.3836.39802, Culture=neutral, PublicKeyToken=null' ...) Pin
glitteringsound3-Jul-10 9:14
glitteringsound3-Jul-10 9:14 
AnswerRe: Exception occured While loading dynamically EXE assembly in C++/CLI (Could not load file or assembly ', Version=1.0.3836.39802, Culture=neutral, PublicKeyToken=null' ...) Pin
andrey kurdyumov14-Aug-10 23:22
andrey kurdyumov14-Aug-10 23:22 

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.