|
foolygoofy26 wrote:
what is the code to make a string all to upper case.
If you are using c++/cli (managed), then use String::ToUpper();
ex:
String ^test = gcnew String ("Upper Sentence");
test = test->ToUpper();
output: UPPER SENTENCE
|
|
|
|
|
hi,
i got an .NET web application using C#,
that app talks to a C++ DLL that is using DAO,
when the first line get executed it throw an exception
, it only executes this line
CDaoWorkspace workspace;<br />
workspace.Open();
does any body have a clew, I know its not recommended to use DAO in any multithreaded application even on the desktop, but this is an legacy application and I want the minimum modification.
Thanks
Lakani
|
|
|
|
|
Hi All,
Could someone explain the steps to
expose my C++/CLI dll to VBA?
Thank you,
Paul
|
|
|
|
|
Hi!
I have three very simple questions:
How can I set the console screen's size?
And how can I set it so that it is maximized immediatly?
And how can I keep the user from re-sizing the console screen?
Thanks in advance!
Peter
ERROR
Keyboard not found. Press any key to continue.
"Which one is the any key?" - Homer Simpson
|
|
|
|
|
Which .Net Framework you are using?
|
|
|
|
|
Well, what I'm talking about is the standard DOS console
which is used for standard C/C++ output.
Go blame those who didn't give standard C/C++ a message board of its own,
but I still do need to post my question somewhere.
Anyways, I hope you can help!
Peter
|
|
|
|
|
This post can go to the Visual C++ Forum since Visual C++ is Microsoft version of the ISO C++ standard. C++/CLI refers to another standard and has its own syntax and framework.
|
|
|
|
|
That's odd since my questions regarding standard C++
were always rejected at the Visual C++ board...
But I'll give it a go anyway.
Regards
|
|
|
|
|
Actually, if you are working in Windows with C++, it would actually be a Win32 question (Operating system specific).
|
|
|
|
|
I'm now a time work with C++, but now I wil work with color.
as so:
color(int X,int Y, int Red, int Green, int Blue);
great,
marc
|
|
|
|
|
What is your question ? Is it a C++/CLI question, or a C++ question ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It is a C++ question.
and the question is: "is it possible to make a function that gen use as:
color(int X, int Y, Int Red, int green, int bleu);
X = 0 to 600 //width
Y = 0 to 800 // height
Red, green and bleu = 0 to 255 //color
Is some header-file that I can use?
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
Err... And what is the question precisely ? You want to display a pixel at the specified location (X and Y) to the specified color (Red, Green, Blue) ? Then, it will depend strongly of what kind of application you use. Is it a plain console application or a Win32 application (with the MFC or not).
Please be more specific when asking questions.
|
|
|
|
|
I use win32 application, that looks like MS DOS.
“And what is the question precisely ? You want to display a pixel at the specified location (X and Y) to the specified color (Red, Green, Blue) ?” and this is right.
I’m searching for a include that I can use for that.
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
marc1990 wrote: I use win32 application, that looks like MS DOS.
That makes non-sense. It is either a windows application or a console application. But there is no such thing as a win32 app that lookds like MS DOS. Maybe you are mixing things and in fact you are simply doing a console app (and you get confused by the fact that you are developping on windows but it has nothing to do). How does your main function look like ? Is it main or WinMain ?
Anyway, if you are programming in console, I don't think there is way for doing what you are looking for. I think (but I'm not sure) the only way to go for that is to use a graphical library, such as DirectX or OpenGL, but they are rather difficult to use.
Maybe if you explain us clearly what you try to achieve, we can find a better solution.
|
|
|
|
|
II'm use main.
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
So it's a console app and not a win32 app. And you can't do that in such a console app.
But you didn't explain what you really want to achieve (description of why you want to display a pixel in a certain color). I'm sure there is better solution for you.
|
|
|
|
|
I’m will pixel by pixel a color on the screen print. With this command:
Color(int X,int Y, int RED, int GREEN, int BLUE);
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
Geez, I know that you want to color a pixel on the screen... But why do you want to do that ? What is the ultimate purpose of doing that ? I mean what do you want to do with you application ?
I'm trying to help you by knowing what you want to achieve so I can advise you a better solution. Explain clearly what you are trying to do (I mean, no in one line...). Be as complete as possible.
What you are trying to do is not possible in a console application (without specific graphical libraries).
|
|
|
|
|
I'm will Preview a image-file that i write self.
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
And can't you use a windows application for that ? That will be much more easier. And by the way, you will never display your image pixel by pixel yourself, this is low-level and is managed through specialized libraries. Really, try to look at the MFC (Microsoft Fundation Classes).
Simply it is not possible to do that in a console application.
|
|
|
|
|
Can't be done, you can only put text in a console app.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
OO, now thanks for the help
Great,
Marc
1 day, 24 hours, 1440 minutes, 86400 seconden and then start the next day.
|
|
|
|
|
One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below
1/1 1/2 1/3 1/4 1/5 ....
2/1 2/2 2/3 2/4
3/1 3/2 3/3
4/1 4/2
5/1
In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on.
INPUT AND OUTPUT
You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number.
Th einput list contains a single number per line and will be terminated by the end of -file.
SAMPLE INPUT
3
14
7
SAMPLE OUTPUT
TERM 3 is 2/1
TERM 14 is 2/4
Term 7 is 1/4
Lov u all
|
|
|
|
|
You probably won't get any help with your programming assignment because we only answer specific questions. If you show us where you are having a problem, we will be glad to help.
|
|
|
|