|
Hi Matthew,
Thanks for the reply.
I should be dumb .I forgot the thing." Assignment of result"
Any way thanks for your time
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Yuo are calling the WriteLine method of Console which is not an:
Laddie wrote: assignment,call,increment, decrement, and new object expressions
Try:
if (x > y)
{
Console.WriteLine("x is greater");
}
else
{
Console.WriteLine("y is greater");
}
You always pass failure on the way to success.
|
|
|
|
|
Can I create a subform in C#
In other words, can I put a form as a control on another form (like MS Access)
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Hi,
yes.
a form of the same app is easy: see the Form.TopLevel property.
a toplevel window of another process is more difficult; I don't recall the details; you'll need
the window handle and call some win32 function. It has been discussed on one of the CP forums
some days ago.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
|
Hi all
I'm stuck with a problem. I need to open video clips in my project, cut several clips from that video, and then encode those clips back to one video.
Opening and playing only those selected clips as part of the original I've figured out, but how do you output that back to an video clip.
Thanx
|
|
|
|
|
You can't do this natively in .NET, you will have to rely on third party SDKs.
Possibly consult the Windows Media Player SDK, Direct X SDK, or google for a SDK.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi,
Can anyone help me on how to drag and drop an or value from one datalist to another
in WEB application. Most of the example are in Windows Application which has mouseup,mouse_startdrag event.
If you have any link please let me know.
Thanks
Dabuskol
Dabsukol
|
|
|
|
|
Hey
This needs doing client side, google AJAX drag and drop or AJAX datagrid drag and drop and see what it says.
Hope thats of some use.
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Good Day,
I have a ListView and I want to display a message box when an item is added.
Is there an EVENT that is being triggered when an item is added into the ListView?
Thanks!
|
|
|
|
|
No there is no event for that.
But it can be done. For example derive from the ListView and define an IBindingList[^]member to create a data bound listview. After that respond to the IBindingList.ListChanged event.
Also there is an article here[^] that discuses something similar.
Hope it helps!
|
|
|
|
|
Hi there,
is there a table control can be used in C# form in order to contain data I put during run time ( not data base table)
I need the table to organize the output ( which is some calculations performed by the application,
I read somewhere that there is a table control but must be added and referenced (dll), but I do not how!!
help is appreciated
thanks in advance
There is always something to learn
|
|
|
|
|
[edit: misread table control for tab control]
Their is a table control which can either be a listview with detail view or the grid control. They are both included in the standard System.Windows.Forms namespace.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hello all,
We are going to start a migration project, i,e from C++ to C#, i do not have any idea on C++ absoultely, there would be many problems while converting pointers, Multiple inheritance in C++ and etc, could anyone help me in providing some information about the issues in converting the C++ code to C# code?
modified on Sunday, April 13, 2008 12:59 AM
|
|
|
|
|
if you want to have a clean result of the C# version, i don't think it can be done the way you have imagined, by converting the pointer, multiple inheritance and so on.
you have to understand first the whole idea what is in the program you want to convert in C++ version, and then redesign it in C# version. but unfortunately for you, you have to understand first the C++ version.
|
|
|
|
|
sreecahitu wrote: We are going to start a migration project, i,e from C++ to C#, i do not have any idea on C++ absoultely
How can you possibly undertake this work if you don't understand C++? Do you seriously expect to gain an understanding of such a complex language from a single forum post?
Your company has serious problems if people are assigned to projects that they don't have the technical skills for.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
pmarfleet wrote: Your company has serious problems if people are assigned to projects that they don't have the technical skills for.
That's how it's done nowadays, have you not noticed ?
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 )
|
|
|
|
|
We produce a product which assists with this (named very creatively as 'C++ to C# Converter'), however as the others have noted it is futile to attempt this if you don't already have a very good grasp of C++. A converter helps with the grunt work, but the most complex aspects of conversion are the areas that often need some manual adjustments and if you don't know C++ you'll have great difficulty ensuring that the original functionality is preserved. Also, some C++ code simply cannot be converted to C#.
David Anton
http://www.tangiblesoftwaresolutions.com
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB, C#, or Java to C++/CLI
Java to VB & C# Converter: convert Java to VB or C#
|
|
|
|
|
Dear Guy
i have one suggestion for this, y u need convert ur project to C#?.C# have great feature p/Invoke.So uc an invoke in ur c++ dll function within C#. don't need convert to ur code , create unmanaged dll, then call in c# code with P/Invoke.
|
|
|
|
|
I'm reading a text file using a stream read and my code goes like this
<br />
FileStream file = new FileStream("c:/data/theData.txt", FileMode.Open, FileAccess.Read);<br />
StreamReader streamReader = new StreamReader(file);<br />
<br />
String line = streamReader.ReadLine();<br />
<br />
while (line != "")<br />
{<br />
if (line.Equals("<data>"))<br />
{<br />
.....
}<br />
<br />
line = streamReader.ReadLine();<br />
}</data>
the problem is that whenever i run my program, this error occurs on runtime:
"Object reference not set to an instance of an object" and it's pointing at the
"if(line.Equals(""))"... what's wrong? i used to do this in java and it works..
|
|
|
|
|
Silvyster wrote: while (line != "")
{
// check the value of the line
if (line.Equals(""))
Why are you checking it both ways ? What happens if you step through the code ? Why are you using .Equals ?
File.ReadAllLines is the easiest way to get your file as an array of strings.
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 )
|
|
|
|
|
Silvyster wrote: streamReader.ReadLine();
As the documentatio states:
"
Return Value
The next line from the input stream, or a null reference (Nothing in Visual Basic) if the end of the input stream is reached.
"
Ordinarily, reading through a text file and doing something with the non-empty lines would be written as:
String line ;
while ( ( line = streamReader.ReadLine() ) != null )
{
if ( line.Length == 0 ) continue ;
.....
}
|
|
|
|
|
Thank you this time it worked... I wonder why that first guy who replied keeps on asking why I do this and do that, why does he care?, it's MY PROGRAM.. and I WANT IT THIISS WAYYY... nobody can stop my creativity
|
|
|
|
|
Thanks.
Silvyster wrote: keeps on asking why
Because you should be able to read the documentation to determine what the problem is.
Silvyster wrote: it's MY PROGRAM.. and I WANT IT THIISS WAYYY
But your way didn't work very well, did it?
|
|
|
|
|
yeah the documentation is like a lot of pages and I believe this website makes things for programmers to learn easier and better. yeah my program didn't work but at least the way you modified it, makes sense. I mean THAT other guy is already giving me alternatives, BUT I dont want alternatives, I want SOLUTIONS
|
|
|
|