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

Managed C++/CLI

 
GeneralRe: Problem with accessing MS Access Date field with C++/CLI Pin
Dirkus Maximus25-Aug-10 15:52
Dirkus Maximus25-Aug-10 15:52 
GeneralRe: Problem with accessing MS Access Date field with C++/CLI [modified] Pin
Luc Pattyn25-Aug-10 16:25
sitebuilderLuc Pattyn25-Aug-10 16:25 
GeneralRe: Problem with accessing MS Access Date field with C++/CLI [modified] Pin
Dirkus Maximus26-Aug-10 14:16
Dirkus Maximus26-Aug-10 14:16 
QuestionUse of managed variables in non-ref class Pin
KlaasVersteeg20-Aug-10 2:27
KlaasVersteeg20-Aug-10 2:27 
AnswerRe: Use of managed variables in non-ref class Pin
Nish Nishant20-Aug-10 6:29
sitebuilderNish Nishant20-Aug-10 6:29 
AnswerRe: Use of managed variables in non-ref class Pin
slawomir_orlowski29-Aug-10 21:15
slawomir_orlowski29-Aug-10 21:15 
GeneralRe: Use of managed variables in non-ref class Pin
KlaasVersteeg29-Aug-10 21:21
KlaasVersteeg29-Aug-10 21:21 
QuestionHelp with Angle Rotations pls.. Pin
lgmanuel19-Aug-10 20:42
lgmanuel19-Aug-10 20:42 
hi guys, am having problem with angle rotations..

i already have the formula,

double fangle;
double m_iAngle;
m_iAngle = 45;

POINT centerPt;
centerPt.x = m_nCarX + 161; // which s is the x origin
centerPt.y = y + 52; // which s is the y origin

fangle = m_iAngle / 180. * 3.1415926;

float OrX = (float)(centerPt.x - cos(fangle)*centerPt.x + sin(fangle)*centerPt.y);
float OrY = (float)(centerPt.y - cos(fangle)*centerPt.y - sin(fangle)*centerPt.x);

//tyre spoke
dc.SelectStockObject(GRAY_BRUSH);
dc.SelectObject(m_penTyreSpoke);

for(int count = 0, count < 4, count++){
//spoke1
dc.MoveTo(m_nCarX + 161, y + 52);
dc.LineTo(m_nCarX + 161, y + 41);
}

//see image here:
http://h1.ripway.com/lgmanuel/Imgs/car.png[^]

as you see in the image. the car's tire has only one spoke.
am trying to loop the code to have 4 (four) spokes on my rim by bending the angle 90 DEGREES..
adding a 90 DEGREES on LOOP...

//should look like this images bellow:
http://h1.ripway.com/lgmanuel/Imgs/car-with-rim-spoke.png[^]

help guys.. check the project bellow.. thanks ahead..

http://h1.ripway.com/lgmanuel/VisualCPP/GDICarSample.rar[^]
AnswerRe: Help with Angle Rotations pls.. Pin
Luc Pattyn20-Aug-10 2:00
sitebuilderLuc Pattyn20-Aug-10 2:00 
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 

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.