199,114 Archived Topics
Remove Filter ![]() | |
hi guys i have a small problem. the cars in my program collide against each other. it works when i don't have any class car. but now there's some confusion with the speed of the car. ive worked for hours on this but no solution found. i hope u guys … | |
Is there any way in Visual C# 2008 Express to override the formatting defaults? For instance, I want a single space before open parens when I'm passing arguments, but VC# won't let me do that. | |
Hi all, my name is Karim, and I am migrating from Python to C++ in order to make windows and linux based games. I am using the Visual C++ IDE, and am a complete newbie when it comes to C/C++. Python is so overly simplified that it does not provide … | |
Hi, I'm completely new to C++, which I'm doing as part of a numerical methods course. I have experience with IDL, so I clearly like languages with training wheels :) I'm running the GNU C++ compiler under Ubuntu 8.04 on a Dell XPS. I've made my first program run, but … | |
And please don't tell me it's not possible. | |
Hello all, I'm python guy learning C++ so be patience with me. I am just asking if this GUI builder can be used to make Big app like Thunderbird wihtout external assistance [url]http://wxformbuilder.org/[/url] | |
how would I go about making a variable in a class, that could be read directly but not written as such? Like, [icode]if(class1.variable==true){ }[/icode] is allowed but [icode]class1.variable = true;[/icode] is not... however I don't want a [icode]const[/icode], I want it to be able to be set from within the … | |
[CODE]TCHAR exepath[MAX_PATH]; GetModuleFileName(0, exepath, MAX_PATH); HKEY hKey; LONG lnRes = RegOpenKeyEx( HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", 0,KEY_WRITE, &hKey ); if( ERROR_SUCCESS == lnRes ) { lnRes = RegSetValueEx(hKey, "YourProgramsName", 0, REG_SZ, exepath, strlen(exepath)); }[/CODE] To add as a HKLM (For all users) startup item instead of HKCU (Current User), change HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE. … | |
Hi, all i have the assignment about program which reads in integers from cin until the user enters a non-integer (a character or EOF), then print out the average. Its pretty simple assignment but i am kind of new. So the following is my code and seems like have some … | |
Can somebody help me understand why I get an error message that says possible loss of precision on this program? I don't understand what could be causing this error message. When I get this error message, it highlightes the line of code that says: "theTemps[index] = inFile.next();". Can somebody enlighten … | |
For some reason my if statement in both my [I]unionFunction[/I] and [I]intersectFunction[/I] is setting the array equal to 1 rather then comparing it. I've tried to figure out whats wrong but nothing seems wrong to me. I appreciate any help. Here is my program so far: [code] #include "stdafx.h" #include … | |
if (blink_status ==1){ //If led is bliking, stop it P1OUT &= ~ 0x01; // Turn Led off blink_status=0; }else blink_status=1; } Could anybody explain the logic please... | |
Hi, I developed a website with captcha image validation. I developed it with PHP Version 5.2.5 and i uploaded on PHP Version 4.3.11 server. Captcha image validation working with my server. But it is not working with my cient server. Here iam sending my code sample. Please help me to … | |
Hello, I connected my Delphi application with MS Access database and I am stuck a bit with a problem: how to execute UPDATE Query stored in MS Access database from Delphi ? Stored query in Access works properly. All other queries (mostly SELECT) stored in Access I have connected properly … | |
I'm writing this little page that lets you sort of have a conversation with a perl script, and i'm having a problem. At the top of my php I access the perl script, with some text that the user input via a textbox. The perl responds with.. we'll say "Havin' … | |
Hey guys, I'm going to be starting a research project pertaining to [URL="http://www.jauswg.org/index.shtml"]JAUS[/URL]. Basically, this is a standardized protocol to be used in autonomous robotics... someone will essentially connect to a robots IP and be able to transmit various commands over 802.11. I not exactly sure where to start, so … | |
![]() | Hello forum members, I am majoring in Signal Processing and Machine Learning. I have been using MATLAB for my academic research works for computing and data plotting. My question is if C# can be used as powerful as Matlab for mathematical calculation (matrix computing) and visualization? Also if I can … |
[CODE]/* sscanf example */ #include <stdio.h> #include <iostream> using namespace std; int main () { float f; int i; char * the_string = "foo -3.6 fum dum 17"; int r = sscanf(the_string, "foo %f fum dum %d", &f, &i); cout << f << " " << i << " " … | |
right, I am trying to do a task where I should convert 2A45 to a pair of ascii characters, however the presence of the "A" (10) confuses me- if I convert it to decimal I get 10821 which is 5 characters not 4. | |
Hello everyone, I started learning assembly yesterday. Yes maybe I chose a wrong guide but I have a little problem here. It's about getting some integers without a newline. That is probably very easy to solve but I was searching for a solution for a few hours and no results. … | |
In the program, it can calculate the summation and subtraction of two integers. The integer can have 100 digits and can also be negative. How can i do this ? | |
Hi, I am facing a problem, I am accessing a text file through my C program to fetch some values. The problem is that, i want to check whether the text file is updated before opening it, as i want to save the time of opening the file again if … | |
Hello everyone. I am using ACE and I'm using the following method: ACE_OS::read(char* buffer, int nbbytes, int perms); I was informed that Windows is reading data from disk sectors and it puts the contents of the read sectors into the cache (who is in memory). I don't want that behavior … | |
I Was Wondering If There Was A Way To Use An Enumeration As A Function Argument in Delphi And if So A Quick Little Example Would Be Great. I Cannot Seem To Figure it Out :( | |
Hi, I'm currently working on an RSS File Editor. I want to implement a syntax highlighting feature, but I don't know how to program it and didn't find anything useful on the internet. I'm using a RichEdit as the editor window. Can someone tell me how to do it or … | |
Hello, I am trying to insert values from a .csv file into a MySQL database from a GUI. I cannot seem to accomplish this. I keep getting a null pointer exception where I set the connection properties in my main method. I also cannot seem to figure out how to … | |
Hello, I've got the following code: [code] wxString path = filepath; wxString newpath = filepath; fstream f(path.Append("/tests/tests.bin"), ios::in | ios::binary); fstream fnew(newpath.Append("/tests/temp.bin"), ios::out | ios::binary); Test* transferTest = new Test(); int thisSize = sizeof(Test); bool success = false; bool toBeDeleted = false; int testNo = 1; if (f) { f.seekg(0, … | |
i have an "product customization form", made with javascript wich sends the user selected values through email. [CODE] <select name="material" id="material" onchange="selection_material()"> <option >Select...</option> <option value="1">Paper 115g</option> <option value="2">Paper 135g</option> <option value="3">Paper 150g</option> <option value="4">Paper 170g</option> <option value="5">Cardboard 200g</option> <option value="6">Cardboard 250g</option> <option value="7">Cardboard 120g striat</option> </select> [/CODE] [CODE] function … | |
Hi, lets say I have the following 7 records in my database ID Model -- ------ 1 400 2 400FL 3 400 FL 4 ABC 5 SGH500 6 SGH-500 7 SGH 500 How is it possible if i could select out the rows which are of possible match to some … ![]() | |
Dear All, I have developed a web site using asp.net and C#, Iam using Microsoft enterprise library - DBfactory for establising connection with sql server 2005. Now i want to implement the application to connect to different databases for different users. For example Client A should connect to database DB1 … | |
When I executed the following code the output appears to be very strange to me. Can any one explain this unexpected result to me. The code: [code] #include <iostream> using namespace std; class Y { private: int x; public: Y() { x = 7; } int getX() { return x; … | |
Error : warning: cannot pass objects of non-POD type `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >' through `...'; [Code] int main() { ListeString Parts; ListeString::iterator iter; Parts.push_back("One"); Parts.push_back("Two"); Parts.push_back("Three"); iter = (*mtcParts)->begin(); while ( iter1 != (*mtcParts)->end()) { printf("%s\n",*iter1); iter1++; } getchar(); return 0; } [/code] By using cout, i am able … | |
Hi Friends, In the website in which i am developing for every searches made an entry would be made in a table. As a result of this the size of the table grows to great extend. Now i am planning to take the backup of that table periodically and to … | |
Hello all. I need to have a specific column in my DataGrid be read-only (which it currently is) most of the time, but I would like to set it to read/write when I update (as to allow for changing a certain field's data) and then promptly set it back. Any … | |
Hi, Is there any way to end a line of text with three dot if this one is too long for the content box/site layout? Someting like wrap text but without going to the next line. Thanks for your help | |
[code=cplusplus] #include<stdio.h> #include<stdlib.h> #include<iostream.h> main() { FILE *fp,*fp1; int numbers[30]; char *buffer; int i=0,j; // To read the file fp=fopen("PR1.txt","r"); if(fp==NULL){ printf("Error: can't access file.c.\n"); exit(1); } else { printf("File opened successfully.\n"); for(i=0;i<10;i++) { // while(!feof(fp)) { /* loop through and store the numbers into the array */ printf("Number- %d", … | |
Hi, I'm new to the whole programing world, so I'm a bit lost. The problem is: Enhanace the "BankAccount" class by, 1.) Rejecting negative amounts in the deposit and withdrawl methods. and 2.) Rejects withdrawals that would result in a negative balance. (Simply return from the method without modifying the … | |
Hi all, I have a C# (VS 2005) program using a Twain dll of Atalasoft, to connect to a scanner. When a fast scanner saves the files to disk, I show them in a PictureBox on the screen. This goes all well while nothing else happens. When I click on … | |
Hi, I have an ms-access database (.mdb) which I need to import to mysql. Is there a free software to make a .sql dump of this ms-access database? I have been trying some softwares (google searched) but none of them worked. One of them was able to replicate the table … | |
hi I want to write some text on windows wallpaper. does anybody know how to do that. (on wallpaper ,but under window frames.). (dynamic text: like time. so please do not suggest to write it with paint. :) ) | |
Dear Friends, I a working on a project where i have to let the user to type in other languages(hindi,tamil,kannada etc..) and i have to store into the database and retrive it back and show it to the client in the same language he has entered..I am using postgres 8.0 … | |
I am using Javascript to highlight/dim active/inactive tabs respectivly. Tab 1 is active by default, and when the other tab gets clicked, tab1 should remove "active" class from itself, and the clicked tab should add "active" class to itself... It seems like the class is not being removed properly, because … | |
For example i want that the [code]System.out.println("blablabla");[/code] wont be displayed on the screen of the console.... how can I do it? | |
Hi all. I have a table with a this records: [CODE] <!-- Table user_activity --> <user_activity> <id>1</id> <event>LOGIN</event> <username>user@domain.com</username> <domain>domain.com</domain> <remote_address>ip_address</remote_address> <date>2008-05-23 20:19:36</date> <comments></comments> </user_activity> [/CODE] I am trying to query the DB to get the total results of activity PER DAY. This is my query (which obviously doesn't work): … | |
Hello, I am having some trouble reading data from a .txt file. I know that the file contains strings separated by white space. The problem is, I don't know how many strings there are, so I would like to go through the file one string at a time, and then … | |
Hi. I am a little new to mixing C and ASM and I was wondering how one could pass a value from one asm function to another ASM function that then pushes the same value to a C function. What I have is this: 01. ASM 01 loads ASM 2 … | |
Hi there I get the following error message while displaying a page DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'f'. I have a FormView control which is bound to an sqldatasource when it is loaded, it displays the above error msg here is the formview ItemTemplate code … | |
hi all, Can anybody help me, In my project, Im using Tomcat5 webserver and Oracle10g as backend.now I want to display one report .For that Im using CrystalReportsXi with JSP page , Report is generated correctly and displayed on to browser with out images.Images are those came with CrystalReport Tool. … | |
can somebody give example python script that execute debian package when button is clicked. here is the example picture (i`ve created the glade files with Glade Interface Designer): Thanks for any attention.A little help would be usefull, since this program is to help those who tottally offline. [ATTACH]9031[/ATTACH] |
The End.