132,726 Archived Topics
Remove Filter ![]() | |
Hello, in my game I am wanting to move my character and shoot a projectile simultaneously, but I need the projectile to emit from the character. Thus I am using the same variable for starting positions of character and projectile. When I shoot projectile, it goes from player to wall, … Software Development c | |
Hi group, Within one form, I need to run a routine twice. Obviously, I can write the code twice in the two places it needs to run. Isn't there a way to write the routine one time and the call it in two places within the form? Would this be … Software Development vb.net | |
Writing an upgrade to my program I'd like to start using the nullptr, a cleaner replacement to NULL. My question is can I use it everywhere, for example in checking the strstr return value? if (strstr(szLong,"tag") == nullptr) Presumably will work as well as if (strstr(szLong,"tag") == NULL) ? Software Development c++ | |
So I wrote a small little tic tac toe game, it works without fail, now I'm just looking at ways to shorten this if/else conglomerate I've created, but so far haven't thought of a way to do so, I thought about using a switch but thought it would be about … Software Development c++ | |
So, When I assemble this code, I get no errors. It flies through the build. However, when I go to execute this code, it does not display the window. I am unsure of why. I have tried invoking messageboxes at the start or WinMain, but it seems it's not getting … Software Development assembly | |
what is the meaning of `fseek(file, -4, SEEK_CUR);` | |
Hello everyone. I'm trying to do simple app that has a listview, listview is populated with info from json file. 20 items downloaded at a time. And when user is scrolling to the bottom next 20 items are loaded. Problem is when my app loads next 20 items the scrollbar … Software Development android-development java json listview | |
Hi there, I'm encountering an error when I'm trying to make a EntityManager for an Entity class. My problem arises when I'm trying to return the second value of a map (data). Here's my code: EntityManager.hpp: #include <iostream> #include <SFML/Graphics.hpp> #include <map> #include <memory> #include "CEntity.hpp" class CEntityManager { public: … Software Development c++ | |
I'm getting an error for using a variable before it's assigned a value, but, I'm not sure why. Imports System.IO Public Class Form1 Dim colWeather As New Collection Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Add listbox items upon form load. With lstAltitudes.Items .Add("03000") .Add("06000") … Software Development vb.net | |
![]() | Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once … Software Development algorithm c++ programming-construct ![]() |
**I am Proggraming in python however i have come to a slight glich which i cannot solve! The issue is that when it prints out in a text files it only prints one line of the whole ouput! Otherwise it works! Please i need help to make this work! ** … Software Development python | |
Hi, just wondering... is there a site offering some sort of c++ programming mentoring? Something like: make this programme... how would you do it? and then people writing code for it. Would that be a feature for DANIWEB? | |
hi as you may notice i am new here so hi nice to meet you:).. uhhhmmm please help me on a project i'm working on about insertion using linked list my problem is on line 19-20 I can't seem to make it work,, when you type 9 7 6 4 … Software Development c++ linked-list ![]() | |
Why can't I implement the static function (static void fction(Stuff S)) inside of Main If I cut and paste the function outside of main, the program compiles and works fine. When the program runs I get the output: "Monkey1: chocolate" using System; using System.Collections.Generic; namespace Empty { public class Stuff … Software Development | |
Hi, I am trying to write a python func. which can replace nth occurance of any substring present in any string. For example: main_string = "badZZZZZZZZZZZZZZZZZZbadZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ" If I wanna replace the 2nd occurance of string "bad" with 'good' i will pass customreplace(main_string,'bad','good',2) So the Function should return badZZZZZZZZZZZZZZZZZZgoodZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ I have … Software Development python | |
I have a h file with this code: #include <windows.h> #include <iostream> struct Color { int color; Color(int color_): color(color_) {} Color operator + (const Color & other) const { return Color(this->color | other.color); } }; #define FORE_LIGHT(color) const Color cfl##color##_ = FOREGROUND_##color | FOREGROUND_INTENSITY; #define BACK_LIGHT(color) const Color cbl##color##_ … Software Development c++ | |
m not able to add .dll file as refernce in c#.net as it is developed by me only..it says error "please make sure that the file is a valid assembly or com component". plz help me tu du d need ful...plz plz plz..its urgent Software Development assembly | |
hi i have write this code for upload pdf to Sql DB : private void uploadPDFFiles() { string filetype; string filename; filename = uploadFilesLinkTextBox.Text.Substring(Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf("\\")) + 1, uploadFilesLinkTextBox.Text.Length - (Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf("\\")) + 1)); filetype = uploadFilesLinkTextBox.Text.Substring(Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf(".")) + 1, uploadFilesLinkTextBox.Text.Length - (Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf(".")) + 1)); MessageBox.Show(filename + " " + filetype); //Validate user upload … Software Development c# file-system pdf | |
'I am working on a dictionary project for word meaning search which is written in VB10.net . it contain around 8,000 pairs of word and meaning. 'When i run, it loads perfectly but when i click on the search button it start "Not responding" for around 30 seconds. Then it … Software Development vb.net | |
How to check an item already entered in a listview if i am entering data from a combo box from both tables for an id as value member...I mean there is both software id and asset id that can be added mixed in the listview based on the group.... | |
Hi, I have some questions about type check warning. I am reading the tutorial notes from [Click Here](www.clear.rice.edu/comp221/html/pdf/03-arrays-pointers.pdf) CASE 1 int int1 = 1036; /* some data to point to */ int int2 = 8; int *int_ptr1 = &int1; /* get addresses of data */ int *int_ptr2 = &int2; *int_ptr1 … | |
Hi I have 3 textbox linked to an Access DB by Binding source.I am having trouble to do query. Lets me help u visualise the form The form has 3 textbox (each linked to one field of a table in Access) Another textbox allows user to enter a string and … Software Development vb.net | |
Been at this for hours and cannot figure out how to get this the way I want. I need it to center the text in the console output like this... ******************************************* ABC Industries Report ******************************************* instead its coming out like this.. ********************************** ABC Industries Report ********************************** Here is what I … Software Development c++ | |
![]() | I'm not sure if I'm freeing the memory correctly. I have the following struct and I'm trying to free the pointer in it. typedef struct RECORD { char* name; int score; }RECORD; In my main function I have an array of this struct, therefore I'm using a loop to free … Software Development c motherboards-cpu-ram ![]() |
With VB.NET, I'm developing an application that uses a MYSQL database. When I will deploy the application to another PC, the app and the MYSQL database will reside in difference computers. What I'd like: After I install the app to a PC, when it first run, I want it to … | |
I have a **digital photo viewer keychain** by some company called **INNOVAGE**. I searched about it online but I can't find its webpage anywhere. The CD which came with it is empty and the device does nothing other than showing **"updating"** while connected to the PC. It doesn't even start … | |
![]() | hi im a noob in vb and i need some help i want to read from the files teachers code and from the file studentscourse bu i only want to get the results if fileds(1) of teacherscourse is equal to the loggin basicly i a teacher to enter his Teacher … Software Development vb.net |
Hey everyone, Im having trouble with the placement of GUI components and need you help getting the things in the right place. The problem is on the left side where the elements are all misplaced including: The JMenuBar - should be up against the left wall JLabel "content for..." - … Software Development gui java java-swing | |
Write a C++ program that reads two numbers at a time representing the diameter and its frequency. Then calculate and print the mean diameter.Use a for loop. Software Development c++ | |
First, I would thank all the Daniweb team for making this useful site available for us. I'm developing with mysql database. I always declared the details about the database I use at the top of every form. I mean, the database name,username,password and everything about it. We know this will … Software Development vb.net | |
Hi I have a dataset created programatically and I want to use this dataset to bind it to Microsoft ReportViewer. I tried the Microsoft ReportViewer with DataSet created at design time and it works well. I have searched a lot and this is the best thing I can find but … Software Development database-design dataset vb.net | |
hi guys, sorry to pester you all again. im having a problem trying to show the hidden main form, any ideas? becuase only way i know hpw to do it (in C#) is to create a new form, but then that loses my data cheers Software Development | |
I am making a battleship game with 2 boards, each is on a JFrame, but I do not know how to get them to close when a button is pressed in order to show the new one. package battleship; import java.awt.Color; import java.awt.GridLayout; import java.awt.Toolkit; import java.awt.event.WindowEvent; import javax.swing.JButton; import … Software Development java java-swing linked-list | |
pls someone should help me to format the date_made and date_expired on my form's datetimepickers to "dd/MM/yyyy" date format.See the code below: Dim listofdrugs As New List(Of Drug) For Each ListItem As ListViewItem In lvDrugs.Items 'change list item and subitems to drug Dim newdrug As New Drug With newdrug .drug_id … | |
I thought it would be really cool if JOptionPane could be extended to accept an array of strings that represent messages, and have the method return an array of strings that represent user answers to the messages which are entered into the dialog box. This would make getting GUI input … Software Development gui java java-swing | |
Hi Guys, I would like to know of any way avaliable to Import / Convert Vb6 Projects to Vb10 Project. It would be very helpful to me because it is a large program which has too much of coding which I cannot redo in the Vb10. Any post would be … Software Development vb.net visual-basic | |
I am kinda bord and dont know what to write. I have lerned the basics of strings, references, pointers, file I/O, classes, enums (simple error functions). Also some basic exceptions. And ofcourse all the other basics of chars, ints... So what are some cool "mini" project that i couldd work … Software Development c++ | |
I have this code: #include <stdio.h> int create_logfile(char *name, char *field, char *joindate) { FILE *ofile; ofile = fopen("test.txt", "a+"); if(ofile == NULL) return 1; fprintf(ofile, "%s\t%s\t[%s]\n", name, field, joindate); fclose(ofile); return 0; } int main() { char name[100], field[100], joindate[100]; printf("Name: "); fgets(name, sizeof(name), stdin); printf("Field: "); fgets(field, sizeof(field), … Software Development c | |
I am getting an error when i try to compile this code int StartProgram(string sProgramName){ ShellExecute(NULL, NULL, sProgramName, NULL, NULL, SW_SHOW); } Software Development c++ | |
I am trying to write a basic link list, so that I can understand how to implement it in C++. The tutorial I read was extremely advanced (giving more code than needed to understand and not explaining really how). So i tried to write this simple linked list: #include <iostream> … Software Development c++ linked-list | |
I am trying to do something like this: public Boolean CheckLogin(String accNumber, String pin) { String checkAccNumber; String checkPin; String line; String[] splitedLine; StreamReader sr = new StreamReader(FILE); while (line = sr.ReadLine()) { splitedLine = line.Split(' '); checkAccNumber = splitedLine[0]; checkPin = splitedLine[1]; if ((checkAccNumber == accNumber) && (checkPin == … Software Development c# | |
Hi there! What I am used to declaring database connection is that in every form I type the codes for it which is a tiring way. Now, I want to use module instead but I really don't know how. And also, how will I call the connection to every forms … Software Development vb.net | |
Task 1 This assignment will consist of writing a couple of small programs that involve practice writing Filename: Seconds.java In a class called Seconds: 1. Write a method called toSeconds that takes in three integer parameters (representing hours, minutes, and seconds) and returns the number of seconds since the last … Software Development java | |
Hello everyone, I'm trying to implement qsort on a struct with the double as a pivot: typedef struct{ char sequence[9]; int occurance; double prob; }tuple; ...... int compare (const void *x, const void *y){ if (x < y) return -1; if (x > y) return 1; else return 0; } … Software Development algorithm c programming-construct | |
hi friends i have made 1 application in c#,,,,,,,,,,,,,,,it has lot of loop so when it are doing process in loop my window application form hang and dumb so i cant access any button of form ???????????????????????? how can i solve it ???????????????????????????????????? Thanks in Advance Software Development c# | |
For my Optics course, we need to write a program that will take a certain input, perform a matrix computation, and output a system matrix. The program also needs to check for nonsense input and be able to "be adjusted" for any amount of matrix elements. I took a course … Software Development c++ | |
Is there any way I can place a video in a JFrame/JPanel? Can someone point me to a tutorial, I can't find anything useful through Google. | |
I want to create xml file using asp.net c#.xml file have multiple paragraph. I upload document it split into multiple paragraphs. And then fetch into aspx page. Software Development xml |
The End.