132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sevyt

I creating a small program which basically reads Electronic identity cards and stores the information in a SQL database. There is more to the program of course, but this is where i need help with. The EID has a picture from the person also. I decided not to save the …

Software Development image vb.net
Member Avatar for Sevyt
0
587
Member Avatar for VasquezPL

Hi guys, I have found interesting code.. Unfortunatelly I dont know how to use it :/ [CODE]public void Delete(string ouPath, string groupPath) { if (DirectoryEntry.Exists("LDAP://" + groupPath)) { try { DirectoryEntry entry = new DirectoryEntry("LDAP://" + ouPath); DirectoryEntry group = new DirectoryEntry("LDAP://" + groupPath); entry.Children.Remove(group); group.CommitChanges(); } catch (Exception e) …

Software Development asp.net c#
Member Avatar for muralijoshi
0
1K
Member Avatar for Riteman

Well, I have managed to create controls during runtime. Dim Rbut As New Button() Dim Lbut As New Button() With Rbut .Location = New Point(590, y + 15) .Text = "Remove" .Name = FontName(ListBoxCount) End With With Lbut .Location = New Point(590, y + 45) .Text = "Lock" .Name = …

Software Development gui vb.net
Member Avatar for Riteman
0
309
Member Avatar for triumphost

The code below gives me a Narrowing conversion from int to uint32_t: typedef union RGB { uint32_t Color; struct { unsigned char B, G, R, A; }; } *PRGB; inline RGB Rgb(int R, int G, int B) {RGB Result = {((R & 255) << 16) | ((G & 255) << …

Software Development c++
Member Avatar for WaltP
0
354
Member Avatar for baltazar

I'm trying to write a transform to parse an html document and create another html document but I can't seem to use the html tags in the xslt. My html source that I want to apply the transform on looks like this: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body class="3-column"> <div …

Software Development html-css xml
Member Avatar for Mike Askew
0
1K
Member Avatar for themaj

Situation: need to read a CSV (txt) file that has no header and has 4 fields (all numeric), the number of lines will vary. Sample data: 160827,00003,000000075,0000025 84144,00001,000000050,0000050 161060,00002,000000050,0000025 40015,00002,000000100,0000050 61955,00002,000000100,0000050 etc etc I want to read this file into a DataGridView for proofing and later insert all these lines …

Software Development file-system microsoft-access vb.net
Member Avatar for themaj
0
10K
Member Avatar for pitic

I have a task to create an app that scans a 2D code (DataMatrix) with a usb scanner (set to work as a serial port), then creat a zip file from the inputstream, unzip it and get an xml. i have managed to scan the code, get the inputstream but …

Software Development java
Member Avatar for pitic
0
267
Member Avatar for Rodney J

// The Physics Game.cpp : Defines the entry point for the console application. //Rodney Jenkins #include "stdafx.h" #include <iostream> #include <cstdlib> #include <ctime> #include <cmath> using namespace std; double eqOne_vf(double Vi , double a , double t) { return ( Vi + (a * t) ); } double eqTwo_x(double Vf …

Software Development c++
Member Avatar for Schol-R-LEA
0
314
Member Avatar for bgraw

A Ternary Tree (T) is a tree in which every non terminal node has at most 3 children. We will use T to simulate the following activity: A set of P candidates must pass a set of exams ordered in an array of N exam codes (an exam code is …

Software Development c data-structure
Member Avatar for bakabozza
0
218
Member Avatar for maildummyabc

Hi, This is pankaj, I am currently working on the printing project. Here I have creating a custom paper(height = 1000mm and width = 800mm) on the printer via code and then trying to print the text on a specific location (for example. top = 1cm and left = 1cm). …

Software Development printer vb.net
Member Avatar for maildummyabc
0
184
Member Avatar for Marcusflint

Hi, Im new to SDL, when i compile this example program i got these linker errors first defined here .drectve `/manifestdependency:"type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized [Linker error] undefined reference to `__security_cookie' [Linker error] undefined reference to `_alloca_probe_16' [Linker error] undefined reference to `@__security_check_cookie@4' [Linker error] undefined …

Software Development c++
0
132
Member Avatar for SeniorAlexandro

So I'm making a Program to Start/Restart/Stop and running commands from the Console for my Server. Now when someone uses the console, I want to be alerted of it on my Mail. I am using Visual Studio 2010. This is my Code: Dim mail As New MailMessage Dim smtp As …

Software Development client-server email vb.net visual-studio
Member Avatar for poojavb
0
783
Member Avatar for randomkid73

**Synopsis:** I have a report generated from the report wizard in VB that works, but I only want to load data from the same department as the current user. **Details:** The application connects to MySQL using the MySQL Connector/Net. I have a users table in the database, one of the …

Software Development vb.net
Member Avatar for poojavb
0
192
Member Avatar for VB 2012

Oky i have a big problem that needs help fixing Here's my code : Private Sub FullLoginTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FullLoginTimer.Tick Try If MbFacebookBrowser.Document.Url.AbsoluteUri = "http://www.facebook.com/login.php" Then MbFacebookBrowser.Document.GetElementById("email").SetAttribute("value", Emailtxt.Text) MbFacebookBrowser.Document.GetElementById("pass").SetAttribute("value", Passwordtxt.Text) MbFacebookBrowser.Document.GetElementById("Login").InvokeMember("click") End If Catch skipErrors As Exception Try If MbFacebookBrowser.Document.Url.AbsoluteUri = "http://www.facebook.com/login.php" Then MbFacebookBrowser.Document.GetElementById("pass").SetAttribute("value", …

Software Development vb.net
Member Avatar for SeniorAlexandro
0
1K
Member Avatar for Pricess

plsss I need help!! I have problem with my insert data into database this is my code Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.SystemDataConnectionString) Dim cmd As New OleDb.OleDbCommand Dim adap As New OleDb.OleDbDataAdapter Dim ds As New DataSet Dim dr As OleDb.OleDbDataReader con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\D_S_S - …

Software Development dataset open-source vb.net
Member Avatar for Reverend Jim
0
145
Member Avatar for angel392004

guys help me with the code for adding items in the combo box but without duplicates. i have an assignment which is a simple web browser. the combo box will be the address bar. and everytime i input an address, it will be added in combo box and should not …

Software Development vb.net web-browser
Member Avatar for Reverend Jim
0
606
Member Avatar for khallebal

hi all this is the code in question namespace std { typedef std::basic_string<wchar_t> wstring; }; #endif #if defined(__HAIKU__) namespace std { class wstring : public std::basic_string<char> { public: wstring(const char *t) : std::basic_string<char>(t) { } wstring() { } wstring(const wstring &that) : std::basic_string<char>(that.c_str()) { } wstring(const std::basic_string<char> &that) : std::basic_string<char>(that) …

Software Development c++
Member Avatar for khallebal
0
242
Member Avatar for DeanMSands3

I've got a program I'm writing that A. runs as a service B. grabs a screenshot of a specific window every X number of seconds C. prints it to the default printer. A and B are more or less done. C is confusing me. I'm looking for a way to …

Software Development printer
Member Avatar for DeanMSands3
0
165
Member Avatar for Perry31

I declared one variable in one type (say char x ) and allocated. But i'm assigning integer or some other type value to it. Below is the code snippet which i'm facing problem, char *tempstr = (char*)calloc(1,4); // declaring with char variable tempstr[0] = '2'; // trying to assign 5 …

Software Development c
Member Avatar for WaltP
0
261
Member Avatar for am30568

I new with database and java.I want to show result of the table WHERE USER = USER LOGIN NAME private void query() { try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@andy-lcoyx7gfw:1521:orcl", "andy", "andy"); String sql = "select * from schedules where (userName = @User) "; //'{$_SESSION['username']}' Statement stmt = con.createStatement(); ResultSet …

Software Development java oracle
Member Avatar for ejosiah
0
715
Member Avatar for poloblue

Hi, I just to know what code should I use to terminate the program when the user input the character n. Here is the code I have so far

Software Development c++
Member Avatar for poloblue
0
111
Member Avatar for Mikey12345

Hi All I have a unbound datagridview which i use to enter data. I would like to make calculations using individual cell data as follows:- Datagridview1.rows(0).cells(1).value = datagridview1.rows(1).cells(1).value + datagridview1.rows(1).cells(2).value This works fine but if im using lots of cells it can be quite confusing .I was wondering if there …

Software Development vb.net
Member Avatar for Reverend Jim
0
171
Member Avatar for jdseader

I have written many FORTRAN codes, but am new to Java, which I find much more powerful and more difficult. I have a program that was written several years ago in MS Access. The program consists of a main window with buttons that take you to other windows where you …

Software Development engineering java java-netbeans
Member Avatar for twmgeo
0
929
Member Avatar for Ajayraj

i am getting "Unhandled Null referenceException "--object reference not set to an instance of an object at below mentioned code in bracket (return System.Configuration.ConfigurationManager.ConnectionStrings["unitmoduleconnectionstring"].ConnectionString) and below is the total code help me to get out of this bug.... namespace TIMS { public partial class Form1: Form { public Form1() { …

Software Development c# dataset sql
Member Avatar for prathamesh3090
0
306
Member Avatar for AnnA.A

Hi, I have graph in C. I enter vertexes and edges with price. Now I would like add path, where I visit only few of the vertexes and then I would like to print this path. I don't know how to do it, so I am asking you here....

Software Development c
Member Avatar for Despairy
0
90
Member Avatar for nuclear

To be specific I'm trying to implement this into a small game. What I'm thinking of is having a base/default class for derived objects such as player, enemies, tiles and so on and later the derived classes would inherit this base class and add whatever is needed depending on the …

Software Development c++ web-design
Member Avatar for Despairy
0
196
Member Avatar for myk45

Hello All! I was just wondering if C++ classes could internally be represented in the following way: #include <stdio.h> struct A { int a; void (*ptr) (A *); }; void display(A *ptr) { ptr->a = 2; printf("ptr->a = %d", ptr->a); } int main() { A obj; obj.ptr = display; obj.ptr(&obj); …

Software Development c++
Member Avatar for myk45
0
122
Member Avatar for trektrak

Hey Guys, I'm playing with android webview.. and I would like to have it running background whenever I press home button... Please let me know if this is possible... Here are the codes, maybe I need to tweak anything .. package trektrak.GeoWebView; import android.app.Activity; import android.os.Bundle; import android.webkit.GeolocationPermissions; import android.webkit.WebChromeClient; …

Software Development android android-development java
Member Avatar for ejosiah
0
245
Member Avatar for freakvista

Hello again! I am trying to make a little game in pascal and I'm using graph. And it changes the background but when i'm trying to draw a black line it doesn't work. I don't know why. uses graph; var grDriver,grMode,ErrCode: Integer; procedure initg; begin grDriver := Detect; InitGraph(grDriver, grMode,'e:/bp/bgi'); …

Software Development pascal
Member Avatar for pritaeas
0
150
Member Avatar for enakta13

I intend to write a GUI java program which convert a decimal(base 10) to hexadecimal(base 16). Floating point decimals are also valid input. the code of my program private void myEnterButtonActionPerformed(java.awt.event.ActionEvent evt) { float mynum; mynum = Float.parseFloat(this.myNumberField.getText()); Float floatObject = Float.valueOf(mynum); myResultField.setText(Float.toHexString(mynum)); } but when I run the program, …

Software Development gui java
Member Avatar for enakta13
0
446
Member Avatar for 47pirates

I'm trying to make a search by different option say A, B . what i need is if user provide value of A only then it does the searching using parameter A only , if user provide A and B then it needs to do searching using condition A=value1 AND …

Software Development java seo sql
Member Avatar for 47pirates
0
308
Member Avatar for tracydo

Hi I'm writting this code to prepare electricity for as many users as there are input. I don't got when I compile it always shows something where the "if" start. I need a fresh look please. Thanks [code] import java.text.*; // format output import java.util.*; // Scanner class public class …

Software Development java
Member Avatar for Ezzaral
0
1K
Member Avatar for Alexispap

%author: Alexis Papathanassopoulos from Tkinter import * import Image, ImageTk import os import glob import time top = Tk() c=Canvas(top,width=800,height=400, bg='lightblue') c.grid(row=0,columnspan=2,sticky=N+E+W+S) pdict={} class Flow: def __init__(self, clickfunc): self.cfunc = clickfunc def goto(self, canvas, nr): global velocity,autorotate clickeditem = canvas.find_withtag("pic_" + str(nr)) tagsofitem= canvas.gettags(clickeditem) oldcenteritem= canvas.find_withtag('center') if clickeditem: if oldcenteritem: …

Software Development image python tkinter
Member Avatar for TrustyTony
0
1K
Member Avatar for Qazinix

I have recently been working on a project that requires the use of vertical text within the first row of a Stringgrid. When I change the drawing style of the Stringgrid to gdsThemed, the vertical text displays , however the text is also displayed horisontaly accross the cell. Here is …

Software Development delphi pascal
Member Avatar for pritaeas
0
1K
Member Avatar for alemojarro

Help with search and remove in playerroster

Software Development java
Member Avatar for NormR1
0
108
Member Avatar for vytenis555

Hello everybody, I'm in need of a bit of help here. I got this C# snippet: public static byte[] StringToByteArray(String hex) { int NumberChars = hex.Length; byte[] bytes = new byte[NumberChars / 2]; for (int i = 0; i < NumberChars; i += 2) bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), …

Software Development c# c++
Member Avatar for Milton Neal
0
251
Member Avatar for GilbertB

I am doing a sample program where it involves inserting data from textboxes and a Combox to SQL Server databse ... private void btnAdd_Click(object sender, EventArgs e) { da.InsertCommand = new SqlCommand("INSERT INTO Member VALUES (@MemberID, @Name, @Surname, @IDNo, @Address, @Town, @TelNo, @MobNo, @Email)", c); da.InsertCommand.Parameters.Add("@MemberID", SqlDbType.VarChar).Value = textBox50.Text; da.InsertCommand.Parameters.Add("@Name", …

Software Development
Member Avatar for Mitja Bonca
0
243
Member Avatar for arathy nair

Hi All, I want to create the following xml from JAVA code. Can u please suggest me a way to write a JAVA code to generate the following xml.When I tried am not able to generate the title with xmlns.Please someone help me..I am very new to XML..... Even if …

Software Development xml
Member Avatar for Mike Askew
0
136
Member Avatar for GilbertB

I am building a program which generates a random number in a textbox everytime the form loads. I have this code : public partial class Form1 : Form { SqlConnection c = new SqlConnection(@"Data Source=GILBERTB-PC\SQLEXPRESS;Initial Catalog=DVDandGameBooking;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(); public Form1() { InitializeComponent(); random(); } //private void …

Software Development sql
Member Avatar for bharat_4g
0
809
Member Avatar for existinglady

excuse me but can someone teach me how to get a string with space example : this author i need to get the codes on how to get that thank you

Software Development c++
Member Avatar for Lucaci Andrew
0
415
Member Avatar for Sendy Hipo

hi, i read in ebook about overleaded iostream operator for class, but im a bit confused about this one : ostream &operator << (ostream &strm, const FeetInches &obj) { strm << obj.feet << " feet, " << obj.inches << " inches"; return strm; } > Notice the function has two …

Software Development c++
Member Avatar for Sendy Hipo
0
215
Member Avatar for sirus23

OK it deserts this to put it in a new thread. I've found this: using System; using System.Net; using System.Web; using System.Collections; using System.IO; namespace WebRequestExample { class WebPostRequest { WebRequest theRequest; HttpWebResponse theResponse; ArrayList theQueryData; public WebPostRequest(string url) { theRequest = WebRequest.Create(url); theRequest.Method = "POST"; theQueryData = new ArrayList(); …

Software Development c# first-post php
Member Avatar for C#Jaap
0
1K
Member Avatar for M.Waqas Aslam

hello ! well i dont have any idea about the socket programming ,i am developing an lan chatting application , i want to add the file transfer functionality in it , now you are thinking that why not i share my folder over network , well i dont want to …

Software Development socket-programming vb.net
0
102
Member Avatar for poojavb

Hello Friends, I have a doubt.... Can we set the windows form resolution according to pc screen resolution and even the control should be adjusted....is it possible??? eg. My screen resolution is 1366 X 768 and my form size is 1254, 709....but I want it so set according to the …

Software Development display vb.net
Member Avatar for poojavb
0
5K
Member Avatar for Dudearoo

**Dudearoo** *Useing Code::Blocks* Hey you guys. ive got a problem, ive got a simple while loop being executed that loops 41 lines of code untill the user types no for example int repeat = 2; while (repeat == 2) { // my code // || Example Code // \/ cout …

Software Development c++
Member Avatar for rubberman
0
160
Member Avatar for intelnf09

I am not sure if I am doing this correctly since it has been awhile since I last used Daniweb. I need some help with the code that I have submitted and am getting the following two errors. I am new to java and not sure of what to do. …

Software Development gui java
Member Avatar for NormR1
0
1K
Member Avatar for sameerge

Hi I need the answers one of my two questions which were asked by our teacher in class room. Q1. Languagess are system software or application software? Q2. In which software the languages are written? for example in which software the c++ language is written? plz give your answer with …

Software Development asp c++ java php
Member Avatar for WaltP
0
219
Member Avatar for alsz

hi everyone I am having a little problem with the program below. If I input "2/5 * 2/6" the char "/6" will be stored, so when I try to multiply by a simple variable by entering "3/7 * 6" the program will read "3/7 * 6/6". is there a way …

Software Development c++
Member Avatar for VernonDozier
0
387
Member Avatar for Taniya19

I want a fast algorithm to calculate no of permutations for n elements with some elements identical. Using formula : n! / k1! k2!....km! where ki = no of i elements, i = (1,2,...m) and k1 + k2 + ...... + km = n **Without calculating each factorial** as if …

Software Development algorithm c++
Member Avatar for TrustyTony
0
168
Member Avatar for vivekgupta143

Why dont we use '&' in the case of strings in function scanf ?? e.g. :- scanf("%s",date); here date is a character arraymeans string. Plz help

Software Development c c# c++
Member Avatar for deceptikon
0
100

The End.