132,726 Archived Topics
Remove Filter ![]() | |
hi i created an application in vc++/MFC now iam using ado to connect to the databaase but there is aproblem i couldnot find any solution for it ....pleeease help the problem is this error : [B]error C2146: syntax error : missing ';' before identifier 'm_pConn'[/B] while iam defining : [B]in … Software Development c++ | |
I'm having a little trouble with one of my exceptions. The following code is just a simple division of two integers. I have built two exception to handle an InputMismatch and divide by zero. What I want to happen is when there is an exception, I want the program to … Software Development java | |
recently i was reading a tutorial about the ole api and i think i managed to get through the whole tutorial but when i try to use some of the functions the tutorial uses like oleuninitialize then i get an error saying undefined reference i would like to know what … Software Development api c++ windows-api | |
[ICODE]def aquariumTicket(total = 0): age = input("What is your age?") if age < 3: price = 0 elif age >=3 and age <=12: price = 19.5 elif age >= 55: price = 21.5 elif age >12 and age <55: price = 26 print "Ticket price: $%.2f" % price others = … Software Development python | |
I need some guidance in a little project. I want to make a Document/View project that opens some planing files. I want the view for this files to be something like an excel sheet so you can modify the values of some fields and then be able to call some … Software Development c++ | |
Hello, I am having the following problem with calling my function to return the salary it calculated depending on the switch statement. I don't understand the error: ": error C3861: 'getSalary': identifier not found" [code] double Salary::getSalary() { return salary; } void Salary::compute() { cout << "Enter the employee's paycode … Software Development c++ | |
def divide(dividend, divisor): This function should return the calculated value of integer division of divisor by dividend. Calculate the solution by using subtraction recursively to divide the two numbers. You are not allowed to use the division operator for this problem. Explanation: note that 7 divided by 2 is 3 … Software Development python | |
i can't understand what problem with the statement below. No error in sql statement and connection. Date dt; dt = (rs.getDate(1)==null?"":rs.getDate(1.trim()); Software Development java | |
Hello, this is sasidhar. I am going to attend an Inteview. He gave me a simple project using servlets. Inventory management. I am searching for procedure in net. If anyone gives Some useful information regarding this I am very thankful. If I submit this project almost I will get job. … Software Development java | |
I have this error : "no appropriate default constructor available " in Form1.h. Form1.h [code] #pragma once #include <time.h> #include <windows.h> ref class CCenter; namespace RCK { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// <summary> /// Summary for … Software Development c++ | |
hello i have just started learning c++ .But Im not able to get any good compiler for c++.Can anyone out there help me by suggesting me a good website from where i can download c++. Software Development c++ | |
I am trying to modify code for a usb thermometer prob for linux. I have the source code and the makefile used to compile. When i use make to compile, it will compile and work just fine no problem. I am trying to setup eclipse so i can modify the … Software Development c linux-kernel storage | |
The error is listed in the title and then commented in main (last comment). The program runs but once it encounters the bool expression I overloaded, it seems as if the program pauses. I have a feeling it's a stack overload due to the way my function operates, but I … Software Development c++ | |
hii friends plz help me. i m new in VB. I hav a .bat file. i tried executing this file in VB6.0. bt i cant execute tht correctly.u\i tried using shell command Shell("D:\USB\MY FINAL PROJECT\RECOGNIZER\recognizer.bat", 1) i hav to run d .bat file and only aftr the execution of bat … Software Development visual-basic | |
I'm trying to use fstreams to read and write binary data to a file with the following code: [CODE]#include <fstream> #include <iostream> using namespace std; int main(){ ofstream out("test.data", ios::binary); for(uint i=0; i<10; i++){ uint outcount = i+100; out.write((char*)&outcount, sizeof(uint)); } ifstream in("test.data", ios::binary); for(int i=0; i<10; i++){ uint incount; … | |
Hello! As a college assignment, I'm finishing a small applet that communicates with a MySQL database (through a Java server via RMI - all this is part of the assignment). It's doing all it should except for one thing: in one of the tabs I included a JTable that lists … Software Development java java-swing | |
Hi All , I am new to this forum and Ajax technologies. let me introduce you first , my name is sam and working as a java developer. I am working in a project where i need to use Ajax . I have a Jsp which have 2 combo's in … | |
I'm trying to demonstrate various array operations, and have a couple of questions. I'm having problems with printing out the column and row totals. It only prints out the totals of the last row and last column. It also only prints out the lowest of row 1 and the highest … Software Development java | |
In VC++ 2008 Express, I open a new "Hello World" project (CLR Console Application). If I right-click the project in the solution explorer, and select "properties", I get a "... Property Pages" window which shows a line entry for: Configuration Properties / C,C++ / General / Additional Include Directories. It … | |
dear friends, i want to update the table2 field which is same as table 1 field in ms accessdatabase. when ever i enter data in table1, table2 field which is same as table1 field should updated.table1 and table2 are connected to form1, form2 seperately. i request any body, please let … Software Development visual-basic | |
Ok, I am building a text based rpg. This an excerpt from my code. at one point it asks what your name is. When you type that in I put it into a string variable called name but I want to be able to save it to a binary file … Software Development c++ | |
How to create a tree control with child nodes having check boxes? I want the check boxes to be preferably on the left side of the nodes. Software Development python | |
Hi there. I'm new to Python. I started learning it 3 days ago. I've figured out everything by myself so far, but this is stumping me: Whenever I load a file such as a html document or a text file, it loads fine. But when I load this gif or … Software Development file-system gui open-source python | |
Is there a way to overlay graphics in Python? I'm looking for functionality similar to X-fire. That is, I want to be able to press a set of keys in a game and a GUI screen with some options (possibly a shell script) that doesn't cover up the game should … | |
Hi, I have a readFile() function that reads a csv file into a vector. The first two lines of the csv are collum headings. After reading and displaying the file on screen, replacing ","'s with spaces, it asks if the user wants to append new entries. If yes, it calls … Software Development c++ file-system | |
i want to be able to create dynamic buttons. so ive used the code : [CODE]TButton* Btn = new TButton(this);[/CODE] my first question is: how do i assign a function to the dynamic button?! my second question is how can i put the code into a loop as to be … Software Development c++ | |
I have heard about the: char myline[100]; cin.getline(myline,100); but when my coding is long it doesnt work i gues as long as i would like it to? here is my code for example: [code] #include <iostream> using namespace std; int main() { int length; int width; cout << "Enter the … Software Development c++ | |
hi all i am using VC++ editor. Can anyone tell me how to insert sleep in my program? i have tried sleep(). but it is giving an warning 'sleep' undefined; assuming extern returning int. Thanks in advance | |
i am working on an application where some test results are received from a serial port and getting stored line by line in a text box.now i have to compare each line with an existing data base( that is with a field of each record )and display interpretation of each … Software Development visual-basic | |
Hi !!! I have so strange problem... i dont know what i have to do.. Quote from[B] form1.h :[/B] [code] #pragma once #include "Center.h" #include <time.h> #include <windows.h> namespace RCK { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// … Software Development c++ visual-studio | |
Hi, I wonder if anyone could help me, I am just starting out in the world of VB.net and I have a couple of tasks that I am having a bit of trouble with. This will probably be very simple to all of you experienced users: see below: 1. Using … Software Development vb.net | |
Help - the static_cast< double > is not calculating the value of term and I cannot see what is wrong. [code] void eConstant::compute() { cout << "Enter the desired level of accuracy to calculate the mathematical constant e, \nmeaning the number of terms in the summation: "; cin >> accuracy; … Software Development c++ | |
Hello Everyone, I just joined here hoping to increase my knowledge at python. I have been beginning to learn this language as of yesterday. I have decided that if I really want to increase my knowledge I should start on a project. Well here is my first project, a simple … Software Development python | |
Hi Guys, I am quite experienced in programming with Java. I have though come accross a small problem, I don't know how to implement the MVC pattern. I understand the concepts of the MVC pattern and I was hoping that someone on this forum could help. I have a model … Software Development java java-swing | |
what it is, i have saved data on a previous form into the database as words, but then i convert the words into its own unique ID. thus i want to load the data in another form, but i want to load the name of the item, not the ID. … Software Development app-store open-source visual-basic | |
Hi... I want to create windows service for my abc.exe through programaticaly in c or c++ how to do this??? Software Development c++ | |
Hello, I've written a short app that (in theory) connects to a remote box on port 23, and simply reads what is returned. The ultimate goal is to log on to the box automatically in order to automate some of my less interesting tasks. I get the socket set up, … Software Development c++ | |
I have a bunch of params: InputParam1, InputParam2, InputParam3, etc... I would like to loop through them instead of writing out code for each one, but am having some issues getting it to work correctly. Here is what I have so far: [code=vb] Dim iCount As Integer Dim objTemp As … Software Development visual-basic | |
I'm trying to skip part of my loops by using continue; however, I am unsure where how much code each continue statement skips. My suspicion is that, in the below code, the continue statements effectively do nothing and put my code right before the return false statements. I have marked … Software Development c++ | |
3.6 * vector_a; why can I not implement this binary operator as a member operator of a class Vector? [code] class cycle { cycle(); ~cycle; pedal(); }; class bicycle { bicycle(); ~cycle; pedal(); }; bicycle *bikeptr = new bicycle; cycle cycleptr=dynamic_cast <cycle>bikeptr; cycleptr->pedal(); [/code] Okay, here are the questions I … Software Development c++ | |
I've got a pretty simple question. I'm trying to ask the player for to choose a difficulty. I want the case to be to not affect his choice, so I am using the toupper() function. Unfortunately, when I try to return the value of the difficulty, no matter what difficulty … Software Development c++ | |
Hi, I want to use a function from a different file in the main method of another file. Both the files are in the same visual studio project. I used the extern "C" keyword in the foreward declaration of this external function in the file containing the main method but … Software Development c++ visual-studio | |
[CODE=C] /** calculate the value of 'a' raised to 'b'.**/ #include <stdio.h> int main (){ int a,b,calc,calculation; printf("Enter value of a and b\n"); scanf("%d %d",&a,&b); calculation=1; for(calc=1;calc<=b;calc++) { calculation=calculation*a; } printf("%d raised to %d is %d",a,b,calculation); return 0; } [/CODE] My problem is I don't understand how this part " … Software Development c | |
I'm creating a program that connects to an IP address on a specific port, then uses the recv() function to return the data from the address. I don't know how to go about creating the buffer the data will save to. At first I was just going to create a … Software Development c++ | |
I have two questsions. The first being is it possible in VB to have a user input information during the file setup and have that information be used in the source code, then compiled, and then used after the setup is complete? Say I want to have the user input … Software Development vb.net | |
... what i am trying to do use thr GridChessBoard clas to paint/drae an empty board then return to the program which adds the men/pieces to the board. ... i can get the empty board but it doesn't add the meb/pieces. i don't know why. i suppose i bit off … Software Development java java-swing | |
Hello everyone As you can see, this is my first post. We're trying to write a cards game and it uses 12 cards. Someone taught me to put the buttons in an array, which i think is a really good idea. I'm encountering one problem, how do i create an … Software Development java | |
Hey all, I need a bit of help starting on a homework assignment. I'm not asking for you to do it for me, I just need a little help getting started on it. Here is the site with information about the assignment: [URL="http://scidiv.bcc.ctc.edu/fl/cs210/Program4-S08.html"]http://scidiv.bcc.ctc.edu/fl/cs210/Program4-S08.html[/URL] I really need just a little bit … Software Development c++ | |
I'm trying to make a Connect 4 game and I'm getting it to work, but I think I'm doing it in a very long and hard way. I think that array were created to simplify code like this, but I'm not sure how to use an array for this occasion. … Software Development java | |
<HTML> <BODY> <APPLET CODE= MyHangman.class WIDTH=1000 HEIGHT=1000> </APPLET> </HTML> I need to know what to do next below is my java file and I am confused with how to check the words i have in the array and the letters guessed in the word....anything would be useful thanks......and do you … Software Development java |
The End.