Posts
 
Reputation
Joined
Last Seen
Ranked #958
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
~48.2K 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

Heya i want to use ShowWindow(hWnd, SW_HIDE); to hide some application, The problem is that the code i wrote works perfectly for any application except the one i need it for heres the code [CODE] HWND hWnd = FindWindow(NULL, sName); if(hWnd) { ShowWindow(hWnd, SW_HIDE); } [/CODE] it does execute the …

Member Avatar for Gustav_1
0
9K
Member Avatar for 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

Member Avatar for Alex_34
0
2K
Member Avatar for _Nestor

I have a question about how the message loop works in a windows application [code] while ( GetMessage(&msg, NULL, 0, 0) ) { TranslateMessage(&msg); DispatchMessage(&msg); } [/code] Does the windows o/s maintain a message queue that the app retrieves a message from the front of then dispatch it bck to …

Member Avatar for shinejos
0
373
Member Avatar for jobs

I have a file pointer which was assigned in main. In the main, I just open a file to write stuff to it. I want to pass the file pointer to several functions so that they can write to the file. In the fucntion declaration I just add: somefunc(FILE *file) …

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
211
Member Avatar for dumrat

I am using multiple threads that are doing work. I need the threads to update an integer once they finish processing. [CODE] //Lock i_Flag++; //Unlock [/CODE] Then [CODE] if(i_Flag == i_ThreadCount) //Do something. [/CODE] My question is whether I need to use locks around i_Flag++ because it is a simple …

Member Avatar for jyh5
0
127
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
141
Member Avatar for BHUJI

Hi guys, I am in great trouble. I want a c++ project within 1 week!!!! But my teacher wants the topic name tomorrow ! pls help me give me some project ideas project should be simple&is in c++ language graphics are not allowed it can be management projects:sad:

Member Avatar for mvmalderen
0
266
Member Avatar for anitha joe

Hello All, I have a C program where I have created a UDP socket and bound to a particular ip address and a port number. As the program proceeds, msgs will be sent to different clients using the [B]same socket, using the same port, but each has a different ip …

Member Avatar for anitha joe
-1
181
Member Avatar for cruisx

hi guys, new to c++ here. So we have a school project due tomorrow, a hangman game of sort and i just wanted to go a bit above the required so i thought i would put in a message box. Now i got the working and all but the thing …

Member Avatar for dubeyprateek
0
173
Member Avatar for Usura

it is possible to change the colour of the font in the terminal by using come sort of code, not sure of the correct term, what im after is like cout << "hello" << endl; and hello would be bold or a different colour, can that be done?

Member Avatar for dubeyprateek
0
101
Member Avatar for Comatose
Member Avatar for ProgrammersTalk
Member Avatar for Ezzaral
0
591
Member Avatar for amarie

HI, everyone. I am having trouble getting the index of the location of the search number to print out. This is my program. Any help would be greatly appreciated! [code]#include<iostream.h> #include<cmath> 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; } } void bsearch(int …

Member Avatar for Freaky_Chris
0
170
Member Avatar for 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
508
Member Avatar for need_Direction

For example we have a class called Treatment. then in that class we have 2 functions that is treat() and treatmentStaff(). Function treatmentStaff() is called from treat(). In main, we create 2 objects for that class, namely Treatment treatmentA, treatmentB; then we assign treatmentA.treatmentStaff(); , treatmentB.treatmentStaff(); I wanna ask, can …

Member Avatar for mitrmkar
0
132
Member Avatar for tlly

Hi everyone.I've got a question on dynamic cast.Dynamic_cast allows us to downcast a data type from one to a more specific one in the same hierarchy. But why not declare the variable we need to the appropriate type during programming time rather than downcasting it at run time? I don't …

Member Avatar for Ancient Dragon
0
347
Member Avatar for jbd

Hi I'm adapting some code I've written using 2d arrays (to represent matrices) to handle large arrays such that double matrix[][] goes to double **matrix and then I'm using malloc. It seems to work fine for part of my program up to where I have to find the matrix transpose …

Member Avatar for Duoas
0
190
Member Avatar for jov0708

i wrote a code to get hard disk info and used FindFirstVolume(). however, the console-based application was ok but when i made an MFC application doing the same thing, it did not compile correctly. i think the problem is with my redeclaration of _WIN32_WINNT in the MFC application. this is …

Member Avatar for jov0708
0
494
Member Avatar for Majestics

i Dont have window.h header file , can i make a programme for copying picture from one drive to another?Any one help me in interpets . I am new using c++ so please please help.

Member Avatar for Nick Evan
0
118
Member Avatar for abrou

Hello! I'm compiling a project in VC++ 2005 express, and for some reason it is hanging. It gets to a certain point and just doesn't seem to do anything. This is the readout when it is happening: [CODE]c:\Qt\4.3.3\bin\uic.exe RoboSearch.ui -o ui_RoboSearch.h g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT …

Member Avatar for abrou
0
113
Member Avatar for shaikh_mshariq

Thanx to daniweb and all the posters. I have created a program for viewing process and hardware information on windows platform. Now i want to run this program on remote machine. How can i do this. I have administrator permission on that machine. Making dll of this program would help …

Member Avatar for shaikh_mshariq
0
249
Member Avatar for Seakros

Well, for the past 2 weeks or so, i have been having a random problem with my internet explorer. At random, a little window pops up that sais: MICROSOFT VISUAL C++ DEBUG LIBRARY Debug assertion failed! Program: C:\Program Files\GameSpot\GameSpotDownloadManager_Win32.exe File: c:\program files\microsoft visual studio 8\vc\include\list Line: 776 Expression:list erase iterator …

Member Avatar for caperjack
0
187
Member Avatar for NEUTRON

[URL="http://www.freeprogrammingebooks.com/"]http://www.freeprogrammingebooks.com/[/URL] [URL="http://www.epagecollection.com/"]http://www.epagecollection.com/[/URL] [URL="http://www.docnmail.com/learn/"]http://www.docnmail.com/learn/[/URL] [URL="http://www.freebyte.com/programming/cpp/"]http://www.freebyte.com/programming/cpp/[/URL] [URL="http://www.onlinefreeebooks.net/free-ebooks-computer-programming-technology/"]http://www.onlinefreeebooks.net/free-ebooks-computer-programming-technology/[/URL] [URL="http://www.click-now.net/ebooks.htm"]http://www.click-now.net/ebooks.htm[/URL] [URL="http://www.onlinefreeebooks.net/"]http://www.onlinefreeebooks.net/[/URL] [URL="http://www.info4java.com/free_ebooks/"]http://www.info4java.com/free_ebooks/[/URL] [URL="http://www.free-itebooks.com/"]http://www.free-itebooks.com/[/URL] [URL="http://www.gayanb.com/"]http://www.gayanb.com/[/URL] [URL="http://www.rfzone.org/free-rf-ebooks/"]http://www.rfzone.org/free-rf-ebooks/[/URL] <snipped> [URL="http://www.onlinefreeebooks.net/free-ebooks-computer-programming-technology/office-related/"]http://www.onlinefreeebooks.net/free-ebooks-computer-programming-technology/office-related/[/URL] [URL="http://www.ebooklobby.com/index.php?cid=6"]http://www.ebooklobby.com/index.php?cid=6[/URL]

Member Avatar for kv79
0
319
Member Avatar for FoX_

Hi all; I have to create a Binary Tree(not a Binary Search Tree) whose node values are produced randomly... If I had to create a Binary Search Tree , I could determine where the current node has to be inserted but in a Binary Tree I can't determine where the …

Member Avatar for VernonDozier
0
149
Member Avatar for rajatC

I want to write all the output to the output file and don't want to print on the console output...the file (in which the output has been written) should be opened after i run the program. which function to use for opening a file to see output( at run time)?? …

Member Avatar for rajatC
0
161
Member Avatar for guitarrick

Hello everyone. Happy New Year. I've been going over last semester's book and have found that I've already allowed the basics to run away! We ended with classes, so I've gone back to just doing exercises with basic functions and I keep getting a linker on this one.: Takes input …

Member Avatar for guitarrick
0
77
Member Avatar for obscured47

Hi again, Is it possible when throwing a custom exception to pause the program instead of just exiting? I have a throw customexception("error msg") in my main and I want to print the error msg and then press return to exit or something like that. Thanks

Member Avatar for obscured47
0
147
Member Avatar for Srynx

Hi I'm making a menu in C++ for a sudoku puzzle solver program I've already wrote using switch setence. I've wrote that code: [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<iostream.h> int opcio1(); int opcio2(); int opcio3(); void main(){ char sel; cout <<"Sudoku\n\n\n"<<endl; cout <<"1. How to\n\n"<<endl; cout <<"2. Sudoku generator\n\n"<<endl; cout <<"3. …

Member Avatar for CPLUSCPLUS
0
660
Member Avatar for Max_Payne

[B][COLOR="red"]Question: [/COLOR][/B] Can i initialize char arrays using preamble initialization ? [B][COLOR="red"]Code:[/COLOR][/B] [code=c++] #prag... #pragma once class Pizza { public: Pizza (const char top[] = "cheese", const int size = 12, const double pr = 8.99) : strcpy_s (_topping ,top), _diameter (size), _price (pr) {} ~Pizza () {} void setValues …

Member Avatar for Narue
0
270