43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ekailan

I have this tow errors ,how I can solve it.any ideas? error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib AC fatal error LNK1120: 1 unresolved externals Debug\AC.exe AC

Software Development c++ visual-studio
Member Avatar for ekailan
0
130
Member Avatar for Simes

This is an assignment I am working on for uni and I have done quite alot by myself and with some hints along the way from others who know Java better than I do. So I am working on a GUI Traffic Simulator (creating the GUI and drawing it is …

Software Development gui java java-swing oracle
Member Avatar for Simes
0
181
Member Avatar for cedric91

[CODE]void Students_Absence_Report() { int i; double presence[NO_OF_STUDS], absence[NO_OF_STUDS]; for(i=0; i<NO_OF_STUDS; i++) { presence[i] = ((double)student[i].presentDays/14)*100; absence[i] = 100 - presence[i]; } printf("\n\nStudents Presence/Absence Report\n"); printf("--------------------------------\n"); printf(" Name\t\t%%Presence\t%%Absence\n"); for(i=0; i<NO_OF_STUDS; i++) { printf("%-3d %-19s %.2f\t\t%.2f\n", student[i].studNo, strcat(student[i].surname, student[i].givenName), presence[i], absence[i]); } printf("\n******** END OF ATTENDANCE REPORT ********\n"); } [/CODE] Anythings wrong …

Software Development c
Member Avatar for hyperion
0
87
Member Avatar for DarkSatan

I just found this tough question in the last year Q Paper of this exam...I dont know how to take that type of input,leave alone the logic...Can any1 help me with this program, plz... : [B] Question 1 Vogon zoo On the icy planet Zorg, the Vogons are putting together …

Software Development c++
Member Avatar for csurfer
0
322
Member Avatar for Mr.BunyRabit

Hey There all you clever people. Its Ruan here. I am using vb 2010, and i really would like to Just open, not modify a word document. Now i have browsed the internet, and this is what i have found.. in project menu>refferences> select .. microsoft word 9.0 object library …

Software Development vb.net
Member Avatar for AndreRet
0
2K
Member Avatar for DrueY

What do the numbers tell me, in terms of frequency, amplitude and maybe time? Thank you muchly! drue

Software Development c++
Member Avatar for DrueY
0
482
Member Avatar for Alexkid

Hi there, Can anyone tell me how to change my win32 programs icon (top left). I'm running MSV C++ Express 2010, so i don't have MFC. Theres a few tutorials on how to do this but using resource files? Which apparently MSV doesn't support. I want to be able to …

Software Development c++ windows-api
Member Avatar for Alexkid
0
320
Member Avatar for zarifin99ska

i have button add and the coding, but everytime 1 click the button, a messagebox said that syntax error INSERT INTO. all database column name and the textbox name is true. i checked many times. this is my code [CODE] Try 'add data inside the database con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data …

Software Development open-source vb.net
Member Avatar for zarifin99ska
0
87
Member Avatar for swathys

hi, how do i format the currency value. i have used [COLOR="Red"]Format(GrandTotal, "0.00") [/COLOR] but i still got output like this [COLOR="Red"]60917.3972[/COLOR]. How can i make it to 60917.40

Software Development vb.net
Member Avatar for swathys
0
122
Member Avatar for burcin erek

1>------ Build started: Project: allegro, Configuration: Release Win32 ------ 1> allegro.cpp 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main 1>c:\users\lenovo\documents\visual studio 2010\Projects\allegro\Release\allegro.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Software Development c++ visual-studio
Member Avatar for burcin erek
0
113
Member Avatar for brendono978

Okay, so, here's the assignment that I have to complete: Write a program that will input two vectors of information. Each vector will contain exactly 8 floating point values. Your program will enter these values from standard input. Once the values have been read in, your program should call a …

Software Development c
Member Avatar for brendono978
0
197
Member Avatar for dmm1983

The practical exercise for this session will be to create a cash register program that you input the cost of an item, the number purchased and if a sales tax applies to the item. If a tax does apply to the item, the tax value will be ten percent of …

Software Development c++ session
Member Avatar for Unimportant
0
181
Member Avatar for ibdatx

Hi, I have a listbox that is bound to a textblock as target and also has an xml file as source. My problem now is the correct syntax for inserting another listbox in between the listbox and the xml file. My code is shown below... <Window x:Class="newTestApp.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" …

Software Development asp.net xml
0
138
Member Avatar for Rickay

I am trying to make a reference program that you can use to access any element of the periodic table based on its name, symbol, atomic number, or atomic mass. It is more than one file, and I need a way to return to main if the user wants to. …

Software Development c++
Member Avatar for dylank
0
240
Member Avatar for arch_mah

In the MDI main form I am loading one child form (i.e Login Form)at the center of the MDI form. I want without closing the child form(Login form)no one can access the MDI main form.. After login only the login page should close and MDI form should enable true.. Before …

Software Development vb.net
Member Avatar for Rodge1230
0
667
Member Avatar for cosnersx

Okay, I've just started learning C++ and I'm on the third chapter of my book which deals with control statements. Basically, I've learned how to create very basic text based games. [CODE] #include <iostream> #include <string> int main (void) { using std::cout; using std::cin; using std::string; string options = ""; …

Software Development c++
Member Avatar for cosnersx
0
97
Member Avatar for convoluted

Hello all. I'm having a bit of trouble trying to figure out how to access data I input into a ctypes array object. This is used with a hardware SDK, so I can't really change the data format at all. Here's the code: [CODE] from ctypes import * MsgDataType = …

Software Development python
Member Avatar for convoluted
0
2K
Member Avatar for spacechase0

I've been trying to make something where I can just plug-in a new implementation (for things like opening a window, displaying graphics, etc.) and it work just like before. I've added a couple of other things like a resource manager, but now I'm getting linker errors. This didn't happen until …

Software Development c++ ide window-manager
Member Avatar for spacechase0
0
140
Member Avatar for garu525

Hey guys, I'm wondering if you can help me out on my problem. I wrote this code to print out consecutive numbers till it reach the maximum number entered. The code works but I want to control the output. Here's my code so far... [CODE] cout << "Enter max number: …

Software Development c++
Member Avatar for garu525
0
109
Member Avatar for Archenemie

I basically want to map out folders and subfolders in a dictionary and i have this code ive written, but instead of adding each filename to the dictionary it overwrites it each time. Any suggestions? [CODE]for fname in os.listdir(os.getcwd()): print fname x += 1 maincat = {fname} print "x = …

Software Development os-x python
Member Avatar for Archenemie
0
109
Member Avatar for iwanttolearnc

im quite new to python so forgive my stupidity. ive downloaded numpy and here are a few things i understand regarding images and numpy 1.images are made up of pixels that have coordinates, a 2d array i believe 2.numpy has the ability to handle arrays and split them what i …

Software Development image python
Member Avatar for iwanttolearnc
0
210
Member Avatar for shyam miyatra

I want to compare two float values in shell script, i.e. a = 0.1 b = 0.4 if ( $a < $b )then expression1.. expression2.. expression3.. fi if ( $a > 0.0 ) then expression4.. expression5.. fi could you please suggest me how to implement in shell script ?

Software Development shell-scripting
Member Avatar for shyam miyatra
0
171
Member Avatar for Ana_Developer

I cannot figure out what I'm doing wrong in the following code: [CODE]char* charArray[3]; strcpy(charArray[0],"wn"); strcpy(charArray[1],"chair"); strcpy(charArray[2],"-over");[/CODE] Thanks a lot for the help!

Software Development c++
Member Avatar for VernonDozier
0
99
Member Avatar for incubus9x9

Ok so this code works great with an if else statement but i dont why when i change the showMenu to a switch statement you cannot see my print out statement as a menu!? Iv tried different ways of writing the print outs and they havent worked at all. Also …

Software Development java java-swing
Member Avatar for incubus9x9
0
143
Member Avatar for testie

Hey guys, is there any alternative methods to string slicing? An example output would be: input: dani output: d da dan dani I did this with string slicing, but am wondering if it is possible to do the same thing without slicing. Anyone help out? Testie,

Software Development python
Member Avatar for TrustyTony
0
573
Member Avatar for FallenPaladin

Hi there, I am having some syntax and logical implementation problems with a really very simple requirment and I am hopeing someone can help point me in the right direction. The problem I am having concrens trignometric functions in 3d space and what I am trying to do is find …

Software Development java
Member Avatar for FallenPaladin
0
192
Member Avatar for moonL!ght

pleas will any one help me i feel im going to explode more than 8 hours in this question and i have to submit it after 3hours.. my prog is not finished yet but an error saying unresolved external sympol... actually i have aprog that define the mistake(MSDN library for …

Software Development c++
Member Avatar for muze
0
89
Member Avatar for gahhon

hello everybody.. here is my Assignment Code.. [CODE]#include <stdio.h> #include <windows.h> int Attendance[50][50] = {0}; int studPresence[] = {0}, weekPresence[] = {0}; int i, x; int week, student; char SubCode[30]; void InputFunction(); void WeekAttendance(); void StudentAttendance(); void main() { int answer; while(answer != 4 || answer > 4 || answer …

Software Development c
Member Avatar for gahhon
0
191
Member Avatar for LianaN

Hi! I have a problem with the array of JTextField components. So, the code is shown below and it can be successfully compiled: [CODE] txtAdminTextFields = new JTextField[nrOfCols]; ... tableAttributes.getColumnModel().addColumnModelListener(new TableColumnModelListener() { public void columnMarginChanged(ChangeEvent e) { for (int i=0; i < nrOfColsFin; i++) { txtAdminTextFields[i] = new JTextField(); txtAdminTextFields[i].setPreferredSize(new …

Software Development java
Member Avatar for JamesCherrill
0
329
Member Avatar for neural_jam

What the title says. Basically, I have some code with 12 nested loops based on the code below, and may have to bump it up to 24. This works fine, but seems a little cumbersome, and can't help but think that there's a better way of doing it? All help …

Software Development c++ programming-construct
Member Avatar for neural_jam
0
2K
Member Avatar for Jsplinter

My program passes a parameter that looks like this: [CODE]std::vector<myDataType> vec; void function(&vec);[/CODE] Then the function accepts the argument like this: [code]void function(std::vector<myDataType>* myVec){ ...does something }[/code] Yet somehow I am getting the following error: error C2664: 'CMyClass::WriteVectorSTL_CSV' : cannot convert parameter 1 from 'std::vector<_Ty> *__w64 ' to 'std::vector<_Ty> *' …

Software Development c++
Member Avatar for Intrade
0
228
Member Avatar for sirlink99

[code] // The "ChoseYourOwnStory" class. import java.awt.*; import hsa.Console; public class ChoseYourOwnStory { static Console c; // The output console public static void main (String[] args) { c = new Console (); String start = ("yes"); // assignment 1 while (start.equals ("yes")) { c.println ("A high ranking thug comes walking …

Software Development java
Member Avatar for kramerd
0
111
Member Avatar for deepak_1706

I came across these to statements and i am not sure how they are parsed and the output given is produced... [CODE] printf("%d",printf("%d %d",5,5)&printf("%d %d",7,7)); [/CODE] o/p : 5 5 7 7 3 [CODE] printf(" %d %d",printf("%d %d",7,7),printf("%d %d",5,5)); [/CODE] o/p : 5 5 7 7 3 3 Could some …

Software Development c
Member Avatar for hyperion
0
158
Member Avatar for XxPKMNxX

Being a noob, such a simple question i answered as soon as i posted :| - delete thread please.

Software Development java
Member Avatar for XxPKMNxX
0
98
Member Avatar for Steini_Ey

Hello everybody, I am new here in this community and I hope to learn a lot from you guys and then maybe later become the one to give out advices. I am also new to programing and I recently started learning C++. I am doing a program that is supposed …

Software Development c++ file-system
Member Avatar for Steini_Ey
0
4K
Member Avatar for sixdegreesunder

Hi everyone, I'm new to java. I'm getting an error cannot find symbol m_weapon when i compare char which i assigned from math.random. Thank you, [CODE]public class RPS { public static void main (String[ ] args) { Scanner console = new Scanner(System.in); //used to gather user input System.out.println("WELCOME \n\n"+ "This …

Software Development java
Member Avatar for kramerd
0
217
Member Avatar for jaymozart

[CODE] import java.io.*; import java.util.*; import javax.swing.JOptionPane; public class A15 { public static void main(String[] args) { if(args.length != 1) { JOptionPane.showMessageDialog(null, "Error: Enter one command line argument."); } else { try { String[] array = LeeJungBum15.readFileReturnWords(args[0]); // read file sortAndPrintArray(array, args[0]); // sort alphabetically and print the arrays } …

Software Development java java-swing
Member Avatar for jaymozart
0
168
Member Avatar for JanineXD

I was browsing the web for examples on how to partition in Java. [URL="http://www.cs.princeton.edu/introcs/23recursion/Partition.java.html"]I've got to this website that has a detailed example about Partitioning[/URL] so I've tried to run it on my JCreator Pro. I've only got one error, but I've tried all I can do to fix it …

Software Development hard-drive java
Member Avatar for javaAddict
0
354
Member Avatar for dorothy.v

error message: No value given for one or more required parameters. that falls in dr = cmd.ExecuteReader need help Imports System.Data.OleDb Public Class Form1 Dim conn As OleDbConnection Dim cmd As OleDbCommand Dim strSQL As String Dim dr As OleDbDataReader ' Dim ctr As Integer Private Sub Form1_Load(ByVal sender As …

Software Development open-source vb.net
Member Avatar for AndreRet
0
211
Member Avatar for Pundia

How can I retrieve data from a DB in Access to labels, or radiobuttons in VB.NET? I've search and to retrieve data people usually show Datagrids. I just need to know how to navigate in records, by the number of their position (?) and to place that data in labels/textbox …

Software Development microsoft-access open-source vb.net
Member Avatar for AndreRet
0
168
Member Avatar for ekailan

I need to convert array of char to hex one char at a time , I tried to use sprintf,but it did not work. ?

Software Development c++
Member Avatar for ekailan
0
460
Member Avatar for Really

Hi everyone, I am trying to build a code to get the website asynchronously using webclient.downloadstringasync I want to pass the data thus retrieved from dowloadstringcompleted to another function. This is the code I am using, [CODE] dim myString as String Function GetSite(ByVal as URL as String) StartDownload(URL) WebBrowser1.DocumentText = …

Software Development vb.net
Member Avatar for Really
0
1K
Member Avatar for newbieha

def sort(l, x) if len(l) <= 1: ### if my list is smaller than 1, simply return l return l else: ### Here is the problem i don't know how to solve - how to find smallest element within a list using recursion? I've tried to call another function in …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for keedier

hi there... i am very new (and i mean VERY NEW at visual basic) programming, lets just say this is my 5th hour (and counting) learning programming, i googled since hour 1, i even read almost all i can read while im installing visual studio 2010 coz i really want …

Software Development gui vb.net visual-basic visual-studio
Member Avatar for codeorder
0
239
Member Avatar for Tiny_trixer

I'm working on a program in C++ that is supposed to output som data from a couple of classes. I thought I'd let the user choose what to output (what function) through a switch in main. This is basicly how the main looks now. (Just a general overview of the …

Software Development c++
Member Avatar for Tiny_trixer
0
118
Member Avatar for Storyahe

I'm creating a library which when everytime i add new book, i always get the [B][B]'Update or CancelUpdate without addnew or edit[/B][/B]'.The condition is when the user inputs a new ISBN that is already in the database, the message box will prompt as "That book is already listed!', else if …

Software Development visual-basic
Member Avatar for AndreRet
0
502
Member Avatar for elminster67

Hi, I am new to C++, for my home work for intro to C++, well it would be easier if I just copy and paste the assignment. [I]In this program, you will continuously track the minimum and maximum values of a file of integers as the file is read. Your …

Software Development c++
Member Avatar for elminster67
0
134
Member Avatar for n0de

Hi, have tryed and everything below gives me 0 [CODE=c++] sizeof(array) / sizeof(*array); sizeof(array) / sizeof(array[0]); sizeof(array) / sizeof(array data type); //even the thing which i do not understant: template< typename T, std::size_t N > inline std::size_t size( T(&)[N] ) { return N ; } [/CODE] I need to get …

Software Development c++
Member Avatar for n0de
0
7K
Member Avatar for VisActualyBasic

Hi everybody, I have following code: Public Class Form1 Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click Dim dayChange As Date = dtp2.Value Dim answer As Date answer = dayChange.AddDays(1) dtp2.Value = answer End Sub End Class Working : each time I click btn1 datetimepicker changes …

Software Development vb.net
Member Avatar for rajpu
0
180
Member Avatar for mimsc

any suggestions? <%@ page language="java" %> <%@ page import="trader.webservices.data.LeadDAO" %> <%@ page import="trader.aabacrm.LeadsList" %> <%@ page import="trader.webservices.data.*" %> <%@ page import="trader.webservices.presentation.Lead" %> <%@ page import="trader.webservices.data.UserInfoDAO" %> <%@ page import="trader.webservices.data.UserDataVO" %> <%@ page import="trader.webservices.data.ButtonDAO" %> <%@ page import="trader.webservices.constants.UserConstants" %> <%@ page import="trader.webservices.util.Utils" %> <%@ page import="java.math.*" %> <% RequestDispatcher dispatcher = …

Member Avatar for masijade
0
2K

The End.