|
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
|
|
|
|
|
cool !
thx a lot !
working so fare
System::String^ MeM::X(){
char a[200];
sprintf_s( a,200, "%d", stat.dwTotalPhys );
return gcnew System::String(a);
}
|
|
|
|
|
Check out Object.ToString(). It is overridden for pretty much all base types.
System::String^ MeM::X()
{
return stat.dwTotalPhys.ToString();
}
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
wow so much help in so short time
thank you too
|
|
|
|
|
Mark Salsbery wrote: stat.dwTotalPhys.ToString();
led mike
|
|
|
|
|
Heh now what did I do?
The OP wanted a string representation of a DWORD right?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
You can call ToString on a DWORD? Let me see... Well I'll be a Fish Filet eatin goober!
led mike
|
|
|
|
|
Filet-o-Fish is on me! Yes, you can. Built in types automagically convert back and forth
from managed types.
You had me worried - I had to check on VS 2005 real quick (I'm still on 2003 .NET) to see if it
didn't work anymore. That would have sucked
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I'm trying to replace a MFC CView with a form. The Cview in a Container that several Controls is inserted into. That way events are controlled with a common response, however control is same for each, but the control functions can be different. It will be part of a MDI Application.
I’m looking for a book or website. I would like to create a nice application to for all these "views". Several can be open at once.
PS: I’m new to using forms. My past GUIs where written in MFC.
Thanks
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
Hello,
I have a strange problem. If I have an RootNamespace for a project
e.g Microsoft::Bug
and I make a new Form then I receive an error from ResGen (Invalid file Microsoft::Bug.Form1.resources)
How I can make this namespace in the way that also the resources works automatically?
Okay I can change the output file for every resource but I don't think that this is a good way!
Best regards
Hansjörg
|
|
|
|
|
Hi, i've a problem with a method that had to return a pointer.
In this class, i've implemented a method tha return a pointer.
class Camobj
{
public:
Camobj();
~Camobj(void);
IplImage* capture(void){
//create a IplImage* img;
return(img);
}
};
private:
....
};
In another class(window form) form1.h, i want to visualize my IplImage returned from capture method of Camobj:
#include "camobj.h"
....
public ref class Form1 : public System::Windows::Forms::Form
{
...
protected:
//Create a Camobj object
Camobj *mycam;
public:
Form1(void)
{
InitializeComponent();
mycam=new Camobj();
}
....
private: System::Void capimgbut_Click(System::Object^ sender, System::EventArgs^ e) {
IplImage* kon=mycam->capture(); //it would return a IplImage*
cvShowImage("try",kon);//cvShowImage(const char *name ,const Iplimage *image)
}
....
The problem is that it seems to not receive anything? is it possible?
Thanks, regards.
|
|
|
|
|
Hi to all of you,
I am a new programmer on OpenGL.
I am currently working on an application where I have a Debian Linux PC with two usb industrial cameras,acquiring images at a rate of 25fps. Each image data is sent by sockets to a windows PC. The format of the received buffer at the windows PC side is buffer[0]='top left image pixel', buffer[640*480]='bottom right image pixel'. I want know to proccess these buffers an display a video on an OpenGL window at a similar frame rate, or even lower,i.e. even 5-10 frames per second will do for me.
Can anynone advised me with an appropriate approach?
Cheers,
DoctorDoctor
|
|
|
|
|
Hi,
Does anybody now a macro to check if only one bit is set in a word value ?
Thx
|
|
|
|