43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for stresstedout

Hi, I am trying to a game, and i wanted to add my images to mysql. I have managed to save and retrieve the images. I have written a code which allows me to only retrive 1 image on my jframe in a jlabel from the database, i am a …

Software Development java
Member Avatar for stultuske
0
363
Member Avatar for castajiz_2

if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object...

Software Development
Member Avatar for ddanbe
0
175
Member Avatar for fx.eko

when making a component (ocx file) of the combo box, and the wear components of the user control, then I compile it into ocx files. Once finished I include the components of it into the main program. then I do click and drag the combo box to the form, but …

Software Development visual-basic
Member Avatar for fx.eko
0
908
Member Avatar for stresstedout

Can anyone help me to improve my code so i can add more than image to my sql database. The code i use is below: Connection connection = null; String connectionURL = “jdbc:mysql://localhost:3306/mydb”; ResultSet rs = null; PreparedStatement psmnt = null; FileInputStream fis; try { Class.forName(“com.mysql.jdbc.Driver”);//.newInstance(); connection = DriverManager.getConnection(connectionURL, “root”, …

Software Development java
Member Avatar for stresstedout
0
222
Member Avatar for Tcll

this is just as complicated as it sounds... but to try to simplify things, look at this image: http://lh4.ggpht.com/-_tyPL2KaJAQ/UIONlx4ZnBI/AAAAAAAAEJU/vU1429txSqk/s424/aglorithm.PNG I need the influence generation aglorithm's for both I1 and I2. here's what I currently have: http://lh5.ggpht.com/-_jX5pm2be18/UIMtH46GfoI/AAAAAAAAEIk/Btswj9Lw4iA/s640/DM%2520prg2.PNG please help I've been doing google searches for the bezier aglorithm, but havn't come …

Software Development python
Member Avatar for Tcll
0
127
Member Avatar for Tcll

so basically... I have a dynamic memory sub-system that does this: d = bu32() # a value from dynamic memory (such as 2) print d print type(d) p = ref(d) # a pointer deref( p, bu16 ).set(10) # short *p = &d; *p = 10; //(not sure if correct) print …

Software Development python
Member Avatar for Tcll
0
248
Member Avatar for benscomputers

I have visual basic 2010 windows application assignment in which I have to populate a one dimensional array from a text file stored in the projects debug folder. The text file is 6 five digit numbers on seperate lines. One number was typed then enter was pressed 6 times. The …

Software Development vb.net visual-basic
Member Avatar for jeremy.lawrence.7587
0
1K
Member Avatar for Learner010

i want to add child forms in mdi parent form and i done this but the problem is : i have an picture box in the top of MDI form and now here i want is that the child form should load after that picture box and this does not …

Software Development vb.net
Member Avatar for msrd
0
121
Member Avatar for jalpesh_007

hello friends, we have stuck with one problem while doing program of mail api. we have doing unread mails via mail api,but its not perfectly working. There is an problem in reading content of (multipart type) of mail. it will work on Text/Plain type. Following is my code.please let me …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Stefce

Hello i have a little problem with writing the words in the database, after some space between the words the database can't remember it, thats why because the link eg. ( /some_file.php?search=something%20wierd ) that "%20" its the space between the words but from my mobile application when ill type space …

Software Development java
Member Avatar for JamesCherrill
0
293
Member Avatar for furalise

Is it possible to do the following as you can for a C++ string. I can't seem to do this for a Cstring? That is, add characters to the Cstring the same way? eg // lets assume this vector is full of characters vector<char> charvec; string str; const char* Cstring; …

Software Development c++
Member Avatar for furalise
0
297
Member Avatar for jared.geli

Hi guys I need help in deleting rows in Excel. What I want is if I delete a row in DataGridView it will also delete a row with the same value. I tried using the OleDb way and I find out I can't delete a row using that so I …

Software Development vb.net
Member Avatar for jared.geli
0
7K
Member Avatar for Learner010

hello , after learning on functions in c++ , i created several functions and now i wanna create a gourp which will have these several functions at a place(i think its done with header file). so, i think if i create a header file and include these all these functions …

Software Development c++ file-system
Member Avatar for Learner010
0
231
Member Avatar for goofy_chick

I am a student, I have a program that I have been working on for about a month now. I have to hand it in on Wednesday and everything works fine but I just want to tidy up the interface. I have a JTable which I use to display records …

Software Development java linked-list user-interface
Member Avatar for rf.saboia
0
7K
Member Avatar for CoilFyzx

Hello good day. Thank you for trying to help. My problem is as follows. A few columns in my table, use a JComboBox as the editor for their cells. Each cell, in a row (via JComboBox) presents the same choices to the user. The user is allowed to choose from …

Software Development html-css java
Member Avatar for mKorbel
0
1K
Member Avatar for Chair

Hi, can someone pls help me. I'm trying to pass the name of the user who logs in from a login form and display his/her name on a Main form. I'm using get{} and set{}. My problem is with the function I'm trying to create to return the name of …

Software Development c c# c++
Member Avatar for pritaeas
1
9K
Member Avatar for mavtcr

Friends I met with a problem...Please help I have a table 'Tran' in Access Database which has several fields of which one is 'Date' I added several records through programm on different dates.Everything OK. All the records appeared in a chronological way ie.Earlier to Later order . Later I deleted …

Software Development microsoft-access visual-basic
Member Avatar for mavtcr
0
357
Member Avatar for brandon66

Hey guys, im building a Tic Tac Toe game and im checking for a winner via this function(code below), Im juct wondering if there is a better way of doing this then how im doing it. if so could you point me in the right direction thanks :) The array …

Software Development c++
Member Avatar for brandon66
0
221
Member Avatar for </scorpion>

i try to fetch the data from the database and display text in the dropdownlist i got the error message `'dropdownlist' has a selectedvalue which is invalid because it does not exist in the list of items parameter name value` when selectedvalue does not exist in the list of items …

Software Development
Member Avatar for </scorpion>
0
2K
Member Avatar for Emma_3

This program is supposed to run through the menus to eventually display the area or volume of a shape depending on the user's menu choices and input. However, it won't run the final menu and I'm not sure why. There aren't any problems when it goes through the debugger, it …

Software Development c++ programming-construct
Member Avatar for AndrisP
0
219
Member Avatar for eldiablo1121

Hello, I'm trying to program a Caesar Cipher, but I keep getting weird errors. My input is not being handled correctly. I have no idea, i've tried different variations, but it does not work, here is my code. import java.io.*; import java.util.Scanner; public class CaesarCipher { public static final int …

Software Development java
Member Avatar for Doogledude123
0
3K
Member Avatar for dwild

textpad 5 generated an "unexspected and unrecoverable error" with a large data file of mine and at first i though it was due to length. (1280 lines, 188kb) but there are much bigger data files involved. (5 to 6000 lines and >30000 characters in one) it gives out e dmp …

Software Development java
Member Avatar for dwild
0
179
Member Avatar for Seba Sama

Hello, Can someone help me understand what is (if it is) the difference between `string* myStr` and `string *myStr`? Or any other type of definitions like that: `int* myValue` vs `int *myValue`, `char* myChar` vs `char *myChar`. The position of the "star" is confusing me. I only used pointers like …

Software Development c++
Member Avatar for rubberman
0
381
Member Avatar for Doogledude123

I'm programming Blackjack and all is well, except after I type 'y' to hit again, the program terminates even though total is still less then 21. So my while statement is doing nothing? package com.github.geodox.blackjack; import java.util.Random; import java.util.Scanner; public class Blackjack { private static int total = 0; private …

Software Development github java
Member Avatar for Doogledude123
0
411
Member Avatar for krnaveen14

I need to code a program to compare the datas in .csv file (.csv file is an excel file which will be seperated by , instead of cells by saving in.csv format). I've coded it fully and the required outout is also obtained. But i need a modified version of …

Software Development file-system java
Member Avatar for JamesCherrill
0
291
Member Avatar for অসীম

Hi all, I'm new to this site so please forgive my ignorances. I am a beginner at Java and I've been assigned to do a project about an Airline Reservation System. So the objectives required are: Reserve the ticket Cancel/Confirm Reservation Book the ticket Change / Cancel Booking Waiting List …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for lauren.vitiello.12

I am trying to get the highest value in my rows. I have been at this awhile trying to figure it out. I assume it is suppose to return 3 values but honestly i really suck at this. Here is what I have public static int getHighestInRow(int[][] numbers, int row) …

Software Development java
Member Avatar for scudzilla
1
335
Member Avatar for castajiz_2

cmd = new SqlCommand ("select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID ", con); I just want to say that i don't have any problem concerning my code functionality. I would just like the design to be like the above example.That is, I dont'want my whole sql expression to …

Software Development sql visual-studio
Member Avatar for deceptikon
0
162
Member Avatar for pvr1

I have a datagridview (bound) which works fine as long as the users "accepts" each cell they type in by pressing the tab key. However, when they click in another cell before pressing "tab", the value is visible in the cell on the screen but is not actually there. What …

Software Development vb.net
Member Avatar for Minimalist
0
372
Member Avatar for Elixir42

Dear Kind-Coders, I am trying to learn to use boost::shared_ptr to manage the lifetime of a DLL, but I am having a type conversion problem whilst setting it up. Please see the following code: #include <boost/make_shared.hpp> int main() { { class CMyClass { public: CMyClass() {} ~CMyClass() {} int MyInt; …

Software Development c++
Member Avatar for Elixir42
0
2K
Member Avatar for mustafa.bahaa

hay guys iam new to c++ programming studing for c++.com iam getting to a point that i wirte a program and it doesn't run and i can't find anything realted to it , to know where is the problem so that's the program // cin with strings #include <iostream> #include …

Software Development c c# c++
Member Avatar for mustafa.bahaa
0
220
Member Avatar for aabbccbryanmark_1

Me.ToolStripMaintenance.Font = New **System.Drawing**.Font("Bookman Old Style", 9.0!, **System.Drawing**.FontStyle.Regular, **System.Drawing**.GraphicsUnit.Point, CType(0, Byte)) Me.ToolStripMaintenance.Image = CType(resources.GetObject("ToolStripMaintenance.Image"), System.Drawing.Image) Me.ToolStripMaintenance.ImageAlign = **System.Drawing**.ContentAlignment.TopCenter Me.ToolStripMaintenance.Name = "ToolStripMaintenance" Me.ToolStripMaintenance.Size = New System.Drawing.Size(90, 70) Me.ToolStripMaintenance.Text = "&Maintenance" Me.ToolStripMaintenance.TextImageRelation = **System.Windows**.Forms.TextImageRelation.ImageAboveText heres a sample of my code with those error, can u help me identify what to do to …

Software Development vb.net
0
134
Member Avatar for dlmagers

I have been working on this program for about a week now and I think I have it down pack. The issue I am having when I ask the user at the beginning of the game (human vs computer) everytime I run the program it asks me what my name …

Software Development java
Member Avatar for dlmagers
0
2K
Member Avatar for krystosan

i am trying to recieve input from external text editor using python's `subprocess` but I am not sure why i am getting the error diff = subprocess.Popen('open(os.path.join(os.getcwd(), "foo.txt") "w")', stdout=subprocess.PIPE) pr = subprocess.Popen(sublime, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, stdin=diff.stdout) pr.wait() if pr.returncode == 0: msg = pr.stdout.read() print msg er = pr.stderr.read() …

Software Development python
Member Avatar for krystosan
0
378
Member Avatar for Elias_3

I want the text in a textbox "txtConvertedInches" to be selected when i press the radio button "rbFromInches". private: System::Void rbFromInches_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { bConvertingToInches = !rbFromInches->Checked; ToggleControls(); txtConvertedInches->SelectAll(); //I thought this would do it, but nothing happens }

Software Development c++
Member Avatar for Elias_3
0
207
Member Avatar for mavtcr

Friends...A small problem I have a combobox in which I want to add list from a field from a ACCESS databas Table.It works well My code is here ACRS.Open "SELECT * FROM Salary1", CN, adOpenStatic, adLockOptimistic Sfm = ACRS!Month Do Until ACRS.EOF CmbSfm.AddItem ACRS!Month ACRS.MoveNext Loop My problem is , …

Software Development visual-basic
Member Avatar for Minimalist
0
206
Member Avatar for mlohokare

Hi, ************************************************ [B]Below is my xml code[/B] [ICODE]<?xml version="1.0" encoding="UTF-8"?> <concept><title>TEST</title><body><title>CHECKING</title></body></concept>[/ICODE] ************************************************ [B]Below is my xslt code[/B] [ICODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="/"> <xsl:for-each select="concept"> <xsl:variable name="filename1"><xsl:value-of select="base-uri()" /></xsl:variable> <xsl:value-of select="$filename1" /> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/ICODE] ************************************************ [B]Getting output[/B] D:\test\Checking.dita [B]Instead of this it should display only [/B] "Checking" …

Software Development xml
Member Avatar for Xeyem
0
4K
Member Avatar for christan

Greetings, i'm having a problem on inserting all my items from listview to my database using stored procedure. heres my code. Dim lvItem As ListViewItem For Each lvItem In ListView1.Items With dbComm .AddParameter("@details", lvItem.Text, SqlDbType.VarChar) .ExecuteStoredProcedure("insertRecord") If .Success = False Then MsgBox("Record failed to save.") Else MsgBox("Record Saved.") End If …

Software Development listview sql vb.net
Member Avatar for pawanthenerd
0
238
Member Avatar for Jeffrey_1

I copied a list into Excel and some of the list formatted into the neihgboring columns instead of lining up in the list. I need to get the items floating out in the columns back into the proper place in the list. I assume I need to somehow run a …

Software Development visual-basic
Member Avatar for Stuugie
0
367
Member Avatar for nitish.mohiputlall

I am having 4 errors with the main program and i dn't know how to slove it anyone to help me how to solve the errors and how the codes was suppose to be correctly typed: 1.error: 'salaried' was not declared in this scope (line 5) 2.error: expected primary expression …

Software Development c c# c++
Member Avatar for Moschops
0
2K
Member Avatar for tessa.burkhalterblackmon

I need help fixing my code. I'm getting the following errors: 107 C:\Dev-Cpp\TicketFineCalculator.cpp no matching function for call to `TicketFineCalculator::getFine(int&)' and note C:\Dev-Cpp\TicketFineCalculator.cpp:20 candidates are: int TicketFineCalculator::getFine(int, int, int, int) Here is my code: #include <iostream> //allows program to perform input and ouput #include <string> //allows string using namespace std; …

Software Development c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for javed.iqbal.3979

Hi all, I am working on Bank Management System,,i wanna connect my programm to MySql Can anyone refer me Book(s)/links where i can learn so...i have know how of Mysql already and worked on it

Software Development c++ mysql
Member Avatar for Ancient Dragon
0
163
Member Avatar for aabbccbryanmark_1

Private Sub txtPassword_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtPassword.KeyPress Dim NotAllowed As String = "~`@%^&+={[}]()!:,;'><?/|\-.#+()_$*" If e.KeyChar = ChrW(Keys.Enter) Then e.Handled = True End If If e.KeyChar <> ControlChars.Back = True Then If NotAllowed.IndexOf(e.KeyChar) = -1 = False Then e.Handled = True End If End If End …

Software Development vb.net
Member Avatar for Atove
0
2K
Member Avatar for dennysimon

hello all I wonder how to fill datagridviewimagecolumn with an icon. I mean if I place cursor in rows[2],Cells[3] and then i press right mouse down,then certain icon placed in that cells if I place cursor in rows[4],cells[3] and then press left mouse down,then another certain icon placed in that …

Software Development
Member Avatar for brianmanee
0
2K
Member Avatar for cascade001

what i am trying to do is make a program to read an excel file that i already have , choose certin columns depending on its header title then paste these columns into sheet2 . the problem is when i check for the columns i want to extract it gives …

Software Development microsoft-office vb.net
Member Avatar for julio.azevedo.562
0
3K
Member Avatar for Doogledude123

I created a custom 'text menu' that should print each String passed to it. This is the class: package com.github.geodox.areacalculator.menu; public class Menu { private static int index = 0; private static String[] menuItems; public void addItem(String menuItem) { menuItems = new String[index+1]; menuItems[index] = menuItem; index++; } public void …

Software Development github java
Member Avatar for Doogledude123
0
259
Member Avatar for kent.johnstone_1

Is this a "typedef" problem? This is the definition in one file. typedef BYTE SOCKET; //Socket descriptor BYTE is defined elsewhere as type char. (I made sure the file where SOCKET is assigned a type is included in the file the problem is in.) This is one place it is …

Software Development c
Member Avatar for kent.johnstone_1
0
330
Member Avatar for nhrnjic6

func should take array and find a index of a target number : int find_index(int num,int Niz[],int index){ if(num == Niz[index]) return index; else if(num != Niz[index]){ find_index(num,Niz,index++); } else {return -1;} } I quess I know am accesing unacesable memory, just cant figure out where

Software Development c++
Member Avatar for Ancient Dragon
0
124
Member Avatar for mokushirokuxen

![7d2f0b828b7075213b3cc4ce79ce21d1](/attachments/large/4/7d2f0b828b7075213b3cc4ce79ce21d1.png "7d2f0b828b7075213b3cc4ce79ce21d1") i have 2 database listview1(from tbl_storage) listview2(fromsales) so i want my listview items and subitems to be increment or be loop correct me if im wrong with that. sellingprice and Qty.(Quantity) ex. itemno | name | qty| price | total | 1 | a | 1 | 100 …

Software Development listview vb.net
Member Avatar for mokushirokuxen
0
457
Member Avatar for CoilFyzx

Oh boy They ust be tired of me now. My trouble: I have two ArrayLists of custom classes. ``ArrayList<Subject>` **a**` ``ArrayList<Student>` **b**` Within those custom classes are other custom classes which themselves have primitive data types as well as an ArrayList of other custom classes. It's a big circus going …

Software Development java xml
Member Avatar for JamesCherrill
0
568

The End.