132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PinoyDev

Good day! I just want to ask on what is the best ADO connection string to connect to MS Access fast? and what is the fastest way to create it? And also, where in the project to best put it so that all forms in the project will use it …

Software Development visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for sythez.orgz

Can you guys please tell me whats wrong on my code. Im trying to get the data of Title, Author, Price, Stock from DB and output it on my textboxes. Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Csrp2_DB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" conn.ConnectionString …

Software Development open-source vb.net
Member Avatar for Dili1234
0
1K
Member Avatar for ronnel09

i just wanna ask if can i format centered the outputs of turbo c? just like when you do in microsoft word. thank you!

Software Development c
Member Avatar for WaltP
0
301
Member Avatar for chandnigandhi

please suggest me topics for mini project in c programming.

Software Development c
Member Avatar for np complete
0
181
Member Avatar for glenford11

while at work i had nothing to do so i wrote this simple python script that uses the dbm module to store user information its not perfect but im sure someone will find it helpful. import dbm,sys from time import ctime class Database(object): def __init__(self): self.userData = dbm.open("User Data", "c") …

Software Development python
Member Avatar for glenford11
0
301
Member Avatar for c_program_user

I am trying to pass a pointer to a 3D array to a function in which I want to access an array element using pointer arithmetic. Define the array: const unsigned char TS_list_string[2][2][3] = { "abc", "def", "ghi", "jkl", }; Define the function void process_ts(const unsigned char *T1) { unsigned …

Software Development c
Member Avatar for c_program_user
0
178
Member Avatar for kovacsakos

I have an array with a lot of numbers. How can I create intervals from these numbers?

Software Development c
Member Avatar for WaltP
0
139
Member Avatar for nitishok

I have declared a structure st below with a struct variable arr[], an array of structs. Im trying to assign the value 1 to the 'num' variable, and values 1 to 10 to 'val' variable of the first 10 locations of array arr[]. And value 2 to 'num' and values …

Software Development c++
Member Avatar for WaltP
0
289
Member Avatar for love_you_4rever

I got stuck :(. Can anyone tell me the **purpose** of this following code please? (Suggest descriptive names for the function and its parameters.) int mystery(int x, int y[], int z) { for (int i = 0; i < z; i++) { if (y[i] == x) return i; } return …

Software Development c++
Member Avatar for WaltP
0
114
Member Avatar for kimbula...

I have defined a procedure under the click event of the button as follows. [code] Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click [COLOR="Green"] 'Validate Department[/COLOR] If cmbDepartment.SelectedItem = Nothing Then MsgBox("Please select a department", MsgBoxStyle.Information, "Notification") cmbDepartment.Focus() Exit Sub End If End Sub [/code] I …

Software Development vb.net
Member Avatar for chickss
0
25K
Member Avatar for nabeelbhutto

any one help me how can i do this plz plz guyz help me don't say do it by your self i could'nt understand thats why i am asking from you if i know then why i ask i don't know thats why i am asking friends plz help me...!! …

Software Development c user-interface
Member Avatar for sfuo
0
732
Member Avatar for mcuk

Hi, I am looking for advice on the best place to start with programming. I work for a web design company and currently create database powered sites using PHP and MySql. I seem to learn very quickly with the right resources. When I started many years ago in PHP, I …

Member Avatar for abhishekde.nasa
0
116
Member Avatar for zeusprog

As usual I know I'm probably doing something stupid. I'm trying to write the program below but I seem to have handled my queue incorrectly. The problem could be in one of three places; the way i handle moving on to the next node, my addboard function or my printsol …

Software Development algorithm c linked-list queue
0
109
Member Avatar for mj89

Hi we are developing the KNN data mining classification algorithm and are unable to proceed after a point. We have been able to calculate the Euclidean distance metric and find the three closest neighbours to an instance and ordered them in ascending order. However, with the help of the distance …

Software Development algorithm data-structure dataset java
Member Avatar for philfv
0
345
Member Avatar for triumphost

Why does my checksum not work? I use it on my computer with ATI graphics and it works perfectly fine. When I switch to a computer with Intel graphics, it starts doing random values and they aren't the same. I switch back to my comp, the values are still the …

Software Development algorithm c++ opengl
Member Avatar for triumphost
0
222
Member Avatar for Debi prasad

Hello Friends. i have set my environmental variable path of Microsoft JDBC Driver 4.0 as C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc4.jar and i have also used the url "com.microsoft.sqlserver.jdbc.SQLServerDriver" in my Class.forName(). But still at run time i get the exception java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver. I am using Microsoft sql …

Software Development java
Member Avatar for NormR1
0
304
Member Avatar for Steelchords

This may not be the best location for this thread, but it's 5 am, I've been working on this for almost a day and a half straight, and I'm pure stumped. For a custom MS Access .mdb program, the database properties are locked out. In order to fix the database …

Software Development visual-basic
Member Avatar for jaguararo
0
274
Member Avatar for kovacsakos

I would like to make a memory allocation: `(*matrix)[i]=(int*)malloc(sizeof(int)*sz);` But I have got an error message: Invalid operands to binary * What should be the problem?

Software Development c
Member Avatar for kovacsakos
0
179
Member Avatar for bhawnanarang91

protected void button1_Click(object sender, EventArgs e) { SqlConnection con = null; con = new SqlConnection(@"Data Source=(LocalDB)\v11.0 ; AttachDbFilename=C:\Users\Bhawna\Documents\Visual Studio 2012\Projects\WindowsFormsApplication2\WindowsFormsApplication2\Database2.mdf;Integrated Security=True ; User ID=sa ; Password=123"); try { con.Open(); String Sqlquery = (" Insert INTO adb (Studentid) values (@S)"); SqlCommand sqlupdate = new SqlCommand(Sqlquery, con); sqlupdate.Parameters.AddWithValue("@S",Convert.ToInt16(textBox1.Text)); //sqlupdate.Parameters.Add(new SqlParameter("@S", SqlDbType.VarChar, 50)).Value …

Software Development open-source visual-studio
Member Avatar for Momerath
0
204
Member Avatar for Xeros

Hi. I have completed a program that plays a Zero Gravity Floating Connect Four. I.E. it can take checkers from the bottom, top, left, or right sides. It works, however, the win conditions do not seem to be working. I am not sure where the problem lies. #include <iostream> using …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for Pyler

Could some one point out what's wrong with the classes of this program? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor int surface_area(); int volume(); void set_dim(int ,int, int); }; //implementation box::box(){ int height; int width; int length;} box::int surface_area(){ int …

Software Development c++ oop
Member Avatar for WaltP
0
2K
Member Avatar for napninjanx

Like you know the ones like Imovie Sony Vegas Pro Adobe Premiere Pro CS6 Adobe Premiere Elements 10 What programming language are they designed with?

Software Development adobe video
Member Avatar for napninjanx
0
132
Member Avatar for matt.w.deakos

What I want to do is use my variable in creating a lists name. I'm not sure if that's possible, but if it is my goal is to have it look something like this: i = 3 asdf = ['00','34','43','61','35','64','25'] asdf + i = [] # So in this case …

Software Development python
Member Avatar for TrustyTony
0
149
Member Avatar for hazelmayt

i'm just a newbie in dealing with master details in datagridview. i have a two datagridview. first is the employees record and the other one is file(which contains the file path of csv files). my backend is ms access database.one database with two tables. Now, when im going to click …

Software Development vb.net
Member Avatar for hazelmayt
0
258
Member Avatar for manishanibhwani

if I write the following code.. float a =1.3; double b=1.3; if(a>b) printf("hii"); else printf("hello"); the o/p comes hii...but if I change the values to 1.7 the output comes hello...can any1 explain the reason????if precision is to be taken into account then everytime double should be greater..

Software Development c
Member Avatar for rubberman
0
147
Member Avatar for logicmonster

I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered. I just started C++ this week and have no prior experience …

Software Development c++
Member Avatar for lance p
0
312
Member Avatar for phorce

Hello, I'm just wondering whether or not, it is possible to get the vector Dimensions without them being set? Basically, I'm converting some matlab code and there's a function size(VECTOR) which get's the dimentions of the vector being passed. For example: #include <iostream> #include <vector> using namespace std; int main(int …

Software Development c++
Member Avatar for WaltP
0
126
Member Avatar for Robert955

I've created this code which should look in the Songs folder and add any .mp3 file to a list. However when I test it it keeps saying File not found and pointing to the exact file it cant find with the name of the song while I dont mention this …

Software Development c# gaming
0
190
Member Avatar for joel.hahn

I have beeb unable to figure out how to get data from a list view. It needs to be a multislect, and I need to get the data from a specific column. my listview consists of a 3 column with data populated from a database. I am after the data …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
943
Member Avatar for saphiro

good day, is there a way to put date values in a variable, that is coming fromo the database? something like dim dates as dates (select * from table1 where id = id ) dates = date BETWEEN collumn1 and collumn2 of table1 well its not working of course, its …

Software Development vb.net
Member Avatar for Reverend Jim
0
163
Member Avatar for rwe0

Using Python 3.2., wing ide: chr( i ) converts the integer i to a single character or string. How can I know which unicode encoding is being used ? When I execute the following code I get a single character symbol per character, including the protocol symbols such as ETX, …

Software Development ide python
Member Avatar for rwe0
0
234
Member Avatar for botes.riaan

hi i have to open a text file from an OpenFileDialog as an Array into a listbox. The data in the text file are dates and a number in this format, "01/06/2010,106". what i need to do then is get the the 5 highest dates and the 5 lowest dates …

Software Development vb.net
Member Avatar for Reverend Jim
0
279
Member Avatar for DrunkenCoffin

Hello! I've recently started learning assembly so I can begin writing full-fledged languages instead of wrappers. Today, while trying to learn the cmp function, and using je and jne, I've came upon a problem. I tried using cmp to compare two values, and then je and jne to jump to …

Software Development assembly
Member Avatar for DrunkenCoffin
0
446
Member Avatar for napninjanx

Okay so there is this cool photo website that has awesome photo effects okay... So I'm Thinking of saving the websites info right click and save as html etc file. And I wanted to use those same effects trying to build a software out of It. Cause what If the …

Software Development
Member Avatar for AleMonteiro
0
166
Member Avatar for turt2live

Hi there! What I'm trying to do is have multiple lists have the same length (size) so I can iterate easily over them later. I want to "extend" the size of the smaller lists to match that of the largest list without just tacking on entries, I want to distribute …

Software Development java
Member Avatar for JamesCherrill
0
182
Member Avatar for clarisaduta

Hey everyone, how do i find and highlight a specific word in a .txt file? I only have this until now : this.openFileDialog1.Filter = "TEXT (*.xml;*.txt|"; this.openFileDialog1.Multiselect = true; this.openFileDialog1.Title = "My text editor"; DialogResult dr = openFileDialog1.ShowDialog(); if (dr == DialogResult.OK) and i want to find these two words …

Software Development
Member Avatar for clarisaduta
0
114
Member Avatar for I_m_rude

actually , I am solving a problem: A list is there in which infinite numbers(approx 1 lakh) are there, and i am reading one by one. At any point of time, I am asked to return the kth(it is given initally) minimum element from the elements read so far. my …

Software Development c
Member Avatar for sfuo
0
146
Member Avatar for mirzamujib

Hi, I've problem in displaying image on my rdlc (Microsoft Report Viewer) report. I took picture box on my report and made its properties as SOURCE=EXTERNAL, VALUE=Parameters!Path.value where Path is my Report Parameter. Below is the code to display image on Report load event: Dim paramList1 As New Generic.List(Of ReportParameter) …

Software Development display image vb.net
Member Avatar for AleMonteiro
0
1K
Member Avatar for iwishimgoodasu

//I have this code //In my Form1 I have textbox and a button namespace Passing { public partial class Form1 : Form { Class1 class1 = new Class1(); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { class1.Name = textBox1.Text; Form2 form2 = new Form2(); form2.Show(); } …

Software Development c#
Member Avatar for nmaillet
0
257
Member Avatar for eternalcomplex

Hi, I'm trying to generate Docx files using python. I searched the web and found a module: https://github.com/mikemaccana/python-docx/blob/master/README.markdown It says to install using easy_install or pip, which I have no idea how to do. I also have a mac so I think that makes it a little more complicated. I'm …

Software Development microsoft microsoft-office python
Member Avatar for G_S
0
353
Member Avatar for ann.arceo.14

gud day. I have 2 collumn from my database. DateHired ( datarow.item(5)) and EndofContract (datarow.item(6)) on my form i have 2 datetimepicker to record the employees previous jobs, i need to avoid overlapping on the employees recent recorded jobs. e.g if date hired is 01/02/2012 and end of contract is …

Software Development dataset open-source vb.net
Member Avatar for saphiro
0
171
Member Avatar for Dili1234

Dim major As String = TextBox1.Text Dim depa As String = TextBox2.Text Dim sname As String = TextBox3.Text Dim tbStudent As DataTable Dim dcPrimaryKey(0) As DataColumn tbStudent = sqlDataset.Tables("Major") Dim c As Integer 'selecting the entire rows from dbase myCommand = New SqlCommand("SELECT count(*) FROM Major", myConnection) myConnection.Open() 'sqlquery1 = …

Software Development vb.net
Member Avatar for Dili1234
0
287
Member Avatar for sanket044

import java.io.*; public class NewClass { public static void main(String[] args) { try{ Runtime rt = Runtime.getRuntime(); Process p = rt.exec("cmd"); BufferedReader Pop = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedWriter Pin = new BufferedWriter(new OutputStreamWriter(p.getOutputStream())); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String newCmd; System.out.print("Enter Command : "); newCmd = br.readLine(); String s; …

Software Development java
Member Avatar for Taywin
0
131
Member Avatar for maurya10

what does time(NULL) and srandom(time(NULL)) do in c ?

Software Development c
Member Avatar for Banfa
0
92
Member Avatar for linabeb

please someone help me..im doing my final project and below is my code for the registration form..after i fill up all my form and it will appear a msg box that i can only register once...the data is not being inserted in the database..im using ms access...please2....do help me...i dont …

Member Avatar for Maligui
0
288
Member Avatar for fabrizio19

Dear forummembers, Well I am a total noob in visual basic programming, but I want to make a program that opens an ascii file that i choose and reads the file line per line. The ascii file excist as follow 0.0000 Start of measurement time id rx dlc b0 b1 …

Software Development visual-basic
0
125
Member Avatar for riahc3

Hello Im posting this in C because Arena is highly influenced by C.... Im trying to open a file using fopen but I cant get it to work. Ive made the permissions on the file 777 (all) just in case but it doesnt work. Can someone please test that it …

Software Development c
Member Avatar for Ancient Dragon
0
131
Member Avatar for Stealthbird97

Ok, What i need is a Login script that will verify the information that is on a MySQL database. What people will do is sign up on a website and their Login information will be stored on the database. Then they will be able to login to a special members …

Software Development mysql vb.net
Member Avatar for Maligui
0
132
Member Avatar for PeterVrist

Hi there. I'm having a strange problem. I have a TTimer on my main form that should trig 500 msec. after the form is created. It works fine when I run from IDE, but when I run it on other W7 PC's the main form is created, but the timer …

Software Development delphi ide pascal
Member Avatar for PeterVrist
0
88
Member Avatar for riahc3

Hello I want to run a command as sudo (to be especific open a file) but I dont want to run the entire program as sudo obviously. How do i do a fopen with sudo previlges? I dont mind hardcoding the password (eg, so it wont ask me for my …

Software Development c
Member Avatar for L7Sqr
0
152

The End.