43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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++ | |
I want to know what is the differnt between continue and the break ? Software Development c++ | |
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 ![]() | |
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++ | |
please could any one give a short note about java ajax? Software Development java | |
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++ | |
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 … | |
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. … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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. Software Development client-server visual-basic windows-server | |
[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 | |
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 | |
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 … | |
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++ | |
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 | |
[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++ | |
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 | |
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? | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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 | |
[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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 |
The End.