Hi guys, I just got into a little problem.I just deployed an application with backend db access.It works fine on major OSs being used like win7 and XP. But some functionality related to the database doesn't work properly when deployed on win8. I used a code to delete temp table if it exists.This feature completely works on the other OSs.But i don't know why the code is not working on the later OS. Any thought to solve the problem? Public Sub DroptempProject() On Error GoTo ErrorHandler Dim str As String str = "DROP TABLE ptempTable" ExecSQL(str) 'Exit Sub ErrorHandler: If …

Member Avatar
Member Avatar
+0 forum 5

I need to convert image to binary and get result in text box . Image found in path D:/person.jpg i using the following function : public bool[] imageToBinaryArray(System.Drawing.Image imageIn) { MemoryStream ms = new MemoryStream(); bool[] arr = new bool[50000000]; int i =0; imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); BitArray bitarray = new BitArray(ms.ToArray()); foreach (bool item in bitarray) { arr[i] = item; i++; } return arr; } How to receive the value returned from function imageToBinaryArray in textbox1 ?

Member Avatar
Member Avatar
+0 forum 1

Hello i had a datagridview with data in it and i wanted to display the selected row in textboxes here's the code i tried by i think its totaly wrong [code=vb.net] Private Sub DataGridView_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick Dim i As Integer i = DataGridView.CurrentRow.Index txtWatchId.Text = DataGridView.Item(0, i).Value txtWatchBrand.Text = DataGridView.Item(1, i).Value txtWatchModel.Text = DataGridView.Item(2, i).Value txtManufacturer.Text = DataGridView.Item(3, i).Value End Sub[/code] Please help

Member Avatar
Member Avatar
+0 forum 22

Hello. I am in need of your help guys. I have a topic "Patchworks" in uni right now and I have no idea how to draw them on window by using graphics.py in Python 3.5 Basically I got following patch designs to draw on screen: [IMG]http://i67.tinypic.com/2wbt7v5.png[/IMG] and [IMG]http://i68.tinypic.com/j9u7mo.png[/IMG] I will appreciate any help and information on following topic. Thanks in advance. Kristian

Member Avatar
Member Avatar
+0 forum 1

I have created an aplication in C# windows application version 1.1 to display some records in a datagrid. The datasource of the datagrid is datatable and not any database.I want tht when we edit any cell of a particular column and press "Enter" it should show a Message Box let's say "the cell is edited." I wrote this but its not working private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue.ToString()=="Enter") { // When the user presses both the 'Alt' key and 'F' key, // KeyPreview is set to False, and a message appears. // This message is only displayed …

Member Avatar
Member Avatar
+0 forum 6

i need help all of my pages wont appear except my front page. what to do? it says Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster.

Member Avatar
Member Avatar
-1 forum 2

Ikd what the error is telling me as when it compiles, no red lines appear. Plz help me >_< ! thanx in advance #include "stdafx.h" #include <iostream> #include <stdlib.h> using namespace std; #include "Shapes.h" #include "ShapeFeatures.h" int main() cout << "\n\n\n"; return 0; } //Shapes.h #pragma once class Shapes { public: void square(); void triangle(); void circle(); private: ShapeFeatures me; }; void Shapes::square() { me.getSquareArea(); } void Shapes::triangle() { me.getTriangleArea(); } void Shapes::circle() { me.getCircleArea(); } ///ShapeFeatures.h #pragma once class ShapeFeatures { public: void getSquareArea(); void getTriangleArea(); void getCircleArea(); private: int length; int base; int height; double radius; double pi …

Member Avatar
Member Avatar
+0 forum 2

I'm guessing the error lies in the writeBinary function where I open the file everytime I write into it. I am not sure how to create the file and have it not overwrite the existing data. My code results into reading 3, 3, 3 instead of 1,2,3. #include <string> #include <fstream> #include <iostream> using namespace std; class Binary { public: Binary(int num); ~Binary(); void writeBinary(); void readBinary(); string binFile; int value; }; Binary::Binary(int num) { value = num; binFile = "BinaryFile.bin"; } Binary::~Binary() { } void Binary::writeBinary() { fstream outBinaryFile; ofstream appendFile(binFile, ios::out | ios::app); outBinaryFile.write((char*)&value, sizeof(value)); outBinaryFile.close(); } void …

Member Avatar
Member Avatar
+0 forum 3

So I'm having a huge brain fart here and I know for a fact I am going about this the wrong way. Unfortunately, I can't refer to previous work I've done where I have done this correctly as I no longer have access to them. I have my index page grabbing information from different PHP pages then displaying them on screen. The reason why it's grabbing them from different PHP pages is because some times, these scripts will fail. If this was all in the same page, it would cause the whole page to fail so I want to call …

Member Avatar
Member Avatar
+0 forum 3

I'm having a lot of issues wring codes in C++ specialy when 3 files are required (.h, .cpp and main.cpp). Very different to C that it was very easy for me but not now with C++. I nee to write a program to do the following: Create 3 files for this program. Taxpayer.h, Taxpayer.cpp, and main.cpp Create a class called Taxpayer. Data members (private variables)include a social security number, a full name, a yearly gross income, and the tax owed. Your class should have a constructor that takes in a name, social security number, and a yearly gross income. Provide …

Member Avatar
Member Avatar
+0 forum 1

when the console displays the "StudentAns" I get weird characters instead of the actual answer. ///////////////////////////////////////////////////////////// this is the files CorrectAnswers.txt A D B C A A D B D C A D B A C C D B C A StudentAnswers.txt A D B C A A D B D C A D B A C C D B C A

Member Avatar
Member Avatar
+0 forum 1

Hi .. I have been asked to create a new thread rather than recurrent on old post ([url]http://www.daniweb.com/forums/thread116468-2.html[/url]), hope to get some help here... :) I would like to have a "Extract" button which then open a Save As dialog to save the file from the Database into local pc, the SqlFileHolder provided in [url]http://www.daniweb.com/forums/thread116468-1.html[/url] , work nice for me, but just wanted to have additional stuff by downloading the file. [CODE] private void saveFile(object sender, System.EventArgs e) { // open SaveFileDialog so the user can save the file SaveFileDialog saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.Title = "Save File.."; saveFileDialog1.ShowDialog(); ... …

Member Avatar
Member Avatar
+0 forum 3

I want to learn java for competitive programming . I'm actually aware of all the great books on java like thinking in java , effective java etc. But those books are very detailed . i want to learn enough for competitive programming without going into too much of unnecessary details . I'd be glad if somebody can tell me the resources to learn from so that i can move on to the next , more important aspect of competitive programming i.e learning data structures and algorithms .

Member Avatar
Member Avatar
+0 forum 1

Hello Everyone, I am new to c# and am trying to use Open XML to pull data from a SQL server into a spreadsheet. I followed some examples I found online but had to alter them to fit the test scenario I have set up and have run into an error I am not sure how to debug. I am receiving error code CS0120, "An object reference is required for the non-static field, method or property 'Program.CreateContentRow(int, int, string, string, string)'" I tried adding code along the lines of "Row contentRow = new Row()", because that is pretty much the …

Member Avatar
Member Avatar
+0 forum 1

Good day I am experiencing issues with Microsoft Excel 2013 32- bit running on Windows 7 Ultimate 64-bit. Whenever I start Excel or switch to it from another program the following error message pops up: "An unexpected error occured: Object reference not set to an instance of an object" To the best of my knowledge, this started after a failed export of a Sage Pastel's Intelligence Center report. Please advise on how to address this. Many thanks Etienne

Member Avatar
Member Avatar
+0 forum 2

hi james, stultuske this is jus a question. do you have here any tuturials on object oriented programming, abstract classes, subclasses, method, overidering methods and so on.

Member Avatar
Member Avatar
+0 forum 14

Function stored in database is not executing. I have following code for output $q = mysql_query("SELECT * FROM pages WHERE page_id='$id'"); $r = mysql_fetch_object($q); //print the pages content echo "<h1>$r->page_title</h2>"; echo $r->page_content; **page_title** & **page_content** are database column **page_content** column have following data slider(); // it may be text or function OR both text + function slider function function slider(){ echo "Hey! You have Slider";// query to display slider images from database } **Output:** slider(); **Output Expected:** ***Hey! You have Slider***

Member Avatar
Member Avatar
+0 forum 5

I am a beginner. I need to create a table in visual c# such that the number of rows would be created based on user input. The number of colums is 3. For example, if a user enters 3 as the input, a table of 3 rows would be created. If he enters 5, a table of 5 rows would be created.

Member Avatar
Member Avatar
+0 forum 2

I have Windows 7, 64bit with 8 gigs of RAM. Illustrator worked perfectly for weeks than just today it decides to quit. As soon as I open it, the splash screen shows and the interface opens and a couple seconds later it shuts down. No error message. If I'm fast enough to drop down a menu, it stays open. Or if I open Illustrator by double-clicking an AI file, if I quickly move an object on the drawing, it stops to ask if I want to save changes before exiting. I can't cancel the exit process. I've done the usual, …

Member Avatar
Member Avatar
+0 forum 70

Hello everyone. First of all i'm new here, and i registered particulary for this problem of mine i can't figure. In the code shown below, in the function `void printExpensiveThanT(..)` i'm supposed to print out the destination, distance and the price for the offers which are more expensive than the offer T in the function, sorted in ascending order by the `distance` value. I'm not sure what should i use to sort them, i experimented something with vectors but it didn't work out so i deleted it. Any help would be appreciated. #include <iostream> #include <cstring> #include <algorithm> using namespace …

Member Avatar
Member Avatar
+0 forum 1

hey ,i am new to the site as java bluej , i have drawn a flag using bluej using many objects like circle and rectangle ... i wanna combine the objects into one to move it together , what should i do ? the code source: /** * This class represents a simple picture. You can draw the picture using * the draw method. But wait, there's more: being an electronic picture, it * can be changed. You can set it to black-and-white display and back to * colors (only after it's been drawn, of course). * * This class …

Member Avatar
Member Avatar
+0 forum 2

How can i write a C++ program to implement a finite state machine (FSM) simulator. The objective is to enable system designers to model and simulate their systems’ behavior while still in the design phase. The simulator reads an input file which contains the FSM description. The FSM description file contains three main sections: (1) machine name; (2) variables section; (3) states section; and (4) a transitions section . The sections are defined as follows: 1. The machine name section contain the machine name (which must be the same as the file name that contains the machine (a machine called …

Member Avatar
Member Avatar
+0 forum 1

Create a class named Book that includes auto implemented properties for the International Standard Book Number (ISBN), title, author, and price. (An ISBN is a unique number assigned to each published book) Create a child class named TextBook that includes a grade level and a CoffeeTableBook child class that contains no additional field or properties. In the child classes, override the accessor that sets a Book price so that TextBooks must be priced between $20.00 and $80.00, inclusive, and CoffeeTableBooks must be priced between $35.00 and $100.00, inclusive. Write a program that creates a few objects of each type and …

Member Avatar
Member Avatar
-1 forum 3

Hi all, I'm running into a problem with PHP and mysql. I run a mySQL query, which returns the following object: `mysqli_result Object ( [current_field] => 0 [field_count] => 2 [lengths] => Array ( [0] => 1 [1] => 186 ) [num_rows] => 1 [type] => 0 )` I then try to fetch the data with `$object->fetch_array(MYSQLI_ASSOC)` but get this error: `Call to a member function fetch_array() on boolean` I am very confused because I am calling the function on an object, not a bool... any ideas?

Member Avatar
Member Avatar
+0 forum 2

please check this code and tell me what is the problem with this ..... i get error*"operation is not allowed when the object is open"* dim conn as new adodb.connection private sub commandbutton1_click() conn.connectionstring="dsn=localhost;uid=root;pwd=root;" conn.open dim cmd as new adodb.command cmd.commandtext="select sname from stu" cmd.commandtype=adcmdtext cmd.activeconnection= conn end sub

Member Avatar
Member Avatar
-1 forum 3

I am trying to design a calculator. I want to use the Kryptonbutton from the Krypton Component Suite. This is the code I have so far to display 0-9 in the calculator display. Private Sub KryptonButton_Click(sender As Object, e As EventArgs) Handles KryptonButton1.Click, KryptonButton2.Click Dim b As Button = sender If TextBox1.Text = "0" Then TextBox1.Text = b.Text Else TextBox1.Text = TextBox1.Text + b.Text End If End Sub when I run the program and click the button I get the error msg : InvalidCastExecption was unhandled. Additional Information: "Unable to cast object of type 'ComponentFactory.Krypton.Toolkit.KryptonButton' to type 'System.Windows.Forms.Button'." the code …

Member Avatar
Member Avatar
+0 forum 1

I was working on the wrong assignment, so I hammered this out, it's almost due, and I am having trouble figuring out how to test my program. Eclipse keeps showing errors when trying to figure out how to populate my fields, assuming I have the rest of the program right. We have worked prior to this with keyboard input and this is the first assignment with inheritance. present errors toString cannot be resolved or is not a field, and Constructor Person("String") is undefined. [CODE] /**Create a class called Vehicle that has the manufacturer’s name (type String), number of cylinders in …

Member Avatar
Member Avatar
+0 forum 2

I keep getting "List index out of range" when trying to execute this code, but for the life of me I cannot figure out why, If anyone has any experience coding linux gDesklets this would help. File: StockWatcher.display [code] ... parser.dataSet = stockInfo.html ... [/code] stockInfo.html is an object containing a CSV string "Some Company,127.2,+0.33%" File: __init__.py [code] ... def __setData(self, csvData): for row in csv.reader(csvData): self.__name = row[0] self.__currentvalue = row[1] self.__changepercent = row[2] if (match("+", row[2])): self.__changecolor = "green" self.__imagename = "gfx/gain.png" if (match("-", row[2])): self.__changecolor = "red" self.__imagename = "gfx/loss.png" ... dataSet = property(None, __setData, None) ... …

Member Avatar
Member Avatar
+0 forum 7

MAke a quiz in gui which shows the player the time left for a particular question and automatically proceeds to the next question when time limit exceeds. time left to be shown in a jlabel

Member Avatar
Member Avatar
+0 forum 33

Hello! I am a freshie, and have OOP Semester project coming up. However I am not sure how far i reach out in terms of project ideas. I am hoping to use C# for the graphics (in whatever i will be doing) . Can you please suggest something INTERESTING ( other than management systems please :) )?? Thankyou.

Member Avatar
Member Avatar
+0 forum 1

The End.