Does anyone know what function should i use to retrieve 3d coordinates of a point in the direct3d viewport using the mouse.
i've tried several thing but the results are totally wrong
i already did that and the debugger breaks at
vbx = new VertexBuffer(tp, 3, ds, Direct3D::Usage::Dynamic, CustomVertex::TransformedColored::Format, Pool::Default);
but i cannot understand what's wrong, save for the Tostring conversion in the previous line that maybe it ruins the GetType but...
...and So i thought why not try Managed DirectX to make something (a simple vertice render with direct 3d)
and i wrote the code and it compilated without any errors
it throws an exception and i cannot understand the reason!
if anyone can help i would be glad
here is the code:
#using...
I've made a programme that reads and displays images
I wanted to be able to save the image in ASCII format, so as to be able to view the value of each pixel so I ended up with this code
.
.
.
int x = mImage->get_Width();
int y = mImage->get_Height();
pic1->ClientSize =...
how can i determine the length of characters used in a sting?
for a example the string "i like tea" has 10 characters (including the blank ones)and after getting the length of the string to make each string 15 character long adding a single character until reaching the desired length...
i personally found it a little difficult to get used to managed c++
but once you get the hang of it you really going to like it!
c# is a lot similar to managed c++ and has also a touch of visual basic... a nice language to start with
how can i force a string when converting it to double not to lose it's initial format? (the sting source is a textbox)
what do i mean by that. i have a value +3456,9800 and by converting it to double i get a 3456,98
is there a way to keep the following zeros as well as the plus sign? the need of...
how can i give certain text format to an output file in vc++ managed extension code?
for example
line 1 > xx : (value1) , yy : (value2) , zz : (value3)
line 2 > xx1 .....
....and so on..
thank you in advance!
So i got the text from the textbox and i converted it to double and manipulated it...
stupid question i know but how i convert double to text to display it in another textbox?
same way?
i used to work on c++builder but now iam trying to learn vc++ so to be able to controll things easier(i think)
here is my problem i designed a form with several buttons
and i just want a button to display the second form so i have in summary:(only code concering the button)
Btn1 = new...
i know about MDI...and i do not want that...
what i want is from an SDI application to open from the menu to different forms and to be able to access the both without closing the one or the other
the subject tells it all
i want to be able to access multiple form created by my main form1 without closing the one and opening the other one..
how can this be achieved?
thank you in advance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.