132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for KickAssElmo

So I need to write a function that if a file exists, it will change the file name by sequentially adding integers, starting with 1, to the base file name (the part that does not include the file extension). so if the filename is hello.dat, then it will return hello1.dat …

Software Development python
Member Avatar for ihatehippies
0
251
Member Avatar for rhone0809

i am new to vb.net... my problem in this query is that "Format is not a recognized built in name" this Format() is an sql function right? is there a header file to call the format() function just like c++? can anyone help me with this? please! here's my query …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
149
Member Avatar for networkmancer

Proper way of doing this? Please disregard some variables. [CODE]Imports Oracle.DataAccess.Client Imports Oracle.DataAccess.Types Public Class Addcage Dim conn As New OracleConnection Private cmd As OracleCommand Private da As OracleDataAdapter Private cb As OracleCommandBuilder Private ds As DataSet Dim roomprice As Integer Dim roomtitle As String Dim lubid As String = …

Software Development dataset open-source oracle sql vb.net
Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for Shreya J

Hi , In my application I have to implement Tooltip for Link Button. When mouse hover on link button , I should get a Tooltip. It can be a Telerik ToolTip as well. Please help me with this concept. I need step by step process for implementing this. Regards.

Software Development asp.net gui seo
Member Avatar for Shreya J
0
1K
Member Avatar for anammath

Hi guy, would you help me, how to create table (ACCESS) with primary key in visual Basic 6? Set catNewDB = CreateObject("ADOX.Catalog") catNewDB.Create "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & sDatabasetocreate & _ ";Jet OLEDB:Engine Type=5;" ' Engine Type=5 = Access 2000 Database ' Engine Type=4 = Access 97 Database Set …

Member Avatar for Jx_Man
0
164
Member Avatar for ashley.s

Hello Everyone, I would like to seek your help since I am a beginner to vb. I want to create a report based on some criterias such as dates or names. For example, the user will select the dates from a combo box above and the report to be displayed …

Software Development vb.net
Member Avatar for artemix22
0
190
Member Avatar for Vladnaka

Hello, everybody, I am doing my Java homework and we used this line in class with no problems at, I have the code from the program we used in class and it works on my computer no problem. However, when I put it into my homework's code, it gives me …

Software Development java java-swing
Member Avatar for crimsondawn
0
876
Member Avatar for jazzermonty

Hi folks. I'm new here so appologies if I'm not posting in the correct place. Here's my issue. I want to paint independent graphics on the same JPanel. I thought that I could create a method that paints my image(s) then call this in the constructor, but not sure what …

Software Development java java-swing
Member Avatar for ztini
0
150
Member Avatar for andur92

Hi, I am new to programming and have just started learning C and C#. I am trying to print the following pattern using for loop in C# 1 23 456 78910 and so on... I have tried everything but its not giving the desired output. Can anyone help me with …

Software Development
Member Avatar for dwarvenassassin
0
608
Member Avatar for kikic

if (A == nullptr || B ==nullptr) { cout<< "empty"; } When a put this code in Visual C++ 2010 Express, told me this error no operator "==" matches these operands Could someone help me how to solve, it is really important

Software Development c++
Member Avatar for rubberman
0
203
Member Avatar for gabriellogan

I already wrote the code to read in these two files: processing_rules.txt - which will contain rules like these: 0R1, 0R2 1S3, 0S3 end input_data.txt - will contain data: 5 00110101 The positive number (5, in the example above) represents the position in the second-line sequence, from which processing will …

Software Development c++ file-stream
Member Avatar for gabriellogan
0
128
Member Avatar for phorce

Hello I'm making an application that reads a series of values from a text file and then converts it to a bitmap image. Currently, I'm using arrays, but, deciding on a particular length is annoying. I have been reading a few tutorials and i've read a lot about using vectors, …

Software Development c++
Member Avatar for mrnutty
0
87
Member Avatar for DoubleZ

Hello, so my assignment was to take a text file that contains a properly written C++ program code and to go through that code character by character and output all the comments in that code to another text file. This is what I got so far, basically I`m wondering how …

Software Development c++
Member Avatar for Panathinaikos22
0
225
Member Avatar for bettybarnes

Hello guys, I want to ask the experts here, if what technology of .NET would I consider when my client wants his POS connected to a USB-based Scanner? Is still a serial communication? I'm a new programmer so please do give me some advice. thanks

Software Development vb.net
Member Avatar for ChrisPadgham
0
106
Member Avatar for Sheepdawg

Bored and just wrote this. Anything I did wrong? Anything that can be improved? Relatively new to C++ but I have the basic basics down(I like to think so anyway). [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; void programIntroduction(); void gameLoop(); int playerChoice, cpuChoice, wins=0, losses=0, ties=0; int …

Software Development c++
Member Avatar for Lerner
0
245
Member Avatar for rucafe

I have created two classes: [code]class dm_Step { public: char m_plus; char m_particle; float m_energy_sec; float m_xpos_sec; float m_ypos_sec; float m_zpos_sec; }; [/code] [code]class dm_Track { public: vector<dm_Step> m_track; } [/code] I have a data base with hundreds of lines of code in the following format: + gamma 2.306013 -0.213225 …

Software Development c++
Member Avatar for gerard4143
0
197
Member Avatar for Poikaer

I'm in a computer programming course on Florida Virtual School, and I'm stressing out over our current assignment, because it seems like it should be easy. The point of the assignment is to write a program to count how many times the Scribbler robot stalls and then print the results …

Software Development python
Member Avatar for Poikaer
0
160
Member Avatar for mrmodest34

Hey, I am having trouble implementing a c++ function that will allow the user to enter a lower and upper bounds and reverse everything in a char[] in between the bounds, so if array is, char[] = {'A','B','C','D','E'}; and the user input was 1 and 4 for 1 as the …

Software Development c c# c++
Member Avatar for Lerner
0
196
Member Avatar for UtaChan

I had to write a program that finds out whether a matrix is Skew-symmetric matrix or not...well my code is a disaster I seek help in this matter. In which way can I write this code to make it eficient,short and smart? this is my code (yet again it;s a …

Software Development assembly
0
101
Member Avatar for MrEARTHSHAcKER

Hi, I noticed many programmers accuse C++ as very hard language for GUI and very good language for the code. Is there any way to integrate 2 languages, C++ and any other language which is easy to make GUI with? Thanks.

Software Development c c# c++ gui
Member Avatar for mike_2000_17
0
275
Member Avatar for slasherpunk

I'm trying to run a simple servlet that counts the number of times a user visits the page using cookies but I'm getting the following error. I thought that NullPointerException was because there were no cookies at all in the browser. But after checking I found a couple of cookies …

Software Development apache java web-browser
Member Avatar for NormR1
0
333
Member Avatar for Graphix

Hi, I've been trying to learn what pointers are and how they function, and I now finally understand most of it. However, I don't understand the assignment of strings to a char *, and what the values they have mean. I wrote a small program to learn: [CODE]#include <stdio.h> #include …

Software Development c
Member Avatar for Graphix
0
174
Member Avatar for acepeda

Hey guys! I'm almost done with a payroll application im creating but I'm stuck with this Crystal Reports issue.I want to filter the report by displaying data by two specific textbox,TextboxA(EmployeeID) and textboxB(PayrollNumber).How can I do this?please help!!

Software Development vb.net
Member Avatar for acepeda
0
163
Member Avatar for KRUX17

The code below takes the quantity of tickets from the 55 tickets that is available and it stores the value in a text file. What I want the program to do is to store the amount of tickets that is available and then each time the program executes it will …

Software Development c++
Member Avatar for KRUX17
0
107
Member Avatar for kyriacos1986

I want to update a record of a gym member when his/her weight change. But unfortunately my program can't find the given member. Here is my code: [CODE] public static void updateWeight() { Scanner in = new Scanner(System.in); // Creation of a new Scanner object String tempName = ""; // …

Software Development java
Member Avatar for kyriacos1986
0
137
Member Avatar for FUTURECompEng

Hi, I created a game in which players take turns entering their symbol by clicking on a box that is implemented on a grid window. I am having a hard time being able to check if the player has four symbols in a row diagonal or up or down or …

Software Development gaming java java-swing
Member Avatar for FALL3N
0
298
Member Avatar for suneel kar

anyone who can help me regarding how to read data from .dbf files recordwise.

Software Development visual-basic
Member Avatar for ppappu
0
2K
Member Avatar for pythonn8

hi , how can i print data as grid view in python, in my case a variable is carrying all the data which is coming from table and i want to print them by using two nested loops. [CODE]data_from_table = ['col 1'] + "/t" + ['col 2'] + "/t" + …

Software Development python
Member Avatar for pythonn8
0
363
Member Avatar for ljvasil

Hi everyone, I've written a cellular automata code in python that updates land uses based on each cell's adjacent neighbors. I import a text file as a dictionary with cell id: land use code. I also import a text file with each cell's adjacent neighbor. I then run the cellular …

Software Development python
Member Avatar for ljvasil
0
177
Member Avatar for caltech

Here's the full assignment: [QUOTE]The ABC Corporation wishes to review a group of its products based on their performance in the prior fiscal year. The company has the sales data for these products for each quarter in the year. Having heard of your programming experience, the company has hired you …

Software Development c++
Member Avatar for caltech
0
141
Member Avatar for Lucaci Andrew

So, what is my deal... I'm working on a script, which, at some point will require the user to insert his or hers username and a password. My question is, how can I make that when the user will write in the password box/line whatever, instead of its characters, to …

Software Development assembly python
Member Avatar for Lucaci Andrew
0
180
Member Avatar for cajohnson

I am working to take c code from an academic paper and edit. I am studying cryptographic algorithms. I have ran the following code, but I am having a little difficulty understanding two things. First, the program uses unsigned long ints. When they are added or subtracted, I don't get …

Software Development c encryption
Member Avatar for cajohnson
0
212
Member Avatar for Tashalla

I have a battleship python assignment due in an hour and I can't figure out where the error is in this code. It seems like when player 2 plays sometimes the coordinates saved in Board.remaining_ships can't be deleted because they aren't there. Please please please help Here is the error: …

Software Development app-store gaming macos python
Member Avatar for woooee
0
765
Member Avatar for beho86

I am having a hard time getting specific text from a webpage. [url]http://mbible.com/john/1-1.htm[/url] OR [url]http://m.bible.cc/hebrews/1-3.htm[/url] (Whatever easier!) I want to get the text infront of "KJV" label. ex: KJV: sometext. how can I get this "sometext" tried this and didn't work. [CODE] 'Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("a") 'For Each …

Software Development vb.net
Member Avatar for beho86
0
144
Member Avatar for KRUX17

Hi, I was wondering is there a way where you can sell limited tickets. For example there are 55 seats in a bus and 55 people bought the tickets for the bus,the people who want to buy those tickets for the bus must wait for an hour. How would I …

Software Development c++
Member Avatar for KRUX17
0
246
Member Avatar for networkmancer

During Loading of form I call connectpaybox to show the list in the combobox, but after that it will result in the error "[COLOR="Green"][I]Operation is not valid due the current state of the object"[/I][/COLOR] but the combobox items that was taken from the database shows. I tried "select CAGECOST from …

Software Development vb.net
Member Avatar for networkmancer
0
505
Member Avatar for DavidB

I had an old version of Mathcad (version 7) running on an old computer (running Windows 2000). That computer recently died, but I have several .mcd files saved. I doubt there is an upgrade path for me; my version was too old. And 95% of the time, I used it …

Software Development
Member Avatar for TrustyTony
0
274
Member Avatar for timkunce

I am only allowed to use int, unsigned int and float. Must be accurate to the 7th significant digit. Currently I overflow 'float top' at an x value greater than 13. Thank you for your time. [CODE] #include <iostream> #include <iomanip> using namespace std; float sum=1,x, top=1,factoral=1; int main(void) { …

Software Development c++
Member Avatar for Se7Olutionyg
0
4K
Member Avatar for shahinkey

Dear all, I have problem with reading from ini file. My code is as follows, but it has Error with GetPrivateProfileInt. It cannot read and the error is : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion …

Software Development c++
Member Avatar for AritraP
0
287
Member Avatar for choosechrist

In my project, all my forms access the connection string from the login form which takes data from an XML file [CODE]Dim thisConnection As New SqlConnection(LoginForm1.cnString)[/CODE] now when i create crystal reports. i first select a viewer which calls the report via code [CODE]cmd.Connection = thisConnection cmd.CommandType = CommandType.Text cmd.CommandText …

Software Development vb.net
Member Avatar for choosechrist
0
311
Member Avatar for torrm

Hello all. A friend is shipping some items in a container so it gave me the inspiration to write a quick little program. This only took 20minutes at best so please bear that in mind. The basic idea is if the containers size is known, and the cost is known …

Software Development c++
Member Avatar for Labdabeta
0
428
Member Avatar for jemz

Hi, Can i ask something what type of eclipse should i use in developing android.there are many of them,can you help me on this please.Thank you in advance. Eclipse IDE for Java Developers, Eclipse IDE for Java EE Developers, Eclipse Classic 3.7.1, Eclipse IDE for C/C++ Developers (includes Incubating components), …

Software Development android android-development ide
Member Avatar for jemz
0
209
Member Avatar for VasquezPL

Hi guys, I need your help: I tried to initialize an array like this: [CODE]string[] relation1;[/CODE] then I fill it with another function that contains the code: [CODE] for loop then: relation1[z] = something; [/CODE] but...compiler always writes that: [CODE]relation1' is never assigned to, and will always have its default …

Software Development c#
Member Avatar for VasquezPL
0
292
Member Avatar for vlaskiz

Currently working with graphical interface and dynamic object arrays, Got two text files with kinda same data on it, my current task is just to read and output that data. Problem is most likely either with my read function or function to determine how much data there is in files …

Software Development c++ ios
Member Avatar for vlaskiz
0
612
Member Avatar for alenD

Hi all, I am doing something like this int f(){ umap::iterator p = mmap.find(s); if(p != mmap.end()){ ....... } } My memory usage is somehow constantly increasing. While exiting the function do I need explicitly delete the iterator p? Thanks in advance, _alen

Software Development c++ programming-construct
Member Avatar for MastAvalons
0
590
Member Avatar for faraz ahmad

Aoa, Hello All, i am having problem in this question Write a program that takes integer input from the user and store into the array dynamically allocated each time a new element is added. Your program should prompt user to take integers until he enters -1, which means end of …

Software Development c++
Member Avatar for MastAvalons
0
344
Member Avatar for learntosucceed

I'm noob at GUI Swing. I have 2 questions. 1)I'm trying to implement a program that reads a text file, so I can use it to add multiple tabs to the program based on the amount of data in the text file. For example, text file have 3 names. I …

Software Development gui java java-swing
Member Avatar for nandosss
0
2K
Member Avatar for bhallarahul

hi everyone you guys helped me many time this time again i need your help Actually i want to learn struts frame work and i read the content of 2-3 sites but i m not able to learn how to run my first simple application. Can any one help me …

Software Development java
Member Avatar for bhallarahul
0
132
Member Avatar for capton

Please is there anyway in outputting subscripts and superscript notations in c++

Software Development c++
Member Avatar for DeanMSands3
0
415
Member Avatar for tom12

#include <iostream> #include <string.h> using namespace std; int main() { char clear[200]; char cipher[200]; int x,i; cout<<" Enter a string:"; cin.getline(clear,sizeof(clear)); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } cipher[x] = '\0'; cout<<" Encrypted:" << cipher << endl; system("pause"); return 0; } Hey guys hope someone could help me, …

Software Development c++
Member Avatar for tom12
0
196

The End.