Posts
 
Reputation
Joined
Last Seen
Ranked #963
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
86% Quality Score
Upvotes Received
7
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
5 Commented Posts
~49.3K People Reached
About Me

"Me in a Nutshell"---- Oops don't fit!!
I love everything what I do and I do almost everything which I love!!

@Prateek

Favorite Tags
Member Avatar for vedmack

Does it happens with all the Windows or with any specefic Window ? Are you trying to hide any window which you have created or any other applciaiton's Window ?

Member Avatar for Gustav_1
0
10K
Member Avatar for OmniX

how about trying this [code] #include <Windows.h> BOOL MySystemShutdown() { HANDLE hToken; TOKEN_PRIVILEGES tkp; // Get a token for this process. if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) return( FALSE ); // Get the LUID for the shutdown privilege. LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid); tkp.PrivilegeCount = 1; // one privilege to set tkp.Privileges[0].Attributes …

Member Avatar for Alex_34
0
2K
Member Avatar for _Nestor

[URL="http://msdn.microsoft.com/en-us/library/ms644927(VS.85).aspx"]About Messages and Message Queues [/URL] This talks about everything. Please let us know if you have any question.

Member Avatar for shinejos
0
376
Member Avatar for jobs

[QUOTE]Have I got this right so far? With that file pointer I would be able to write to file within those functions. [/QUOTE] It clearly indicates you have done things right!!

Member Avatar for Narue
0
1K
Member Avatar for dubeyprateek

hi everyone, i m messed up with intializer lis. please help me by solving these questions. [QUOTE]How does compiler impliments intializer lits? How intializer lits improve performence? When it is must to use intializer lits? When intializer lits must not be used?[/QUOTE] What is wrong with this pice of code.. …

Member Avatar for NaveenGowdar
0
213
Member Avatar for dumrat

You reminded me one of my interviews (that did not go that well :) ). Yes this is how you need to do it.

Member Avatar for jyh5
0
129
Member Avatar for dubeyprateek

[B][COLOR="Red"]Introduction[/COLOR][/B] There are many times when we try to create a binary search tree of many different data types. This article explains creation of a template library CTree. template <class T>class CTree can be used to create a binary search tree (BST) of any data type. [B][COLOR="red"]Features[/COLOR][/B] This class support …

0
154
Member Avatar for BHUJI

u can think of writing a projectof file management include these funtion search files relocate them delete them hope it will not be too difficult.

Member Avatar for tux4life
0
266
Member Avatar for anitha joe
Member Avatar for cruisx

[code=cplusplus] int DisplayMessageBox() { int msgboxID = MessageBox( NULL, (LPCWSTR)L"Sample", Cap, MB_YESNOCANCEL ); switch (msgboxID) { case IDCANCEL: // TODO: add code break; case IDYES: // TODO: add code break; case IDNO: // TODO: add code break; } return msgboxID; } [/code]

Member Avatar for dubeyprateek
0
176
Member Avatar for Usura

See this [url]http://www.codeproject.com/KB/cpp/Colored_Conslole_Messages.aspx[/url]

Member Avatar for dubeyprateek
0
103
Member Avatar for Comatose
Member Avatar for ProgrammersTalk
Member Avatar for amarie

hi, try with thi code. i suggest to look carefully at changes made and try to sortout reason behind changes. [CODE] #include<iostream> using namespace std; void sortit(int x[], int n) { int temp,i,j; for(i=0;i<n;i++) for(j=i;j<n;j++) if(x[i]>x[j]) { temp=x[i]; x[i]=x[j]; x[j]=temp; } } bool bsearch(int x[], int max, int searchnum, int …

Member Avatar for Freaky_Chris
0
173
Member Avatar for nanodano

[QUOTE=nanodano]I'm writing a Win32 application for Windows XP with Visual Studio 2005. It is a console program, and I'm trying to find the HWND attribute of my console. I need this because I need to use it as a parameter for a function. So, thanks to the MSDN library I …

Member Avatar for lenhattien
0
519
Member Avatar for need_Direction

Methods do not belong to an object, they belong to class. >>I wanna ask, can we call the “treatingStaff()” [U]method of “treatmentB”[/U] from the “treat()” method of “treatmentA”? This is a wrong question. "method of “treatmentB" does not mean anything. Any member function of a class can be called from …

Member Avatar for mitrmkar
0
145
Member Avatar for tlly

In addition to wat Narue said... Given an instance of class C, there is a B subobject and an A subobject. The instance of C, including the A and B subobjects, is the "complete object." Using run-time type information, it is possible to check whether a pointer actually points to …

Member Avatar for Ancient Dragon
0
351
Member Avatar for jbd
Member Avatar for jov0708
Member Avatar for jov0708
0
497
Member Avatar for Majestics

If you are targetting Windows.You will need to have Windows SDK to build your application. Windpws SDK comes with all the required header files. You can download the letest SDK from [url]http://www.microsoft.com/downloads/details.aspx?familyid=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en[/url]

Member Avatar for Nick Evan
0
121
Member Avatar for abrou

How long did you wait after the hung? Does it hang your machine? What is the .NET framework you are using? It takes longer if you have installed new version of framework sometimes as long as five minutes, subsequent builds will be faster.

Member Avatar for abrou
0
114
Member Avatar for shaikh_mshariq

Hello Jason, Simply speaking you cannot execute any application on a remote machine. There are many problems doing this. Apart from the implementation limitations there are some major security risks. However, you can use a utility called PSEXEC([url]http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx[/url]) to do this. It internally installs a service on the remote computer …

Member Avatar for shaikh_mshariq
0
262
Member Avatar for Seakros

How this problem is related with C++? Install letest update and try to repair it.

Member Avatar for caperjack
0
187
Member Avatar for NEUTRON
Member Avatar for FoX_

Are you trying to write a balanced binary tree?? You should explore how AVL trees work.

Member Avatar for VernonDozier
0
154
Member Avatar for rajatC

@rajatC your question is not clear. Do you want to redirct standered output? You can use [URL="http://msdn2.microsoft.com/en-us/library/aa363858.aspx"]CreateFile [/URL]API to open the file. However, keep [URL="http://msdn2.microsoft.com/en-us/library/aa364399(VS.85).aspx"]this[/URL] in mind, and make sure there is no sharing violation.

Member Avatar for rajatC
0
166
Member Avatar for guitarrick

What is the error? Linking errors are different than syntactical error one can't find them looking at the code.

Member Avatar for guitarrick
0
77
Member Avatar for obscured47

@obscured47 You can do anything once you catch the exception. Why do you want to throw an exception to pause the execution? There could be better ways to do that. Can you post small segemt of your code and let us know the behaviour you are expecting ?

Member Avatar for obscured47
0
150
Member Avatar for Srynx

Simplest is call main from every function you call in switch ex [code] void opcio1(){ cout <<"How to\n\n"<<endl; main(); } [/code] However, this is not the best way, but I am sure it will give another idea of implimenting menu in a function.

Member Avatar for CPLUSCPLUS
0
668
Member Avatar for Max_Payne

@Max_Payne You can not initialize arrays the way you are trying. However, you have exposed a good problem. [B]How to initialize a constant string inside a class?[/B] I have been facing these kinds of problems during my carrier and every time I implement a work around which suits to my …

Member Avatar for Narue
0
272