199,114 Archived Topics
Remove Filter ![]() | |
I have spent 3 days trying to get two new functions - GetText() and PutText() to function correctly with no success. Would someone be kind enough to look over my code and see why they do not work. I must have missed something? | |
Hi guys can you help me in this one? I can add cell values in Datagrid using their column address or column name but I want to add the columns which contain a specific word for example I want to add all cells with a column name containing "Amount" Dim … | |
Hi, When I initialise then access the `g_spMyLog` shared pointer, from within the `CSingleton::CreateLog` member function, it works ok. Accessing the SP from the static member function of `CSingleton::Create()` causes an `access violation` in the original project and an abort in this sample project displayed below. In the original project … | |
using System; public class RollDie { public static void Main( string[] args ) { Random randomNumbers = new Random(); // random number generator int[] frequency = new int[ 7 ]; // array of frequency counters // roll die 6000 times; use die value as frequency index for ( int roll … | |
// Shortest function to convert an ascii hex digit to binary // (assumes a valid hex digit 0-9, A-F, a-f) char asciihex2bin(char ascii) { if (ascii > 0x40) ascii += 9; return (ascii & 0x0F); } | |
Hello im making this xml reader that outputs links to listbox, the xml code is like this. <item> <title>file1</title> <category>myfiles</category> <link>http://google.com</link> </item> <item> <title>file2</title> <category>myfiles</category> <link>http://yahoo.com</link> </item> My code looks like this, it works but i would like that i could click the File1 in listbox and it would work … | |
Hey guys, me again. OK, I have this form that gets and populates the select boxes with the necessary info. Now, what I would like to do is to take the id field of the select box and use that to do a select query on the relevant table. So … | |
i am creating a form in vb.net, the aim is to be able to insert data to the sql server from the form interface. the form's textboxes fields include Name, DateofBirth, Address, Telephone, PostalCode, Nationality, DateofRegistration Sex (ComboBox), plus two buttons names, Submit and Cancel. kindly assist with a code … | |
I am using Qt5.2.1 and I made a program that stores some data into a file and then reads the data. it stores some variables values. After I restart my program... I want to read those values and re-store the values of those variables... How can I do this? I … | |
I working on a mips code as extra credit for my Computer Organization and assembly class. The instructions are: Write a program) that will define the following string manipulation functions. Each is analogous to the corresponding C++ string function. STRLEN( Str &, Len &) Sent the address of a string, … | |
import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print … | |
I have a question. I am trying to sere into my brain how pointers work and just when I think I got it a new problem arises. So I think I understand pointers pretty good when working with primitives and such. Now I am trying to understand working with objects … | |
 Hello there! Newbie here! It is my first time to post something here! Can somebody help me please with my problem on my codes. I have already build/created a **Log In Form** but my problem is I created an **On-Screen Keyboard** which must be use for that **Log … | |
Hello, i've been searching quite a while but haven't found the solution i'm after. I have a project where I need to show clients in a listbox imported from a XML file so far that is what I have but I also need to able to show the related data … | |
Hi, If I could please get some help? I have missed the lectures on creating tables due to my daughter being sick. I am trying to follow the lecture notes but I am having issues. I get the following error Error at Command Line : 4 Column : 21 Error … | |
please help me how to close the window. code: JButton quit = new JButton(); public Mainmenu() { setLayout(new FlowLayout()); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } }); | |
hey all once again i have a little issue ... i'am really having a hard time with this issue i have a datagridview that contain one column as a text and another column as a combobox i would like to populate the combobox from MS Access Table and as a … | |
i searched a lot ol across web , could'nt get a solution to my problm ... viewed many articles but only found manual apps or s/w's to record a selected area of my desktop ..... can anyone guide me telling hw can i do it programatically in my form on … | |
how to read the last 10 lines on a file using php. [B]Sample Entry:[/B] Samp1 Samp2 Samp3 Samp4 Samp5 Samp6 Samp7 Samp8 Samp9 Samp10 Samp11 Samp12 Samp13 Samp14 Samp15 [B]Output:[/B] Samp11 Samp12 Samp13 Samp14 Samp15 | |
#include<stdio.h> #include<math.h> #include<conio.h> #include<string.h> #include<stdlib.h> int main() { int i, n, diff; int x=rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Number Game\n"); for(i=1; i<=6; i++) { printf("ATTEMPT %d: Enter your number: ", i); scanf("%d", &n); if(n==x) { printf("Congrats! You have guessed the … | |
<link rel="stylesheet" type="text/css" href="admin/css/style.css" /> <?php include('dbcon.php'); include('header.php'); ?> </head> <body> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="brand"> <img src="admin/images/dee.png" width="150" height="50"> </a> <a class="brand"> <h2>UNITOUCH GLOBAL ONLINE E-VOTING</h2> <div class="chmsc_nav"><font size="4" color="white">Uniquely Touching The Universe</font></div> </a> <?php include('head.php'); ?> </div> </div> </div> <div class="wrapper_admin"> </br> </br> </br> … | |
I am trying to develop the genetic algorithm to solve Traveling Saleman problem and part of my challenge is to generate random tours long enough and write a fitness function to evaluate the cost incurred for each of the random tour. I have attempted to write the following. My objective … | |
JavaScript for mobile browser detect img changed according to mobile browser wheather iphone or android ..different images for both.... ![]() | |
Hi Guys I have an asp.net application developped using C# asp.net 4.0 , It is running perfectly with .net inbuilt server , but it throws an exception when running on IIS server 5.1 (Win XP sp-3) There i have a connection string encryption method , that is the place it … | |
I'm learning python 3 and I'm having problems with string related excerises. One exericse I'm working on is to write a program that cycle through a string and dispaly it like this: s u p e r n a t u r a l u p e r n a … | |
index.php echo '<a href="'<?php echo SITEURL; ?>'IndonusaCMS/event_article.php?id='.$data['ID'].'">'.$data['title'].'</a>'; wds.php <?php define('SITEURL', 'http://www.indonusa.net.id/'); ?> When I try to run index.php this error appears: Parse error: syntax error, unexpected '?' in E:\xampp\htdocs\IndonusaCMS\index.php on line 106 How to fix it? | |
hi good afternoon, hi good afternoon, am creating one point of sale software in vb.net ,today only i realize that i need a backup for the database i have attached with this project,after change my project as executable file how can i or my clients can take the backup for … | |
is it possible to create an online database using c# with a specific plug-in? | |
what are the advantages of using radio button lists and checkbox lists instead of individual radio buttons and checkboxes? | |
I want to know how I can put informations with C#. I think that is datebase. What is it? | |
write a c++ program that print (x,z,T,N) on the form of (*) by usin for loop | |
hello guyz im afraid if i understood this assignment unproperly: could you give me the output of it plz? (how should the output of this assign be) The monthly results for the best 3 employees of the month in a company are sent to the IT department for analysis and … | |
im creating a voting system that add votes to the database but it seems that my update/submit button don't add numbers(INT) in my database. what could be the problem here?help my database schema: | cid | cpos | cfname | cmname | clname | cyr | cparty | votes | … | |
I have a Form with a Datagridview, beneeth this I have Textboxex who shows data from a few columns but restricted to row nr 0. The problem is when I enter data into the datagridview in other rows than 0 or changes the focus inthe datagridvew from row 0 the … | |
I am new to ASP.Net and am building an MVC project in VS2013 I have the following actionResult public ActionResult Index() { LaundryUsers db = new LaundryUsers(); var users = db.Laundries.Where(u => u.UserId == WebSecurity.CurrentUserId); if (users == null) { return HttpNotFound(); } return View(users); } The result always throws … | |
Hi. problem in where insert data into table. Using vwd 2012 and Mssql 2012. Insert command is working fine in first record. If add another record, it shows "Procedure or Function has too many argument" I have tried may way, I could not solve. Pls help me. Below is my … | |
So I have this: private void GetSuppliersList() { ds = oDAL.GetSuppliersList(); cmbSupplier.DataSource = ds.Tables["SuppliersHeader"]; cmbSupplier.DisplayMember = "SupplierName"; cmbSupplier.ValueMember = "SupplierID"; } And I need to display SupplierAddress from my SQL database into a textbox so I thought I might need to get the ID (Supplier ID) of the SelectedValue (Supplier … | |
Good day What I would like to do is to alter a mysql table with data in it then add manipulated string data to that created column i.e I first add an extra column to my table then add a reverse string coded from data that had already been inserted. … | |
i can view anybody record and then can edit it if i click edit button below record, after clicking it takes you to another page whihc shows textboxes and dropdown, checkboxes to edit and all textboxes contains values for that EmpID but problem is that i want pre selected value … | |
For example, How do I use this custom print method to display something in the main method? public static void print(Stack<String> myStack ) { int count = 1, sizeOfStack = myStack.size(); System.out.println("\nYour stack has size: " + myStack.size()); for (String myString : myStack) {System.out.print(count + ". " + myString); if(count!=sizeOfStack) … | |
Im always getting Invalid Column, check the database and it's all correct. Dim borrowed As String = "Yes" dataopen() comm.Connection = conn comm.CommandText = "UPDATE Equipment SET Borrowed = '" & borrowed & "' WHERE EQID = '" & eid & "'" comm.ExecuteNonQueryAsync() comm.Dispose() conn.Close() | |
The scenario was there should be any or multiple TextBox that is not empty and display it on the DataGridView. I think my SQL is incorrect. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Command1 As New OleDbCommand Dim i2 As Integer Dim sql1 As … | |
Hi Dw I've recently created an application in java on this post:www.daniweb.com/software-development/java/threads/458306/how-to-work-with-jpos and now I just want to improve this by enabling a feature of mixing the cash notes when dispensing the required amount. The machine has these bills notes: 10, 20, 50, 100, and 200 so now what I … | |
#include <stdio.h> #include <math.h> #include <conio.h> #include <process.h> #include <string.h> void main() { int i, n, diff; int x = rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Word Program\n"); for (i = 1; i <= 5; i++) { printf("ATTEMPT %d: Enter the … | |
I am trying to order by date DESC some events read from a CSV and print out them. The CSV file has to be read until it reaches the end and then order by date DESC only the entries in the following categories: champions and euro. This is the code … | |
Hi everyone, i'm try to build windows application about: read real time data from serial port and filter. But i don't know how to build function filter signal in c#. Can you help me? Pls! |
The End.