49,761 Topics
| |
Ok, having some serious trouble here. My proffesor told us to write a progrm (what it does really doesnt matter here) however he wants a FULL color menu in the console. He showed us an example of what he wants, it was very cool, it had a red backround, then … | |
I dont understand this...I see this inside () is struct and BOOL is typedef for int actually ???? ,but what is (WINAPI *_CreateProcess) ????? its loks like typedef <type><type><list of types> ????? Can some one explain this? [CODE]typedef BOOL (WINAPI *_CreateProcess)( //BOOL is int??? LPCTSTR lpApplicationName, LPTSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, … | |
I am currently trying to generate a program using a double nested for loop to get the following output: >Please enter the maximum integer value you wish to find divisors: 10 >List of divisors of the integer between 1 and 10: >divisors of 1: 1 >divisors of 2: 1, 2 … | |
Hi all, I'm having a similar problem with a code of mine. [I]<<note: split from [URL="http://www.daniweb.com/forums/post831781.html#post831781"]here[/URL]>>[/I] In my code I have a class in which I am trying to implement a dynamic array of structs. My compiler does not seem to like my deconstructor, and complains that my dynamic array … | |
Hi - it's me again. I have the following code but don't exactly know what it means or how to make the opposite code. The code I currently have is [CODE]#define rotateleft(x,n) ((x<<n) | (x>>(32-n))) #define rotateright(x,n) ((x>>n) | (x<<(32-n))) [/CODE] Then can be used like the following [CODE]a = … | |
Hello. I am beginner using C++. I have been searching through previous posts, but I haven't found anything to apply to my problem... I have a program that I initialize data into an array. I am using a Structure. After initializing the data, I use a Switch statement to allow … | |
I created a .net (c++) dll which I'm using with a com application. In order to use the dll with com, I ran the sn,gacutil, and regasm/tlb utilities. Now, I added a dll from Microsoft Enterprise Library to my dll. When running the app, I get an error that the … | |
Thanks you guys.. I have one more question. I'm programming recursive directory traverse function. It will be called from main program with absolute directory name. I could printout in a simple 2~3 depth directory. But I could not in complex structure. (/lib/modules has two directory, and inside there, files and … | |
[CODE] string NewMovie = "ww"; string queryText ; queryText = "INSERT INTO movie_info (movie_title ) VALUES('" + NewMovie + "')" ; MYSQL *conn; conn=mysql_init(NULL); mysql_real_connect(conn,host,username,password,database,0,NULL,0); mysql_query(conn,queryText.c_str()); mysql_close(conn); return 0; [/CODE] What i would like to know is how am i able to do a check to see if such a … | |
Hi, I'm very much a beginner to C++, but I've been assigned a project outside of my programming class that is starting to get tricky. I'm modelling a layered optical system and I need to create N two-dimensional arrays (2x2 matrices to be used in matrix multiplication), where N is … | |
Totally new to C++, so please forgive me... I'm trying to have a user input a filename and then check the file for all string literals. The output should return the string literal (not the whole line, which is what I am getting). Also, I have to ensure it ignores … | |
hi, im trying to learn how to make a keyboard hook for C++ to improve my cheat/macro app for a game; use keyboard hook instead of GetAsyncKeyState(). where can i find the codes for this and a line by line explanation about the use of the API? many of the … | |
Hi there, I am experiencing a problem during the program execution. Here is the program: [CODE]#include <iostream> using std::cout; using std::cin; int additions (int a, int b, int c) { int k; k = a+b-c; return k; } int main() { int s; int x; int y; int z; cout … | |
I am working on a Pong game that also uses a gun to shoot out the rear wall of the playing box, so that the ball may escape. I'm using Dev-C++ and the Allegro library. There are two slight problems... 1) The "bullet" fired from the gun hits its target, … | |
Hey am trying to read contents of a text file into memory and will be read later by a different function. This is how i am considering doing it I was thinking of reading the whole file into an array but thought it might be too big seeing as file … | |
Hi, I'm trying to send an e-mail from a managed application. I found the following example: [code] MailAddress ^From = gcnew MailAddress("xxx@zzz.com"); MailAddress ^To = gcnew MailAddress("ttt@zzz.com"); MailMessage ^message = gcnew MailMessage(From, To); message->Subject = "Testing sending mail"; message->Body = "Body of message"; SmtpClient^ client = gcnew SmtpClient( "smtp.foo.com" ); … | |
This seems like something pretty basic, and I'm sure I'm just missing something, but I can't figure it out. I've been searching for a bit, and find several different suggestive solutions, but none of them were working for me. I'm sure I was doing something wrong. What I want to … | |
Does anyone know where I can find apvector methods or apmatrix methods? So far I know that... vector.length() = length of 'vector' matrix.numrow() = length of 'row' matrix.numcol() = length of 'column' | |
I am doing a Pong style game. As long as the paddle isn't moving upward at the time, it will reflect the ball like it's supposed it. However, if the paddle is moving forward, it will run over the ball and the ball will go through it. Here is my … | |
Hope i have posted the mail in the rite place. what I have done so far is: 1>I use Borland C++ Builder Version 5. 2>I use TCppWebBrowser which can access a website. which could be done through any browser outside my application.So no point in what i have achieved till … | |
Hope i have posted the mail in the rite place. I need to know the google map API to save maps to a folder. My borland c++ application should in the background download the map according to a gps latitude longitude and save the map in a folder. There is … | |
Hello, I load a web page in a TCppWebBrowser component and I would like to execute some JavaScript functions contained in the html file from the main programme. Is this possible?? Thanks. | |
[CODE] // // This program finds the area of a triangle given the points of the triangle. It computes // the area of the triangle using three different formulas, each will result in the same answer. // // Area1 = 1/2 | (x1y2 - x2y1) + (x2y3 - x3y2) + … | |
Hello, so I'm fairly new to C++ but not to programming overall. I have created a simple TXT file with about 15 words in them, and I would like to write a program which asks me for a number of words, you type it in (simple cout, cin) and it … | |
I'm doing programming which can traverse subdirectory and show lists. If I check just file part, it was not problem. But when I do directory part, and have to recurse program itself(I marked as "from this part"), it show strcat segment error. I'm thinking it's problem if string and char* … | |
Did i use the code tag correctly ? let me know? Im trying to figure out how to error trap this program so if the user doesnt put in a valid response then a message will cum up and they will go back 2 the beginning until they do it … | |
hi im doing a project using the bubblesort feature. I have to print out an inputted array of 26 characters sorted by ascii characters. i need to print them out ascending and descending, and also print out the top 3 occuring characters and their counts. i also need the largest … | |
Hiya, Daniweb! :) I have certain problem with a homework, we're supposed to do a "car race on a highway" (well, kinda) with vectors, so after the user defines how many lanes are in the highway and sets how many vehicles are in each lane (already done) the user sets … | |
Greetings everyone! I hope to learn and become better in programming. But honestly, my heart fails me everytime I face a new assignment. This one is just another heartache. Thing is, the question wants me to print out n-bit strings in lexicographical order ( meaning increasing order ). And I … | |
i cant figure out why this outputs the wrong number when i say the length and width is 1 it outputs 2293544. and i dont know if its reading the 2 numbers i put in for length and width i use the magic formula and still does it case 'B':; … |
The End.