43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for imti321

I am trying to make a form in vb and connect that to database .First of all i created a databse and then opened new project and tried to connect that database to form. file new--->try____>project--->add new item---->Service based databse--dataset---->finish step2----->in databse explored right clicked on table and Add table …

Software Development dataset vb.net
Member Avatar for imti321
0
284
Member Avatar for hometownnerd

Good afternoon. I am developing a gmail app for my personal consumption for now and it has a lot of bells and whistles including showing me the latest emails coming in, playing a sound and changing icon when there is new mail and a few other things. I am using …

Software Development email vb.net web-browser
Member Avatar for hometownnerd
0
2K
Member Avatar for raheel88

All, What is the most efficient way of writing several lines of data to a *.txt file? Currently, I store the required text in memory then write it all to a user-specified text file at the end, similar to the following; Dim text As String = "" text = text …

Software Development vb.net visual-basic
Member Avatar for dionterry
0
3K
Member Avatar for Nshark

I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to …

Software Development html-css vb.net
Member Avatar for dionterry
0
5K
Member Avatar for ravi_14

i am developing a project in c++ and i need database to save details.i googled but so far have bot come across a good tutorial for c++ database . most of the articles i have found are obsolete. please suggest what are APIs for database in c++?

Software Development c++ microsoft-access visual-studio
Member Avatar for Ancient Dragon
0
477
Member Avatar for new_2_java

Hello everyone, I am writing a Java program to reset LDAP account password. I know the password should be quoted passwrod and then encoded in UTF-16. I have a question, if someone can confirm please. I am getting encoded password as follow: String oldPassword = "Password1234"; String newPassword = "Password9999"; …

Software Development cybersecurity java
Member Avatar for new_2_java
0
1K
Member Avatar for agrbinoo.albaker

Write a program that uses a for statement to sum a sequence of integers. Assume that the first integer read specifies the number of values remaining to be entered. Your program should read only one value per input statement. A typical input sequence might be 5 100 200 300 400 …

Software Development c++
Member Avatar for agrbinoo.albaker
1
981
Member Avatar for Anto_1

I want to print byte array using print() in javascript. Is there any way to implement this..?

Software Development asp.net java javascript
Member Avatar for Anto_1
0
244
Member Avatar for kritiohri

[code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click connetionString = ("server=192.9.200.82;database=eKalyan;user id=invite;password=invite") MessageBox.Show("connection established") sql = ("select newuniqueid,newteh_code,newpcate_cd,newplano, pen_nm,rel_cd,pen_fnm,ccate_cd,pan_code,pvillage,ppo_cd,spo_cd,start_qtr,last_qtr,bundle_typ,bundle_no,mo_srno,pen_amt,pen_comm,status,operatorcode from ekalyan.welpen") cnn = New SqlConnection(connetionString) Try cnn.Open() cmdd = New SqlCommand(sql, cnn) cmdd.ExecuteNonQuery() cnn.Close() MsgBox(" ExecuteNonQuery in SqlCommand executed !!") Catch ex As Exception MsgBox("cannot …

Software Development open-source sql vb.net
Member Avatar for elie.karkafy
0
2K
Member Avatar for Nebil

Hi guys, i just faced a problem when trying to execute the following query.I searched for the exception on the internet and found that using a reserved keyword might raise this issue,and using brackets may solve this problem.But i use brackets all the time in my sql statements but still …

Software Development vb.net
Member Avatar for Nebil
0
161
Member Avatar for Reapt

So I'm teaching myself Java. I'm creating a text based game. I have an if statement that i want to check users input so its like this: if(sc.next() = "help"){ System.out.println("info"); } else if(sc.next() = "item"){ System.out.println("info"); } Etc. But it wont work. What would be the proper way to …

Software Development java programming-construct
Member Avatar for stultuske
0
227
Member Avatar for Reapt

Creating a text based game. I have a method for each of the following: Race, profession, name. So for instance: public static void main(String[] args) { // TODO code application logic here intro(); name(); System.out.println("Welcome " + name); } public static void String name(){ System.out.println("Enter Name:"); String name = sc.next(); …

Software Development java
Member Avatar for Reapt
0
156
Member Avatar for Nandomo

I am working on a web service. I have a form with a button. When I click the button it calls my service class and I populate a list from an xml document with stock information. Then from the form class it calls another method inside the service class to …

Software Development
Member Avatar for Nandomo
0
194
Member Avatar for smitsky

I'm having a problem accessing information between classes. The following simple program illustrates the problem. I have two classes. Int Cell and second. IntCell has a single data member: storedValue. I initialize the value of storedValue to 0, and then assign a value of 16 to it in main() on …

Software Development c++
Member Avatar for Ancient Dragon
0
203
Member Avatar for GeneM1000

I have a form with a lot of checkboxes on it. I want to be able to set all the checkbox properties to "checked" in my code. Here is what I would like to do: For Each ctl As Control In Me.Controls If TypeOf ctl Is CheckBox Then ctl.checked = …

Software Development vb.net
Member Avatar for GeneM1000
0
320
Member Avatar for cvandal

Hello, I'm trying to calculate the maximum and minimum distance between 10 points. My method to calculate the maximum distance is working fine however my method to calculate the minimum is returning 0.0 and I'm not sure why. Could someone please take a look at my code and tell me …

Software Development java programming-construct
Member Avatar for cvandal
0
213
Member Avatar for Dane2259

I'm trying to setup the programming environment for Princeton's online course at this website: http://algs4.cs.princeton.edu/code/ However, when I try and run one of the programs I get the following error: /Users/dane/algs4/algs4-2/RandomSeq.java:45: cannot find symbol symbol : variable StdRandom location: class RandomSeq double x = StdRandom.uniform(); ^ /Users/dane/algs4/algs4-2/RandomSeq.java:46: cannot find symbol …

Software Development ide java web-design
Member Avatar for stultuske
0
288
Member Avatar for Pilot122x

private void Cottage_Click(object sender, EventArgs e) { richTextBox1.Text = "create cottage"; richTextBox1.Text = "create Bob"; } So when I run the code what gets printed is Bob of course I knew this would happen from the moment I wrote the code but I do not know what to put instead, …

Software Development
Member Avatar for Pilot122x
0
154
Member Avatar for m.a.u.

Greetings everybody, I would like to ask you which C++ libraries you use for ethernet communication? In web I found several; [boost.asio](http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio.html) [Nut/OS](http://www.ethernut.de/api/index.html) [Sockets](http://www.alhem.net/Sockets/index.html) Is there another and easy? By the way, which one of these three libraries are easier to use :) . Thanks in advance

Software Development api c++
Member Avatar for m.a.u.
0
170
Member Avatar for newbiewwcode

Can you guys please help me understand when to use const? For example, if I have the following functions: viod add (int* array) { int total = array[1] + array[2]; } viod subtract (int* array); viod times (int* array); viod divide (int* array); viod printArray(int* array); and I only intend …

Software Development c++ dataset
Member Avatar for newbiewwcode
1
209
Member Avatar for beastie805

I got a small program here, I am just trying to return a string value from a function through a reference parameter but I keep getting an error. Any help or tips will be appreciated #include<iostream> using namespace std; int timesTen(int, string&); int main() { int number = 6, product; …

Software Development c c# c++
Member Avatar for beastie805
0
451
Member Avatar for m.a.u.

Greetings everybody, I have been develolping a program for isochronous USB communication. In run time, when allocating memory for transfer, libusb_transfer, ENOMEM error arises. I have been looking for a solution for this problem, but I have not come to a conclusion, yet. What might be the reason of this …

Software Development c++
Member Avatar for m.a.u.
0
486
Member Avatar for smitsky

Hi. Why am I getting different output when I call the calculate() function? The output on line 184 gives 1.0001, while the output from line 433 gives 1. Thanks. #include <iostream> #include <string> #include <limits> #include <vector> #include <iomanip> using namespace std; /** * Global Variables */ string k; int …

Software Development c++ printer queue
Member Avatar for smitsky
0
201
Member Avatar for admiri92

i'm not sure if a pointer can do the job of an iterator, or otherwise, or they are different things?

Software Development c++ programming-construct
Member Avatar for Moschops
0
253
Member Avatar for Reapt

Using netbeans IDE 8.0, and have JDK 1.8. Created a project and file that does this. public class Tutorial { public static void main(String[] args) { // TODO code application logic here system.out.println("Hello World!"); } } and when running i get this error... Exception in thread "main" java.lang.RuntimeException: Uncompilable source …

Software Development ide java java-netbeans
Member Avatar for JamesCherrill
0
365
Member Avatar for samkri

I m using VS2010 with SQL server 2008 at the backend. I m creating a windows application in which I have 2 listboxes.the data is being retrieved from SQL server database in listbox1.i want to select all itms from this listbox1 and add them to listbox2. And remove itms from …

Software Development
Member Avatar for Sulaiman_1
0
189
Member Avatar for Nandomo

So I am making an application on visual studios and I wrote a method to return a double after going through a list of data. I printed the list and know its there but the method pretends its not there and returns the code i initialize the variable with. Help? …

Software Development
Member Avatar for Nandomo
0
148
Member Avatar for Raymond_3

10) A statement that creates invokes findAll() based on the argument 8 and assigns this to a new array 11) A print statement that prints out the array created in the above step. Which i did with the following bit of code in my driver ArrayMethods arrayTwo = new ArrayMethods(); …

Software Development java
Member Avatar for John Code
0
173
Member Avatar for CreatorZeus

so im trying to convert my code from localtime to localtime_s. it was this: time_t now = time(0); tm *ltm = localtime_s(&now); i seem to be having some strctual errors. Can i have some help?

Software Development c++
Member Avatar for CreatorZeus
0
5K
Member Avatar for ariez88

Hi , I m using VS2008 with SQL server 2008 at the backend. I m creating a windows application in which I have 2 listboxes.the data is being retrieved from SQL server database in listbox1.i want to select few itms from this listbox and add them to second one through …

Software Development
Member Avatar for samkri
0
802
Member Avatar for ezkonekgal

hello. I need some help on our implementation on lines of code program. here's the algorithm we have: 1. The LOC program will start by asking for the filename of the program to be counted. 2. Browse for the filename of the program to be used. 3. The contents of …

Software Development java storage
Member Avatar for emoon11
0
2K
Member Avatar for can-mohan

Hi, While executing below code i am getting error like "memory clobbered before allocated block" and due to this assignment is not happening. could you let me know what can be reason for the same. I do understand it is not good to use raw pointer but in current scenario …

Software Development c++
Member Avatar for can-mohan
0
446
Member Avatar for FutureDev86

For the life of me, I can't get this to work.... What am I doing wrong? Any help is greatly appreciated!! [CODE] Private Sub webBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long) On Error Resume Next If Progress = -1 Then ProgressBar1.Value = 100 lbl1.Text = "Done" ProgressBar1.Visible = False …

Software Development visual-basic web-browser
Member Avatar for Richard_16
0
605
Member Avatar for SoloMonk

I am trying to figure out how to center the labels labeled blackSection, blueSection and so on. However i am unable to get the labels to center. I have tried blackSection.setVerticalAlignment(JLabel.CENTER) also have tried blackSection.setVerticalTextProperty(JLabel.CENTER). Any help would be appreciated, it is however a homework assignment so hints as to …

Software Development java java-swing window-manager
Member Avatar for SoloMonk
0
2K
Member Avatar for Pyler

What is the difference between `CoffeeInterface<Beverage> cup1 = new Coffee<Beverage>()` and `Coffee<Beverage> cup2 = new Coffee<Beverage>()` `Coffee` is a class that extends the `CoffeeInterface` Is `cup1` an object or can it be used as one. Are there any differences betweeen `cup1` and `cup2`?

Software Development java user-interface
Member Avatar for JamesCherrill
0
249
Member Avatar for Nebil

Hi guys, A problem came up when i tried to copy record from the temp. table to the main one.I was copying records to two main tables but one table is empty but the other works fine.Here's the code i used: projcode = TextBox4.Text projname = TextBox5.Text description = TextBox6.Text …

Software Development vb.net
Member Avatar for Nebil
0
290
Member Avatar for Doogledude123

I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I do not use Tile's in this case, I am just drawing Simple Full Colored Rectangles using Graphics2D. `g.drawRect(int x, int …

Software Development github java
Member Avatar for jwenting
0
485
Member Avatar for Doogledude123

Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple Arrays using the Selected Index. My problem occurs when reloading the ListView after saving the text file. The values from …

Software Development java listview
Member Avatar for JamesCherrill
0
701
Member Avatar for Brittany_1

Hello everyone. I need some help on creating a slot machine. It needs to have the option of playing a three wheel & four wheel machine. I've created separate functions for those two. I think I understand the whole random generating concept, but I'm having a hard time figuring out …

Software Development c++
Member Avatar for vmanes
0
574
Member Avatar for Pyler

I have two classes A Dog class whose constructor does not accept arguments, `public class Dog<pet> extends Animal<pet>{}` whose constructor does not accept any arguments and `public class Animal<pet>{}` whose constructor accepts one argument public class Dog<pet> extends Animal<pet>{ public Dog(){ super(/*what should go here?*/); //Constructor accepts no arguments } …

Software Development java oop
Member Avatar for stultuske
0
247
Member Avatar for tony75

Hi Please I need your help with this script. I have an logfile.xml and I need to picks the file names of the path but not duplicate and writes them into a bat file, like copy %windiw&\system32\<filename> %1% Output example for my .bat file should look like copy %windiw&\system32\ dbghelp.dll …

Software Development file-system python xml
Member Avatar for tony75
0
1K
Member Avatar for abaddon2031

I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written …

Software Development python
Member Avatar for rrashkin
0
234
Member Avatar for Jake_4

I am new to C++ and i don't understant this error message i am recieving. Could you show me the solution? ([Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]) line 25, col 17 (the 'n' is the problem) #include <cstdlib> #include <iostream> #include <math.h> #include "dp_lib.h" using …

Software Development audio c++
Member Avatar for Labdabeta
0
7K
Member Avatar for abrahem.aljazazy

write a c++ programme that read an unknown number of integers value and then print count, sum and average of 1. even value 2. odd value 3. negative value 4. positive value thank you

Software Development c++
Member Avatar for abrahem.aljazazy
-1
76
Member Avatar for rory.starkweather.7

Just a quick question, and I should know the answer, but can't remember it. You use Ctrl-K B Ctrl-K K to block text for moving, copying, etc. How do you get rid of the highlighting when you are done?

Software Development c ide
Member Avatar for jwenting
0
383
Member Avatar for abaddon2031

Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but …

Software Development file-system python
Member Avatar for abaddon2031
0
428
Member Avatar for abaddon2031

SO im working on a python code that reads a csv file with 1600 entries roughly and i am splitting them up on the collum value of pc numbers. I keep getting a error that states " Traceback (most recent call last): File "C:\Users\HatterX\Desktop\test\test25", line 50, in <module> data.sort(key=lambda x: …

Software Development os-x python
Member Avatar for abaddon2031
0
486
Member Avatar for moaz.amin.37

Assalam o Alikum my question is that what is the difference between character array and string. my instructor is use char str [50] instead of string str. and i can not understand what is difference between them.

Software Development c++
Member Avatar for moaz.amin.37
0
366
Member Avatar for DeepKiran
Member Avatar for DeepKiran
0
207
Member Avatar for ravi_14

i found following code to create a two dimensional array at run time if one of the dimension is known.. char (*c)[5]; c=new char[n][5]; first line is pointer to an array of 5 integers but i couldnt undesratnd the second step.

Software Development c++
Member Avatar for Ancient Dragon
0
293

The End.