43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Webbsta

I'm using a system.timers.timer in my console application, but i don't know what the sub would be to trigger each time the interval elapses, can anybody help, thanks. SOLVED: all i did was use this: Dim WithEvents Timer1 As New System.Timers.Timer and Private Sub timer1_tick() Handles Timer1.Elapsed MsgBox("TICK!!!") End Sub

Software Development vb.net
0
97
Member Avatar for noodlneck

Hello I'm haveing a problem running my program because i keep getting error C2447: '{' : missing function header (old-style formal list?). Can someone explain to me how to fix this problem? Below is a copy of my program. The program is designed to take three number inputed buy the …

Software Development c++
Member Avatar for noodlneck
0
333
Member Avatar for bis student

I want to know what is the differnt between continue and the break ?

Software Development c++
Member Avatar for JRM
0
132
Member Avatar for nljavaingineur

Hello fellow developers, Does anyone know why I keep getting this error message "illegal start of expression"? I've already checked my braces. They matched. Still.....[This is code for the basic operation of a calculator n my code is as follows] [CODE]public void button2_actionPerformed(ActionEvent e) { applyOperator('+'); } public void button14_actionPerformed(ActionEvent …

Software Development java
Member Avatar for electron33
0
145
Member Avatar for loushou

I am trying to dump 2 longs, an array of floats and DWORDs, and an array of shorts into a file, USING BINARY out mode. Here is my code: [CODE]#include <windows.h> #include <fstream> #include ".\vertexs.h" using namespace std; int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { OURCUSTOMVERTEX p_verts[5] …

Software Development c++
Member Avatar for Duoas
0
101
Member Avatar for baheddad

please could any one give a short note about java ajax?

Software Development java
Member Avatar for baheddad
0
91
Member Avatar for dexter1984

Hi, I did some C++ assignments and was confused about a certain code. [CODE=language] #include <iostream> #include <iomanip> using namespace std; int main() { long result, input, num, count; count = 0; cout << "key in number"; cin >> input; while (input>0) { count++; input /=10; } cout << count; …

Software Development c++
Member Avatar for dexter1984
0
95
Member Avatar for SergioQ

Curious if anyone here has any experience with Image::Magick for Perl? The code in red does create a GIF file in the new dimensions, but it is blank, or should I say black. I know the $src handle is good, as I use it in the Thumbnail module and it …

Software Development image perl
Member Avatar for SergioQ
0
117
Member Avatar for SergioQ

So am using Perl, and I need the user to upload an image (multiple formats) and then have been playing around with Image::Magick. I have to tell you that I am not that impressed with it. I've been toying around, and the resizing feature sometimes gives me a funky image. …

Software Development image perl
Member Avatar for SergioQ
0
74
Member Avatar for smiles

Hi ! I am trying to write C program for a microcontroller (CCS compiler software), here is the part that I get error "Expect a close paren" [CODE] void Speech(char words); void main() { //INTRO OR GUIDED WORDS char hello[]="HELLO WORLD!\n"; Speech(hello,0xC0); [COLOR="Red"]//it says error here[/COLOR] } void Speech(char words,int …

Software Development c
Member Avatar for smiles
0
100
Member Avatar for wiz83

hi, iam fairly new at unix.what iam trying to do is iam running a perl script through crontab.the problem is iam getting an error message on my mail. this is the crontab file: 24 16 22 1 * perl /rishi/s-branch/perl1/perl/filecomp.pl this is the content of my perl file #!usr/local/bin/perl @comp=`diff …

Software Development perl shell-scripting unix
Member Avatar for DimaYasny
0
198
Member Avatar for pradeep.singh28

hi friends, I am pursuing mCA final semester and i want to develop a project in JAVA using swing and applet, i have a good knowledge of core java and swing, so i want a good quality project where i can test myshelf,can you please help me in deciding the …

Software Development java java-swing
Member Avatar for jwenting
0
187
Member Avatar for sigkill9

I'm new to Python and am trying to figure out how to streamline the code at bottom to get it more simple but am having trouble. I was hoping that someone here could help me out? The program I am trying to create simply asks the terminal operator for five …

Software Development python
Member Avatar for vegaseat
0
222
Member Avatar for Mbt925

I want to introduce some good and practical activex component at this topic. 1.[B]LargeTm[/B] Vb Timer object can get until 60000 miliSec interval and don't accept largar than it. this timer can get each interval you want. 2.[B]MBClock[/B] This clock is a simple clock that show system time in your …

Software Development visual-basic
Member Avatar for Mbt925
0
579
Member Avatar for abhi_elementx

This may be a dumb question. But is it possible to use multiple files in a single program without using header files concept. Perhaps maybe using the "extern" keyword.

Software Development c++
Member Avatar for abhi_elementx
0
99
Member Avatar for sweety0

hi all this is an algo of finding the no. of times the key occurs in an array.. [code=c++] #include<iostream> using namespace std; int main() { int a[5]={1,2,2,5,6}; int max=2; int counter=0; for(int i=0;i<5;i++) { if(max==a[i]) counter++; } cout<<"the element "<<max<<" appears "<<counter <<" no. of times"; return 0; } …

Software Development c++
Member Avatar for sweety0
0
98
Member Avatar for AndreRet

Got stuck completely. Need to shell to an app running on IP***.***.***.***, Server is running windows server 2003. Normally connect to app using remote desktop connection. I need to let client connect from MY app to this server - forms part of app I'm developing.

0
75
Member Avatar for kv79

[code=c] struct CircleStruct { int x ; int y ; int width ; int hight ; }; struct CircleStruct CreateCordinate = {40,0,80,40}; //this is the global declaration maybe void Draw(); void newfunction(); [/code] And can i do this ? Why? [code=c] void newfunction() { CreateCordinate = {40 ,40 ,40 ,40}; …

Software Development c
Member Avatar for Paul.Esson
0
77
Member Avatar for majestic0110

Hi there. I have a datagrid that prints out data from an SQL d/b. I also have a 'Save' button which I am struggling to write an event handler for. the Datagrid data is editable, and when I press save I want the changes to update the D/b too. Any …

Software Development sql
Member Avatar for majestic0110
0
381
Member Avatar for bobei89

okay, here is the code my teacher gave...but i do not understand some part... [code=c] #include <stdio.h> #include <time.h> #include <stdlib.h> void printfAll(int size, int ary[]) { int a; for(a=0; a< size; a++) { if(!(a%10)) //why a%10 and what not equal to it// printf("\n"); printf("%5d", ary[a]); } printf("\n"); } void …

Software Development c display
Member Avatar for bobei89
0
154
Member Avatar for Conqueror_2

I get an error on the following code. It seems I can´t use a function which belongs to a class as an argument for "genericfunction". Any help on how to overcome the problem would be great. Thanks. [CODE] //Main int main() { teste teste_classe; // this works fine cout << …

Software Development c++
Member Avatar for Duoas
0
93
Member Avatar for Matt You

I'm trying to make a function that can scan a char array, and finish it's business when it comes to a '\0'. so here is the for loop i came up with: [CODE]for( i=0 ; charArray[i] != '\0' ; i++ )[/CODE] But here is an example of entered data: "1234 …

Software Development c
Member Avatar for Matt You
0
504
Member Avatar for blcase

[code] #include <iostream> #include <string> using namespace std; class Movie { private: string director, title, genre, cast, rating, release; int length; public: Movie(){ cout<<"constructor w/ no parameters called"<<endl; length=0;} Movie(string d, string t, string g, int l, string c, string r, string re){ director=d;title=d;genre=g;length=l;cast=c;rating=r;release=re;} string getDirector(); string getTitle(); string getGenre(); …

Software Development c++
Member Avatar for Duoas
0
192
Member Avatar for lostandfound

Hello, I have been trying with no success to transfer a recordset from one form to another. I have declared in Form1 that [CODE]Public myRS As ADODB.Recordset[/CODE] All works lovely in Form1 In Form2 when I use [CODE]Private Sub cmdFail_Click(ByVal myRS As ADODB.Recordset)[/CODE] I get an error message at runtime …

Software Development visual-basic
Member Avatar for hkdani
0
181
Member Avatar for Ravenous Wolf

is there any type of control which one can use to display a pdf document? that is put a control on the screen and in this control you display a pdf?

Software Development display pdf
0
61
Member Avatar for pradeep.singh28

hi friends, I am pradeep , i have a PC having configuration as: P-3, 1.2 GHz,256 MB RAM . when i am installing tomcat 5 ,it is starting properly but when I run any JSP page from the browser the message comes as "Server not found" . I have set …

Software Development java java-jsp
Member Avatar for majestic0110
0
180
Member Avatar for dexter1984

Hi, I'm a student new to C++, just started learning it for 3 weeks. I just encountered a problem in making a multiplication table as an assignment. Tried alot of methods but still can't figure out what's wrong. [code=cpp]#include <iostream> #include <iomanip> using namespace std; int main() { int input, …

Software Development c++
Member Avatar for dexter1984
0
106
Member Avatar for abhi_elementx

I have two classes EmpData and VectorHandler. EmpData contains info abt employees like name and empcode Vectorhandler has a vector which stores Empdata objects . I want to use removeElement() which will delete the object which contains the particular empname/empcode from the vector. This doesnot work: [CODE]v.removeElement(empcode);[/CODE] [B]as empcode is …

Software Development java
Member Avatar for abhi_elementx
0
137
Member Avatar for abhi_elementx

Hello friends , I have a problm accessing my objects in vectors what i am trying to do is store objects ( of a class defined by me) in a vector. I have two classes VectorHandler and Emp_database. In VectorHandler, I have a vector (Vector vect) which stores objects of …

Software Development java
Member Avatar for abhi_elementx
0
210
Member Avatar for deraj8

I have created an array of struct i am very frustrated beacuse I just can not figure out how to pass this array of struct into a function. here is my created struct and a general idea of what i have been trying [code] #include <stdio.h> void functionOne(MyStruct) struct MyStruct …

Software Development c++
Member Avatar for VernonDozier
0
1K
Member Avatar for cyberwizmj

Hi I am trying to [B]enumerate through 3 levels of directory structure/folders and create TabPages with the names same as the directory names[/B]. Further I want to add controls to these TabPages created at runtime. I have tried to create TabPages with the following commands: [CODE=vb] Dim tabcontrol1 As New …

Software Development vb.net
Member Avatar for cyberwizmj
0
4K
Member Avatar for Ole Raptor

I am having a problem validating a date entered by user. This date must be later than todays date(at input time). I have attempted using the > (today) but this will not work if the the month is larger then input time. If you have any examples I would greatly …

Software Development vb.net
Member Avatar for Ole Raptor
0
127
Member Avatar for Noliving

Hello everyone, well its my first time ever really using java but I did do some programming in python. Basically my first assignment is this and seems pretty easy: [url]https://mavdisk.mnsu.edu/lct/IT214/Assignment%201.pdf[/url] I have never done anything with class paths but it seems simple enough. First things first, is this the correct …

Software Development java pdf python
Member Avatar for Noliving
0
105
Member Avatar for toolmanx

I'm running AMD, XP Service Pack 1 Compiling with a .cpp extension using Borland Bcc32 I'm trying to teach myself how to use File Mapping. This is just the pertinent parts of my program. Any file can be used for lpstrFile. I'm presently using a .txt file for testing, but …

Software Development api c++ file-system
Member Avatar for toolmanx
0
137
Member Avatar for Adami

[CODE]public static boolean what (Node n) { if (n == null) return true; if (n.getLeftSon()==null && n.getRightSon()==null) return true; if (n.getRightSon()==null) return (n.getNumber() % n.getLeftSon().getNumber() == 0) && what (n.getLeftSon()); if (n.getLeftSon()==null) return (n.getNumber() % n.getRightSon().getNumber() == 0) && what (n.getRightSon()); return (n.getNumber() % n.getLeftSon().getNumber() == 0) && (n.getNumber() % …

Software Development java
Member Avatar for javaAddict
0
287
Member Avatar for mm-marek

Hi, im newbie in C, now I want to make a program which can search something in file (now it will be two letter word) I want to command it from cmd by [B][I]test text.txt ab[/I][/B] i have a problem with argv filed, everytime when i run this script it …

Software Development c++
Member Avatar for mm-marek
0
226
Member Avatar for Webbsta

I'm having a hard time trying to figure out how to use my DLL in my application, i just started off with a very basic DLL so i can figure out how to get it working before i use a DLL in my applications, in my DLL i have this: …

Software Development vb.net
Member Avatar for Webbsta
0
110
Member Avatar for CoolGamer48

Hey, I'm trying to learn DirectX from this book ([I]Beginning Game Design[/I] by John S. Harbour, if anyone knows the book). I keep getting a LNK2019 error because [ICODE]Direct3DCreate9(D3D_SDK_VERSION)[/ICODE] is an "unresolved external symbol". Based on my slightly limited knowledge on libraries and include files and a little of my …

Software Development c++
Member Avatar for CoolGamer48
0
169
Member Avatar for rmansuri

Hello Pythoner, I have found good website which is list of almost all python website including beginner to advance level tutorial.. Jst thought to share with community. [COLOR="Green"][URL="http://python.objectis.net"]http://python.objectis.net[/URL][/COLOR]

Software Development python
Member Avatar for vegaseat
0
112
Member Avatar for zprise

Hello! in a case where int a=5; if((!a)++) or (++(!a)) gives me an error message saying that the operator ++ requires l-value, but the boolian result of if (!a++) is false. If someone would be so kind to explain this!

Software Development c++
Member Avatar for Ancient Dragon
0
152
Member Avatar for altzaportu

Well, if I introduce the date 29/01/2008 in the next code, a window appears with the message "Proyect project1.exe raised exception class EconvertError with message “2008/01/29’ is not a valid date’. Process stopped . Use Step or Run to continue." [ICODE]repeat writeln(' Introduce the day'); readln(day1); until(day1>'0')and(day1<'32'); repeat writeln(' Introduce …

Software Development pascal
Member Avatar for Duoas
0
132
Member Avatar for sneekula

I have a dictionary of chemical symbols and names, to look up the symbol and get the name is easy, but to find the symbol of a given chemical name seems to be more akward. Am I missing something here? [code=python]# small dictionary of chemical symbols symbol_dic = { 'C': …

Software Development python
Member Avatar for jrcagle
1
245
Member Avatar for zawpai

Hi, Does anyone want to give me a hand? I gets a small problem in my code. I want to make the mouse pointer is disappeared while pressing 'Alt' key. Otherwise, the pointer should reappear. I use ShowCursor API to do it, but I meet the problem. If I run …

Software Development api visual-basic
Member Avatar for zawpai
0
225
Member Avatar for majestic0110

Hi all, just would like to ask some help as to how I would go about modifying this code I created to do the following: 1 - need user input (in password field) to be echoed back as *******. 2 - need the class to open a new class (lets …

Software Development
Member Avatar for majestic0110
0
231
Member Avatar for gallantmon1

Does anyone know how to put a whitespace or a newline in a .txt file??? By this I mean, I have this long string, and I have to put whitespaces and new lines to make it understandable. To summarize, I just want to know what functions will be effective to …

Software Development c
Member Avatar for gallantmon1
0
154
Member Avatar for shankhs

I am new to windows programming in visual studio(i mean visual c++) I made a C++ file to include WndProc(containing WM_PAINT,WM_DESTROY and WM_KEYDOWN),then I thought to include a class name CEventHandler store it in EventHandler.h The class definition in EventHandler.cpp and main in try.cpp,They all are part of a project …

Software Development c++ visual-studio
Member Avatar for shankhs
0
2K
Member Avatar for KimJack

Hello All, I am trying to double the size of an array and copy its contents to the new array. I keep getting the following errors with the following code snippet: '.class' expected not a statement Here is my code: private void cpyArray() { if(itemCount == item.length) Doll [] temp …

Software Development java
Member Avatar for bugmenot
0
2K
Member Avatar for stackOverflow

Hi :) I am using TurboC++ IDE 3.0. I need to open a file and display the contents of this file on the screen. My problem is simple... i need to open a file and display its contents in graphics mode.. so that i can display it using outtextxy() ...is …

Software Development c ide
Member Avatar for stackOverflow
0
322
Member Avatar for musaka

So i have an UML diagram from wich i must define my code for my Customer class , and the start of the diagram attributes is with that -accounts : Account = new Account() , so i typed for it : private Account = new Account() accounts; and then i …

Software Development java
Member Avatar for javaAddict
0
110
Member Avatar for furkankamaci

Hi; I have two buttons and one function.When a user click button1 or button2 program should call the function and the function will write to the screen whic button clicked.I mean if i click button1 there will write "Button1 clicked" on the screen.All in al i want to learn how …

Software Development python
Member Avatar for Racoon200
0
124

The End.