132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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) … | |
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 = … | |
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++ | |
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 … | |
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 | |
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 | |
// 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++ | |
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 | |
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). … | |
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++ | |
![]() | 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 |
![]() | **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 |
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 ![]() | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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() { … ![]() | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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, … | |
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 … | |
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 | |
%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: … | |
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 … | |
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), … | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 … | |
**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++ | |
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. … | |
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 … | |
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++ | |
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 … | |
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 |
The End.