132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for still_learning

Hi, I could use a little help if anyone would be willing. I have some vectors which I am using to store input from a text file. Now I want to be able to store user input into a vector and output it to that file so that it replaces …

Software Development c++
Member Avatar for still_learning
0
207
Member Avatar for t_yalthis

hi, I am having some troubles while trying to connect a database which uses mssql server. Every attempt results with the error "[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied." [CODE][INDENT]OleDbConnection conn = new OleDbConnection();[/INDENT] conn.ConnectionString = "Provider=SQLOLEDB;Persist Security Info=False;Integrated Security=SSPI;Initial Catalog=voters;Data Source=T_YALTHIS\\SQLEXPRESS;Workstation Id=T_YALTHIS;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use …

Software Development encryption mssql open-source
Member Avatar for abhay_pundir
0
136
Member Avatar for Kyouya

I've been trying to figure out whats wrong with my project. Its about multiimensional arrays. I am trying to input data from a file to a 2d array. Here is my code below; [code] #include <iostream> #include <fstream> using namespace std; const int I=3; const int J=3; //will input 2 …

Software Development c c# c++
Member Avatar for Kyouya
0
181
Member Avatar for sidharthrshah

Hi, I have a legacy application in vc++ 6.0 which communicates to a server. The server follows c++ data types. I want to convert my legacy application to c#. Now I am facing some conversion issues. The server accepts data in binary format. But when I declare a char data …

Software Development c# c++
Member Avatar for alc6379
0
263
Member Avatar for wleemitch

If I have in a text file a word followed by numbers, how would I read only the numbers? Ex: Add [COLOR="Red"]5645635654653463546[/COLOR].

Software Development c++
Member Avatar for wleemitch
0
196
Member Avatar for hezfast2

Hello, I'm almost done with this program, but when I want to sell an item (option 2) I get an error after I enter how many 'vector subscript out of range'. The program compiles correctly, but I cannot for the life of me figure this one out. Any Help? [code] …

Software Development c++
Member Avatar for littlestone
0
405
Member Avatar for toolbox03

How do i read in an equation in this format: 1 + 2a + 3b + 4c? I need to extract only the value 1, 2, 3, 4.

Software Development c++
Member Avatar for toolbox03
0
142
Member Avatar for chatt

Dear all, Just got one more question. I tested in my java JMF program just now. I found that AVI and MOV format are supported by JMF. Whereas the WMA format is not supported at all. May I ask why it is so? Or is there anyother way to support …

Software Development java video
Member Avatar for jessen
0
654
Member Avatar for dark_ivader

Hello, ive recently been making a program, and am trying to do some file i/o so that it can log information. Ive been trying to do it via a class. Well, i ran into a problem just clearing the char arrays (for my purposes they need to be cleared to …

Software Development c++
Member Avatar for Lerner
0
113
Member Avatar for javauser215

I have several files and am receiving errors message when compiling and would appreciate any help. Thank you in advance. Model class file: [CODE]class Model extends Product5 { String genre; //add product to product inventory double restockFee; //fee for restocking //initialize constructor public Model( String genre, String name, int identificationNumber, …

Software Development gui java java-swing printer
Member Avatar for javauser215
0
123
Member Avatar for compovet

Hi I'm a beginer programer and I need your help I'm using visual studio 2005 writing with c#, Iwant to make a small program at console this program give the root of a number. I writ this code [CODE]double one = double.Parse(Console.ReadLine()); for (double x = 1; x <= one; …

Software Development visual-studio
Member Avatar for corwing
0
119
Member Avatar for mhopeck

I'm trying to code a program that compares multiple values of two variables (CI and CF). CI contains one variable that can have 1 of 10 values, and CF contains variables which must be solved themselves (and one of these containing a variable that can have 1 of 3 values). …

Software Development c++
Member Avatar for mhopeck
0
82
Member Avatar for sfurlow2
Member Avatar for VernonDozier
0
136
Member Avatar for hezfast2

Hi all. I'm having a minor problem with cases in my program. If I enter a number that is out of my case range (say I enter a 10 when there are only 4 cases) I've got my default to output an error prompt. When I enter a character, say …

Software Development c++
Member Avatar for hezfast2
0
103
Member Avatar for FreezeBlink

Python's system of deciding for you what type to give all your variables is nice and all, but is there a way to force it to give a variable a certain data type? For instance, if you give it the following: [code=Python]n = 2 m = 3 print n/m[/code] It'll …

Software Development python
Member Avatar for vegaseat
0
104
Member Avatar for 1s2k3y4

there is a imformation when I write "javac Test.java" that is " Test.java uses or overrides a deprecated API. Recompile with -deprecation for details." yes,I want to see the detail,but how,how to do? for example ,I write like this:javac deprecation Test.java ,but fail,nothing display..... who can tell me how to …

Software Development api java
Member Avatar for 1s2k3y4
0
173
Member Avatar for micksatana

hi, i'm really a newbie in xslt. i try to add string to a variable using concat (there is some how my xslt processor doesn't know string-join, but that's not the point here =P) this is some part of xml code [code=xml] <node0> <node1> <node1name>xxxx</node1name> <node2> <node3>01</node3> </node2> <node2> <node3>02</node3> …

Software Development xml
Member Avatar for micksatana
0
1K
Member Avatar for sfurlow2

I'm trying to create 1000 random numbers using an array. I keep getting the same number everytime, though. How do I get 1000 different random numbers? Here's what I have so far: [CODE][LIST=1] [*]#include "stub.h" [*]int main() [*]{ [*] int number[1000], i; [*] int r[1000]; [*] [*] for(i=0; i<1000; i++) …

Software Development c++
Member Avatar for Blondeamon
0
92
Member Avatar for hermit08

Hi there, i am a beginner so please don't laugh at how basic my question is. I don't understand why when i check the radio button the constant doesnt appear in the label..i'll put in the bit of code i am working on but if you need to see the …

Software Development display vb.net
Member Avatar for hermit08
0
138
Member Avatar for leroi green

hey all. the program is for Chapter 8 Lesson C in the Visual Basic 2005 below is code where i have to create a program that allows the user to enter a 4-digit number that identifies whether the salesperson is full or part time. "Each salesperson at BobCat Motors is …

Software Development vb.net visual-basic
Member Avatar for toko
0
456
Member Avatar for RbtCorrigan

I get this error message when trying to open my 2002 access database using MS visial Studio 2005 "System.IO.FileNotFoundException was unhandled" using the code below Imports System.Data.OleDb Imports System.Console Dim cn As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Source=C:\temp\MIRC\CCC_DATA.mdb;Persist Security Info=False") cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\MIRC\CCC_DATA.mdb;") cn.Open()

Software Development microsoft-access open-source vb.net
Member Avatar for kyoussouf
0
136
Member Avatar for sibotho

Hi I have a database with a Contacts table, in this table I have 2 columns emailAdd and byEmail. I want to select emailAdd where byEmail = Y and add these selected items into a Listbox. Please help how do i do this this is what I tried but does …

Software Development
0
85
Member Avatar for potentialdesign

ok so i know all there is to know with text programming in c++. now i need to know how to give my program an interface. you know, like not using the command prompt any more.:S

Software Development c c# c++
Member Avatar for potentialdesign
0
118
Member Avatar for El Duke

Hi Again, If I have this 2-D array stored in [B]s1[i][j][/B] : [CODE] one two three four[/CODE] And I wanted to copy the whole row IF the first letter of that [B]row ==o[/B] . How Can I do that ? assuming that the destination array is [B]s2[k][l][/B]. I am confused …

Software Development c
Member Avatar for El Duke
0
162
Member Avatar for NAB888

Hi everyone, Would someone please tell me how to hide the command prompt window while my Tk/Tkinter program runs, I'm kinda new to windows programming, but i'm doing all right. (except the command prompt window keeps sticking its tung at me) Thanks for any help, I appreciate it.

Software Development python tkinter
Member Avatar for eibwen
0
72
Member Avatar for Prabakar

When I searched the web, I found an intersting program, I dont think I can explain a bit. But, I would like to share it. It displays my home country thats the most I can say about it! Here goes, [CODE=C]#include<stdio.h> main() { int a,b,c; int count = 1; for …

Software Development c
Member Avatar for Prabakar
0
156
Member Avatar for rkittu2000

kindly help me - How to C++ to SQL Database connection

Software Development c
Member Avatar for jephthah
0
41
Member Avatar for Asat232

How to get lpBaseAddress to pass it to : BOOL WINAPI Toolhelp32ReadProcessMemory( DWORD th32ProcessID, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD cbRead, LPDWORD lpNumberOfBytesRead ); It will be very helpful to me if someone can provide a snippet of code how to achieve that. Thanks a lot.

Software Development c
Member Avatar for jephthah
0
110
Member Avatar for WalkmanXD

Does java create an object in runtime or in compiletime ? Another Question : For embeded system [i.e. mobile phone] that have small memory, what happened if I created large number of objects ? Does JME [Java Micro Edition] uses Garbage Collector to free memory ? and how Virtual Machine …

Software Development java
Member Avatar for majestic0110
0
178
Member Avatar for CodeBoy101

Is there a way to chose where a program outputs text to a file ?(or read text from a file). As in selecting which line to start from.? Any help is welcome. :)

Software Development c++
Member Avatar for CodeBoy101
0
144
Member Avatar for ceyesuma

Is there anything I can do to adj. searchList1 parameters? I noticed ?null: in the searchQuery1. What does this denote Thanks Steve query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery(resourceMap.getString("query.query")); // NOI18N list = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(query.getResultList()); searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); searchQuery1 = java.beans.Beans.isDesignTime() ? null …

Software Development java oracle
0
75
Member Avatar for jpparis

I have VB programs intended to be used by other than English-speaking people. When I use MsgBox with vbYesNo, the buttons show "Yes" and "No" (obviously). While everybody understands that (fortunately) it doesn't look very good or if I cared not to have the buttons in the language of the …

Software Development visual-basic
Member Avatar for jpparis
0
245
Member Avatar for sddproject

hi! we have a project where on frm_playername there is a textbox where the user enters a player name and then a button on that form takes you to the game screen form and on this form there is another textbox that should display the name entered on the frm_playername …

Software Development visual-basic
Member Avatar for Jx_Man
0
124
Member Avatar for constrainer

I am very new to programing and C#. I understand a few of the basics but I am willing to spend many hours to work with and learn making silly programs that are of a little use to me. I am wondering what I would use to get a small …

Software Development
Member Avatar for constrainer
0
108
Member Avatar for bhavna_816

I have a datatable which is having n no. of rows and each row has a unique field say ID. Now I want to get a particular row for a specified ID. eg. there are 5 rows in a datatable and the id's are 1,2,3,4 and 5 and if I …

Software Development c#
Member Avatar for corwing
0
114
Member Avatar for monster597

Hi I have design a basic JFrame which displays three buttons in a frame. The code is given below: import java.awt.*; import javax.swing.*; public class PaymentFrame { public static void main(String[] args) { JFrame f = new JFrame("Payment Frame "); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(800, 600); Container content = f.getContentPane(); content.setBackground(new Color(240,170,50)); content.setLayout(new …

Software Development java java-swing
Member Avatar for Ezzaral
0
127
Member Avatar for Nemoticchigga

Does anyone know how to convert a "String^" data type in a visual studio 2005 forms app to an "int"? Ive tried atoi and casting to no success. Any ideas? Thanks.

Software Development c++ visual-studio
Member Avatar for Nemoticchigga
0
100
Member Avatar for kxh29

Hello All! I am trying to do something simple. Which is why our application is failing miserably;) Anyway, I am attempting to use the itoa() - integer to ASCII function to convert an integer value, lets say [B]123 [/B]into [B]"123"[/B]. The code compiles successfully, however during the linking, it says …

Software Development c
Member Avatar for Radical Edward
0
111
Member Avatar for nouryn

i need help in c++ program I'm asked to make a phone book which can sort all the names in it alphabetically plllllz i need help

Software Development c++
Member Avatar for nouryn
0
180
Member Avatar for MAPONYA

Write a C++ program ,that uses modularisation. The program allows the end user to enter a test mark which is converted into persantage by a particular funtion, the test mark is returned to main(), another funtion is called which detemines whether the student passed or failed if ist a pass …

Software Development c++
Member Avatar for real_napster
0
145
Member Avatar for shigehiro

Hi all, I would need your expertise/advice on the problem I encounter right now when I tried to parse in the contents of .csv file. Here is the scenario: 1) I have csv file with the possible entries as follow: ProjCat,RefNum,ProjTitle,MemberName,ProjDeadline,ProjGrade --> Header I,0001,"Medical Research in XXX Field,2007","Gary,Susan",20.05.07,80 R,0023,Grid Computing …

Software Development data-science file-system python
Member Avatar for a1eio
0
260
Member Avatar for elementz

I just found a tutorial that teaches how to change the transparency of a text box with an Increase transparency and Decrease transparency button. I tried to work it but then realised the code was meant for C#. I am just wondering what code I would use to change the …

Software Development c++
Member Avatar for marco93
0
128
Member Avatar for Raptoricus

Hi there, I've been writing in c++ for a little while now and am starting to feel more confident, I've noticed a possible error in a game I've been making, it is that when the player is inputting a character name, it is a possibility that they may put in …

Software Development c++
Member Avatar for Radical Edward
0
171
Member Avatar for Dell XPS

I need to prevent the user from changing tab in a tab control until it clicks on the "Finish" button on the current tab. Thats all

Software Development vb.net
Member Avatar for Dell XPS
0
229
Member Avatar for tones1986

Hey All - i working on a assignment for school. Given that, i would like to say i have attempted numerous ways to get this working, and its a simple part of teh assignment. Basically i am having problems with my 'insert node' method. I am unsure how i have …

Software Development c++
Member Avatar for Radical Edward
0
113
Member Avatar for computers08

[code] double two( double, double); [/code] if the parameters are 17.5 and 18.3, what will it return? Please help

Software Development c++
Member Avatar for Ancient Dragon
0
90
Member Avatar for vegaseat

This was a comment from ee_programmer in reference to one of the Python code snippets. [code=python]""" I was expecting the first class instance to only have one dictionary entry {'person0': 0} rather than two dictionary entries. Similar expectation with second class instance. How do I create and assign value to …

Software Development python
Member Avatar for a1eio
0
212
Member Avatar for computers08

[code] int test(int, char, double, int); double two(double, double) char three (int, int char, double); [/code] I need a statement for the function test with the actual parameters 5, 5,7.3, and 'z' please help

Software Development c++
Member Avatar for Prabakar
0
94
Member Avatar for nelledawg

Okay so I'm pretty sure I've completely destroyed this code. All I'm trying to do is send the user-inputted product info into a binary file to display when the user chooses the report option from the menu. I'm so confused though and I think I really screwed it up. [CODE=c] …

Software Development c
Member Avatar for nelledawg
0
101
Member Avatar for push

how to pass input to an java program through keyboard. If java programe is compiled at editplus.

Software Development java
Member Avatar for sushil4U
0
214

The End.