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
...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...
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!
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...
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
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
i come from a c++builder enviroment and i was convinced to try C# so i tried to rewrite a simple old program from c++ to c#. that's what i've done so far..it compiles perfectly but does not work at all!!
private void button1_Click(object sender, System.EventArgs e)
{
double xz =...
i used these fuctions so as to enable log off /reboot and shutdown through my program but it seems that only log off is fuctioning. why is that? even if i force a shutdown it still just logs off... (windows 2000)..if it has to do with the windows authoring and permissions how can i bypass them...
I know that is to much to ask but i want someone to tell me how can i add values to the pixels of a greyscale Timage
for example the to change the color value of a pixel by 3 (45 before 48 after) something like a brightening effect
excuse me for my bad english
i thought of this way to assign some values that are used in the form1(x0y0) in a second form...the programm compiles correctly but this "thing" below does not seem to work!
double ua, wa, va, ub,wb,vb, r11, r21, r31, r13, r23, r33, r12, r22, r32, x0, y0, X0, Z0 ,Y0, Y01, Y02, c...
i have a *.txt with some values that some equations of my program must access so as to return results
how can i access the file and specify at which line of the *.txt is the correct value?
any help would be more than welcome
i used in the past and it worked fine
TMemoryStream* pms = new TMemoryStream();
ListBox1->Items->SaveToStream(pms);
pms->Position = 0;
Memo1->Lines->LoadFromStream(pms);
delete pms;
i Wonder is there a way to SaveToStream several Label captions and later call them to the memo1 with...
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.