132,726 Archived Topics
Remove Filter ![]() | |
Hey all. I am using visual studio 2008 for the first time because i have heard very good things about it (plus i had numerous problems with devc++). Here is a debug.html file that shows an error i am getting while trying to compile my project in visual studio. i … Software Development c++ visual-studio | |
i m using visual studio .net 2003 vc++ mfc i cannot connect to sql server SQLSetEnvAttr() is returning null value everytime i hv used retcode = SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, (void *) SQL_OV_ODBC3, 0); pls help !! Software Development c++ sql visual-studio | |
Hi,guys, I am new to C++,and recently I practice to read a file with visual studio 9.0,but it turns out that it cannot find the very file! [code] #include<iostream> #include<fstream> #include<string> #include<iomanip> #include<cstdlib> #include<vector> using namespace std; //using namespace stdext; int main() { ifstream inClientFile("Dic.dat",ios::in); if(!inClientFile) { cerr<<"File could not … Software Development c++ file-system ios visual-studio | |
![]() | |
Hello Friends please i am in trouble with ExecuteNonQuery() and my connection and i need your help. I have been trying to build a small program and seem to have been lost as to how to solve my problem. The exception details are Exception Details:InvalidOperationException was Unhandled ExecuteNonQuery: Connection property … Software Development open-source vb.net | |
hi im having alot of trouble with this particular code the idea is to read text from a file and print it on screen, i have done that. Next i needed to ouput the longest word onto the screen, this i have done also The bit im stuck with: I … Software Development c++ | |
Hey men When i wanna run the code below,i get the famouse [I]don't send[/I] message and i use code::blocks 8.02 [CODE]#include <conio.h> #include <iostream> using namespace std; int main(){ int start,end; double a[start-end][2],p[start-end]; cout<<"Enter a number to begin with : "; cin>>start; cout<<"Enter a number to finish with : "; … Software Development c++ | |
hai everyone i need the program in c++ for merge list using date structure? <snip fake signature> Software Development c++ | |
Hi Friends Accualy I Have a string(date) like 3/02/09 But I Want The Out Put a=3 b=02 c=09 How Can I Do This Plz Help Me Software Development vb.net | |
I have to create a structure array that contains the title, director, year made, and run time of a list of 4 movies. Then I need to create a function to display the contents of the array. Then ask the user what movie they'd like to search for. Create a … Software Development c++ | |
Hi, guys i need some help! i need to make a txt file with the "-A" command (in shell). that already is implemented in the client, then the client send the file thru sockets and arrive to the server, the server save the file in his directory. But the code … Software Development c client-server file-stream queue unix | |
Hello to all, I am doing a serial communication program in which i want to send '80' (in hex ) to DSP and then DSP will reply '1B' . But i am not able to set proper communication. Anybody please help me in my software My Program is given below … Software Development c | |
I would like to ask that PrintHello accepts a void pointer but how come you can equate it to an integer directly ??? " tid = (int)threadid; " while at the same time instead if a pointer a normal variable was passed into this function " pthread_create(&threads[t], NULL, PrintHello, [B](void … Software Development c | |
I have been working on this array problem since last Friday. We are to accept an employee's gross sales, multiply that by 9%(to find commission) add $200 for weekly salary. Then the program takes that dollar amount and tallies payroll with ( *'s) beside salary groupings.... ex $200-299 **** $300-399 … Software Development java | |
Write a Program that models a simple calculator. Each data entry line should consist of a valid operator (from the list below), and the right-hand operand. Assume that the left-hand operand is the accumulated value in the calculator, with an initial value of 0.0. Acceptable operators: + ..Add - ..Subtract … | |
Hi, i want to run a python script from another python sript as a new process. i have tried with spawn functions of os module but it didnt work. i guess these functions work on only Linux. how to create a new process on windows platform.. Software Development python | |
this is my java coding: [code] import java.util.Scanner; import java.io.*; public class readNumbers { public static void main(String[]args) throws IOException { int num; String filename; Scanner keyboard = new Scanner(System.in); System.out.print("Enter the filename: "); filename=keyboard.nextLine(); FileWriter fwriter=new FileWriter(filename); PrintWriter outputFile=new PrintWriter(fwriter); for(int i=1; i<=5; i++) { System.out.print("Enter a number: "); … Software Development java | |
how to get a string using array? and how can I get input in this format string|12.3 12.23 | example;with no space between the lines and when user enter 0 it will exit david|12.3 24.2| Peter|12.4 24.2| Software Development c++ | |
all i want is if the value of my product stock is 0 then the message box show for example theres no more product stock and also i want is if the user inputted higher value in my text2.text for example my product stock left is 5 if he/she inputted … Software Development open-source visual-basic | |
can anybody tell me why Bold statement is not working. [code] Private Sub Command2_Click() Dim a As String a = MsgBox("You want to Modify....?", vbQuestion + vbOKCancel, " MODIFY") If a = vbOK Then Set rs = New ADODB.Recordset rs.CursorLocation = adUseClient [B]rs.Open "select mr.srno,mr.productname,mr.qty, mr.unit from mrtemp as mr … Software Development visual-basic | |
hi, I used to program in C++ and constructed a linkedlist class (not a very fancy one but just enough to use the head and reference to simply add, and remove data in the list. now i am learning java and realize that java.util.*; has a class called the linkedList … Software Development java | |
i was giving an assignemnt to show stacks with out using the STL . my question is is my code a correct example or not ? and if so can some some one guide or explain to me what i did wrong or what i need to change [code] #include … Software Development c++ | |
hi Friends Iam using Vb6.0 for one msgbox using this message box title need change plz help me.... Thanks Software Development visual-basic | |
I'm making an asteroids clone game, using GDI+ in C#. I don't understand why the asteroids wont move. They are supposed to rotate based on a member indicating rotation angle, and move in a direction based off of a member that indicates movement angle. But they don't do anything at … Software Development | |
im doing this example project, but i cant seem to figure out why visual studio 2008 keeps giving me error C2075-'Target of operator new()' : array initialization needs curly braces. it says the error is on line 47 [code="cpp"] #include <stdio.h> #include <string> #include <vector> class Foo { std::string _str; … Software Development c++ visual-studio | |
I got a problem in designing (may be not design, more like code one) UI for my chat application. here's the problem : I want to make a chat box on mobile device using C#, and I want to be able insert smiley. The problem is, by using textbox or … Software Development c# | |
I am just starting off in a haskell course and I am trying to write a program that takes a list representing an int such as [1,4,3] would mean 143, and convert it to binary and return it as a list in the same fashion. I have written the following … Software Development | |
Hey, I am having trouble with the file I/O part of this program. It seems to start at the end of the files contents and not go into the while loop. [code] #include "queue.cpp" #include <iostream> #include <fstream> #include <iomanip> /******************************************* * class Priority * * Takes input from file … Software Development c++ file-system queue | |
I'm new in programming, i really really want to learn and i think i can learn faster if someone will give me problems so that i can answer them without asking for help from others. Now, i learned loop last week so i think i'm on for making programs. I … Software Development c | |
Hello Daniweb Forum People, I have this problem of getting the decimal of a number? How can I get it and copy to a variable? ex.... 1234.59 I used a for loop in order to get the index value of 59, my problem was with the value? how can I … Software Development c | |
I Have been working on this for a few days now, and I seem to be missing something. What I have to do is: > Design a C# solution with a Main ( ) method that holds an integer variable named seconds to which you will assign a value. Create … | |
This is a little program I'm writing to refresh my knowledge of C and I know it's wrong, but everything I've tried in order to fix it isn't working. [code] #include <stdio.h> #include <string.h> int main() { int const STR_LENGTH = 255; char str[STR_LENGTH]; int n=0,i=0; printf("Please enter a word: … Software Development c | |
I need to write a C++ program. I'm usually pretty decent with C++ but with this one I'm lost. I have to write a program that basically checks to make sure that the braces creating a block in a cpp file are balanced. I'm not looking for anyone to write … | |
Ok i have been working on this for a few days and can not get my main right. I have tried so many diffrent things and couldnt get it any help is appreciated. Design, write, and test a program that simulates some aspects of a simple savings account in a … Software Development c++ | |
001 BITS 16 002 segment myStack stack 003 resb 0100h 004 005 segment myData data 006 somedata db 10101100b 007 008 segment myCode code 009 00A dothingstobx: 00B push ax 00C mov ax, 56h 00D add word ax, bx 00E or bx, ax 00F ret 010 011 ..start: 012 mov … Software Development assembly | |
Greeting All, Peace. New to this forum and am confused about how to approach data analysis of variables with C++. My question I is am simply going to do simple descriptive statistics (mean, mode, variance), and a little more complicated chi square / correlation (Pearson). The approach that I am … | |
Hey guys, I was wondering if the stringstream class copied the string to itself or just keeps a pointer. Because if it copies I can free or clear the string without fearing for the data in stringstream. EDIT: Like this: [code=cpp] string stringz0r("Chickenz"); stringstream streamz0r(stringz0r); //will this not affect the … Software Development c++ | |
Ok, new to C++, I bet this is a real easy question. Every time I input a char, it enters the same char twice to variable. So when I enter "r", and then output it..it outputs "rr" [code=c++] #include <iostream> #include <fstream> using namespace std; #define errorMsg1 "You must enter … Software Development c++ | |
I'm new to C++ and I can't seem to find the problem with my code. I have a function that opens an input file. It asks you to input a file and if it can’t open the file it asks you if you want to try again. If you answer … Software Development c++ file-system | |
In my program I did the following: begin if not OpenDialog1.Execute then Exit; Memo1.Clear; AssignFile(MyFile,OpenDialog1.FileName); Reset(MyFile); while not EOLN(MyFile) do begin Read(MyFile,Text1); Memo1.Lines.Add(Text1); end; closeFile(MyFile); end; Can any one help me to write each word from the text file word by word in the memo. Regards, NOna Software Development pascal | |
Hi all, I'm a PHP programmer and I'm just now getting into C#. Here's the problem I'm having: I have a table, 'categories', with 'catID', 'parentID' and 'name' fields. CatID is the primary key, and parentID is either 0 (no parent, top level) or an existing CatID. With this setup, … Software Development | |
I am trying to use binascii to convert this: [code=python] town1 = """ ++++++++++++++++++++++++++++++++++++ +-------------------------------------------------------------+ +----------H-----------H----------H---------H--------------+ +----------&---------------&---------------------------------+ +------------------------------------------------------------>+ +----------------@-------------------------------------------+ ++++++++++++++++++++++++++++++++++++ """ [/code] into the type of graphics used in PyMike's PixelMan 3, found at pygame.org. I looked at the document on python.org telling about binascii and a little bit about … | |
Now that I can see the data in the datagrid, I realize that the size of the fields is too small - the customerid and customer name fields both could use expanding so that I can see all of the text. Is there a way to programmatically extend the length … Software Development vb.net | |
I would like to use pickle() to save the stats, progress, and location of a player in my text adventure. I know that pickle() write an object to a text file, and that file can be later recalled to load the information. My curiosity is, would I be able to … Software Development python | |
I am trying to insert data from my VB 2008 program into an MS Access Database. My code is as follows: insertSQL = "INSERT INTO ExamInstance (SiteLocation, SiteTime, Student_SEmail, Proctor_PEmail, Exam_CourseNumber, Username, Password) VALUES ('" & SiteLocation & "','" & SiteTime & "','" & SEmail & "','" & PEmail & … Software Development vb.net | |
I am trying to set up an emailprogram, the first code that I try to compile is this where I set an emailTo and emailFrom in the arguments of MailMessage. When I compile this code, I have an errormessage that says. [I]'System::Net::Mail::MailMessage' : class does not have a copy-constructor[/I] What … Software Development c++ | |
hi everyone....i have to convert decimal numbers starting from 1 to 1024 into binary and i need access to all the bits. i have done an example which generates a random number and converts it into a 10-bit binary number. this one worked fine for me... [code=c] for(i=0;i<10;i++) { sec[i]= … Software Development c | |
hello all. :) my assignment is to write a program that accepts a charge account number and then determines whether the number is valid by comparing it to the numbers (listed in the array.) most of my program is correct, except for the last part where it displays whether the … Software Development java | |
Hi For one of my programs i want to be able to graph the performance of things in a graph. The thing is that this graph constantly made a little bit longer with every second that passes. So i was wondering what paintDC to use. And how to use it. … Software Development python |
The End.