43,549 Solved Topics
Remove Filter ![]() | |
Hi, there, all fellow programmers I need a help on this. I have a code in vb6. It acts when a click action is made on 'X' on form1. Here is the code :- private sub form1_unload(cancel as integer) dim confirm as integer confirm=msgbox("Sure to exit ?",vbyesno+vbquestion,"Confirm Exit") if confirm=vbyes … Software Development vb.net visual-basic | |
Hello I have a several problems with using tkinter, if anybody can help, it would be great :D I'm using a .grid method on my widgets. When I put sth (e.g.Label) in for example row=5, and want to put something different (label with other text)in row=5 it overlap one another … | |
I'm working on the game of Concentration. When you match 2 squares I want to blink a label caption "MATCH" say 3 or 4 times then hide it. The problem is I want the program to stop until the blinking ends then continue. I use a timer to make the … Software Development visual-basic | |
hi all have anyone any idea how can i make my program read 3 or 4 files ,in a folder. i mean my input isn't only one file, it's a folder. can the C++ do that? Software Development c++ | |
Using Visuel Studio 2005 and the choices I have are as follows Could someome help me to understand what they are? ALT CLR General MFC SMART DEVICE WIN32 Any help to clarify what these choices mean would be Appreciated. Thank you Dick Software Development c++ | |
Hey everyone I am new here and I found this site on google it looks pretty helpful and clean so I guess I am here to stay. However, I hope someone can solve my problem. I am trying to create an ArrayList with both a URI and FileInfo (file destination) … Software Development | |
I heard that using VB 6.0 I can disable the start button. But I've search to found what code to be put but unfortunately i cannot found one. I also know that code for win98 differ from XP OS... So pls some one teach me... Thanks a lot.. Software Development visual-basic | |
SO! I need finish this task to create a program able to read 3 sides of the a triangle in Tedit and analyse the results and give some answers such as: the triangle is an isoceles, equilateral or scalene...and show a picture according to the answer. Also calculate the height … Software Development pascal | |
I wrote a hash table that takes a char as a key and for a test I am using a string for my value. It uses a linked list. But I am having a problem displaying the value. I have a function that displays the key correctly but the value … Software Development c++ display linked-list | |
My problem is: [LIST] [*]I've try many times with DataOutputStream, FileWriter but I cannot write intergers into a file as I wanted.[/LIST][LIST] [*]I seemed to succeed but after writing them into a file, when I open it with notepad, I can read it. They all tuned out to many strange … Software Development java | |
my code was working, but when i added in a new section to enter playing against a computer player, it now hates me, and wont stop trying to kill me. [code=c++] //name: ******* //Lab: * //purpose: ******* //modification date:*********** #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int … | |
![]() | I know printing primes isn't anything new, but (like always) I'd love to hear some feedback on how I can make my code more efficient and other constructive criticism. [php] def print_primes(r=10): primes = [ ] for i in range(2,r+1): prime = 1 for divisor in range(2,i): if i % … Software Development python |
Hi all, I have trouble with creating Windows Service serving as COM server I have created Service Application and com object in it, register and start it when i try to create com from client app - a new process of service is started. Question is: how do i avoid … Software Development client-server pascal windows-server | |
Hi, The last time I posted I think I asked too many questions and the main reason that I posted got lost somewhere amongst other side issues. The main reason I posted last time is the following: # The following code is not a game, it is configured just to … | |
any good tutorials for windows api? online or books Software Development api c++ windows-api | |
h[I]i all ,[/I] [I]i have a program that read its input from a file in binary mode![/I] [I]now i nead to store this data and to compare it with another data.[/I] [I]which datataype can my input take.[/I] [I]also, the comapred stream is in this form 0004a4900[/I] [I]i made this stream … Software Development c++ file-stream | |
I need some direction on how to split up code into a .h header and two .cpp files. [code] #include <iostream> #include <cstring> using namespace std; //function for displaying name void DisplayName(char * Name){ cout<<"Name: "<<Name<<endl; //print name on screen } int main(){ char first_name[50]; //static array for holding first … Software Development c++ | |
[code] double M2_0(c,m) double c[160]; double m[16][5]; { int n; int s=0; for (n=0; n<16; ++n) { s = s + c[n+16*0]*m[n][0]; } return s; } [/code] can someone help me! error: c and m was not declare in this scope (this is the error in c++ but in c … Software Development c++ | |
can anyone help me where the cin.get(); should be put? i cant view the final output... it was compiled successfully but i cant view the output when it runs.... #include <iostream> #include <cstdlib> #include <iomanip> using namespace std; typedef int Bool; // converts 0 to 'S', 1 to 'M', etc … Software Development c++ | |
Hello I'm just wondering what kind of practice do I need, because I'm ending with C++ and moving to c#. What do I need to be prepared most and what is the hardest part of learning C# from beggining yours sincerely ! thanks :) | |
Hi all, I'm a beginner and I tried to write a program to convert celsius into Fahrenheit but i have a problem due to type casting operation. That is even though i explicitly converted an integer to float number I'm getting only integer value . Here's the program : [code]# … Software Development c++ | |
I am writting a program which receives args on the command line. Before they can be used however they must be converted to ints. I am using vc++ express edition and I have tried the _strtoi64 function but I cannot get the parameters to this function right. It is specifically … Software Development c++ | |
Hi, I have a problem that happens very rarely. I have a calculation which ads (for example) -15000.00 to 15575.51 and saves the results to an oracle database. However, the reslut in the databse is 575.51000002 Both figures are loaded elsewhere from the database and either have 0 or 2 … | |
![]() | Hello, I'm trying to add a JMenuBar to a JFrame and having alot of difficulties with it. I've searched the net and gone through a book I have looking for a solution to the problem, but everywhere tells me I'm doing it right, yet I've no JMenuBar at the top … Software Development java ![]() |
I graduated high school last year in '06 but unlike a lot of people I know what I want to do for a career move and not sure exactly how to pursue it. In my last 2 years of high school I was enrolled in Cisco Networking Academy I, II, … Software Development c++ career engineering | |
Hello, I am doing a homework assignment and need a bit of help. I have to overload the prefix ++, postfix ++ operator, and the = operator for a circle class. Heres the code I have so far: [code] #include<iostream> using namespace std; class Circle { public: Circle(); Circle(int n); … | |
![]() | Hi, I am designing a puzzle game and I am trying to use the data that comes back from "getLocation()". It tells me the x, y co-ordinates of a button on the screen but so far I cannot export the x, y data to a String or int. There is … Software Development api java java-swing puzzle ![]() |
Hi, this is my code: [code] # -*- coding: cp1250 -*- import wx class Okno: def __init__(self,parent=None,id=wx.ID_ANY,title="Graf"): self.okno=wx.MDIChildFrame(parent,title="Graf",id=-1) self.okno.Maximize() self.okno.SetAutoLayout(True) self.okno.SetBackgroundColour("#FCFCFE") self.sizer = wx.FlexGridSizer(2,2,0,0) self.canvas = wx.ScrolledWindow(self.okno, id=wx.ID_ANY) self.canvas.EnableScrolling(True, True) self.canvas.SetScrollbars(20, 20, 1000/20, 1000/20) self.sizer.Add(self.canvas, 1, wx.EXPAND) self.sizer.AddGrowableRow(0, 1) self.sizer.AddGrowableCol(0, 1) self.okno.SetSizer(self.sizer) self.canvas.Bind(wx.EVT_PAINT, self.OnPaint) def OnPaint(self, event): pass if __name__ … Software Development python | |
Hello there, I'm practicing structures and accessing data in a structures. I have here a program that gets an input of string and int from a user. I placed it inside a loop where every time the loop refreshes, it changes the information it gets. My problem is, how do … Software Development c++ | |
i have here a code that uses pointers to manipulate data in a class...i have a problem of how to show them on screen...i think im using an erroneous syntax...lol... [code=c] #include <iostream> #include <string> using namespace std; class MyClass{ public: string first_name, last_name, id_no; int age; }; int main(){ … Software Development c++ | |
Hi all I created [URL]http://pyarticles.blogspot.com[/URL] for Python knowledge. Let's check it out please Software Development python | |
How do I best get a full display screen window using wxPython? Software Development python | |
Hello About half year ago I was interested in Direct3D 9/10 programming, but I released that DX isnt for me. Im not really interested into a game development. I know C/C++ basics, some Win32 API and some QT4 basics. Now, I'd like to try OpenGL. I am looking for a … Software Development api c++ opengl windows-api | |
Hi. I'm trying to learn about using threads in java, so I decided to try to make a new thread in which an alarm rings while the rest of the program continues. My program is supposed to go about it's business graphing some data, and then if the data exceeds … | |
Please help me to Write a program "to print the sum of the main and sub diagonal elements" Thanks all. | |
Hello everyone, I'm just returning to C++ after a (very) long break. Ignore the form and purpose of this program, it's just an experiment to get me reacquainted with the language. I put my problem in the comments... thanks in advance. [code=c++]// Trying to get back into C++. // It … Software Development c++ | |
Ok, so I'm making a program in c++ that keeps track of the number of objects you make for a specific class. It works, but I added a part to change the screen output at a specific number of objects and that's where it broke.... heres the program: [code]#include <iostream.h> … Software Development c++ | |
Hi... I have a static library, libxbgi.a. When I want to properly link a program with this library I have to write: [INLINECODE]gcc prog.c -o prog -lm -L /usr/X11R6/lib -lX11 -L. -lxbgi[/INLINECODE] It is cumbersome to write such a long command line. Is it possible to pre-link the libX11.a and … Software Development c | |
Why both of the next examples are the same? Ex1 : int*(*foo)() = Function; Ex2: int*(*foo)() = &Function; Notice: In the second example i'm using & operator. That means that c++ takes function name as an address of it and this () dereferencing it just like in arrays? Software Development c++ | |
hey guyz... im trying to convert this formula into java code, im just having difficulty understanding it... ok it goes like this: Given loan amount (denoted by a), monthly interest rate as a decimal number (denoted by r). and monthly payment (denoted by p), the loan duration (in months) can … Software Development java | |
Just now i burnt my .vbp on to disc from my computer so i could put it on this one Everything works fine and is correct size but when i put it on this computer.. everything is different sized. like its stretched? i even made the .exe on my computer. … Software Development visual-basic | |
Hi there, I'm a first time poster and first year C programming student. I am a little stuck on the following question: ----------------------------------------------------------------------------- "Conway's life is a special kind of game. It isn't really a game - just a spectator sport. It is played on a chess board, where each … | |
[code=c++] void CMod7aView::OnPaint() { CClientDC dc(this); if(hBmp!=NULL) { CBitmap bmp; bmp.Attach(hBmp); CDC bmDC; bmDC.CreateCompatibleDC(&dc); CBitmap *pOldbmp = bmDC.SelectObject(&bmp); BITMAP bi; bmp.GetBitmap(&bi); dc.BitBlt(0,0,bi.bmWidth,bi.bmHeight,&bmDC,0,0,SRCCOPY); bmDC.SelectObject(pOldbmp); } [/code] how do you make your image persistant? everytime iload a bitmap after I move the main window the image disappears. pls help me. Software Development c++ | |
First of all, hello! I've been reading the forums for quite a while now, but this time I need real help. To summarize things: I'm building a parser which has to consolidate data based on variables contained in an array. The source file contains a set of tab-separated-values, and those … Software Development data-structure open-source perl | |
Hi! I hope you could help me with this one. I simplified the code of my program to its basic problem, and the problem is that I do not seem to understand why this program does not release its memory. I check it at the moments of the [inlinecode]getline[/inlinecode]'s, using … Software Development c++ operating-system ubuntu | |
One of the questions for my study guide asks to write a function that prompts the user to enter 3 integers, then "return" the integers via it's parameters through call by reference. Does this just imply using pointers as arguments, then when the values are changed in the function they … Software Development c | |
[code=c++] // MainFrm.cpp : implementation of the CMainFrame class // #include "stdafx.h" #include "mod7a.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif char file[MAX_PATH]=""; ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) ON_WM_CREATE() ON_COMMAND(ID_FILE_OPEN, OnFileOpen) ON_WM_PAINT() //}}AFX_MSG_MAP END_MESSAGE_MAP() static UINT indicators[] = { … Software Development c++ | |
This may come off as a rather broad question, but I need to learn how to multitask in c++. I am developing a game, and to do so I need to learn how to program applications to run in realtime. (I want multiple characters to do things at the same … Software Development c++ |
The End.