|
You said 'it's not working', but you didn't do what I said....
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks...It help me a lot...sorry ...
|
|
|
|
|
hi all
if some one whit knowledege coud sacrify 2-3 minutes it woud save me a day time
a have a class X now i wana make a class Y wich woud derive all methodes, variables of X and has new ones
i wana ensure in X that certain methode are implemented in Y wich arent in X but declared
i wana overwrite methodes of X in Y
how do i write functions for operators that this works :
Myclass a=Myclass();
a++;
a=a*a;
...
..
i was try to use System::String inside a struct and was geting erros that i cant use a managed type in a struct blabla
i have solved this by using a class instead but woud by nice to know if there is a way around
similair problems seams to ocure if i try to use them as static
i woud like to have a static array in my class whit a pointer to all instances of this class this is important else way i have trubel
if some one coud give me a 10-20 line example it woud by great
just code no need for description
|
|
|
|
|
working half way
how can i get this out of class.h in to the class.cpp file :
virtual int Show(void){return 1;};
virtual int Show(void)override{....
something like :
virtual int Memory::Show(void)override{
wich isnt woking
|
|
|
|
|
You need to define operator* and operator+.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all
i want to know that when i return value from the function the value return to where
thank's for all
To Be Or Not To Be
(KARFER)
|
|
|
|
|
OSAMA SALLAM wrote: when i return value from the function the value return to where
the caller (really!)
-- modified at 13:42 Friday 25th May, 2007
I thought this question was familiar - see here[^]
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
This is the C++/CLI forum, I assume this question is about C++ in general. I recommend buying a very base level beginner book and working through it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Does this question for this forum or Sql ?
|
|
|
|
|
hi all
stuckt agein
hope i not highjack this hole topic
void Disp::Lock_Down(System::Object ^o, System::Windows::Forms::MouseEventArgs ^e){<br />
Lock->MouseMove += gcnew System::Windows::Forms::MouseEventHandler( this, &Disp::Lock_Drag );<br />
MousePosition=MainF->MousePosition;<br />
}<br />
void Disp::Lock_Up(System::Object ^o, System::Windows::Forms::MouseEventArgs ^e){<br />
>>>>>>>>>>>>>> not like this but how ??? :confused: <br />
Lock->MouseMove->Remove(this, &Disp::Lock_Drag);<br />
<<<<<<<<<<<<<<<br />
}
-- modified at 9:48 Friday 25th May, 2007
this works
void Disp::Lock_Down(System::Object ^o, System::Windows::Forms::MouseEventArgs ^e){<br />
t = gcnew System::Windows::Forms::MouseEventHandler( this, &Disp::Lock_Drag );<br />
Lock->MouseMove += t;<br />
MousePosition=MainF->MousePosition;<br />
}<br />
void Disp::Lock_Up(System::Object ^o, System::Windows::Forms::MouseEventArgs ^e){<br />
Lock->MouseMove -= t;<br />
}
BUT i realy not like "t"
is there a way to get it somehow else mayby out of Object ^o or MouseEventArgs ^e
or how ever whit out the need to store it by my self
|
|
|
|
|
i want a code of piano play with mouse in c++ coding
|
|
|
|
|
Wow
|
|
|
|
|
led mike wrote: Wow
World of Warcraft?
See Here[^]
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
The above link is for the OP, BTW
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
1 - this is the C++/CLI forum. It's different to C++
2 - this is a place to ask for help with your code, not to request people give you code. I know of no place that allows you to ask for people to just write code for you, without offering to pay them for it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: this is a place to ask for help with your code, not to request people give you code
Well said.
|
|
|
|
|
hi friend
i start programming in c++ but i can't write a program with my knowledge i know the rules in programs but i don't know how to write a program please guide me to be a real programmer
Sincerely yours
|
|
|
|
|
First step, think about what you're doing. Like posting a question and putting 'question' in the header. Or asking a C++ question in the C++/CLI forum.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Google on "beginner c++ tutorial"
Kevin
|
|
|
|
|
On the upper of screen you can see green bar you can click MFC/C++ for more info.
|
|
|
|
|
hi agein to all
array<String^>^row0 = {"11/22/1968","29"};<br />
DataGridView1->Rows->Add( row0 );<br />
row0[0]="2";<br />
Object^ a= DataGridView1->DataSource;<br />
a[0]="123";
error C3915: 'System::Object' has no default indexed property (class indexer)
how do i acces the rows after they are created / aplyed i havent try it but i am prety sure i coud overwrite it
like DataGridView1->Rows->Add( somethingelse ); mayby not whit add :p
it woud just append / push it in this case
any way the question is how can i acces it streigt to replace data something like
DataSource[row][col]= "my new value";
i not wana use databinding to a data base as the data are live generated and i dont think it woud make thinks easyer any way
on top if this is there any way to list the content and types whats in an object
some recursive loop wich woud rotate truh all elements of the object by it an array a mullti dim array or what ever object combination
|
|
|
|
|
If i'm following you right i think you wanna do something like this
DataGridView^ dgv = gcnew DataGridView();
dgv->Rows[0]->Cells[0]->Value = "new date";
dgv->Rows[0]->Cells[1]->Value = "new number";
dgv[0, 0]->Value = "new date";
dgv[0, 1]->Value = "new number";
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
thx a lot !
exctly what i need
|
|
|
|
|
hi all
new here and also to c++
MeM mem=MeM()<br />
textBoxeS[0] = gcnew System::Windows::Forms::TextBox;<br />
textBoxeS[0]->Size = System::Drawing::Size( 300, 40 ); <br />
textBoxeS[0]->ReadOnly = true; <br />
textBoxeS[0]->BackColor = SystemColors::Window;<br />
<br />
<br />
MeM::MeM(void)<br />
{ <br />
GlobalMemoryStatus (&stat);<br />
}<br />
System::String^ MeM::X(){ <br />
<br />
how do i cast / convert this ---->>>><br />
<br />
char *a=(char*)stat.dwTotalPhys;<br />
return gcnew String(a);
<br />
<<<<---------- PROBLEM HERE<br />
<br />
}
other question
is there an AUTOindent function in visual C++ 2005 ?
cheers rick
|
|
|
|
|
Xeef wrote: char *a=(char*)stat.dwTotalPhys;
You can't just cast a numeric to a character and then use it in string library functions because they need a null terminator. There are several C/C++/STL implementations like ltoa() and sprintf() etc. that you should research
led mike
|
|
|
|