43,549 Solved Topics
Remove Filter ![]() | |
hi, how can i add data to a datagridcombo box column from a mdf file, i want to take the first name of all employees and display in the datagrid view combo box column: is the code below correct , please can u tell me what should i do to … Software Development | |
it can only save 1 record, but i want to save 2 or more from listview to database database table: table1 , fields [receiptnum,nod,qty,price,total [all in text]] For Each x As ListViewItem In lvorder.Items sql = "insert into table1 (receiptnum,nod,qty,price,total) values ('" _ & lblos.Text & "','" _ & x.SubItems(0).Text … | |
Hey guys is it posssible to read from file and add to collectionBase?For my litle project i need to use collection and read file but the app needs to save. it saves to file but i find it faster and easyer to read from collection and search,edit,delete... string[] lineOfContents = … Software Development file-system | |
## solution 1: fast enough response, simple function, fail fast from time import clock def isanaword(k,s): """ goes through the letters of second word (s) and returns it if first word (k) contains exactly same letters in same number """ for c in s: pos = k.find(c) if pos==-1: return … Software Development python | |
Okay. So I have this code in intel syntax. BITS 64 section .text global asm_proc asm_proc: jmp program section .data ; b8 - mov rax, <32bit immediate> ; 64 00 00 00 - The number 100 decimal ; C3 - ret program db 0b8h, 064h, 000h, 000h, 000h, 0c3h I … Software Development assembly | |
![]() | I have a little problem with the SetParent API. On my local system, it works fine. But when I put the program on a virtual machine, the handle does not work properly. Here's what I've got in my code: var si = new ProcessStartInfo(filetoexec, args); si.UseShellExecute = true; si.WindowStyle = … Software Development api ![]() |
If I have ready assembler code. How do I make it into runable code, I want to mess around with it and test it in VMPlayer. As far as I know, I could use NASM, and all "NASM's" can be downloaded from: http://www.nasm.us/pub/nasm/releasebuilds/2.11.06/ so, I've managed to find the right … Software Development assembly | |
![]() | Hi, I know that there have been a lot of questions on this topic and I have followed the solutions however my code still does not work. No error comes up, even after using Try and Catch and the code does not break, but the values are just not in … Software Development microsoft-access open-source vb.net ![]() |
i have these code for show popupmenus: case WM_USER + 1: { if(lParam==WM_RBUTTONUP) { POINT pCursor; GetCursorPos(&pCursor); HMENU test=GetSubMenu(GetMenu(HandleWindow),0); SetForegroundWindow(HandleWindow); TrackPopupMenu(test, TPM_LEFTBUTTON | TPM_RIGHTALIGN, pCursor.x, pCursor.y, 0, HandleWindow, NULL); PostMessage(HandleWindow, WM_NULL, 0, 0); } } break; the menu is showed normaly, but why the click message isn't working? heres the … Software Development c++ | |
when do: operator HBITMAP() { HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK); return hbitmap; } the hdcimage is copyied to hbitmap, right? Software Development c++ | |
``Bookkeeping You work for a company which mainly trades with 3 other companies. You record your balance in a file (you can still use cin or scanf to read or if you want you can read from "input.txt" file) with the following convention: Debit of Company A Credit of Company … Software Development c++ | |
this is my code dim btn as button dim rs as dataadapter rs =" Select * from tbltable1 where status = 'unavailable'", con) with rs [i dont know what comes next but i tried this one] btn.enabled = false end with [nothing's change] [so i tried this one] dim rs … Software Development vb.net | |
Okay, so I am learning Assembly and I started with 32bit and `bswap` seemed to work fine. Now I have this code main.c #include <stdio.h> #include <stdlib.h> extern int asm_proc(void); void print_bits(unsigned long long bits) { for (int i = 0; i < sizeof(unsigned long long) * 8; i += … Software Development assembly | |
Hi everybody! How can i call a function from Tkinter without using Buttons? I have a test.py file and there is a function def message in it: def message(): print('Good morning') from Tkinter import * tk = Tk() tk.mainloop() I want to type test.py message from linux terminal and the … | |
I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is … | |
Hey guys i got this code working 50%.. i have a login that passes the info to my main form that i need to search the txt file and show all info regarding info(NIP) in my txt file name,account number,cash,Nip so i search for the Nip since that is the … Software Development regex | |
Hello everybody! Me again with an other question :) I have a file with a list and 3 functions in it; view, sort, append. I used pickle to save data changes in to an other file (films.db). Imagine you want to use this programe for the first time on your … Software Development file-system python | |
Hello. I'm a software engineer at NASA. I was wondering how some programmers would go about making a guidance system. I have a design but I want to compare it to other programmers in order to improve it. Software Development | |
What operation does this format specifier "\a" really perform Software Development c++ | |
Hello friends. I want to create a list of sublists E.G. i = 0 pack = [] list = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] while i < 17: sublist = list[list[i]: list [i + 3]] pack = pack + sublist i += 1 print (pack) the output is: Type "copyright", "credits" or "license()" for … Software Development python | |
Hi All, Im new to xsl., In my implementation im converting a language code to a language value by lookup from a xml file. Input: <XML> <Name>shades</Name> <Languagecode>555</Languagecode> <XML> output: <XML> <Name>shades</Name> <Languagecode>hindi</Languagecode> <XML> Lookup XML table:(external file) <Languages> <Languagecode>555</Languagecode><Language>hindi</Language> <Languagecode>556</Languagecode><Language>tamil</Language> <Languagecode>558</Languagecode><Language>telugu</Language> <Languagecode>559</Languagecode><Language>malayalam</Language> <Languagecode>557</Languagecode><Language>bengali</Language> <Languagecode>554</Languagecode><Language>punjabi</Language> </Languages> I tried with Key … Software Development xml | |
hello friends, may anyone help me with a code in c for the mechanism of using an atm machine, conditions 1.acc balance starts at zero 2.do not use global variables 3.loop the main menu after every transaction until user presses exit 4.after every transaction user returns to the main menu. … | |
![]() | Hi again, I'm writing a code to retrieve the StudentID from a table in my database and then display it in a textbox. The code to retrieve the ID is on one form and I want the value to display in the textbox in another form. The code that I'm … Software Development open-source vb.net ![]() |
I'm making a program that will let you access a system via encrypted code from a USB. But I can't seem to figure out how I would go about making the user login to the computer via USB. I'll add the code in the code so far. /* This is … Software Development java | |
Hello. I'm a thirteen year old programmer. I find it strange how I can learn the core of a language in about half an hour. No joke. I've been programming for about a year, and I know about half a dozen languages. Including C/C++, Lisp, Python, Perl, SQL, Java, C#, … Software Development perl | |
Hello Daniweb! I learn in the Computer Sciences Circle, [Click Here](http://cscircles.cemc.uwaterloo.ca/) in the chapter 8. there strings, for exemple "sse" and "assessement" or "an" and "trans-panamian bananas", and we just need to count the occurences of thr furst in the second. My wrong code is """ Cet exercice consiste a … Software Development python | |
Hello! I have a file with a list and 3 functions in it; view, append and sort functions. I want to use pickle to save data changes in to another file inorder to retrive it next time. I have a list, when i call function VIEW, i see the primary … Software Development python | |
Hi Guys, I managed to fill the jtable with the table from the database. Now I want to add specific rows from the database table into the jtable. So I have a textfield and a sql statement: So "Select * from tbl where name =?" I want to add all … Software Development java | |
Hello, I am trying to connect to a hosted database on netbeans(java). So far I have the following: Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "password"); try { con = DriverManager.getConnection("jdbc:mysql://host:3306/dbname", conProps); String sql = ("SELECT * from products"); st = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(sql); st.executeQuery(); rs … Software Development java java-netbeans | |
Hi all,here is the code c# Array.Copy,what does the o means in the code block? using System; class Program Hi all what does the 0 means in the code block? using System; class Program { static void Main() { int[] values1 = { 4, 4, 4 }; int[] values2 = … | |
I want to copy all the files from one directory to another using the fread() and fwrite()-statements. Some of these files are rather large in size, and that's why I want to calculate who long the transfer will take. (Later I will use this information to show a progress bar … Software Development c++ file-system | |
***Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.*** **» Introduction to Java «** To start off, [Java](http://en.wikipedia.org/wiki/Java_(programming_language)) … | |
Hello, I am a little stuck. I have grasped the concept of methods, understanding thier purpose but still unsure on how to code it. Below is part of my code I kindly need guidance on. I am trying to create a method which can hold roles and depending on which … Software Development java | |
I have this Linq expression that works well. What is the right approach to test if it has returned anything? internal static void getCreditNotes(string invoiceId, out DataTable creditNotes,out double total) { total = 0; creditNotes = new DataTable(); var q = dt.AsEnumerable(). Where(r => (string) r["invoiceId"] == invoiceId && (string) … Software Development asp.net | |
//Hi all just switching from c++ to c#.Can anyone help,with the question i have: //this is a peace of code from c++ banking aplication int ShowMenu(void); void AddAccount(vector<CAccount*>& list); void DisplayAccount (vector<CAccount*>& list); void Lodgement (vector<CAccount*>& list); void Withdroawal (vector<CAccount*>& list); void InterestRate (vector<CAccount*>& list); CAccount* findAccount (vector<CAccount*>string ); bool … | |
![]() | As a part of my assignment I need to solve a problem in which I have to take space seperated inputs. I have already done my homework and stuck at a point where I have to take space seperated integers when number of integers are not predecided i.e whether there … Software Development c ![]() |
Hi.....I am a newbie...really confused with do while loop in python. Does it even exist? [CODE] J=[] do: finished = "false" while finished != "true": finished="true" for j in xrange(len(lis2)): cenP2 = G[i+G0] if ((cenP2 == 0) & (sigma2 > 0) J.append(1) finished = "false" print 3 # test code … Software Development python | |
hey guys im tring to list whats in my collection base but no output.. by the way is there a way to load info from TXT file in collectionBase? by the way this is just a project i have : class ATM public void AddClient(string ClientID, string Full, string Type, … Software Development | |
i did these function for uppercase: string Upper(string text) { string result; result.resize(text.size()); for(int i=0; i<text.size(); i++) { if(text[i]>96 && text[i]<123) result[i]= text[i]-32; result[i]=text[i]; } return result; } but i'm getting the wrong results :( what i'm doing wrong? Software Development c++ | |
Hi guys I am facing issue in an array list where i am putting a value at specified index, but it is replacing all the index value in it. I am putting map inside a arraylist, now in a loop when i am putting value in list.add(i, Map).The value at … Software Development java | |
ok. for use menu shorcuts i must create a table accelerator and change my message loop. but can i process the table accelerator without use the HWND? Software Development c++ | |
I have a soap which I want to put into a vatrible in visual studio 2010 and then use that variable containing various elements from the soap. How do I do this? **Soap** <soap:Body> <ns:ProtectionOrderQueryRequest> <ns:ProtectionOrderQueryRequest ns1:id="?" ns1:metadata="?" ns1:linkMetadata="?"> <ns2:CourtFileNumber ns1:id="?" ns1:metadata="?" ns1:linkMetadata="?">?</ns2:CourtFileNumber> <ns2:ProtectionOrderID ns1:id="?" ns1:metadata="?" ns1:linkMetadata="?">?</ns2:ProtectionOrderID> </ns:ProtectionOrderQueryRequest> </ns:ProtectionOrderQueryRequest> </soap:Body> Software Development vb.net visual-studio | |
So I am trying to move a Folder on my desktop to a folder in my programming files. Everything is their that needs to be at least I think so but it still says it doesnt have access. I am very new to VB.NET like 3 days fresh. I am … Software Development assembly microsoft-access vb.net | |
I wanted to call a value in database[ms access]. I have a table named tbltable1 and there are three fields, i,d[autonumber], tablename[text] and status[text]. And i have 4 buttons. Each buttons represents the table name. what i want to happen is,status [available, unavailable], when the status is = "unavailable" the … Software Development vb.net | |
Hello Daniwebers! I am trying to insert the values that were selected in a jtable. I know how to display the sql results in a table but don't how to add the selected values into it. Example: only display the items that the users has searched for and add them … Software Development java | |
Cannot find symbol for a basic java command? import javax.swing.J0ptionPane; public class HelloGUI { public static void main (String[] args) { J0ptionPane.showMessageDialog(null, "Hello, world!"); } } c:\Users\Nathanial\Desktop\myJavaPgms>javac HelloGUI.java HelloGUI.java:1: error: cannot find symbol import javax.swing.J0ptionPane; ^ symbol: class J0ptionPane location: package javax.swing HelloGUI.java:6: error: cannot find symbol J0ptionPane.showMessageDialog(null, "Hello, world!"); … Software Development java java-swing | |
I am very new to VB.net I am not look for someone to just do it for me just send me in the Right direction I want to learn but I keep tripping up on Conversion from string "C:\Users\Zach\Desktop" to type 'Integer' is not valid. Please shed some light on … Software Development vb.net | |
Good day guys, I would just like to share my code and wanted to do something about it. This code shows a loop inside a loop initializing a two-dimensional array named arr with elements [2] and [5]. Here's my code: #include <iostream> #include <conio.h> using namespace std; int main () … Software Development c++ mathematics | |
how do i develop a software for insurance database system Software Development java | |
I need help with this program I am doing. I need to be able to select encrypt or decrypt(ive only done encrypt at the momment) and need to be able to select an offset here what ive got so far and I have a number of problems. http://imgur.com/a/N3Tul 1 is … Software Development python |
The End.