|
Install Visual Studio Redistributable, and you must click on properties of your project -> Configuration properties and Configuration change from DEBUG to RELEASE.
I must install .NET framework 3.5 to another computer. It is working on Vista, under XP It dont works.
|
|
|
|
|
You have been a member long enough to know that's wrong, what a jerk.
Also, are you planning on ever learning how to research, study and learn on your own or are you planning on asking anonymous people on internet forums for all your information for the rest of your career, however short that may be?
led mike
|
|
|
|
|
What do you lose if you reply me ?. I am at the end of my two applications in Visual c++ NET 2005, I am very happy for that.
I greeting All who have help me. Congratulations to CodeProject with Led Mike who don't like me.
I need your help to who need the World go ahead. The deployment of Visual c++ NET Application is not easy.
|
|
|
|
|
I have finished my Visual c++ NET 2005 Application. I need to run it in other PC> When I copy the exe file it don't start.
Who can help me ?
|
|
|
|
|
Be more descriptive of your problem.
mikobi wrote: When I copy the exe file it don't start.
That doesn't help anyone help you at all.
"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
|
|
|
|
|
I need to run my program at another PC, When I copy the exe file there, and I run it, It does not start.
The error message is, the program can not start the configuration is wrong.
What to do
|
|
|
|
|
|
Dear Sir,
I need to capture only decimal number in my TextBox field on my form, how can I control that ?
|
|
|
|
|
void OnKeyPress(System::Windows::Forms::KeyPressEventArgs^ e)override
{
if((e->KeyChar=='.'))
{
if(this->Text->Contains("."))
e->Handled = true;
}
if(!(wchar_t::IsDigit(e->KeyChar) || wchar_t::IsControl(e->KeyChar)))
e->Handled = true;
}
Nigah M Manzoor
|
|
|
|
|
Thanks for your help but the decimal point is not accepted.
What to do
|
|
|
|
|
If I do this, I obtain what I need:
void OnKeyPress(System::Windows::Forms::KeyPressEventArgs^ e)override
{
if(!(wchar_t::IsDigit(e->KeyChar) || wchar_t::IsControl(e->KeyChar) ||(e->KeyChar=='.')))
e->Handled = true;
}
Thanks for you support
|
|
|
|
|
Hi, I'm using Visual Studio 2005 C++/CLI. I would like to access an array of structures using the for each construct. Is this possible?
Buck
|
|
|
|
|
ref struct TestStruct
{
int i;
};
array<teststruct^> ^teststructarray = gcnew array<teststruct^>(20);
for (int i = 0; i < 20; i++)
teststructarray[i] = gcnew TestStruct();
for each (TestStruct ^teststruct in teststructarray)
{
teststruct->i = 42;
}
value struct TestValStruct
{
int i;
};
array<testvalstruct> ^testvalstructarray = gcnew array<testvalstruct>(20);
for each (TestValStruct %testvalstruct in testvalstructarray)
{
testvalstruct.i = 42;
}
That's better
Mark Salsbery
Microsoft MVP - Visual C++
modified on Tuesday, July 1, 2008 8:08 PM
|
|
|
|
|
BuckBrown wrote: Is this possible?
Yes. Try it!
|
|
|
|
|
for each(myStruct in myStructArray)
{
//code segments
}
Nigah M Manzoor
|
|
|
|
|
Can some one please point to a sample CLR project developed using VC++ .net 3.5 framework. Or a book which describes on creating projects in vs 2008.
Thanks
|
|
|
|
|
Everything you need to know is this (for VS 2008):
File -> New -> Project then look for Windows Form Application
click to Form1.h, you can see Form1.h [Design] and you can place some components from Toolbox there. In Properties are the characters of components.
|
|
|
|
|
Xaria wrote: Can some one please point to a sample CLR project developed using VC++ .net 3.5 framework.
Well I have not installed VS2008 yet but VS2005 and all the way back to like VC6 came with samples in the Installation. Take a look in your Programs Files/<VS install folder> etc., they may already be there, if not run the Installer and look for Samples as an option and install them.
led mike
|
|
|
|
|
Xaria wrote: Or a book which describes on creating projects in vs 2008.
Here's my short book on creating a CLR project in VS2008:
1) Start VS
2) From the file menu, choose New/Project...
3) In the New Project dialog, select .NET Framework 3.5 with the drop-button on the upper right.
4) Select Visual C++/CLR in the Project Types tree
5) Select a template in the Templates list
6) Give the project a name and location in the appropriate dialog fields, creating a solution if necessary
7) Click OK
8) Open the solution explorer window (View menu/Solution Explorer)
9) Right click the new project in the solution explorer and click Rebuild
You should now have a working sample CLR project developed using VC++ .net 3.5 framework.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Wow, I just saw this. Do you have a short book on toilet training also?
I mean if someone needs those instructions they have no reason to launch Visual Studio to start with.
led mike
|
|
|
|
|
|
Hi. I'm using Visual Studio 2005 C++/CLI. I have setup my application to print a document (basically the screen). I had to set the e-Graphics->PageScale = 0.85 to get the screen to fit the page, but I need to have every page be of Landscape orientation. I have tried this->printDocument->PrinterSettings->DefaultPageSettings->Landscape = true and this->printDialog->PrinterSettings->DefaultPageSettings->Landscape = true (and some slight variations) but the document is always printed as set in the print dialog (which defaults to Landscape - Portrait). Is it because there are more than one printer on our network? Do I have to read the array list of InstalledPrinters and determine which one I am using and change the orientation that way?
Thanks,
Buck
|
|
|
|
|
Answer to my own question. It is this->printDocument->DefaultPageSettings->Landscape = true before calling the printDialog->ShowDialog();
|
|
|
|
|
Dear All,
I am developing an application for decoding MPEG streams using DirectShow in VC++ Windows Application forms. Now I have connected all the pins of the filters after creating the graph. I want to run the graph, when I call pControl->Run(), a movie window will be created automatically and plays the movie. Instead of playing in automatically created window, I want to play the movie in the window created by me, bcoz I need to specify the size of the window and to have the full control of the playing window.
I have tried this in MFC and it is working fine by creating my own class and inheriting the CWnd class and using the CreateEX method to create the window. The problem is I dont know how to create the same window using VC++ Windows forms application. Please kindly advice.
Many thanks in advance.
|
|
|
|
|
bhanu_8509 wrote: The problem is I dont know how to create the same window using VC++ Windows forms application.
Maybe the NativeWindow Class[^] will help...
May be some useful info here too:
Interop (How Do I in Visual C++)[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|