43,549 Solved Topics
Remove Filter ![]() | |
When I declare an event table in a class a.k.a DECLARE_EVENT_TABLE(); then try to compile, i always get this error: [Linker Error] undefined reference to `vtable for Utility' (utility being my class) What does this mean and how do I fix it? All research on this has turned up dead … Software Development c++ | |
Hey guys, I have a python script that I need to run on a windows machine when the computer boots up but before a user logs in. It is the server side of server/client program. The program needs to be able to write and read files, as the server program … Software Development client-server python windows-server | |
I am doind a tutorial, here is my code: [code=c++]#include "functions.h" #include <glut.h> #include <stdlib.h> //this is the function with the error: void HandleKeyPress ( unsigned char key, int x, int y ) { switch ( key ) { case 27: // escape key exit ( 0 ); } } … | |
hi i am at uni an i have a project in which i have to create a backgammon game can anyone give me a helping start on how i would go about creating the board states? thanks Software Development c | |
I have been working on a project using Visual Studio.Net 2005 and Windows Mobile 6.1 After several builds and installers it has started throwing up an error during the build stage. Any help would be appreciated. Thanks The error contained in the output list: ------ Build started: Project: Stock - … Software Development vb.net visual-studio | |
does anyone know how to test a recursive bianry search to check if it works Software Development python | |
I have a JTabbedPane inside a JFrame. I've been having a lot of problems with resizing and things like that. . how do I get the JTabbledPane to resize with the JFrame? So when the user drags the window open to a larger size, the JTabbedPane should be dragged to … Software Development java | |
hello I been working on a swap program and this is about my third one trying to get it working now I'm having a problem i keep getting 0's added into it right now the output is 4, 0 , 5, 0 ,16. Could anyone tell me where the 0's … Software Development c++ | |
Hi, I want to learn assembly and have looked at tutorials I found on google. It's really freaking complicated, so do any of you know of any good tutorials on assembly? I'm on Windows XP 32 bit with an Intel CPU. Software Development assembly | |
Hello all! I have a task to code a program that would find the last non-zero digit of the factorial of a given number n where 1<n<10000 so far i got this: [CODE=c++]#include <iostream> #include <string> #include <sstream> using namespace std; int main() { int a, xxx; unsigned long long … Software Development c++ | |
Hello, I'm having trouble writing to a file. I can open notepad ok, but I cannot write a string to it. What am missing here? TIA. [code=vb] Imports System.IO Module Module1 Sub Main() Dim start_info As New ProcessStartInfo("notepad.exe") start_info.UseShellExecute = False start_info.ErrorDialog = False start_info.RedirectStandardInput = True start_info.RedirectStandardOutput = True … Software Development vb.net | |
Hi I want to map a network drive on Windows platform and i am running my script on Unix machine; What are the possibilities by which i can map network drive in perl Please reply thanks in Advance, aNa | |
Hi, I am trying to use recursion and count to find the number of times the number 5 appears in an array. I have the following code: [CODE]public static int countfive(double[] array1, int beginarray, int endarray,int count) { int next; if(beginarray==endarray) { if(array1[startIndex]==5) return 1; else return 0; } else … Software Development java | |
What's the easiest way to open a directory in windows explorer? Software Development c++ | |
![]() | Sorry guys, I'm a rookie at the whole Python thing so please forgive me if the following questions are easily answered. I'm working on my final project for class and I'm just stuck. I have no clue what's going on with this program. It isn't running properly in IDLE at … Software Development python ![]() |
Well, i thought everything was perfect since my last post. But i have the strangest error. Maybe its because i don't completely understand references... So anyway here is my string class: [code] class StRiNg { public: StRiNg(); StRiNg(const char* const); StRiNg(const StRiNg&); ~StRiNg(); StRiNg& operator=(const StRiNg&); char &operator[](int); char operator[](int) … Software Development c++ visual-studio | |
Hi everyone I am having a lot of trouble trying to get the toUpperCase method working. I have basically put a String of text into a character array and I want to convert a certain character in a certain place in the String to uppercase. Here is what I have: … Software Development java | |
Hey guys I was wondering if you could provide some help, It is pretty complex for a person who is just starting loops. I have included the problem as well as the code I have below. Please help me, I know their is something wrong with my [B]for[/B] loop as … Software Development c++ | |
Hi I am having a problem in the sixth edition on starting out with C++ programming. I need the full code of how to do it cause I am getting errors and dont know what I am doing. The question ask.Write a funtion named coinToss that simulates the tossing of … Software Development c++ | |
/** * This method will ask the user for some information, create a blank picture to use as a palette and create and display the palette. */ 186 public static void main(String[] args) { 187 int redValue; 188 Scanner sc = new Scanner(System.in); 189 System.out.print("Enter a Red value: "); 190 … Software Development java | |
Can you compare strings with if, or do you have to use something else? Can you compare strings at all? Im attempting to write a console program just for fun. Eventually I want it to be able to move around files and such but im not even close to that … Software Development c++ | |
Hello everyone, i have not posted here in a while. But i have a question about a string class I'm creating. Every time i make a string class this always happens, and i cannot figure out why. Maybe its something i didn't include or something i have to add. But … Software Development c++ | |
Hi, I'm new in this forum :D I've started learning C# @ school 1 year ago , and i love it,and it's going very well, now We had 2 lessons of Windows applications in C#, and to be honest i find it much harder than console application. now we have … Software Development | |
Hi, If i need to use many same components in a window form (let say 20 picture boxes or 20 text boxes), which of the method below is more efficient?? 1. Drag and drop the component 20 times. Configure their properties one by one. 2. Declare array of that component … Software Development vb.net | |
I need a nonblocking socket so in an older version of the program i made a new thread to do this. and now that ive migrated into visual c++ it crashes with no explination... yea im really aggravated... can anyone tell me why this crashes? [code] #include <iostream> #include <winsock.h> … Software Development c++ | |
While Not EOF(hfile) Line Input #hfile, buffer [COLOR="Red"] Data() = Split(buffer, ",") [/COLOR] i = i + 1 With fghStudentInfo .TextMatrix(i, 1) = Data(0) End With Wend i'm new to VB. can someone help me to understand the command? i want to load the data from .csv to my vb … Software Development vb.net | |
Hello guys. I am doing a swing application wherein I m using a DefaultTableModel. Here's my code: [CODE] DefaultTableModel tab = new DefaultTableModel(){ @Override public boolean isCellEditable(int r, int c){ //if(c == 10) {return true;} return false; } }; private JTable jt = new JTable(tab); [/CODE] The JTable will diplay … Software Development java java-swing | |
I am trying to learn GridBagLayout. I've gotten the hang of it in many respects, but I am having serious problems when the first row has element(s) with a gridwidth greater than 1 or the first column has elements(s) with a gridheight greater than 1. I'm trying to make a … Software Development gui java java-swing | |
I am new to programming and am having trouble with a school assignment. I need to make a class planner that prints out information after the user enters it and then askes for specific class numbers. The user enters the following information (in this order): 1. Name of Class 2. … Software Development c++ | |
I am trying to create the meta tag: [CODE=HTML]<META HTTP-EQUIV="Pragma" CONTENT="no cache">[/CODE] I tried the following line: [CODE=PERL]print $cgi->start_html(-title => 'Meta Test', -meta=> { 'HTTP-EQUIV'=>'Pragma', 'CONTENT'=>'no cache'}), "\n"; [/CODE]But I get this: [CODE=HTML]<meta name="HTTP-EQUIV" content="Pragma" /> <meta name="CONTENT" content="no cache" /> [/CODE] Can someone tell me how to create the … Software Development perl | |
Hi I am trying to write a function [I]password_input(prompt, password)[/I] that will repeatedly ask for a password using the given prompt until the given password is entered. I have testing code, but I am completely lost upon how to do it and where to begin. This is the testing code: … Software Development python | |
Hello I am currently making a program for a database which includes an SSN. The user can input the ssn but I want it in xxx-xx-xxxx and to make sure the user ddoes this have the user input 3 numbers then 2 numbers then 4 numbers in seperate cin statements: … | |
The function should remove all the occurrences of an integer (say, removeItem) from an array. If the value does not exist or the array is empty, ,output an appropriate message. My program is able to print the array without all the occurences of removeItem , but I don't know how … Software Development c++ | |
Hey guys, I think I have this mostly figured out but i'm still getting some errors, I'm not sure if it's a syntax thing or if I called out a variable wrong. For some reason eclipse is saying that my variable [B]average[/B] "may not have locally been declared" which doesn't … Software Development java | |
hi there! basicly i want to make a program that will detect when windows email recives a new message. so... thats basicly it. thanks Software Development email visual-basic | |
I am trying to do this [code] #!/bin/bash for i in 1 2 3 4 5; do File1="$i.txt" File2="$i.obj" ./Test $File1 $File2 #save i and the result of the program somehow done; [/code] For example, at the end I would like to have a file like this [code] 1 3.4 … Software Development c++ shell-scripting | |
As a java beginnners what i incline to do for my program almost get solution from this site. Right now i need a small help to get file name or full path for output files of my program. so far my program is running as a search engine to find … Software Development java | |
Hello everyone, Can someone please explain to me the meaning of the code below: [code] public class Client extends javax.swing.JFrame implements Runnable { // constructutor public Client( String host, int port ) { . . . new Thread( this ).start(); } public void run() { something.... } } [/code] This … Software Development java java-swing | |
Everybody hi. I need to swap elements of my std::vector container. For example, i have vector with values from 1 to 5; and i need to swap 2 with 3 (only nearby elements), that in result i'll have 1,3,2,4,5. In real world i don't have std::vector filled with numbers - … Software Development c++ | |
Hi guys, I was wondering if someone could help me?! I am doing a uni project where we have to access and query a MA database. At the moment I have the database accessed and query is working but I'm having some problems displaying the records - I can scroll … Software Development vb.net | |
Hi all! I'm learning Assembly by my own with FASM, but i'm having trouble running and compiling some codes... like this, for example: [CODE] CODE SEGMENT ASSUME CS:CODE, DS:CODE START: MOV AX, CODE MOV DS, AX CODE ENDS END START [/CODE] i get an error about the "CODE SEGMENT" one. … Software Development assembly | |
Hello everyone, I got a question on synchronization, hope someone will be able to give me a clear explanation. [code] public void sendToAll( String message ) { ..... synchronized( outputStreams ) { ... ""statement block"" } } [/code] outputStreams is an object here. I made some research and I found … Software Development java | |
hey im finding this question quite hard to do can anyone help out. Implement an iterative Python function to generate numbers in the Fibonacci sequence: fib(0) = 1 fib(1) = 1 fib(n) = fib(n − 1) + fib(n − 2) Software Development python | |
I am trying to write a program that calculates the value of pi from the infinite series of pi = 4 - 4/3 + 4/5 - 4/7 + 4/9...etc. As you can tell, the numerator stays at 4, while the denominator goes up incrementally in odd numbers, if the program … Software Development java | |
[B]This is not a question just small challenge[/B] if you interest in improving provided solution and feedback for me. I just went back to some assignment I did at university and one of these been design phone book for mobile device with use of Java Microedition (JME). At the time … | |
Hi guys, got another question. I have a dialog with a series of dropdowns, textboxes and checkboxes for entering and saving data into an access database. There is a load data button on that dialog which loads a second dialog box. This one has a datagridview which is linked to … Software Development | |
Good Morning all, I need some help with loading a file into a sybase IQ table with the "LOAD INTO" statement. I have never used it before and I cant seem to get myhead around how I am supposed to implement it in my java app. I have a stateless … Software Development java | |
I don't understand why my linear search program in pascal is not working... Some help will be appreciated. [code]program Project2; {$APPTYPE CONSOLE} uses SysUtils; Type TStudent = Record Name : String[15]; End; Var Name : array [0..3] of string=('Fred','Jack','Chris','Ali'); inputname : string; n : integer; begin Name[0] := 'Fred'; Name[1] … Software Development pascal | |
I cannot get this program to compile. It is bombing at the Outfit::Outfit constructor. I am getting an error stating that it is missing argument list and also illegal left operand type. Can someone point me in the right direction? Cheers - Jason [code=c++] // Outfit class contains Dress and … Software Development c++ |
The End.