132,726 Archived Topics
Remove Filter ![]() | |
Hi! I'm trying to make a coin toss program using a random generator, but i'm not sure how to upload the image of the heads and tails from its file on my PC. Image names are Tails.gif and Heads.gif . Here's the code so far: [code]Public Class Form1 Dim headCount … Software Development visual-basic | |
I'm having a problem with retrieving records from my file just started programming over a month a go please help this is for my class project. I need to do delete,update,query,and add to binary file and prompt the user to enter which record they need to retrieve and i started … | |
Can you please tell me what's wrong with this statement ? i get no errors but I get no o/p either! [QUOTE] Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim con As OleDbConnection = New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=C:\Documents and Settings\bashkark\Desktop\Copy of USERS.mdb") If (ComboBox6.SelectedItem = 0.5) … | |
hello, I have a situation where I'm going to be generating a whole bunch of numbers. These numbers will be in the range between 0 and 1. What I will have to do is to separate these numbers into 100 different groups depending if the number is between 0 and … Software Development c | |
In regard to good style, is it better to use the NULL macro, or should you just use 0? And should you cast either one to the type of pointer you're using? i.e.: [CODE] int* pInt = (int*)0;//this, int* pInt2 = 0;//this, int* pInt3 = (int*)NULL;//this, int* pInt4 = NULL;//or … Software Development c++ | |
Is there any function in shell that enable to check for upper or lower case? i would like to check the input argumnets for upper or lower case. Software Development shell-scripting | |
i wanted to printout the last entry of the file without passing in any arguments but how can i able to do it? i know how to print out where argument is supplied and doing a grep to match it. example inside the file i have: apple:2:1:3 orange:1:2:3 grape:2:3:4 i … Software Development apple shell-scripting | |
Hello, Lateley, I was searching for a good WinAPI book (for c++ ofcourse) After a while searching, i found this book: Programming Windows, 5th Edition by Charles Petzold The book looks good and is nice and thick (1500 pages or something) But where I worry about it the age of … Software Development c++ | |
Hello mates I have a new question... I have 2 2-d arrays with the same dimensions and contents. The first one, say a [15][4] and the second on, say b[15][4] and are both char type. They both have the same elements(same 4character Lines) but in different order(the second one's Lines … Software Development c++ | |
first, i am sorry if i can't speak english well i have problem where i can't insert data to data base mySQl using vb2005. it is my simple code on vb. ---------------------------------- [code]Imports MySql.Data Imports MySql.Data.MySqlClient Public Class Form1 Dim xobjConnection As New MySqlConnection("Server=localhost;uid=root;pwd=;database=test1;") Dim xobjAdapter As New MySqlDataAdapter() Dim … | |
I am trying to fix this "error C2447: '{' : missing function header (old-style formal list?)" i looked over the program and cant find anything wrong. Here is my program. [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" using namespace std; #define LowerLimit 0 #define UpperLimit 200 #define … Software Development c | |
I am trying to create a program that gets the solution of a quadratic formula, but i keep getting an error and i cant figure it out. 1>quad.cpp(14) : error C2440: '=' : cannot convert from 'int (__cdecl *)(void)' to 'int' 1> There is no context in which this conversion … Software Development c | |
This may not be a Java-specific question, but if it can be done in Java that would be my first choice -- I have at least a basic idea about Java. If not, then any pointers toward the correct language will be much appreciated. Help with creating the code will … | |
Just decided to try the new Code::Blocks IDE on an old ODBC program of mine that I had always compiled as a C program. I decided to redo it as a C++ program and immediately hit a nasty problem that I never ran into in C. It involves a Typedef … | |
Hello I am fresh newbie in Python world. I need a python code that just copy my input file with a different name. I just want to test it. Example. A simple scipt file : [B]copyfile.py[/B] when I do a command like "python copyfile.py 1.jpg" it would copy the "1.jpg" … Software Development python | |
HI all i m making a project in which i have added menu named Login which includes items like login, create new user, delete user, change password etc. i want to access these items on the basis of username. e.g. if username is administrator he can access all the items … Software Development | |
This is a follow up to my solved thread a few days ago about extracting parts of a RegEx search in a web scraping app. Now, I have a script that includes 4 RegEx searches that each work individually. Now I want to compile all 4 into a single search … | |
heyy i am a beginner in c++. i am trying out to develop a code to display the date in dd/mm/yy format . also i am interested in validating the date( like for eg a month feb only 31 is invalid) and it should display "date invalid" if the date … Software Development c++ | |
I am working on a project that will read in a huge file and insert the data into a SQL database. I can read the document, but all of the XML is incorrect. I get it as an excel spreadsheet, but it's actually about 6 webpages stuck into one document, … Software Development xml | |
My project is to receive data from MRI machine, which has a com port can send serial signals. The data come thru pin3 of the com port and we want to save and read them on a pc. I've check the data with a spectrum analyzer and found the signal … Software Development visual-basic | |
hi all, i want to generate a timestamp with year,date,month,day,hours,min,seconds,milliseconds. in my code i generated a time integer with the help of time(). with that integer can i generate timestamp with milliseconds. sample code: [code]int len; time_t mytime; presentTimeStamp = 1999999950;//this value is return from time() mytime = presentTimeStamp; struct … Software Development c++ | |
I retrive data from a table to a datagridview. I want the coulmns to be in a sorted according to their names ex: column starting with 'a' should come before that of 'b' and so on Is there any SQL querry for the above problem or any function in datagridview … Software Development vb.net | |
i am a final year student. My supervisor had asked me for creating one chat program using java. i don't have any idea on how to started it. he asked me for doing a standalone system. please help me solve this problem? Software Development java | |
Can anyone help me in graphics in python GUI using Tkinter toolkit...can anyone give me a code that can implement simple images onto the canvas of a GUI program, i know i have to use bmp. or gif. images which is fine because i got that. Thanks... | |
I'm new to class modules, and the compiler seems to be enforcing a correlation of the number of input vars for a Get and Let procedure of the same property. The Let property must always have exactly one more variable (the NewValue) than the Get procedure. So the code I've … Software Development visual-basic | |
Hi Folk An aside from the computability issues. I am running into a specific error where the best solution eludes me. Suggestions please! I am looking for advice from someone who may have seen this before: Compiling manifest to resources... Linking... sub_proc.obj : error LNK2019: unresolved external symbol __imp__InitializeSecurityDescriptor@8 referenced … Software Development c++ | |
Hi, Actually i try to use FlexGrid in VB. But i donno how to use that. Can anyone help me how to bind the database in MSFlexGrid? Software Development visual-basic | |
Hi there, I'm trying to connect to a PostGIS database (which is basically an enriched PostgreSQL database) and I'm having trouble with the [I]INSERT[/I] statement. Here's my code: [code=python] import psycopg2 try: conn = psycopg2.connect("dbname='postgis' user='fdi' host='localhost' password='fdi'"); print "Database connection established" except: print "Critical Error: Unable to connect to … Software Development postgresql python | |
please tell me how to compute the maclaurin series sinx=x-x^3/3!+x^5/5!-x^7/7!..... I written below coding but i know it will not give correct output. can anyone help me to compute the series [code] #include<stdio.h> #include<math.h> Printf("Enter the n value"); scanf("%d", &n); main() { float x,i; float value,sinx; printf("Enter the x value"); … Software Development c | |
I've been trying to find time to learn Assembly through the HIDE HLA IDE, but I am completely ignorant when it comes to Assembly. I do not know if my code will be portable when I start learning it. Do other Assembly languages conform to the same standards, or is … | |
Hi, I would like to pass on a parameter from VB6 for the date.value from datepicker. Pl help me how to convert date.value into string as the parameter I have created in Crystal Report is string type. The parameter name in Crystal Report is chdate. I wrote the code as … Software Development visual-basic | |
hi i want to know that if i want to include the results from internet how can do it by using a port in c++ Software Development c++ | |
I use VC++ 6.0 1) This small program simply reads infomation from file “in.txt” and write it in file “out.txt”. (copy contents from this file to another) 2) It doesn’t work. The compiler issues an execution-time error. And the ouput text file “out.txt” is empty. 3) I don’t know why … Software Development c++ file-system ios | |
Hello All, This is my first post here but after reading and trying for a couple of days now i figured i might just ask whether what i'm trying to do is possible.......... I have written the code below to check for changes in fields and i want to update … | |
I've searched all contents of Daiweb and found similar topics but not exactly good on me. I'm trying to build a activex DLL without any form. This DLL will be used by others as a function library about a specific purpose for "color matching". I wish to declare an array … Software Development visual-basic | |
Hello All, I came across with the following case and I would like to share it with you to get your opinions about. In vb.net I use data from tables (oracle db) and i want to check two columns. Both columns have name of customers. All I want is to … | |
ImageIO.read does not work for jpgs in cmyk trying to find a method to read it been searching on google but found lot of different results. Maybe one of you know a easy method to do this. Software Development java | |
Hi, I want to create a form for retoprt section in my VB6 project. What do i add into my form and from where? Thanks Software Development visual-basic | |
i have an question... this is my text file data [COLOR="Red"]1234567,08072008,2 8767768,08072008,4 9988776,08072008,6 7891234,09072008,8 4567891,10072008,1 5213789,11072008,2 7854123,11072008,3 4561237,14072008,1 7879145,15072008,2 5218510,16072008,8[/COLOR] i would like to separate it to 3 part. this code izit correct? [COLOR="Green"]Dim a(50) As String Dim c(50) As String Dim ProductID(50) As String Dim i As Integer i … Software Development visual-basic | |
Read line by line from data2.txt, compare with data1.txt lines, if match , remove , else append to a new file (result.txt) . mathces are exact string matches, both are text files. And i also need to make the directory of the file to be user input, so this program … Software Development c++ | |
[code][COLOR="Green"]Public cnName As Connection Public rsId As Recordset Private Sub cmdImport_Click() Dim a(50) As String Dim ProductID(50) As String Dim i As Integer i = 0 cdbOpenFile.Filter = "Text Files (*.txt)|*.txt| " 'Specify default file name to open cdbOpenFile.FileName = "" ' Specify default filter to *.txt cdbOpenFile.FilterIndex = 1 … Software Development file-system microsoft-access open-source visual-basic | |
For my assignment i need to turn a Hilbert Curve with recursion into a Moore Curve using recursion. We are using GLUT to draw the lines to the screen. I can see the pattern i need to use with the recursion but im not sure if i need to change … Software Development c++ | |
Hi all. I have this assignment to show a panel to allow users to dynamically alter FlowLayout manager parameters. It doesnt look that pretty, but functionally it is working for the most part. I have most of it up and running, but I simply cannot get the JComboBox working. I … Software Development java java-swing | |
I am having a problem when i compile a program. What happens is that i would compile program, run it, see a problem, fix it, then try to compile it again and i get LINK : fatal error LNK1168: cannot open C:\Documents and Settings\Eric 22\Desktop\Exercises\celsFahr\Debug\celsFahr.exe(example file) for writing. I don't … Software Development c | |
Hellp all! Hoping to make new friends here: Anyways, I am new to C++ and to programming. I just started reading the book "Problem Solving with C++, 7th ed." by Walter Savitch. I am already having problems. One of the programs I am trying to figure out (not in the … Software Development c++ | |
Hi, it's me again with another question. Here is the thing. I have a small game - a picture is shown and you should type the name of the person that's on the picture. Then you have a "check" button which when clicked checks if the answer is correct or … Software Development c++ | |
I am trying to print a two-dimensional array to the screen. My algorithm probably isn't correct but I am having trouble even getting the process to work. on the call I get ----error A2206: missing operator in expression This line add ebx,tmpRowSize * rowIndex I get ------error A2026: constant expected … | |
when you are writing a program and you get an errer do you have to start all over again or is it ok to go on. i am just writing some of the programs that are on this site in the sticky's i am writing them in the command line … Software Development python ![]() |
The End.