- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
"Me in a Nutshell"---- Oops don't fit!!
I love everything what I do and I do almost everything which I love!!
@Prateek
Re:
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 … |
|
Re:
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 |
|
Re:
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 … |
|
Re:
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) … |
|
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.. … |
|
Re:
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 … |
|
[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 … |
|
Re:
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: |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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? |
|
Re:
Just wondering around and see which countries have most programmers :D |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
[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] |
|
Re:
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 … |
|
Re:
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)?? … |
|
Re:
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 … |
|
Re:
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 |
|
Re:
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. … |
|
Re:
[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 … |