C++ :: Create A Program For Multiple Windows
Aug 18, 2013
i am trying to create a program for multiple windows. Here is my code
#include<Windows.h>
// Store handles to the main window and application instance globally.
HWND ghFirstWnd =0;
HWND ghSecondWnd=0;
HWND ghThirdWnd=0;
HINSTANCE ghAppInst=0;
[Code]...
problem is when i try to execute the code it just say create window1- failed!!
View 1 Replies
ADVERTISEMENT
Jul 31, 2014
I want to develop an application which can host multiple views of explorer (window), where as each window is totally separate from others. So that I can have multiple desktop views through my single explorer. Any built in feature in .NET ?
View 11 Replies
View Related
Mar 18, 2014
I want to create user account and login to windows. I have to read username from DB and create window user for login to window. So,Can I create windows account and login to windows with C#
View 8 Replies
View Related
Nov 2, 2013
is there a way to create a keylogger for windows and Linux using the same function. Any function to do it on linux and how to use it.
View 3 Replies
View Related
Apr 6, 2014
I am trying to create a windows form that acts like a windows taskbar. So i found this on the web Link so i have tried using it.
But when i try and edit the form in the form designer in visual studio none of the changes i have made appear when i debug the form. It just appears as a blank grey box at the top of my screen. What am i doing wrong?
View 8 Replies
View Related
May 16, 2013
I am wanting to separate the logic from the visual, but I'm having problems when calling the method that controls the actions of the progress bar timer.
Code:
ifndef PROGRESS_BAR
define PROGRESS_BAR
class Progress_bar{
public:
void set_Progress(ToolStripStatusLabel^ label,Timer^ time){
[Code] ....
The way that I'm calling this method on Form1.h
void set_Progress(toolStripStatusLabel1 ,timer1);
Errors:
Error1error C2182: 'set_Progress' : illegal use of type 'void'h:cry_devprogrammingc++school_mediaschool_mediaForm1.h277
Error2error C2078: too many initializersh:cry_devprogrammingc++school_mediaschool_mediaForm1.h277
Error3error C2440: 'initializing' : cannot convert from 'System::Windows::Forms::Timer ^' to 'int'h:cry_devprogrammingc++school_mediaschool_mediaForm1.h277
View 3 Replies
View Related
Apr 21, 2014
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <cstdio>
#include <stdio.h>
#include "dp_lib.h"
int main() {
int A =1;
[Code]...
im new to coding but ive written this code for an assignment and it creates 2 sine waves and adds them together but i want to be able to create a range of different sine waves at different frequencies and play them one after the other like in my code,but with the end result being that i would like each sine wave to represent a different note, so when your on the the console screen the user will be able to choose from a select number of notes and input them in any order so that the WAV file produced plays the sine waves in the order the user chooses so they can make a simple tune. but my code only plays it in the order it is in the code
View 8 Replies
View Related
Aug 1, 2012
I would like to create an array of struct variables inside a table to avoid using many if/else and/or switch/case statements. I have attached a simple example of what I am trying to do, it doesn't work. For the table "sTablePtr" I see different values than what I set, when I dereference it with a "&" it just shows me the addresses of the variables. However at the end, when I do print out the values, by just using the structs themselves, they print out the values correctly.
My structure declarations must remain a pointer. To be clear, what I am trying to do is have sTablePtr[i] show me the correct values I set, in this case I want the for loop to print out 1, 2 and 3. If there is a different way of doing this, I am open to it as long as I can use a table of my struct variables to avoid many if statements.
#define MAX_CNT 3
typedef struct {
int nNum;
int nCnt;
}sDummy1;
[Code] ....
View 4 Replies
View Related
Apr 10, 2013
I am trying to create a multiple choice quiz so I can learn the menu at my new job, while doing a side project but I am having a warning when outputting. Speaking of side projects, is this a kind of side project people are looking for on a resume?
Code:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
}
[code]....
View 8 Replies
View Related
Sep 18, 2013
Need to create multiple word documents on the run.
My problem is its creating the last one only.
View 1 Replies
View Related
Jan 7, 2015
So im trying to create a quiz using c++ that incorporates three different types of questions. These are the standard one answer question, true false questions and multiple choice questions.
How to create the true false and multiple choice questions?
One way that i came up with looks like this
Question A answer1 B answer2;
View 2 Replies
View Related
Mar 28, 2014
look at this code:
#include <iostream>
using namespace std;
class teste
[Code]....
Each time i call "x = new teste();" the previous object is deleted? Does this code cause any sort of memory leak?
View 1 Replies
View Related
May 16, 2013
I need to get the Win OS Session name to a string in C. How can I get to that?
View 1 Replies
View Related
May 16, 2014
I am trying to build a program which would start at the start of the computer, so for that when ever the user would run the program the program must get copied in the startup folder of the Windows I guess or anything else so that the program runs as soon as the computer is booted.
I this program would create a .vbs file n the startup, in that vbs file i would write the code for speech. so what the computer would greet you when you switch on the PC.
Here's what I tried:
#include<stdio.h>
#include<conio.h>
#include<string.h>
[Code]....
So my motive behind this code is that, this should create a .vbs file in the startup folder in that vbs file the above code would be written,
(Dim speaks,speech
speaks=Hello!
set speech=CreateObject(sapi.voice)
speech.Speak speaks) a
And then the vbs file would execute as soon as the computer starts, and then it would speak "Hello!".
But the problem is that i am not able to create a file in the folder when i run the program the file is not created, i do not get any error but nothing happens as well.
View 8 Replies
View Related
Apr 1, 2014
I have client-server program that written with c++. Both client and server program are working on my computer.Also, I test it on many computer.There is no problem with it.But, When I try to run that program on the my windows server 2003. I get error which on the below.
[URL] ....
I researched it and someone said that it is related 32-64 bit system . My windows server is 32 bit. And I am compiling as 32 bit. But I still get error , can not get any answer with it.
View 2 Replies
View Related
Feb 23, 2015
My use case is this: I have a C# Console application. I would like to run it via the Windows Task Scheduler, and would like it to attempt to run until it succeeds. My problem is that I can't achieve this. How does the Windows Task Scheduler recognize that a program has failed? I tried returning 1 or 32 instead of 0 but that didn't work. One possibility is to have the rerun logic in the C# console application but it feels like there must be a better way.
View 6 Replies
View Related
Apr 9, 2013
I have a Windows form application which has database and will store user details. my problem is while executing program form is not displaying .
View 1 Replies
View Related
Jan 18, 2012
I am developing a program that needs auto start at windows startup. For that I need to add Registry entries. Also the program needs to read some registry keys. What are the functions i need to do these.. Simply I need to
check if the startup key already exists
add a new key if it doesn't exist
read a key values
View 7 Replies
View Related
Jan 22, 2013
I am getting an error on lines 31 and 36 about an expected identifier on my program that computes area and circumference. Is something wrong with my external functions outside of main?
Code:
#include <stdio.h>
#define PI 3.14159
double area;
double circum;
double find_circum (double radius);
double find_area (double radius);
[Code] ....
View 2 Replies
View Related
Mar 24, 2013
We have been assigned to create a program that uses multiple functions. The professor has given us code for two of the functions, one to open a file and then another one to read the files contents and output them. I have put these into my program but they will not execute. The program does run, but the functions themselves are not executing. I have practiced with other functions that contain no parameters and those run fine, but the functions she gave us have multiple parameters.
The code I have so far is below:
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
void PrintFile (string FileName, ifstream& inFile);
int main () {
ifstream inFile;
string fileName;
[Code] .....
View 1 Replies
View Related
Dec 6, 2014
I'm writing a Blackjack program where the user can choose to Hit(H) or Stand (S). I would like them to be able to use upper or lower case letter for this. My code doesn't seem to work right for my Stands.
Code:
char choice;
do {
choice = 0;
while (choice < 1) {
printf("
[Code] ....
View 3 Replies
View Related
Apr 4, 2013
I need to write a program that will give me multiple calculation results.
#include <iostream>
using namespace std;
int main () {
int x = 8;
int y = 7;
[Code] ....
It only calculates the last two numbers: 1 and 0, so therefor it gives me 1.
But i need to calculate x and y each time they are smaller(incremented) by one digit.
Please note that the int calculation formula needs to stay.
View 2 Replies
View Related
May 31, 2013
I want to know how to read multiple text files in this program... I have 5 text files(order1,order2,...order5).
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
#include<windows.h>
using namespace std;
class{
[Code] ....
View 3 Replies
View Related
Feb 21, 2014
I already wrote a program that will calculate the gross pay for a set of employees.
I want modify the code by adding multiple functions.
I want to create a separate function whenever possible to break up the program.
For example, I would like have a function for obtaining the hours from the user, another function for calculating overtime hours, another for calculating gross pay and another function for producing the output.
#include <stdio.h>
#include <stdlib.h>
#define STD_HOURS 40.0
#define OT hour>STD_HOURS
#define SIZE 5
int main() {
int clockNumber[SIZE] = {98401, 526488, 765349, 34645, 127615}; /* employee ID */
[code]....
View 2 Replies
View Related
Nov 5, 2014
I want to make a custom program for packaging multiple files in one. Not as complicated as ZLIB or others. Consider few files, XML, txt, JPG, OGG, I want them to be added in 1 file. Not visible not readable. Just a datafile. I have some ideas about creating some kind of indexing of the start byte, end byte of each file. But I am still way too far. Can you point me some direction at what should I stress in creating this software. It will be portable since I am planning to use stdlib, stdio only, maybe and string to recreate the filenames from the large chunk datafile.
View 2 Replies
View Related
Oct 1, 2014
I am returning area from areaCircle(), but do not know how to print it in main. I know this program has lots of errors, two cases that I have listed.
Not sure how to properly list multiple function calls in a switch statement, and how to print one's return from main.
int main() {
char choice;
double area;
showMenu(choice);
switch (choice) // If input is C, use getRadius, areaCircle and count, then print the are
{
case 'C': void getRadius(),double areaCircle(), void count(bool display = false);
[Code]...
View 5 Replies
View Related