199,113 Archived Topics
Remove Filter ![]() | |
Hey guys, I was wondering... I always assumed that references were more or less constant "dereferenced" pointers. With that in my mind I tried to do this: [code=cpp] #include <iostream> #include <string> using namespace std; void outputIt(const string * const textz00rs){ cout << *textz00rs << endl; } int main(){ outputIt("window"); … | |
Hi, I'm trying to put together a PHP Ajax search against an mySQL database yet doesnt seem to work .. HELP! I had to resort to using frameset which I dont really want to do. what I'm trying to is perform a search against a mysql database and display the … | |
Hi again, Suppose we have an array. Array(3). The user has written 5, 6, and 7 to (0) (1) (2) within that array. How would I add them up? If it's like Array(0) + Array(1) + Array (2) that's all very well but.. What if the array size was (10). … | |
I'm trying to use some dynamic path names for an image upload page. In a tutorial they had something like this: [code] <?PHP $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); // this echoes something like " /foldername/ " presumbing that the php file is set inside that folder in the root. $uploadsDirectory … | |
Im trying to add a subtotal to my script but i cant think of a way , i tried adding another function to it so it would calculate the subtotal as i go but it wont happen ... . Also i tried returnig the value of this function to another … | |
hi all new to php ..... how to protecte links on userpage when he login successfully. i want that out side user who not logged in ,can not see page after copy those links in browser.any example. thanx in advan...... | |
I took a class on C++ a few months back. I just finished reading Sams "teach yourself C++ in 21 days" which took me way longer than 21 days to finish. but i feel like i have a basic understanding of the language that was presented in that book. The … | |
hi, I am trying to draw a circle without using cos,sin; Mainly by the formula x^2+y^2 = r^2; this is my code , but for some reason its not working. any help? note: I thought this code would draw the upper halve fo the portion. float xCor,yCor; xCor=yCor =0.0; float … | |
I'd like to implement a sorting algorithm(quicksort or bubblesort or mergesort... it doesn't matter. anything that sorts is ok) into my insert function, so that everytime i create a new element it'll be inserted into right position. The variable listptr is the pointer pointing to the address of the first … | |
[CODE]class MyProgram { static void Main() { int[] integers; // declare array integers = new int[10]; // size array } }[/CODE] In which line is the array actually instantiated? | |
Is there a way to keep the text formatting as it is while reading content form word into richtextbox control in C#? | |
Hello guys. I made a simple program that works like command prompt. You insert a command, it inserts it into system(); why i do this? because im also adding my own commands. so before it goes into system. it checks first if its one of my newly made commands. Whats … | |
I'm using the writeAlltext method to save a text file with the contents saved in string variable namely textFile1. File.WriteAllText(saveFileDialog1.FileName, textFile1); However for each blank line i'm getting two boxes in the output text file. I need to keep the formatting as it is while saving a file. the blank … | |
hi there every one.... i was looking some one to help me... i need to make a rounded box in the a page and in that box i need some content to be slide every 10 second... like this one: [url]http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm[/url] | |
This challenge is ( large and easy ) at the same time .. Those who accept this challenge and want to join the fun and interest, We Will take The Best first Program ,, and he will be The " WiNnEr", ================================================ Description The aim of this project is to … | |
hello, I have a matrix (string array that have words) and I want to write a function that receive the word and consider whether the word existed or not in the matrix I"m trying to write the function, but i didn't succeeded. this is my code [code] int CheckWord (char … | |
hey guys can anyone juss gimme a hint about how can i make such a facility in my project that i a client can send a form as an attachment via email plz waiting for ur reply gauri | |
Hi I am having a slight problem with dynamically listing the methods of a selected class. The code I have written is: [code] private void ListMethods(ClassA aClass, ComboBox cmbMethods) { Type type = typeof(Application35.ClassA); foreach(MethodInfo aMethod in type.GetMethods()) { cmbMethods.Items.Add(aMethod.ToString()); } cmbMethod.Visible = true; } [/code] There are a number … | |
hey, I am just learning textures in OpenGl, from a certain tutorial site : [URL="http://www.spacesimulator.net/tut3_texturemapping.html"]http://www.spacesimulator.net/tut3_texturemapping.html[/URL] the site had a good tutorial for texture, but after loading the .bmp picture, it goes to create its own function for vertex3f and such ( I think). In any matter, I have not learned … | |
Is there a function in the Windows API I can use to get recent files opened by my application instead of just setting them? (Before you tell me; yes, I know it won't be hard to do myself.) | |
Does anyone know a decent site for studying about ctime(or time.h) in c++ thats good and doesn't end up telling you its in C?:@ :-/ Cos' when I search on google and I when thought I had found a great site, its actually for C programmers. Any help would be … | |
[COLOR="Red"][B]I have A project and I need someLibraries in opencv and join it with c++ but I didn't know how to but it Is there any books can help me and where can I find the libraries for opencv?[/B][/COLOR] | |
hi guys! How can I play mp3 / wav file using C language........ please help. Thanx in Adv. | |
Hello everyone. I want to know how to get my internet IP without going to a "www.ip-address.com" or somthing to get it. I thought about using winsock, but i am still a winsock beginner. I want to connect to 127.0.0.1 (loopback ip) and do a GetHostInfo() command of some kind … | |
Can u people help me in getting java code to transfer files (FTP) over the LAN.Give me the complete code for this. I wan that a FTP request to be send to the desired host and if the host accept the request then the browse menu be opened that allows … | |
Hi, I have a small problem... I'm developing a small application (very similar to the Windows Task Manager) that I want to be able to control other application windows (Bring them up, change focus, minimize them and so on). I don't know how to control the other windows, but I … | |
I am working on this site which has a login page, it is up live and works fine from my computer but can't get it to work anywhere else. This is the code: <form> <p><B><FONT SIZE="2" FACE="ARIAL">USER NAME :</B> <input type="text" name="text2"> </p> <p><B>PASSWORD :</B> <input type="password" name="text1"> <input type="button" … | |
i have been using CreatProcess in my program to initialize another program with two command line arguments as C:\\Documents and Settings\\xyz.exe and 2 so the code i am using is [code=c] CreateProcess ( "C:\\abc.exe", " C:\\Documents and Settings\\xyz.exe 2", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi ); [/code] but … | |
Hello, have a good day everyone. I am confused if what elements are to be inserted in a queue. Are only numbers can be inserted in a queue? Are letters or word(e.g."Subject") can be inserted in a queue? Thank you ahead everyone. Have a nice day. | |
Hi all i am a newbie in development I have a window application in vb.net in VS 2003 there is a tabcontrol which has three tab pages. i want that user was not able to change tabpages by clicking tabcontrol rahter than it is done by clicking button on tabpages … | |
Hi, I have I am trying to create a program for my lecturer, who has asked me to create an application containing a number of different class that all inherit from an abstract class. This has been completed and encapsulated, however in writting the application that utilises these classes I … | |
Anyone see a problem with this line? My Color header is included (I use it all the time). map and vector are included. [code] void GenerateColors(map<Color<unsigned char>, int> &Map, vector<Color<unsigned char> > &List, int num) [/code] I don't see anything wrong? Dave | |
Hi, I am using a WebClient to FTP files to a server. A question I have though, is how to create a new folder on the server. There doesn't seem to be any option with a WebClient. Thanks in advance! MrGreggles EDIT: Don't worry, I sat down to eat an … | |
Hi Am trying to capture the screen in my web application. I am able to capture the image locally but i am not able to capture the image on Client's machine. I am unable to capture the browser settings and properties of client machine. I want to get an equivalent … | |
Okay, so this is really a question I feel very odd even having to ask. No, I ain't no noob, but I am worried that someone I am working with very much IS. Or there's some other, less polite explanation at work. Please don't laugh, because this is a real … | |
hi, im trying to test out my application so far by uploading all the project files to my "web" folder on the university server, but when i naviage to the server/myfoldername where the index.aspx is located i get an application error - what im i doing wrong? im using filezilla … | |
I would like to delop a search facility allowing the user to search other user by name, matching users should be listed, each matching user should have a hyperlink labelled"Make Friends", could anybody help me write an ajax code for this, many thanks | |
I am trying to figure out how many ways you can go if you only take one or two steps. For example. If the number is 4 there are 5 ways you can move going one or two steps. I have to do it with recursion. I have the following … | |
can anyone tell me how to create a assembly ..and how do use it in our application..i am new for .net so only ...how do find out the error in dll? | |
Hi All, I have a set of elements to be added to an existing XML document. I would like to write a XSLT tranformation for this. My requirement is that I need to check whether the element is already there in the XML file. Only if its non existent, I … | |
Hi, I have a code and I want to add a .cpp file that I made and use the functions that I've done in that .cpp file. So at this project I am adding the ekf.cpp file and then included....but I get this errors. 1>Linking... 1>ekf.obj : error LNK2005: "void … | |
Hi, I am wondering is there a solution to do this type of problem. I would want to release a list of queries that only show only orders that does not match each other. For a order to match it will be companyname from different hiddenkey are the same and … | |
Hi, got some questions.. 1) when i open an openfiledialogue nd then select multiple files,how to add each of the selected files in each datagridview row.. 2) how to set progress bar for copyng a file using file.copy.. | |
Hi, The program I'm making to teach myself C++ uses a user-specified file and then does the opening and read/write whatever stuff. The error i get is this when trying to compile the read_file.open(in_file) line: "no matching function for call to 'std::basic_ifstream,char, std::char_traits> >::open(std::string&)'" Please help Thanks [CODE=C++]#include <iostream> #include … | |
I need the source code from an EXE to customize a little. The programmer had died last year who developed it. He did not took backup the code on his PC. | |
hi All, I want to ask if is there any possibility to separate column data in different columns using php code.. really dont know if i have solution in php or here in mysql.. any idea would be really appreciate Thanx enim | |
[CODE]#include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <windows.h> #include <ctime> #include <conio.h> #include <ctype.h> #include <iomanip> using namespace std; void gotoy(int y); void timechange(time_t start1); void timeevent(); int boost=0; int Eboost=0; int power=40; int HP=100; int EHP=100; int Epower=10; int dtime=0; time_t start, end,start1; int main() { start=time(NULL); … | |
I want to accumulate time into a variable (Time1) and have it count hours, minutes and seconds. It should not carry over to date when it passes 24:00:00 but should go to 25:00:00. For example, if I have 22:00:00 hours on a project and spend another 10:00:00 hours the total … | |
![]() | Hi, I have this sample program where the compiler gives me error for the break statement. The error is " misplaced break in afunction" Could anyone help me understanding why the break statement gives an error? i understand that u can use break in a for , while loop etc., … |
The End.