132,726 Archived Topics
Remove Filter ![]() | |
Hello, I have a web app that on a buttonClick event it goes and checks a database for a particular field. if that field = a certain value, the app does something. is there a way to make this app run every x seconds rather than on a buttonClick? do … | |
I am having some problems with my java code, i am trying to write a C compiler and am currently working on developing a string tokenizer for the C programming language using java regex. my problem is first my program wont recognize multiline comments and second i cant figure out … | |
Dear Experts I use following codes to retrieve data from table, but get error Conversion from type 'DBNull' to type 'String' is not valid. [CODE] str = "Select * from gpass where vou_no= " & Val(Me.txtGat.Text) & " And Date = '" & Me.txtDat.Text & "'" dt = GetTable(str) If … Software Development vb.net | |
Dears [CODE] Private Sub DataGridView1_CellLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellLeave If e.ColumnIndex = 0 And e.RowIndex = 0 Then MsgBox("this is first coulmn") End IfEnd Sub [/CODE] IF cursor leaves column 0 and row 0 then it displays msgbox but I want to check where column … Software Development vb.net | |
I am trying to figure some code out to delete Cookies, BrowserHistory and Cache. I am not sure excactly what this code will delete ? What I want to delete is: * Temporary Internet files * Cookies * History * Form data * Passwords * InPrivate Filtering data However when … Software Development | |
hai I am planning to use some instrumentation controls available [URL="http://www.codeproject.com/KB/cs/Industrial_Controls2.aspx?msg=3340682#_top"]here[/URL] as far As i understand that project can create a dll file and it cn be used in our projects. but when I added as reference this dll file into my project those controls are not available in tool … Software Development | |
Hello all Im back with another crazy assignment from my professor and I'm running into the following debugging errors in Vi (we have to use it) so here are the errors: Assign4.cpp: In member function âvoid cCourselist::Load(Infile_t&)â: Assign4.cpp:105: error: expected unqualified-id before â[â token Assign4.cpp:109: error: expected unqualified-id before â[â … | |
I'm having difficulty writing my xml schema (.xsd) file. My xml file contains a recursive element para which in turn has mixed elements within. The element para contains either text only or it contains 0 or more sub-elements para and/or it contains 0 or more element footnotes or/and it contains … Software Development xml | |
I would just like to start by saying hi. I am a new user here. I have read the forms for a long time but have never joined. I am new to C# but I will try to answer any questions I can on the form. My question is, is … Software Development | |
Good day. I just want to ask on how to make a textbox accept positive & negative numbers but will not accept string that was entered.. Ill try to use [code=vb] if not isnumberic(text1.text) then msgbox"error' else end if [/code] But if negative numbers is entered it will not read … Software Development visual-basic | |
This is probably a stupid mistake but I can't see the issue, it's with the if statement at the bottom: [code=java] /** * Write a description of class Order here. * * @author David Taylor * @version 1.0 */ import javax.swing.*; import java.text.DecimalFormat; public class Client { // instance variables … Software Development java java-swing | |
I've been having problems with the now deprecated mouseDown and mouseDrag methods, I know the deprecation causes no problem, the program runs fine, but for grading purposes I want my program to be error and warning free, is there any EASY alternative that can solve this deprecation method? I know … Software Development java | |
i am making a binary search tree, but when i use some functions and return their values, i get an error when i have to print those values. i don't understand why. please help. [CODE] #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct nodetag{ int value; struct nodetag *left; struct nodetag … | |
Hi, I am asking here three question together rather than making separate threads for each question. I am making an application where I can load images in a canvas. I load the image with file menu askopenfilename dialog box. Something like this: [CODE]class MyApp(object): def __init__(self, master): frame = tk.Frame(master) … | |
despite its simplicity, for some reason, my code refuses to work, even though the encryption works [CODE] # add() is just (a+b)%2**32. for some reason, without the function, it doesnt work delta = 0x9e3779b9 sum = 0xc6ef3720 for x in range(cycles): # 32 data[1] = add(-add(data[0]<<4, key[2]) ^ add(data[0], sum) … Software Development algorithm encryption python | |
hi does any 1 can show me a simple code how to show a picture on a j2me cellphone? what i want to do is: i have a tcp server based on j2se. i want it to send a png/jpg to a cell phone via the socket and then show … Software Development java | |
Hi, I would need help, pleas. I would like to portray the curve under the specified angles with the repeat and the number of segments. Will you help me please? now I have this: [code] import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Graphics; import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import … Software Development java java-swing | |
Hello. I am working on a game called Kingdom Management. It was working fine until I added in the buildings you can make. Then it started skipping over the building, lawmaking, do nothing, and quit sections. All it could do is research. Here is the code: [CODE] /******************************************************************************* Kingdom Management … Software Development c++ | |
Hi, i'm trying to create a program so i can log every person I meet, which i have done quite easily with databases. However i would also like to be able to log each time i meet that same person which is where i can't figure out what to do. … | |
[CODE=c] #include<stdio.h> void astrcat(char s[], char t[]); //to concatenate two string main() { int i=0,p=0,q=0,c; char s[100],t[100]; while((c=getchar())!='\n') s[p++]=c; while((c=getchar())!='\n') t[q++]=c; astrcat(s,t); while(s[i]!='\0') printf("%c",s[i++]); return 0; } void astrcat(char s[],char t[]) { int i, j; i = j = 0; while (s[i] != '\0') /* find end of s */ … Software Development c | |
When I run this code: [code]class C(object): print("Hello from inside class C") [/code]It gives the same result as if I had used this code: [code]print("Hello from inside class C") [/code]However when I use: [code]class B(object): def __init__(self): print("Hello from inside class B") [/code]The class behaves like I had expected. Does … Software Development python | |
I want get data from the car1.txt file and do the probability calculation but all result is 0.0% ?? just want to ask how to get large number of data from txt file by using array method. This is my txt file and cpp file [CODE]1 1 2 2 3 … Software Development c++ file-system ios | |
Hi, I need some assistance in how to count the number of lines in a given file. It is a small part of a homework assignment I have and I am having problems figuring it out. I am to assume that in each line there will be a maximum number … Software Development c | |
So I am getting a runtime error and I have narrowed down the problem to this method. I am still learning about iterators and I assume that the problem is with this part of the code, getting the expression error list iterator not decrementable. Any help would be appreciated. [CODE=cpp] … Software Development c++ | |
Hi; I am new to MFC applications and working on a MCQ based game in Visual C++ using MFC. I have a small question to ask, if I click the option (a-d) that is correct, the game increases score and displays msg "correct' , but I am not able to … Software Development c++ | |
My souce is below. function is called from main program. But during execution segmentation fault occur. If I execute half are ok, but half are failed. I used kdb. But still I don't know why. I think I used correct expression. kdb said "if(entry->d_type) == DT_REG) " is problem. I … Software Development c++ | |
This is a coursework help *Just so its clear im playing by the rules* A question on my coursework is to "Put a structure within a structure and show how this can be addressed". I understand regular structures, and *hopefully* this code is correct. But im having trouble working out … Software Development c++ | |
Hello, I would like to list items from a database into a list but like to make it look clean. For example if database contains Column1, Column2 John,Smith Joe, Bloggs I want to list them like this John Smith Joe Bloggs Not like this (currently) John Smith Joe Bloggs Any … Software Development vb.net | |
Forgive me I am still really new to Java. I have this swing application which creates a small JFrame that when clicked, counts down from 2 minutes and stops at zero. I build a GUI in netbeans IDE and I read that in order to place this timer code into … Software Development gui ide java java-netbeans java-swing | |
[CODE] #define fst 1 int main() { #if( fst ==1 ) printf("FST\n"); #else printf("Dummy FST\n"); return 0; }[/CODE] if i replace the statement in line 4 with [ICODE] #if fst [/ICODE] also the code is working. can any one tell me what is the correct way , advantages and disadvantages. Software Development c | |
Hello everyone... I wonder if is there a way to access the words in MS Word?what i mean, accessing its library....so if you have a word (when your program is running) if you are going to click a button, this will check if that word is valid... or existing.... tanx.... Software Development | |
Hey, could someone help me out by telling me how I can read in 2 matrices from a single input file? Software Development c++ | |
my pc don't show display when i exit my c language program.plz tel me how can i correct it | |
Dear Valued Members, I have many textboxes in control array. Each of them holds numerical data. I need a visual basic 6 code, few lines preferably, that will enable me to add the values. The values are of the same data type. Kind regards. Software Development visual-basic | |
Hey guys How can i make instances of drawString editable? For example changing their x, y and value? Do i use variables for example [CODE=java]g.drawString(str1, x1, y1);[/CODE] Will the change be reflected as soon as i change the values of the variables? Thanks very much for your time! Software Development java | |
Hello I am new at java programming and having a hard time at this very basic coding. How to i write a java application that inouts 3 different integers from the keyboard and prints the outpout as in the following : Output the 3 different integers are: 13, 27, 14. … Software Development java | |
hi , I am using SYSTEM_INFO structure to know the processor architecture of machine. I did this [CODE] SYSTEM_INFO sys; memset(&sys,0,sizeof(sys)); GetSystemInfo(&sys); [/CODE] For Intel Pentium machine it is giving right information i.e. sys.dwActiveProcessorMask 3 sys.dwAllocationGranularity 65536 sys.dwNumberOfProcessors 2 sys.dwProcessorType 586 sys.wProcessorArchitecture 0 sys.wProcessorLevel 15 sys.wReserved 0 but running this … Software Development c++ | |
Hi, I have the following problem: I have a program which uses NAG C library and when i compile it everything is fine, however when I want to start the program with debugging i have the following output: 'desktop.exe': Loaded 'C:\Users\Jorko\Desktop\test\projekt\desktop\Debug\desktop.exe', Symbols loaded. 'desktop.exe': Loaded 'C:\Windows\System32\ntdll.dll' 'desktop.exe': Loaded 'C:\Windows\System32\kernel32.dll' '[B]desktop.exe': … Software Development c++ windows-virus | |
I have loaded the rows of the data from the database in the list.Now,i am trying to display the list of datas on the JPanel which is loaded inside the parent JPanel on button click. I have retreived the list of data but not able to display the data on … Software Development java | |
I've created 2 windows services that use the System.Timers.Timer. I've installed both of them, and they both work fine on my development Win XP machine. I'm using the installutil program to install them. I've installed them both on a Win2k3 server. One of them works but the other one never … Software Development | |
Hi, I have one MDIApp running, at this time I need to create some configuration windows to ajust some parameters that provides to the childwindow contents some ajusts. My problem is, which is the best way to create this config windows? How can I store the information for a next … Software Development | |
I want to make a database window application using Visual Studio 2008(with C#) which is basically a search engine for searching images(of size 25 KB to 95 KB) . I want to sell my application in CD\DVD in such a way that it should run directly from CD\DVD. As I … Software Development visual-studio | |
In a button click event I need to send 5 different commands recieve each output one by one. My code for only one command is (its works): [CODE]TcpClient socketForServer; socketForServer = new TcpClient("127.0.0.1", 2211); NetworkStream networkStream = socketForServer.GetStream(); System.IO.StreamReader streamReader = new System.IO.StreamReader(networkStream); System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(networkStream); string command … Software Development xml | |
Hi and I am writing a small program but need to make a function that converts an integer to a hex. Below is an example of a similar function but need the result stored in a std::string variable. [CODE]printf("%x%x%x%x%x",h0, h1, h2, h3, h4);[/CODE] Does anybody know how to create a … Software Development c++ | |
Hi i tried the same.. but its not displaying any data from database [CODE] Public Class Editdetails Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cn As New System.Data.OleDb.OleDbConnection Dim cm As New System.Data.OleDb.OleDbCommand Dim form As New Fielddetails Dim rd As System.Data.OleDb.OleDbDataReader Dim tbl_name … Software Development open-source vb.net | |
Hello Sqlserver MyTable has following data Vou---------date---------qty 1-------25/12/2009------5 2-------25/12/2009------4 1-------26/12/2009------8 2-------26/12/2009------3 3-------26/12/2009------2 [CODE] str = "SELECT date, SUM(Qty) AS Qty, FROM mytable GROUP BY Date" dt = GetTable(str) [/CODE] These codes display following result date--------------qty 25/12/2009------9 26/12/2009------13 Now I want to add sno column in result as Sno--------date---------qty 1------25/12/2009------9 2------26/12/2009------13 … Software Development vb.net | |
I have to access a uuge data from mysql , Can i replace that db call writing data into text file and accessing it again from the file itself . then file can be removed once data is processed Software Development java | |
Hi All, First time post :) I am having a problem with sorting a for-each loop. I need to sort the data based upon a date given by a child element that has a certain attribute, confused ill show the code: XML FILE: [CODE]<?xml version="1.0" encoding="utf-8"?> <IssueViewXMLExport xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" … Software Development microsoft-office xml | |
Hi, I am running 3 threads that each start an ffmpeg process to extract 3 snapshots form a video file. I need to be able to call this method multiple times, with different video files. It writes the three snapshots to the system. However If I try to delete these … Software Development file-system regex |
The End.