132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tyler.dahle

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
Member Avatar for tyler.dahle
0
167
Member Avatar for Papa_Don

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
Member Avatar for tinstaafl
0
286
Member Avatar for owenransen

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++
Member Avatar for Tumlee
0
700
Member Avatar for Xecantur

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++
Member Avatar for Xecantur
0
175
Member Avatar for Echo89

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
Member Avatar for GunnerInc
0
248
Member Avatar for otengkwaku
Member Avatar for otengkwaku
0
384
Member Avatar for Nomorewine

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
Member Avatar for Nomorewine
0
141
Member Avatar for Terminator1337

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++
Member Avatar for Terminator1337
0
192
Member Avatar for dusto

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
Member Avatar for tinstaafl
0
177
Member Avatar for Griff0527

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
Member Avatar for Griff0527
0
534
Member Avatar for asim.poptani

**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
Member Avatar for woooee
0
271
Member Avatar for freelancelote

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?

Software Development c c# c++
Member Avatar for Lynqu2
0
147
Member Avatar for iPwn.Line

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
Member Avatar for Griff0527
0
282
Member Avatar for treasure2387

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
Member Avatar for ddanbe
0
177
Member Avatar for debasishgang7

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
Member Avatar for bumsfeld
0
6K
Member Avatar for Catchamouse

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++
Member Avatar for Ancient Dragon
0
206
Member Avatar for yudi2020

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
Member Avatar for tinstaafl
0
138
Member Avatar for IT_Techno

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
Member Avatar for IT_Techno
0
4K
Member Avatar for joramkaku

'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
Member Avatar for tinstaafl
0
326
Member Avatar for korathualex

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....

Software Development asp.net listview
Member Avatar for tinstaafl
0
239
Member Avatar for kw42chan

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 …

Software Development c pdf
Member Avatar for owenransen
0
194
Member Avatar for treasure2387

Hi, There is a concept I haven't seen before. I can understand what is happening. But I don't know what this is. It is not a class. It is not a method. What is it? Maybe I know it, but i've been on my PC all day... public DateTime Date …

Software Development
Member Avatar for ddanbe
0
127
Member Avatar for Khav

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
Member Avatar for ansumariyam88
0
1K
Member Avatar for iEpic

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++
Member Avatar for tinstaafl
0
141
Member Avatar for JE821

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
Member Avatar for JE821
0
294
Member Avatar for savedlema

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 …

Software Development app-store vb.net
Member Avatar for Reverend Jim
0
351
Member Avatar for nmakes

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 …

Software Development assembly c++
Member Avatar for nmakes
0
556
Member Avatar for grgrl

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
Member Avatar for Reverend Jim
0
190
Member Avatar for milkman93

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
Member Avatar for milkman93
0
197
Member Avatar for ahmed.m.alshammari

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++
Member Avatar for <M/>
0
97
Member Avatar for savedlema

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
Member Avatar for savedlema
0
183
Member Avatar for samir_ibrahim

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
Member Avatar for savedlema
0
1K
Member Avatar for Sammys.Man

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
Member Avatar for TnTinMN
0
187
Member Avatar for Nandomo

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
Member Avatar for Nandomo
0
267
Member Avatar for samuel terngu

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 …

Software Development listview vb.net
Member Avatar for tinstaafl
0
1K
Member Avatar for overwraith

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
Member Avatar for overwraith
0
2K
Member Avatar for yuvjeeth

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
Member Avatar for Reverend Jim
0
383
Member Avatar for MasterHacker110

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++
Member Avatar for MasterHacker110
0
158
Member Avatar for MasterHacker110

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
Member Avatar for MasterHacker110
0
219
Member Avatar for MasterHacker110

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++
Member Avatar for MasterHacker110
0
4K
Member Avatar for MasterHacker110

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
Member Avatar for MasterHacker110
0
189
Member Avatar for MasterHacker110

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#
Member Avatar for MasterHacker110
0
342
Member Avatar for pixma

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
Member Avatar for savedlema
0
2K
Member Avatar for sharmeen.batool

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
Member Avatar for JamesCherrill
0
136
Member Avatar for Kirielson

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
Member Avatar for deceptikon
0
703
Member Avatar for Sammys.Man

hi guys, i have a piece of code i wrote in VB (login system) and it works great, but i want to have the same code in C# but i can't seem to get it to convert, does anyone know how to do this? many thnaks

Software Development c#
Member Avatar for Sammys.Man
0
148
Member Avatar for hassan12345

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#
Member Avatar for sumoncse05
0
1K
Member Avatar for A Tripolation

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++
Member Avatar for A Tripolation
0
252
Member Avatar for Nandomo

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.

Software Development java video
Member Avatar for Ezzaral
0
196
Member Avatar for Thirumuruganp

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
Member Avatar for Thirumuruganp
0
178

The End.