132,726 Archived Topics
Remove Filter ![]() | |
Hello , I am a noob in C++ coding and wondered if anybody here can please help me, I would really appreiate it I have to create a separate function within a program to check if the date entered by the user match the month he entered E.G= if he … Software Development c++ | |
I have a datatable (sqltable) and a datagrid (dgData) if the user click the datagrid header the grid changes sort order but when i try to get [CODE]Dim Row As DataRow Row = sqlTable.Rows(dgData.CurrentCell.RowIndex)[/CODE] or [CODE]Dim Row As DataRow = sqlTable.Rows(e.RowIndex)[/CODE] the row returned is not the row selected in … Software Development vb.net | |
Hello, I'm a bit of a newbie here, so would appreciate some help on this one! I want to write a program that will display a map on a windows form. The map is built up of a 2-dimensional array of objects (either Land or Water), of size [1000, 1000], … Software Development | |
can we do sorting in chars in c++ like if acdb is input and abcd as output any one provide me prog for this ........... or Sample code: plz........... Software Development c++ | |
im trying to right align data that i have written to file with fprintf, but im not sure how i would do so in C. ive looked around and there are many solutions for C++ and C# but havent found one for to right align in regular C. Software Development c | |
Here is what I have right now. I created a loop that loops through 6 times. Each time it loops, it spits out a different answer at the end, then when it gets back to the top it starts at 0 and {0,0,0}. [QUOTE] ........ double U[6]={0,0,0,0,0,0}; double g[6][3]={{0,0,0}, {0,0,0}, … Software Development c++ | |
How do I use classes in python? Do I import them? For example: class classA: def __init__(self): print "class A" class classB: def __init__(self): classA_list = [] for i in range(5): classA_list.append(classA()) #list of classA objects This works if I have both classes in one file. But if the classes … Software Development python | |
Hey guys I'm trying to see if someone can give me a nudge in the right direction here. All I need is two simple procedures: 1. Load XML Entries into TListBox 2. When ListBox is clicked, find string pointing to filename so I can display the item's associated file. My … | |
Hi there, I pulling my hair out with a SQL statement I am using for a query in Access. I have a list box which pulls data from my table. I am using the list box to allow the user to select a record which will then be pulled up … Software Development sql visual-basic | |
Hi guys.. Im stuck on my project and i urgently need ur help. i want to randomly generate some moving rectangles (one after another moving in the same direction). this should occur infinitely. So far i have only managed to create one moving rectangle. i hope u guys can help … | |
I have problem in getting outputs plz give me suggetion or correct error if any and make it working....... plz help......... there is no error........in this program.........when i compiled. [code=c++] #include<iostream> #include<cstdio> #include<cstring> #include<cstdio> #define IS_STRING 1 #define IS_CHARACTER 2 #define IS_INTEGER 3 #define IS_FLOAT 4 //using std::cout; //using std::cin; … Software Development c++ | |
We have developed asp.net project in VS2005, framework 2.0.50727 using C#, in that we are using a third party library(Map Quest) to display the Map. When we are calling a function from dll, we are getting the following error (configuration error) . Message: That assembly does not allow partially trusted … Software Development asp.net assembly web-server | |
[StructLayout(LayoutKind.Explicit)] struct MyStruct { [FieldOffset(0)] public byte F1; [FieldOffset(1)] public byte F2; [FieldOffset(2)] public byte F3; [FieldOffset(3)] public byte F4; } MyStruct s; s.F1 = 0x00; s.F2 = 0xF1; s.F3 = 0x00; s.F4 = 0x01; uint p = 0x00F10001; How can I convert MyStruct s to uint p ? Thanks … Software Development | |
[CODE] set<Student> myStud; Student b; myStud[b] = Student("Katie", 12);[/CODE] Software Development c++ | |
Hi all, I am going through the concepts of CSharp and I could not understand.. and get enough info on net about String.Format(). Can someone please explain how is it useful?! I got this example.. but i see no use of using String.Format() here as.. use it or not.. the … Software Development | |
I’m trying to learn how to use C++ templates, and I thought I was grasping it all ok until I decided to try to pass a template defined object variable as a function parameter. Having all kinds of troubles with that. I’m using a typical example of a parameterizd array … Software Development c++ | |
can i anyone know how to solve a summation problem? in visual basic? using do while? or do until? here's my code x = val(text1.text) n = val(Text2.text) c = text3.text for example if the input of x is 3 & n is 2 therefor solving of that is like … Software Development visual-basic | |
can anyone change this for next statement to do while statement? Dim x, n, i As Integer Dim Tot As Double x = Val(Text1.Text) n = Val(Text2.Text) If n <= 1 Or x < 0 Then MsgBox "Enter Proper Values", vbCritical Exit Sub End If Tot = 0 [B]For i … Software Development visual-basic | |
hi, Through VB i want to set the first 3 rows of my excel sheet as HEADER so that those 3 rows will be common header for all the pages when i print them. Regards, Dinil Software Development visual-basic | |
In a msflexgrid control , i want to give the option to the user to select a single row or a group of rows from msflex grid control the if use clickon the product_id from first msflexgrid contrl1 since this grid contains complete list of product_id it selected record should … Software Development engineering finance open-source visual-basic | |
All right, so I have a final exam due that consists of four problems. I'm currently working on the first problem. I understand the algorithm of the problems, but I am very, VERY weak with syntax and the entire C language in general. In the first problem, I just indexed … | |
Hi, I wrote two functions, FWT2_PO and IWT2_PO, both having a 'transform' method. The functions work really well, but a strange thing happens. Namely, the following code gives different output than the code below. [code=java] denoised = FWT2_PO.transform(array, 4, QMF, 2); //recovered=IWT2_PO.transform(denoised, 4, QMF); for (int i=0;i<denoised.length;i++){ for (int j=0;j<denoised.length;j++){ … Software Development java | |
Hi! I wanted to know in simple language what is an API (application program interface). I have made an address book program so can I call it an API. Help will be highly appreciated. | |
I need to know to turn off a combobox, and a trackBar! I explain, when you select an item from a combobox, I would like to disable another combobox and a trackbar in the same form ... Who can help me?:S Software Development | |
It is my final assinment to create a program similar to yahtzee. I need it to roll 6 dice visually. Allow the user to keep the dice they want to save. And after three rolls select a place to save their number value. At end of program, it should tally … Software Development java | |
hi every body,i have a question- i programing UDP server to download file,it 's work but it can serve only one client one time, how could i create a udp server that can serve a lot clients at the same time. thank you very much. Software Development client-server java | |
Write a program that implements the BinarySearchTree interface given below . The type of data stored in this tree is Integer. You are free to use any type of implementation; [CODE] public interface BinarySearchTree { public void insert(Integer data); public int size(); public int height(); public boolean contains(Integer target); } … Software Development java | |
No code from me, because I have no idea what to do! :P I'm trying to build a password generator. Hope you guys can help. Software Development | |
Hey, what does figure() and show() do? I have tried help in ipython, but I still don't understand other than my program sometimes stop when I don't use them. Software Development python | |
HI, Please help me in colourin the text frame with 2 different colours. With ppSlide1.Shapes(3) .TextFrame.TextRange.Text = "Wing PRR :Total Weight: " .TextFrame.TextRange.Font.Bold = True .TextFrame.TextRange.Font.Color = vbWhite .TextFrame.TextRange.Font.Size = 26 .TextFrame.TextRange.Font.Name = "Arial" End With "Wing PRR:" - in White colour "Total Weight" - Yellow colour Regards, Dinil Software Development visual-basic | |
sir i want if user click in combo box corresponding value should come from pquery, mquery from access database. but i am not getting the result i have put some code in combo_click but when i click in text combo box to display the last value of product_id then i … Software Development visual-basic | |
Hello, I am trying to create a basic war game. I have two classes, called Army, and Unit. Army contains an array of 10 Units: [code] public class Army { public Unit[] units; public Army() { units = new Unit[10]; } } [/code] When my program runs, an Army class … Software Development | |
[CODE]#include <iostream> #include <cmath> using namespace std; const float G = 32.17; // function declaration float caltime ( float,float, float ); float calheight ( float,float,float); // main function int main() { float theta, float cotheta, float sitheta, float distance, float velocity, float time, float height; cout << " Input the … Software Development c++ | |
I have developed a tabbed gui.I need to do some operations when the CLOSE button in the GUI is issued.I have removed OK and CANCEL buttons as I have no use with them. Can anyone please help me where can I include my code so that I can execute it … | |
[CODE]#include <iostream> #include <cmath> using namespace std; float scale (float,int) ; int main() { float num1; int num2 ; cout << "Enter a real number : " ; cin >> num1; cout << " Enter an integer: " ; cin >> num2; cout << " Result of call to function … Software Development c++ | |
[code=c++] #include <iostream> using namespace std; #define OUT(x) cout << (x) << endl; template<class T, int size> class Stack{ T arr[size]; int top; public: Stack():top(-1){} void push(T obj); T pop(); }; template<class T, int size> void Stack<T,size>::push(T obj){ top++; if(top >= size){ top--; OUT("the stack is full"); }else{ arr[top] = … Software Development c++ | |
anyone know how to add your program to start up on windows xp/vista and regardless of user admin guest or normal user...any bit of source code available will be helpful.. Software Development c windows-vista | |
Well, for the first time it seems I have stumbled onto a bug I have never been able to figure out with google. Application Type: wxPython 2.8.9.1 (Python 2.6 Version ANSI) Python 2.6 py2exe 0.6.9 Anyways, I compiled an application that uses wxPython. I then proceeded to run the application … Software Development python windows-vista | |
hi. actually i hv to read lines from a file which is getting updated at the same time( new lines are appended at the end of the file). plz suggest a way to implement it in c. thx. Software Development c | |
Ok I have everything pretty much working except for one small detail. When I do inpatient I need to display the room charges as well as the medication and labs and services. It only displays the medication and labs and services charges but in the total includes the room charges, … Software Development c++ | |
I'm learning ctypes right now and have made simple function and here is the code [CODE=python] #import ctypes module import ctypes as ct #get BOOL C++ value from ctypes from ctypes.wintypes import BOOL #Loading the DLL see: http://www.daniweb.com/forums/thread160430.html bass_dll = ct.cdll.bass #here is function description on the function """ Loads … Software Development python | |
HI ALL....all posts n posters in daniweb hv helped a lot alwayz...one more help needed...i want to know about datareports.... now i need my reports to be generated under different conditions...... it should be able to retrtieve da data as well as print if required! ive tried through many sites … Software Development visual-basic | |
Sooooo I'm writing a program that involves a lot of writing to the screen and I want to do it at bios level. Mostly because the DOS calls can't do what I want to do, and also because I'm afraid to go all out and write directly to the vram. … | |
Hi, I'm building my own simple Messenger via Intranet using WCF...but i've a little problem with sending an attachment. I attached the project to check it and here's the steps to follow in order to test the project: 1-Run the SimpleSvcHost( to run the service). 2-Run the SimpleClient. 3-choose one … Software Development | |
I'm very new to C++ I have an assignment where I have to create a calculator. Should work in console window and should allow user to enter 1st then 2nd number and then operator user wishes... In addition I have to use a switch statement. Not only that but it … Software Development c++ | |
i dont understand how to do makefile .? can u give me some exmaple how to makefile for this code.and where to add the make file ...im using devC++ and vb2008 [code=cplusplus] //file for GradeBook.h #include <string> using std::string; // GradeBook class definition class GradeBook { public: GradeBook( string name … Software Development c++ | |
Hi all, 1. In C++, how can we print "Hello World" say 100 times witout using any loops (for, while/do while, for_each or recursion)? 2. I need to make a Base class underivavle. Could somebody tell me why "virtual" keyword is necessary in following code snippet? [code=cplusplus] #include <vector> #include … Software Development c++ | |
giving me error when compiler run the query i thing the only thing which is messing is the check box yes/no i don't know how to store the check box state into the table field... please find me the solution... thank you [CODE]Private Sub Chop_it_Click() Dim sql_val As String Dim … Software Development visual-basic | |
Ok, i'm trying to make two player, no-network pong. i don't know what the problem is, there are some very strange things happening... at the beginning of the program i try to set a y value to half the height, but it doesn't it stays at y=0 when the user … Software Development java java-swing |
The End.