43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for choudhuryshouvi

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
Member Avatar for choudhuryshouvi
0
90
Member Avatar for 65dos

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 …

Software Development python tkinter
Member Avatar for vegaseat
0
131
Member Avatar for johntech

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
Member Avatar for johntech
0
194
Member Avatar for ghadahelal

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++
Member Avatar for ghadahelal
0
138
Member Avatar for CRD

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++
Member Avatar for CRD
0
147
Member Avatar for civilr

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
Member Avatar for civilr
0
125
Member Avatar for Cruize_Invades

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
Member Avatar for Cruize_Invades
0
123
Member Avatar for lacoste78

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
Member Avatar for lacoste78
0
76
Member Avatar for blazted

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
Member Avatar for blazted
0
119
Member Avatar for Gorilla

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
Member Avatar for Gorilla
0
102
Member Avatar for Slavrix

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 …

Software Development c++ ios
Member Avatar for Slavrix
0
93
Member Avatar for Mouche

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
Member Avatar for arsham
0
141
Member Avatar for aSa

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
Member Avatar for aSa
0
120
Member Avatar for fredzik

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 …

Software Development gui python tkinter
Member Avatar for fredzik
0
126
Member Avatar for tralfas

any good tutorials for windows api? online or books

Software Development api c++ windows-api
Member Avatar for tralfas
0
137
Member Avatar for ghadahelal

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
Member Avatar for Narue
0
88
Member Avatar for ssgatbliss

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++
Member Avatar for ssgatbliss
0
235
Member Avatar for tonik69

[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++
Member Avatar for tonik69
0
105
Member Avatar for badrobot

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++
Member Avatar for Narue
0
282
Member Avatar for bRutal!

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 :)

Software Development c# c++
Member Avatar for bRutal!
0
100
Member Avatar for parthiban

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++
Member Avatar for parthiban
0
127
Member Avatar for quintoncoert

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++
Member Avatar for vijayan121
0
148
Member Avatar for ShawnMuller

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 …

Software Development c c# c++ oracle
Member Avatar for ShawnMuller
0
99
Member Avatar for san_fran_crisko

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
Member Avatar for san_fran_crisko
0
164
Member Avatar for imrickyduh

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
Member Avatar for mariocatch
0
168
Member Avatar for bRutal!

Hi, I have a question 'bout c++ beep...It's very simple...Where can I find Music Scales for C++ ? I've searched google up'n'down without succes...thanks for any help :?:

Software Development c c# c++
Member Avatar for bRutal!
0
168
Member Avatar for Sturm

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); …

Software Development c c# c++
Member Avatar for Sturm
0
213
Member Avatar for san_fran_crisko

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
Member Avatar for san_fran_crisko
0
170
Member Avatar for Blujacker

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
Member Avatar for Blujacker
0
197
Member Avatar for jaepi

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++
Member Avatar for jaepi
0
121
Member Avatar for jaepi

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++
Member Avatar for jaepi
0
213
Member Avatar for pyarticles

Hi all I created [URL]http://pyarticles.blogspot.com[/URL] for Python knowledge. Let's check it out please

Software Development python
Member Avatar for vegaseat
0
64
Member Avatar for bumsfeld

How do I best get a full display screen window using wxPython?

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for jan1024188

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
Member Avatar for John A
0
94
Member Avatar for randomFIRE

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 …

Software Development audio java
Member Avatar for masijade
0
147
Member Avatar for Ahmed Padela

Please help me to Write a program "to print the sum of the main and sub diagonal elements" Thanks all.

Software Development c c# c++
Member Avatar for Ahmed Padela
0
215
Member Avatar for JohnMG

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++
Member Avatar for JohnMG
0
112
Member Avatar for Matt Tacular

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++
Member Avatar for Matt Tacular
0
242
Member Avatar for vicky_dev

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
Member Avatar for Narue
0
111
Member Avatar for laconstantine

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++
Member Avatar for laconstantine
0
149
Member Avatar for wandie

I was wondering if you could help me out. I have a list box that has seltext and every time i want to select another item in the list it adds on. for example i select "/hello" then it appears as "/hello" but then i select something else it will …

Software Development python
Member Avatar for LouLouLou
0
166
Member Avatar for exit

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
Member Avatar for exit
0
226
Member Avatar for ReeciePoo

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
Member Avatar for jamello
0
121
Member Avatar for m.s

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 …

Software Development c c# c++
Member Avatar for m.s
0
199
Member Avatar for Covinus

[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++
Member Avatar for Covinus
0
111
Member Avatar for BioTeq

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
Member Avatar for KevinADC
0
104
Member Avatar for bcramer

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
Member Avatar for Salem
0
113
Member Avatar for Savage221

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
Member Avatar for Savage221
0
84
Member Avatar for Covinus

[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++
Member Avatar for Covinus
0
144
Member Avatar for Brent.tc

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++
Member Avatar for iMalc
0
201

The End.