Search Results

Showing results 1 to 40 of 63
Search took 0.01 seconds.
Search: Posts Made By: OmniX ; Forum: C++ and child forums
Forum: C++ Mar 21st, 2009
Replies: 38
Views: 3,293
Posted By OmniX
mitrmkar - Red bar while compiling on line:

if(!ExitWindowsEx(EWX_POWEROFF, SHTDN_REASON_MAJOR_OTHER|SHTDN_REASON_MINOR_OTHER))


I think it is the compiler?
Anyone else using...
Forum: C++ Mar 21st, 2009
Replies: 38
Views: 3,293
Posted By OmniX
I am administrator, so... lol

Ancient Dragon did u use C++ code for that line of code or just run it in cmd? cause my cmd works fine cant get anything working through C++.
Forum: C++ Mar 20th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
Posted what just happened but then shouldnt I not be able to run shutdown.exe if i didnt have the required access?

I really think this is a vista problem? Anyone else using vista?
Forum: C++ Mar 20th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
jbennet - The ExitWindowsEx() wont work in vista?

dubeyprateek - You just thrown the MSDN example into a function so it runs? Ill check if this works but it sorta cheating but I guess this is...
Forum: C++ Mar 20th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
Tried to implement your code mitrmkar but still no avial.
I am using codeblocks and it worked for several other previous projects but havent used it in 6 months.

Thanks NicAx64, ill keep that...
Forum: C++ Mar 20th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
Ya they were just my attemps nothing works, this is my whole code below.
I am assuming that my ExitWindowsEx line is fine? (Whoops my internet is lagging didnt see ur second line)
Am I missing...
Forum: C++ Mar 20th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
Ok thankyou Chris for that abusive and useless post. (If I didnt need help I wouldnt have posted)

If someone can give me an example using ExitWindowsEx(), like power_computer tried to give me one...
Forum: C++ Mar 20th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
It is "shutdown" no space but even then didnt work, are you 100% sure it worked with yours?
Forum: C++ Mar 19th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
Im a newb to C++, what paramters need to be used with the functions and do they require an include file? possible small example?

Thanks, Regards X
Forum: C++ Mar 19th, 2009
Replies: 38
Views: 3,293
Posted By OmniX
I know the dos command is "shutdown" then with your parameters of "-s -t xxx" etc.

Anyways so "How to shutdown your computer using C++?"

Thanks, Regards X
Forum: C++ Aug 28th, 2008
Replies: 6
Views: 1,752
Posted By OmniX
Nice link but, if learnt how to be used I can make a more graphic friendly GUI.

Do you have any ideas how to use it?

The code the show I just copy and paste into C++ and the lib file I copy to...
Forum: C++ Aug 25th, 2008
Replies: 12
Views: 6,392
Posted By OmniX
Very sexy work, one of the most helpful and stepful posts I have seen.

Thankyou very much Duoas!!!
Forum: C++ Aug 24th, 2008
Replies: 12
Views: 6,392
Posted By OmniX
Sorry about the pain but possible step by step for code::blocks plz?

I tried making an empty file and naming it *.rc and then add files but everything time i click does nothing.
Forum: C++ Aug 23rd, 2008
Replies: 12
Views: 6,392
Posted By OmniX
I am using code blocks, is it possible to change the icon in that for the exe?

Thanks, Regards X
Forum: C++ Aug 22nd, 2008
Replies: 7
Views: 575
Posted By OmniX
Few Questions:

Passing by values(copy of the value) or references(actual value)?
- What is the difference minus the two mentioned?
- What is the better choice?
- etc?

Also this is a more...
Forum: C++ Aug 21st, 2008
Replies: 6
Views: 1,752
Posted By OmniX
Sorry was in a rush previously, I will elaborate now.

He has an example but it is not really clear on what it does.

Ill try break down now and once I get confirmation attempt my own version.
...
Forum: C++ Aug 21st, 2008
Replies: 6
Views: 1,752
Posted By OmniX
Im looking for a microsoft excel example.

I found this here http://www.daniweb.com/forums/thread102795.html
but dosent give a small example of code in work.

What I gathered from the above...
Forum: C++ Aug 21st, 2008
Replies: 7
Views: 876
Posted By OmniX
I found the problem thanks guys for your input.

Helped me found the problem in my code.

Thanks, Regards X
Forum: C++ Aug 21st, 2008
Replies: 7
Views: 876
Posted By OmniX
Sorry was a quick rough draft I have used push_back instead of pushback but I am getting the below output problem.
Forum: C++ Aug 21st, 2008
Replies: 7
Views: 876
Posted By OmniX
vector<string> div;
div.pushback("a");
div.pushback("b");
div.pushback("c");

for(int i= 0; i < div.size(); i++) {
cout << "Letters: " << div[i] << endl;
}
cin.get();
Forum: C++ Aug 21st, 2008
Replies: 10
Views: 1,072
Posted By OmniX
I just read the whole 'thread' abit over whelming but I gathered:



cin.get(); // when no output after

//when output is after
#include <istream>

void ignore_line ( std::istream& in )
Forum: C++ Aug 20th, 2008
Replies: 10
Views: 1,072
Posted By OmniX
Hahahaha

I just pissed myself, im expecting serious input at option 4 and boom ahhh a good laugh.

But on a serious note, I liked option 1 - clear and simple.

Agree, disagree?

On a side...
Forum: C++ Aug 20th, 2008
Replies: 10
Views: 1,072
Posted By OmniX
On the topic of pause, you got one for cls?

Thanks, Regards X
Forum: C++ Aug 20th, 2008
Replies: 10
Views: 1,072
Posted By OmniX
mahlerfive thankyou very much for your help, much appericated.

Regards X
Forum: C++ Aug 20th, 2008
Replies: 10
Views: 1,072
Posted By OmniX
I have variables a, b, c = 1, 2, 3.

I would like to make it a string abc.


int a = 1;
int b = 2;
int c = 3;

string abc = "";
Forum: C++ Jul 24th, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
I would like to say a special thankyou to everyone who has helped me the last 2 weeks.

A special thankyou to niek_e, as without him I would have been lost before started, thankyou so much.
...
Forum: C++ Jul 23rd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
ya I have BUT my problems are:
- nested if statements
- skip code

I really prefer not to use a bool on/off trigger as I had alot of problems before when I did but I guess its a last resort, if...
Forum: C++ Jul 23rd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
*(^#$@#&)$^@#&*($@#^*(&$&#@*($&@#*($^#@)*&$^@#*&$@#^*&$#@^$*&#@^$#@&$^#@*&$^@#&*$#@^&*$#@^*(......

Nice Translation I found the problem...

The goto is stuffing up my function due to not being...
Forum: C++ Jul 23rd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
quick Q before I try go implement it myself:

Why is the stringstream initialized within the forloop instead of outside?

Couldnt compile code:

ERROR:
Vector3.cpp||In function `int main()':|...
Forum: C++ Jul 23rd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
Your examples work perfectly.

When I tried to implement them for my problem, all the code and logic worked minus one (below).


while (getline(ss,buffer,','))
{
//convert...
Forum: C++ Jul 23rd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
Thanks for your patience niek_e.

I will try work something out with the "ugly code" and get back to you.

Thanks Again for your continued help.

Regards, X
Forum: C++ Jul 23rd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
The example is close to perfect for the logic I require BUT it skips the step of assigning individual variables to 1 2 3 4 5 instead its just parts of an array. Everything else works beautifuly.

2...
Forum: C++ Jul 22nd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
The example is close to perfect for the logic I require BUT it skips the step of assigning individual variables to 1 2 3 4 5 instead its just parts of an array. Everything else works beautifuly and...
Forum: C++ Jul 22nd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
Thanks for the example!

Had a quick look and I will try implement it tomo morning!

To answer your question before I go to bed.
"That way you have a nice small code that puts all the integers...
Forum: C++ Jul 22nd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
I made the corrects to my code and it is working now BUT the problem is there coming out 6 0 0 0 0 0 instead of 1 2 3 4 5 6 (I gather the only first number is only be initialized from the below...
Forum: C++ Jul 22nd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
Thankyou, perfect!!!

Now that I have learned how to make a string.

I would now like to learn how to break a string.

So lets break that string up into those individual variables again.

...
Forum: C++ Jul 22nd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
Thanks for the help BUT when I use it more than once it becomes duplicated.

Example:
1 2 3 4 5 6
use the same stringstream variable
1 2 3 4 5 62 3 4 5 6 7

Adds the the new variables ontop of...
Forum: C++ Jul 22nd, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
Ok i have decided to start again and break up my problem into little problems and solves them one by one and eventually and hopefully it is complete working order!!! :)

Ok First Problem:

How do...
Forum: C++ Jul 21st, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
niek_e thanks for the advice.

Its the early the hours of the morning and been trying to fix this the whole day.

I think I will sleep on it and take your advice and try something tomorrow.
...
Forum: C++ Jul 21st, 2008
Replies: 42
Solved: Arrays
Views: 3,083
Posted By OmniX
//int c_same = 0;

//strings
string c_array_temp;
string c_string;
string c_temp;
stringstream c_stringstream;

//vectors
vector<string> c_array;
Showing results 1 to 40 of 63

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC