|
I mentioned command line parameters in another reply to your question.
Here's an example for a simple .NET test app. Maybe you can extract what's missing from yours.
/AI "D:\Source_Test\Debug" /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MTd /GS /G
R /Yu"stdafx.h" /Fp"Debug/TestDotNet.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /nologo /c /Zi /clr
/TP /FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\mscorlib.dll" /FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\System.dll" /FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
Your build environment needs to be set up correctly as well:
Setting the Path and Environment Variables for Command-Line Builds[^]
Building on the Command Line[^]
Mark
Great job, team. Head back to base for debriefing and cocktails.
|
|
|
|
|
What are you including
Dont dare sanjay
or get out of my shop
|
|
|
|
|
I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax.So please help me out by providing some important link or book name or some example,so that it would help me.
Thanks & Regards
Pankaj
|
|
|
|
|
pan_angel wrote: I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax.
ROTFL. This is wrong on so many levels.
1 - this is not the C++ forum
2 - you want to convert FORTRAN, but you don't know it ?
3 - Google doesn't work where you live ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
then you should be fired...simple as that. There's no way that you should be taking on a project to convert FORTRAN code to ANYTHING if you don't know FORTRAN. I bet you also got an MCSD by visiting a brain dump site too, huh?
(Nyquist_Rate || ! Nyquist_Rate)
{
Console.WriteLine("That is the question");
}//Go Colts.
|
|
|
|
|
I m trying to refresh ListBox when i m adding Items in a for loop.
List box freshed after comliting loop.
My code is here
for(int i=1;i<=100;i+=1) //Loop
{
if(i%10==0)
{
SendDlgItemMessage(IDC_LIST3, LB_INSERTSTRING, (WPARAM) -1, (LPARAM) _T("HP Laser Jet 5000 Series PCL 6")); //Adding String in ListBox
}
}
Repply Please
Pankaj Jain
|
|
|
|
|
Why you want costly refreshing in this case? Any way it will not take much time to complete the loop.
You can consider using WM_SETREDRAW for refreshing list box.
You should ask such question in VC++[^] forum. As there is nothing specific to CLI in this question.
|
|
|
|
|
Thanks Prasad!
for ur reply, but there is no effect after modifying my code
for(int i=1;i<=100;i+=1) //Loop
{
if(i%10==0)
{
SendDlgItemMessage(IDC_LIST3, LB_INSERTSTRING, (WPARAM) -1, (LPARAM) _T("HP Laser Jet 5000 Series PCL 6")); //Adding String in ListBox
SendDlgItemMessage(IDC_LIST3, WM_SETREDRAW , 1, 1);//Code is added here
}
}
Acually i want to add in listbox with the progresbar so I need to refresh listbox to show simulteneous progress, If u hv any other idea please share with me. I will take care about ur suggession in future.
Thanks
Pankaj Jain
|
|
|
|
|
PK Jain wrote: Acually i want to add in listbox with the progresbar so I need to refresh listbox to show simulteneous progress
Consider using thread for this.
You can get lot of example related to this on CP.
|
|
|
|
|
String used in C++/CLI programs which are set to use Unicode character sets need not be prefixed with L. Is this an optional feature or is there something more to it?
One thing that came to my notice is
String^ fileName = "primary" + '.' + "extn";
and
String^ fileName = "primary" + L'.' + "extn";
gave different results.
So prefixing the dot with L, tells the compiler not to convert to integer.
« Superman »
|
|
|
|
|
Conversion from char to int is implicit in C++. In .NET, having a string and an int concatenated, automatically calls ToString on the int. so, C++ is turning your char to an int, and then .NET is trying to be helpful and turning that number into it's string representation.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OK... Got that.
For strings is the L prefix optional?
« Superman »
|
|
|
|
|
The ‘L’ prefix tells the complier to convert the [single byte] character sting into wide characters and is not optional, if the string type is expecting wide characters.
Standard C++ examples:
std::string = “char - string”;
std::wstring = L”wchar_t – string”; // ‘L’ prefix required
char* pStr = “char - string”;
wchar_t* pStr = L”wchar_t – string”; // ‘L’ prefix required
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Thanks for the clarification.
But I couldn't figure out how this works -
MessageBox::Show("Contents", L"Title");
The character set I'm using for the project is Unicode.
You will notice that one parameter is with the 'L' prefix and the other is without it.
So I'm guessing that the unicode version of Show is used and the 'L' prefix is optional.
« Superman »
|
|
|
|
|
I have been away.
From what little I have seen you appear to be using VC++ 2005, which I do not have. Therefore I can not test if this would even compile on that version of the compiler.
The example you provided should generate errors, no matter what character set you are using. You can not mix Unicode and Multi-byte strings in a single function call, the function takes one or the other type, but not both.
The only way this could work is if the compiler converted one of the strings, which it should not be doing, or the library provided functions that take mixed string argument types, which I have never seen before. In both these cases, MS would be doing something it should not be doing.
Sorry I could not be of more help, all I know for sure is that the ‘L’ prefix is not optional and must be used to tell the compiler to convert the string to Unicode.
Good Luck!
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Kindly help me regarding this.
Thanks in advance.
Bawa
|
|
|
|
|
Look for /stack option.
This question is not related to CLI, should have asked in VC++[^] forum.
|
|
|
|
|
write a program that reads in the average monthly rainfall for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. the program then prints out a nicely formatted table showing the rainfall for each of the previous 12 months as well as how much above or below average the rainfall was for each month. the average monthly rainfall is given for the months january, february and so forth, in order. to obtain the actual rainfall for the previous 12 months, the program first asks what the current month is and then asks for the rainfall figures for the previous 12 months. the output should correctly label months
|
|
|
|
|
From Jamaica eh?
I tell ya what...fly me and a friend over, put us up and pay for tickets to the cricket world cup and Ill do all your homework
System.IO.Path.IsPathRooted() does not behave as I would expect
|
|
|
|
|
Come on !
Try some thing yourself, if needed help, then ask for it. Don't ask to write assignment for you.
|
|
|
|
|
Your homework is in C++/CLI ? Either way, we're not going to do it for you, but it seems likely that you've posted it in the wrong spot.
We are here to help, we are not here to do your work for you. Try to do your homework, find the right forum, and ask specific questions if you get stuck. Refer first to your textbooks, the fact is, your teacher will have given you everything you need to complete this assignment ( and if they have any idea, they will be watching these forums ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Can anyone give me a link to sources on the web or hints on how to write a program the will add and option to program window that minimize it to system tray? I want to do something simular to http://www.actualtools.com/windowmenu/ but only I only want to add a button to all application windows that will allow me to minimize it to system tray. For instance, if I startup Outlook it will automatically have this "minimize to system tray" added button it. If I run any application it will automatically have this "minimize to system tray" button added to it.
Thanks,
|
|
|
|
|
you want to do this using .NET ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes, that would be great!
Thanks
|
|
|
|
|
Hi, here is a code example to do that in visual c++
it was done by my teacher.
http://www.fi.uba.ar/materias/7542/herramientas.php?i=trayicon
bye
Andres Giachini - Software Developer
|
|
|
|