Posts
 
Reputation
Joined
Last Seen
Ranked #972
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
~50.1K People Reached
Favorite Tags

112 Posted Topics

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
379
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
216
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
133
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
163
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
270
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
178
Member Avatar for Usura

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

Member Avatar for dubeyprateek
0
105
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
176
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
535
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
146
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
358
Member Avatar for jbd
Member Avatar for jov0708
Member Avatar for jov0708
0
510
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
123
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
118
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
274
Member Avatar for Seakros

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

Member Avatar for caperjack
0
190
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
156
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
170
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
81
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
155
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
672
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
274
Member Avatar for sivaslieko++

@sivaslieko++ is it the 'if' not working or your logic is not working? One unfortunate thing associated with computer is, it does not work the way you want it to work it works the way it should work!! :) I am a victim !! :D

Member Avatar for dubeyprateek
0
204
Member Avatar for cdijuste
Member Avatar for dubeyprateek
0
100
Member Avatar for xeption12

I don’t know how PC Wizard 2008 calculates CPU usage. How does it matters to you that some programs are using high CPU? CPU cannot be idle (it runs idle thread when it is idle!!). Open up the task manager and watch for CPU utilization or use perfmon (type perfmon …

Member Avatar for xeption12
0
152
Member Avatar for carlarolan
Member Avatar for Karkaroff

See this [URL="http://www.daniweb.com/code/snippet491.html"]http://www.daniweb.com/code/snippet491.html[/URL] I wrote it long back.. There are many typos but you can see how do I document header of a function or a file. However, this time your documentation was better than last one that you posted.

Member Avatar for Karkaroff
0
249
Member Avatar for bis student

Once you declare an array you just reserve some amount of memory. This memory contains garbage. if you try to print all values of the array just after delaring it you will see just garbage. See folowing line of code. [CODE] int alpha[50]; int i = 0; for(i=0;<50;++i) { cout<<alpha[i]<<" …

Member Avatar for invisal
0
4K
Member Avatar for enes

You can use Visul Studio breakpoints only if you launch the application in the debugger or if you choose to attach the running the process with the debugger. can you let us know exact steps how are you tring to debug the process.

Member Avatar for dubeyprateek
0
107
Member Avatar for prasath

Every process in Windows NT has one heap called the default heap. The Win32 subsystem uses the default heap for all global and local memory management functions, and the C run-time library uses the default heap for supporting malloc functions. maaloc can fail as it cant allocate memory bigger than …

Member Avatar for dubeyprateek
0
3K
Member Avatar for jobs

@jobs If you just want to start a process [URL="http://msdn2.microsoft.com/en-us/library/ms682425.aspx"]CreteProcess [/URL] or [URL="http://msdn2.microsoft.com/en-us/library/ms682429.aspx"]CreateProcessAsUser[/URL] can help you on Windows. CreateProcessAsUser documentation has one example as well. However, I am sure you can complicate this question up to a great extent.

Member Avatar for Salem
0
242
Member Avatar for sa-al

There is no way (at least in C and C++) you can input a mathematical expression in the form of mathematical expression. You can only input a string and convert it to mathematical expression and do the calculation.

Member Avatar for ssharish2005
0
89
Member Avatar for zawpai

Only solution is send small chunks of data, as big as you can keep in your buffer. Prepare a queue at sending side(client side) send data to your hardware(server) only from that queue. Hardware is the limiting factor. Your application has to work with the limitations imposed by the hardware.

Member Avatar for ssharish2005
0
118
Member Avatar for n.aggel

call_vec is a array of pointer to functions which pass void and return int. PUBLIC _PROTOTYPE should be some typedef.

Member Avatar for n.aggel
0
104
Member Avatar for Jishnu
Member Avatar for Jishnu
0
356
Member Avatar for phalaris_trip

@phalaris_trip You can not do this. [CODE] void LoadFile (std::string filename, std::string key=filename) { //blah } [/CODE] default parameter should be known to the compiler while compilation. Yor second option is not bad, however it defeats the purpose of default parameter. You are modifying it before you use it! You …

Member Avatar for phalaris_trip
0
117
Member Avatar for toko

This is a classic example of Encapsulation in C++. You hide data and code by using access modifiers private and protected. If you don’t explicitly write an access modifier, by default it is private for class and public for structure in C++.

Member Avatar for Max_Payne
0
105
Member Avatar for kv79

>>How to make win32 app with login? What login you are targeting? Domain login ? there is a well-known API in user used for login in domain "LogonUser" ([URL="http://msdn2.microsoft.com/en-us/library/aa378184.aspx"]http://msdn2.microsoft.com/en-us/library/aa378184.aspx[/URL]) Trust me this is the most difficult API to learn and implement I have seen in my carrier!! (I may not …

Member Avatar for dubeyprateek
0
91
Member Avatar for daino

[QUOTE=danny2000;497423]Hi I'm wondering why you would learn C++ for use in finance when you can do so many calculations on an excel spreadsheet and use VBA. I am not an expert on either though could someone tell me why C++ is better and if not why excel and VBA is …

Member Avatar for dubeyprateek
0
234
Member Avatar for naveed.pasha

I can’t say if you can design anything platform independent here. You have to call core APIs that too of kernel level. May be you want something like filter driver. Intrusion are 99% not platform independent in fact they are very very platform dependent, solution has to be platform dependent. …

Member Avatar for Salem
0
586
Member Avatar for Blondeamon

Try this..! Your code had one logical error. Can you tell me what was that ? :) [CODE=c++] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; //the struct which represents the node struct tnode { struct tnode *left, *right; int key; }; void InOrder( tnode *x ) { if …

Member Avatar for Blondeamon
0
98
Member Avatar for djJonno

It is not calling distructor, you are passing object by value therefore you do not see the change in values of the passed object. Declare the member function as [CODE]bool IsSubset(Multiset &MSet2Check);[/CODE] [CODE] //Multiset object passed in to this method,original gets destroyed!! bool Multiset::IsSubset(Multiset &MSet2Check){ int i=0,j=0; bool FoundInInner = …

Member Avatar for djJonno
0
381

The End.