132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jim_11

I am doing an application in c# and in my application I am opening some exe file like MS word, calculator so when I open the application and then I hide it I would like to create a sort of shortcut in the app so that when I click on …

Software Development c#
Member Avatar for ddanbe
0
446
Member Avatar for Jeff-Bennett

I'm looking for a way to get the coordinates of a polygon offset x pixels within a known polygon. This seems to be a non-trivial problem, but I thought of a trick - What if I have the original polygon drawn by Windows with a thick line, the inside edges …

Software Development vb.net visual-basic
Member Avatar for Stagnant
0
503
Member Avatar for V3N0M

Hi guys I am looking to go through C then transition to C++ later this year. I am having a minor problem with switch statement and I am not in a position to ask anyone as there are no tech savvy that I know. So I thought it was better …

Software Development c c# c++
Member Avatar for V3N0M
0
338
Member Avatar for Violet_82

HI guys, as my next application I thought I'd build a simple converter, something that allows me to convert from, say, Km to miles and so on. The framework I will use is vaadin (unfortunately) but it will still be java anyway :-). So, I just thought I'd see if …

Software Development gui java
Member Avatar for JamesCherrill
0
1K
Member Avatar for badkid32

I'm trying to write a basic program for a C++ lab for class, and running into some trouble. Senario is that the program averages grades. A user enters the number of grades, then enteres a letter grade, then the program runs for however many grades the user has, then averages …

Software Development c c# c++
Member Avatar for Xavier_3
0
11K
Member Avatar for tayeb d

int* poly = new int[lines.size()]; for(int i=0;i<lines.size();i++)poly[i] = - 1; int curPoly = 0; vector<vector<cv::Point2f> > corners; for (int i = 0; i < lines.size(); i++) { for (int j = i+1; j < lines.size(); j++) { cv::Point2f pt = computeIntersect(lines[i], lines[j]); if (pt.x >= 0 && pt.y >= 0&&pt.x<img2.size().width&&pt.y<img2.size().height){ …

Software Development c++ python
Member Avatar for rproffitt
0
995
Member Avatar for Jose_12

#include <ctype.h> #include <stdlib.h> #include <stdio.h> #include <string.h> char c; { char text[1000]; FILE *fp=fopen("filename", "r"); int i=0; while((c=fgetc(c))!=EOF) { do something } }

Software Development c
Member Avatar for deceptikon
0
178
Member Avatar for Simple man

Hi i am new to cpp i have created a win32 project in visual studio but i need to read a xml file with ms xml the xml file <game> <id="g"> <name>gta</name> <ver>1</ver> </id> <id="x"> <name>mta</name> <ver>5</ver> </id> </game> please answer

Software Development c++ visual-studio xml
Member Avatar for Simple man
0
860
Member Avatar for Jayvis

I am new to java and trying out a question but I have no idea why it can't calculate my commission public static void main(String[] args) { Scanner keyboard= new Scanner(System.in);// input form keyboard double retail_price; double emp_num; char trans_code; double a =0.06; double b = 0.08; double commission; System.out.println("Please …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for oresnik

Hi guys. I'm working on my school project. My asigment is to make a piano game. The program works fine but my work stopped when i came to a problem. I would like to put the integers, which i get from pushing the specific JButton, into an array. For example …

Software Development java java-swing
Member Avatar for Shaun_4
0
2K
Member Avatar for Haroon_4

I am designing an application in Java and it requires networking and for that I am using a framework called Kryonet, now I've been able to learn how to send packets and connect, etc, but I'm still not sure how I would handle logging in. The user would need to …

Software Development client-server java
Member Avatar for jwenting
0
219
Member Avatar for VIPER5646

Hi all I'm new using LinQ. Im having Specified Cast not Valid in this Function. Hope someone let me know what I'm doing wrong. this is the Function Private Function GroupedBy() As DataTable Dim Sales As New ds_Sales_OELI Dim dt As DataTable = Sales.Not_SCheduled GroupedBy = New DataTable Dim dr …

Software Development asp.net vb.net
Member Avatar for VIPER5646
0
1K
Member Avatar for dyingatmidnight

Hello, I've been in the process of teaching myself C++, going through different tutorials and like. Anyway I was working on a fibonacci sequence program - I looked through the practice problems here and decided to do them all from beginner on upward. I thought I had it working only …

Software Development c++
Member Avatar for Jimmy_7
0
213
Member Avatar for Glitz_1

how to loop the auto calculation in data grid view column example : 14 32 32 64 11 75 15 90 the calculation is 32 + 32 = 64 64 +11 =75 ok.. now the problem is what if i edit the first column number 32 to 30 and the …

Software Development vb.net
Member Avatar for rproffitt
0
390
Member Avatar for Hans_1

Hi Fellas , please am building a vb application to automatically detect modems and connect it to the internet. A simple form with a combobox to list the detected modems,a label to display it when it is connected to the internet and a button to connect the modem... This is …

Software Development vb.net
Member Avatar for rproffitt
0
631
Member Avatar for Ben_20
Member Avatar for cc

I have a stock system where you can add a item to the system, increase the amount of different items, decrease the amount of different items in a system and completely delete an item from the system. What I am trying to do is when the user inputs the name …

Software Development java
Member Avatar for Ghost_Buster
0
759
Member Avatar for Crazyscript77

Hi all, I have been trying to use python to automate a sequence of processes on my computer, one of which is starting a hosted network. I have used subprocess to interact with command prompt (windows 10), and am struggling to pass sequential commands. I am trying to first send …

Software Development python windows-10
Member Avatar for Gribouillis
0
11K
Member Avatar for Calvince

Hello!!!! I am a novice programmer though, I am trying to code a vb 6.0 system that calculates total marks from the exams done and return the output. I only know the simplest way of addition, but I want the way to compute total by taking only the exams taken …

Software Development visual-basic
Member Avatar for Minimalist
0
219
Member Avatar for can-mohan

Hi, I need to make sure my integer variable doesn't store more than 2 bytes. Usually i am writing programme on Linux machine where integer size is 4 byte. Each byte can take the values 0 through 255 (=2^8-1). So, two bytes can take the values 255*255=65535, so would it …

Software Development c c++
Member Avatar for AssertNull
0
523
Member Avatar for anisha.silva

hi, I have an excel sheet and the is a row filled with data the row starts from B5 everytime, what i want to do it to read the values of the cell until the row comes to an empty cell how do i do it, thanks appreciate a reply, …

Software Development microsoft-office visual-basic
Member Avatar for tinstaafl
0
14K
Member Avatar for surfingturtle

#include <iostream> #include <cstdlib> #include <new> using namespace std; void memwarning(); void* operator new(size_t, int); void operator delete(void*); int main() { char*p = new('$')char[100]; //Query 4b cout<<endl<<"First allocation: p = " <<hex<<long(p)<<endl; // Query 1 for(int i=0;i<100;i++) cout<<p[i]; cout<<endl; delete p;// Query 2 p=new('*')char[64000u]; // Query 3 delete p; return …

Software Development c++
Member Avatar for surfingturtle
0
248
Member Avatar for Trle94

Hello everyone. So I've been working on an small tool, that is using httpwebrequests, its not a bad so far I've got login function and list view loading data from site. But problem is now cookie container so i can do other things than just loading, like editing data. Uri …

Software Development c#
Member Avatar for pritaeas
0
233
Member Avatar for malatamil

file read and compare with array values and remove the row values from file fopen("sample.txt",'rb'); read the first column content from file and compare with array value,if it matches then remove the entire row from file.

Software Development file-system php
Member Avatar for pritaeas
0
248
Member Avatar for Matthew_15

I am trying to have a textbox set up where multple texboxes are used in teh layout of a table, each one as a seperate box in. (I havn't got the exact size figured out yet but for the sake of testing i've been usieng a layout of 2 rows …

Software Development vb.net
Member Avatar for Reverend Jim
0
152
Member Avatar for Suzie999

Hi all. I've had a good look around for info, and come up short. Does anyone know of a way to get the thread id under which a service is running, from either safehandle or unsafe handle properties of the object? wmi with Win32_Service does not appear to provide it, …

Software Development
Member Avatar for Suzie999
0
669
Member Avatar for Hi-Tone

Hi all, I trying to add two matrices together using a typedef struct, but i seems to get an error doing this. I asked my professor, but he couldnt help me. Is there anyone who might know why this problem is caused? Thank you so much! Code: /* Structures */ …

Software Development c
Member Avatar for Akbar_5
0
3K
Member Avatar for Jollyyy100

Is there any way possible to display a slideshow of pictures on a vb 6 form? What steps are required? Thankyou

Software Development display visual-basic
Member Avatar for Supermike
0
2K
Member Avatar for Azim_1

Hye I'm new to c++ language. Can anyone suggest me what is the best programming software should I learn ? And how I'm gonna learn coding ?

Software Development c++ python
Member Avatar for rubberman
0
294
Member Avatar for Maikel

Hi guys, I'm new to Python have get done a lot by searching. Now I try to bind a scroll wheel to canvas, but it doesn't do anything. Will someone look at the code what I do wrong? I tried to keep my snippet clean. Hope It's enough. class Viewer(tk.Toplevel): …

Software Development python tkinter
Member Avatar for rproffitt
0
789
Member Avatar for Sushma_2

write a programme in visual basic to create anarray of size 5 to store any 5 names and display them

Software Development visual-basic
Member Avatar for rproffitt
0
236
Member Avatar for vegaseat

A short example of Pygame showing an image with a known internet url.

Software Development display image python
Member Avatar for Alexander_10
0
7K
Member Avatar for Mr.M

Hi Guys. First of all is it possible to detect a file copying/moving within the system, I'm sure this is done in lower languages like C++ but I've tried searching but I don't seem to find not even en example, maybe it because I don't know how it correctly called. …

Software Development c++ file-system vb.net
Member Avatar for pritaeas
0
1K
Member Avatar for Zach_2

Whenever I go to transfer a file from my server to my client, I get a new file, but the data does not go through. It prints server side once it is open, but it won't transfer the data to my new file. Here is the code:https://gist.github.com/anonymous/8f70b3e2eca8606dee2c245ce64e9b63 All I want …

Software Development file-system github python
Member Avatar for Gribouillis
0
288
Member Avatar for Ed Genes

I have a program that runs a bank management.It saves the created accounts in account.dat. For example these are the contents of the data file: 1001 felisilda s 5000 0002 smith s 3000 1212 johnson c 3200 I want the output to be sorted increasingly based on the bank account …

Software Development c++ ios
Member Avatar for AssertNull
0
370
Member Avatar for Alif_2

Here is my text file : > 1 SPRITZER 999 2.500000 > 2 PENCILBOX 999 20.000000 > 3 IPHONE 90 20.000000 > 10 GUNNAROPTIK 1919 200.000000 The program let the user enter productID. Listed as 1,2,3,4. And delete the whole line. I'm currently testing it in main function only. And …

Software Development c file-system iphone
Member Avatar for AssertNull
0
265
Member Avatar for Chisanga_1

Where do I start creating a face recognition program? I am a beginner in the programing world who only knows little about c++. What do need to consider or what I have in place. I am running of windows pc and using devc++ and Mingw compilers.

Software Development c++
Member Avatar for Traevel
0
297
Member Avatar for Mr.M

Hi Guys. I'm trying to suspend a process by it name, but I found the sample that demontrate this using ProcessId. The problem is that I don't know the process ID of the process I want to suspend/resume. [Here is a sample I used.](https://social.msdn.microsoft.com/Forums/en-US/cdde6cef-3971-40a6-b4dd-02db963868ce/suspend-an-application?forum=vbgeneral)

Software Development microsoft vb.net
Member Avatar for Mr.M
0
577
Member Avatar for Mr.M

Hi Dw. If there is anyone who knows how and which languagies are used to develop software's like word processing, Excel, Access, basically things like Office suite. I know Linux has their own different tools for office, as well as Microsoft as well and other OS have different Suites for …

Software Development c c++ microsoft vb.net
Member Avatar for rubberman
0
199
Member Avatar for Usman_10

inheritance error is::Error 1 Inconsistent accessibility: base class 'person' is less accessible than class 'employee' using System; using System.Collections.Generic; using System.Linq; using System.Text; //person class public class person { public string name; public double CNIC_no; public void Information() { Console.WriteLine("Enter your name"); name = Console.ReadLine(); Console.WriteLine("Enter your id"); CNIC_no =double.Parse( …

Software Development c# oop
Member Avatar for pritaeas
0
251
Member Avatar for Suzie999

Hi all, hope you are well. I'm trying to make my code as efficient as possible, and currently regarding logic I have a question. Is there a way, in the following single "if" query, to determine which of the conditions are true? if (mystring.Contains("left") || mystring.Contains("right")) { //which is it …

Software Development
Member Avatar for JamesCherrill
0
311
Member Avatar for Vusumuzi

Imports System.IO Public Class AddEMForm Private Sub CreateCSVfile(ByVal_strCustomerCSVPath As String, ByVal EName As String, ByVal Edate As Date, ByVal ELoc As String, ByVal EDis As String, ByVal EFee As String) Try Dim stLine As String = "" Dim objWriter As StreamWriter = File.AppendText("..\..\EventData.txt") If File.Exists("..\..\EventData.txt") Then objWriter.Write(EName & ",") objWriter.Write(Edate …

Software Development
0
121
Member Avatar for Suzie999

Hi. I invoke method from other thread which did not create ui. Appears to work well... DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR))); But I need return value from Add method, so I do... int Index = (int)DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR))); Unfortunately I get an error... "Object reference not set to an instance of an …

Software Development
Member Avatar for Suzie999
0
231
Member Avatar for ice_3

Code: do{ cout<<"No. of random numbers (-10-10): "<<endl; cin>>howmany; if(howmany<1 || howmany >50) cout<<"INVALID INPUT"<<endl; }while (howmany<1 || howmany>50); cout<<endl<<endl <<"The "<<howmany<<" random numbers from 1-50 are :"<<endl; srand(time(0)); for (ctr=0,negativectr=0,positivectr=0; ctr<howmany; ctr++) { randnum[ctr]= rand() % 50-1; cout<<randnum[ctr]<<"\t"; if (randnum[ctr] % 2 ==0) { positive[positivectr]=randnum [ctr]; positivectr++; } else …

Software Development c++ web-design
Member Avatar for AssertNull
0
321
Member Avatar for yawar260

Hi,my name is yawar i am a student learning c#.I have combobox,when i select an item in combobox there comes data which i want to display on labels,but my problem is there comes many data,i want to display only 3 labels when only 3 data rows comes from database and …

Software Development
Member Avatar for Santhosh_3
0
276
Member Avatar for Chris_38

Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.

Software Development c c++ java
Member Avatar for rproffitt
0
292
Member Avatar for Kersten

Hello ,I'm writing a GUI with C Win32 API and facing following issue. When I start the program and click the button for Opening the file dialog everything works fine. I can choose a file and all informations seem to fit properly into the ofn structure. If I choose to …

Software Development algorithm api c gui
Member Avatar for Kersten
0
585
Member Avatar for Kersten

Hello, this question is related to an older post of mine ([Click Here](https://www.daniweb.com/programming/software-development/threads/505499/getopenfilename-freezes-at-second-execution)). In this question i stated that my program freezes at the execution of GetOpenFileName. After struggeling a while with that problem and doing other more important stuff first, i came back to the original problem and found …

Software Development algorithm c c++ gui
0
220
Member Avatar for Esmatullah

Average:96.1429Your Total Marks are673and Marks Per Subject is96.1429

Software Development c++
Member Avatar for rubberman
0
327
Member Avatar for FakeTales

Hey i have a basic game which requires a client to guess the number which is located on the server side, mutliple clients can access the same game. The client sends their guess this in turn passes to a middleware server then this then goes to the end server. If …

Software Development c c# c++ client-server regex
Member Avatar for Arman_5
0
531

The End.