|
|
I am Using Visual c++ NEt 2005
On my form I have a DatagridView1 .
I Use it like a bill,I need, when I fill article code, to fill designation in a second column in the same line.
My problem is How to affect a value to a particular cell ?
To retrieve the content I know: dataGridView1[0,1]->Value->ToString. But To affect a value to a cell I don't know.
I need Help
|
|
|
|
|
You need to use the DataGridView.CellEndEdit Event. When the user is done editing the cell this event will fire and provide the cell location that was just edited. The link posted also has some sample code you can study.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
|
Hi I do have an managed c++ application.
I would like to write the addin application for my application.
So I went to create the sheared add-in in visitual studio.
The wizard ask for application host name. There are Miscrosoft word, microsoft excel.. etc. How can I make my application showed in the host list in wizard?
Thanks
|
|
|
|
|
I think you're looking in the wrong place. Just create a dll and dynamically link to it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is there any guidelines out there for which compiler option is best for Optimization? I have heard the minimizing size is important to reduce page faults but I'm not sure.
Opinions? links? Thanks
Glenn
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
earlgraham wrote: Is there any guidelines out there for which compiler option is best for Optimization?
Yes on MSDN. However the significance of optimizations can be related to the version of the compiler, the OS, the hardware and more. So you are not likely to find any simple "Do this" answers.
Here is one as an example for VS2003[^]
led mike
|
|
|
|
|
I will recommend that you don't worry about optimization until you finish your application. Then you should profile your application and check which part(s) of code needs to be tweaked. This way you will save lots of time trying to optimized things which doesn't matter.
-Saurabh
|
|
|
|
|
|
Wow - aren't you lost ?
The todolist is not written in Managed C++, and it has it's own forum for questions.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Any body have sample code for "TRIVIAL FILE TRANSFER PROTOCOL" Using C++??
Thanks in Advance
Hitesh sojitra
|
|
|
|
|
Cross post and doesn't know how to use Google.
|
|
|
|
|
leckey wrote: Cross post and doesn't know how to use Google.
Oh what else is frigging new
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hai
I am using textchange eventhandler in richtextbox. I just want to know currently what key is pressed by the user. for knowing that is any property is available.
can you tell me.
Thanks
|
|
|
|
|
if you want to get the key that was pressed you should use the KeyPress event. the second parameter (KeyPressEventArgs) you can use to get the keychar that was pressed.
Void richTextBox1_KeyPress(Object^ sender, KeyPressEventArgs^ e) {
char charPressed = (char)e->KeyChar;
}
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
hai
I just want to read the richtextbox content word by word.
Is any property is available in richtextbox. I am using windows form application vc++.
Thanks
|
|
|
|
|
i don't think there is a property that will give you the words. I think your going to have to parse the richtextbox yourself. You can get the words by doing this:
array<string^>^ words = myTxtBox->Text->Split(gcnew array<wchar_t> { ' ' }, StringSplitOptions::RemoveEmptyEntries);</wchar_t></string^>
you'll have to do more to trim out any punctuation characters.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi All,
I have created an unmanaged DLL, and them a managed wrapper DLL that permits to use, in other languages, the functions of the unmanaged one. Both the DLL's are made in C++.
I'm using the managed DLL to write a software, and since two days ago it worked all well. But now, when I try to run the application after compiling, the debugger says: SEHException on xxx.dll, that is the managed DLL. I tried to print a message box on screen for the stack trace, and the exception occurs when the managed DLL tries to call the unmanaged DLL.
Moreover, when I try to run it in another PC, it works perfectly
I tried to search on Google but I didn't found any solution to this problem.
Can anyone help me?
Thanks in advance.
|
|
|
|
|
Is there a way to add a menu to a MDI child when using .net forms?
|
|
|
|
|
wcurtiss wrote: Is there a way to add a menu to a MDI child when using .net forms?
Never tried it but I imagine the MDI child is a Form yes? If so you should be able to drop a menu on it from the toolbox, have you tried?
led mike
|
|
|
|
|
yes I added a menu to child form, elaborated it and executed, but the menu does not show on the child form. I tired messing with all the properties but it never showed during execution. Thanks for your response.
|
|
|
|
|
As I said I had never done any research on Windows.Forms MDI functionality. Having now done so I see you need to set the MenuStrip.AllowMerge to false in the MenuStrip in the MDIParent form. That keeps the child menu strip from merging into the Parent forms menu. I guess that is what you want.
led mike
|
|
|
|
|
I am writing a C++/CLI CLR Windows Forms application.
I'm able to write lots of evaluation programs and try out many features but I'm having trouble understanding how to architect my total application scope-wise.
I have one main form ( call it "Form1" ) and it may spawn some modal dialog boxes. In addition I want to create some classes, preferrably managed ref classes and refer to their methods and invoke their member functions from the event functions in Form1 (e.g. Form1_Load, button1_Click, etc.).
I'd like to code these ref classes in separate files. I also have an assembly from a third party which I've been able to use successfully (Galil motion controls DMCdNet.dll).
So my question: Is their a canonical way of coding managed C++/CLI ref classes in separate files in my Visual Studio project, instantiate those managed class objects (somewhere) and then be able to refer to them in the private member (event receiver) functions in Form1.h?
The books I've learned C++ from are:
- C++: How To Program by Deitel & Deitel (very early edition)
- Pro Visual C++ /CLI and the .NET Platform by Stephen G. Fraser
Jeff Cooper
modified on Friday, May 23, 2008 10:30 AM
|
|
|
|
|
aa1ww wrote: but I'm having trouble understanding how to architect my total application scope-wise.
That only means you have not yet studied Object Oriented Programming well enough yet. It does take time so don't get discouraged. However most if not all of the issues you seem to be asking about are covered in the classic Design Patterns book.[^] Most if not all of these patterns can also be seen in some level of detail on Wikipedia. And of course there are a multitude of other sites as well that discuss Patterns.
Just to be clear there may not be anything specific to C++/CLI about your question, the answer you seek is a combination of fundamental C++ file management, .NET Platform fundamentals and Object Oriented Design. The bad news is there is no short cut to understanding the information. You must study it all until you have a sound grasp of all the concepts. Anything short of that will leave you constantly running into problems that you don't understand if you start trying to work on a production project.
led mike
|
|
|
|