132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Marius_1

There is a new FaceBook page for Visual Basic 6.0 advanced source codes: https://www.facebook.com/MicrosoftVB

Software Development visual-basic
Member Avatar for Marius_1
0
152
Member Avatar for chewyonglin

anybody can help me do it?.. The objective of this assignment is to refresh and enhance the skills of the students in problem solving involving functions, arrays, classes and others using the C++ programming language. Students MUST use the inheritance and polymorphism concepts in the OOP. Students are required to …

Software Development objective-c oop
0
107
Member Avatar for yann.bohbot.9

I'm having a small issue here with my linked list. I built a linked list with strings and it worked perfectly. Now since i'm using strtok() to separate the string I need help on storing the struct separately but keeping them connected. Hope i explained it well for now here's …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
5K
Member Avatar for roidbeginner

I am still at beginner stage in c++ and I am always curious about good/best coding method. let's say I have a program which allows a users to edit the salary of a employee. 1)The system will prompt the user which to key in a employee's name first. 2)The system …

Software Development c++
Member Avatar for Dani
0
119
Member Avatar for nadiam

there is a very frustrating problem with my queue linked list. the functions all work its just that after enqueue, dequeue or display the menu displays along with "Enter choice : Only one of the above can be your choice ". whats wrong? #include <stdio.h> #include <conio.h> #include <ctype.h> #include …

Software Development c linked-list queue
Member Avatar for nadiam
0
276
Member Avatar for roidbeginner

I have text file that contains username and password userandPassword.txt chris ABC jane DEF john DEF I am tryng to Decrypt the password using caesar cipher, with a key of 3 from the text file. which means that if I key in username: chris and password:XYZ, it will login successfully. …

Software Development c c# c++
Member Avatar for roidbeginner
0
1K
Member Avatar for Sonic42

Hi- How can I change the content of the PictureBox control based on user entry? I'm assuming it would be similar to this: [CODE]If (TextBox1.Text = "Test") Then Picturebox1.Picture= (testpic.jpg) End If [/CODE]

Software Development image vb.net
Member Avatar for Deep Modi
0
11K
Member Avatar for Pickletronic

Hello, I've been trying to create a function to calculate and return the total payment. RadioDay is a radio button with value of 7 while RadioHour is 70. Somehow I am getting InvalidCastException "Conversion from string "" to type 'Integer' is not valid." from the part where I want to …

Software Development vb.net
Member Avatar for Pickletronic
0
349
Member Avatar for scheppy

Hi all. Im having trouble getting my menu to work on my window. this is what I have so far as for my code. package sparepartinventory; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.*; /** * * @author jonathan */ public class SparePartInventory { /** * @param args the command line arguments …

Software Development java java-netbeans java-swing
Member Avatar for JamesCherrill
0
280
Member Avatar for yAjMeL

Please help me..What is wrong with this syntax...there are 2 parts of error.. Private Sub class_initialize() DoEvents Set con = New ADODB.Connection With con .ConnectionString = "Driver=(MySQL ODBC 3.51 Driver);SERVER=localhost;PWD=;UID=root;PORT=3306;DATABASe=cvsur;" .CursorLocation = adUseClient .Open End With End Sub **.Open** was the error from this syntax..(Sytax Above) ______________________________________________________________ And another one …

Software Development visual-basic
Member Avatar for yAjMeL
0
177
Member Avatar for denmarkstan

please i need help here. i want write code for label control into my application. i wrote the code below, but was not getting the labels when i run the program. [CODE]GroupBox.Controls.Clear() Dim lbl1 As Label = New Label() lbl1.AutoSize = True lbl1.BackColor = System.Drawing.SystemColors.Control lbl1.Font = New Font(lbl1.Font.FontFamily, 20) …

Software Development vb.net
Member Avatar for Deep Modi
0
4K
Member Avatar for roidbeginner

I asked this question yesterday http://stackoverflow.com/questions/20908568/calculating-daily-and-monthly-sales-from-text-file and now I have come up with this code: **stock.h** #ifndef stock_stock_h #define stock_stock_h #include <iostream> class stock { public: stock() { itemName = " "; unitPrice = " "; quantityPurchased = " "; day = " "; month = " "; year = …

Software Development c c# c++ file-system
Member Avatar for roidbeginner
0
312
Member Avatar for Caulm64

#Name: Calum Macleod #Date : November 6, 2012 #Purpose: A Python program with a loop that lets the user enter a series of whole numbers. #The user should enter the number -99 to signal the end of series. #After all the numbers have been entered, #the program should display the …

Software Development python
Member Avatar for sneekula
0
10K
Member Avatar for godzab

Hello all, I am trying to find all occurences of a letter in a word. If the letter is present in the word, then I save it to a String. For example here is the text: Hello World, my name is godzab. I search the text, and if there is …

Software Development java
Member Avatar for godzab
0
106
Member Avatar for Ahmed_43

i want to comare textbox value with datagridview items before adding this textbox value in datagridview

Software Development vb.net
Member Avatar for JOSheaIV
0
799
Member Avatar for kissbudai.matyas
Member Avatar for hellohellohello

I need to read excel files and compare them and produce new outcomes using Python. i have realized that by suing the following codes I can read an excel file: import xlrd wb = xlrd.open_workbook('values.xls') wb.sheet_names() But i keep getting error of: [COLOR="Red"]Traceback (most recent call last): File "C:/Python26/Atest/filename.py", line …

Software Development file-system python
Member Avatar for akiva.berger
0
5K
Member Avatar for tom.scott.73113

Hey I am almost finished my code but i cant see why in the voucher print function its not displaying cost near hire cost anyone else me out ? #include<iostream> #include<iomanip> #include<conio.h> #include<string> #include<windows.h> using namespace std; void Intro(); void NameValidation(string name); bool LicenseValid(string license); bool CreditCardValidation(string creditcard); bool AgeValidation(string …

Software Development c++
Member Avatar for tom.scott.73113
0
199
Member Avatar for naji.awad1

Hey guys :) Can anyone show me a tutorial for game development in C++. Btw I'm on a mac so I can't go to the DirectX tutorial. Can you please avoid www.cprogramming.com because I dont like it. Thanx anyways :)

Software Development c++
Member Avatar for Ancient Dragon
0
228
Member Avatar for mixelplik

I want to pass an input file to a function and within the function, fill an array by reference. It isn't allowing me to do this, it keeps telling me it's expecting a ";" after i in the function. I couldn't really find anything about this in my book - …

Software Development c++
Member Avatar for mixelplik
0
266
Member Avatar for nadiam

so this piece of coding is having a problem. namely the search funtion. it will search but the result would only be the first element. the second will not be seached. like for example first element is lily and second element is john. search for the name lily will result …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
4K
Member Avatar for jursnamo

i have program C++ but i will convert to C How to convert C++ to C? #include <iostream.h> #include <conio.h> struct mahasiswa { int nbi; char nama[50]; char alamat[50]; int telp; }; void main() { int pilihan,pilihan1,T; menu: mahasiswa data[3]; cout<<"Pilih Menu :"<<endl; cout<<"1.Input Biodata"<<endl; cout<<"2.Tampilakn Semua Data"<<endl; cout<<"3.Cari Biodata"<<endl; …

Software Development c c++
Member Avatar for Ancient Dragon
0
250
Member Avatar for grahammarkmac

I am trying to use sql to sum a column in my access database and put the result of this in a text box. The code I have got is the following, but this is coming up with the error below. [QUOTE]Error : Conversion from type 'DBNull' to type 'String' …

Software Development sql vb.net
Member Avatar for leninalberto
0
253
Member Avatar for ronnel09_2

Please help me with this, i'm trying to create a domino game (which a project in school) i'm a midway learner of Java Prog, but still i haven't know a lot. My problem is, i'm trying to draw over the background image of my playFrame, but the rectangle does not …

Software Development java java-swing
Member Avatar for ronnel09_2
0
196
Member Avatar for Learner010

hello today i start writing an application which uses mdi forms(its new to me). and i use the following code:(i set form1=idmdicontainer=true) , is this correct way to create mdi forms ? further i write the code : there i have 2 more forms (form2 and form 3) Private Sub …

Software Development vb.net
Member Avatar for Learner010
0
1K
Member Avatar for kcid108

Is it possible to create a program in VB 6.0 or VB.Net that diagnose a computer??? For example check any problems with hard disk or memory or any other peripherals... if it can be done. can somebody point me to the right direction on how can I do this??? thanks …

Software Development visual-basic
Member Avatar for kcid108
0
237
Member Avatar for cam875

can you call a function inside that same function so that it goes to the beginning of that code to execute it. So even though ur already in the prompt function can u still call it again from withing the code inside the prompt function. Thanks in advance.

Software Development c++
Member Avatar for akshaykeerthi.srikanth
0
286
Member Avatar for Arm55

Hello everybody, I'm new in this forum. I don't know where to place this thread, because it's about VB6 and C, but I think the problem is in the C code so here I am. I'm working with C with no special focus, so the solution can be in C++ …

Software Development c++ visual-basic
Member Avatar for Arm55
0
758
Member Avatar for richieking

This is a basic CPP sleep fuction. As you can see CPP libs do not come with a time sleep/wait fuction to use in your code/loop. So due to boring jurney to Saint Petersburg, i decided to write something/code to give anyone who has been wondering why CPP does not …

Software Development c c++ gui qt
Member Avatar for deceptikon
0
2K
Member Avatar for triumphost

Creating WinAPI windows and controls can be a pain and quite difficult/annoying at times. Most of the time, I find myself searching MSDN, DaniWeb, and StackOverflow. I hate having to use external libraries unless I absolutely have no other choice. Below contains code for creating WinAPI windows, Controls, Sub-Classing, and …

Software Development c++ oop windows-api
Member Avatar for mike_2000_17
0
4K
Member Avatar for christinetom

Trying to compile an Fast Light Tool Kit project for the first time. This is one I've generated in FLUID and dragged into Code::Blocks IDE (MinGW compiler). Not sure what this error means or how to fix it but it seems that it's very common? Any clues as to what …

Software Development c++ ide
Member Avatar for Ancient Dragon
0
18K
Member Avatar for yann.bohbot.9

Hey everyone, I posted recently an issue that was almost resolved but I have a similar question but have different variables. I'm really new to C and I'm a bit confused. Like I said on the other post I need to seperate a string using strtok() and store the seperated …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
261
Member Avatar for shchandhu

i started learing java reading thinking in java i cam across this java objects do not have same lifetime as primitives an object retains in memory even after its scope until garbage collector detects and releases the memory well whats the lifetime of primitives..?? their memory will be released after …

Software Development java
Member Avatar for JamesCherrill
0
127
Member Avatar for sciwizeh

Ok, so I'm working on a web-project, I connected a custom hanlder to the root Logger in `contextInitialized()` of a ServletContextListener: @Override public void contextInitialized(ServletContextEvent sce) { Logger def = Logger.getLogger(""); Handler hand = new DatabaseLoggingHandler(); hand.setLevel(Level.WARNING); def.addHandler(hand); } which looks like: import java.io.PrintWriter; import java.io.StringWriter; import java.util.logging.LogRecord; import java.util.logging.Logger; …

Software Development java java-jsp mysql
0
256
Member Avatar for Seba Sama

Hello, I'm trying to understand some things about derived classes: how to add something "extra" to existing functions in base class. My base class is "shape2D" like a rectangle, 3 functions: set values, calculate, show results. No problem here. Then I create a derived class named "shape3D". Please note the …

Software Development c++
Member Avatar for Tumlee
0
352
Member Avatar for SurafielHabib
Member Avatar for Nebil

Hi all, I was going through a lot of resources on how to populate a dataset.And i kind of got an error when trying to populate the created dataset with 4 select statements. but my sql uses the where clause,the other statements i saw select certain columns and go to …

Software Development dataset vb.net
Member Avatar for Reverend Jim
0
163
Member Avatar for nikolaos

/* PointOne type objects has three members. Two of type Integer and one of type ThreeD a custom class. PointOneClone method takes an argument of PointOne type and copy every value from his members to arguments members. So the result is a PointOne instance with the exact same values but …

Software Development java
Member Avatar for JamesCherrill
0
210
Member Avatar for andreas.petrou.967

Write a program to read an unknown number of integer numbers stored in a file nums.txt and calculate the number of negative, the number of positive numbers and the number of zeros. Your application should display on the screen the number of negative and positive numbers as well as the …

Software Development c++
Member Avatar for andreas.petrou.967
0
126
Member Avatar for Twee Nguyen

Hello everyone, I just start to study about Java and I need to design a website in Java. I do not know I should create a Java Application project or Java Web or Java EE.... Could you help me to start this? Thank you.

Software Development java web-design
Member Avatar for peter_budo
0
249
Member Avatar for cambalinho

from VB6, i build these code for transparent: void Transparent() { SetWindowLong( hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); SetLayeredWindowAttributes (hwnd, clrBackColor, 0, LWA_COLORKEY); const char *text; text=to_string( GetLastError()).c_str(); MessageBox(NULL,text,"erro",MB_OK); } but i get 1 error from messagebox: 87:ERROR_INVALID_PARAMETER - The parameter is incorrect. can anyone advice me?

Software Development c++
Member Avatar for cambalinho
0
189
Member Avatar for fheppell

I'm writing a script that downloads files for web design, and this line produces Traceback (most recent call last): File "bootlace.py", line 60, in <module> download(data['jquery'], 'Downloading jquery. (File size %s)', 'js/') File "bootlace.py", line 11, in download file_size = int(meta.getheaders("Content-Length")[0]) IndexError: list index out of range That line is …

Software Development json python web-design
Member Avatar for snippsat
0
2K
Member Avatar for markee

Why i can't see the data environment in vb 6? I tried to Project tab but i can't see the data environment then i tried Project > Reference but i can't see Microsoft data environment 1.0 then I tried to Add Component > Designer tab but i can't see the …

Software Development visual-basic
Member Avatar for mr.afridi
0
3K
Member Avatar for cambalinho

how can i get the font of a control? for i change what i need and then select it

Software Development c++
Member Avatar for cambalinho
0
84
Member Avatar for ahmed_one

N-Tier C# Master Detail member I am using Visual Studio 2010, Sql server Express Edition & C#. I have develop a simple Master Detail application (mostly with the help of experts help from this forum) An Order system, and now I want to go one step further from simple application …

Software Development c# visual-studio
Member Avatar for ddanbe
0
383
Member Avatar for x2005man

hi geys , I need ow to return a array string to my method public String[] SearchPort(){ ArrayList<String> arr=new ArrayList<>(); Win32Driver w32Driver= new Win32Driver(); w32Driver.initialize(); port= CommPortIdentifier.getPortIdentifiers(); while(port.hasMoreElements()){ cuport=(CommPortIdentifier) port.nextElement(); if(cuport.getPortType()==CommPortIdentifier.PORT_SERIAL){ // return cuport.getName(); arr.add(cuport.getName()); String[] t=new String[arr.size()]; t=arr.toArray(t); for(String j:t){ return t; } } //System.out.println(cuport.getName()); } String h[]={"noo data …

Software Development java java-swing
Member Avatar for stultuske
0
123
Member Avatar for xtreamcoder

I have good knowledge of C, and a good knowledge of core Java. Please list out the areas I need to cover for J2EE. There are many technology available in j2ee.. Please tel me which technology is using uptodate.. I have premium account in lynda, vtc, and pluralaight.. There many …

Software Development career java java-jsp java-swing
Member Avatar for stultuske
0
247
Member Avatar for pritaeas

I've posted a bug report here: http://tracker.firebirdsql.org/browse/DNET-540 If someone using Firebird and C# could verify this for me, or shed some light on (other) possible issues, that would be much appreciated. The code works as expected with 2.5.1, but does not with 2.5.2. Note: the sample is built on .NET …

Software Development
0
240
Member Avatar for ismah

how to transfer data from excel to ms access database?? and how to retrieve data from ms access database using visual basic 6.0??anybody can help me..

Software Development visual-basic
Member Avatar for ling_tj
0
236
Member Avatar for syed rashid

Dear All, I have a listbox with various items like : Ali, Aslam, Akram, Jone, Mikle, Ebrahim etc. Now I have to select more than one items like : Jone, Aslam, Akram in a Textbox. Could anyone let me know the code. Rashid

Software Development visual-basic
Member Avatar for ling_tj
0
220

The End.