132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lithium112

Hello, I have spent a good long time looking at solutions on the web and can't seem to find any solution to fit my situation. What I'm trying to do is grab 2 specific columns in my datatable with LINQ. Here's a couple things that I have tried: var query …

Software Development
Member Avatar for lithium112
0
1K
Member Avatar for hor3045

Hello, How woud I convert String to Integer using arguments from command line? I am stuck, and no idea where to start. Thanks.

Software Development c
Member Avatar for hor3045
0
603
Member Avatar for anumash

Hello all! I am having difficulty understanding why the range of signed integers is from -128 to +127? Assuming the size of the register is 8 bits and the leftmost bit is reserved for sign shouldn't the size be -127 to +127. I figured that for the negative values the …

Software Development c
Member Avatar for anumash
0
216
Member Avatar for PK.AMRAV

My coding shows error when built and run. The error shows multiple definition of 'main'. Can someone help me what I did wrong here? #include <stdio.h> int main() { FILE *fPtr; int c; fPtr=fopen("C:\\Question1.txt","r"); c = getc(fPtr); while (c!=EOF) { putchar(c); c=getc(fPtr); } fclose(fPtr); return 0; }

Software Development c
Member Avatar for deceptikon
0
246
Member Avatar for dhatsah

I have a form where the user can select an image (via a file dialogue) of any size which is then previewed in a pictureBox sized at 150px by 150px with the sizeMode of the pictureBox set to zoom any space that is then not occupied by the image is …

Software Development asp.net image
Member Avatar for Fenrir()
0
366
Member Avatar for Deep Modi

Actually I have an learning program. in which there are some pics and text related to it with different topic. I also have youtube a/c and in it there are videos related to it. now I am facing problem. 1.) I can not add all the video in my program. …

Software Development vb.net video
Member Avatar for Mr.M
0
224
Member Avatar for Suzie999

I have been working on a project with selenium 2 webdriver for a few weeks. I got to a milestone and decided to compile my project in release mode and test the executable. Thing is, it crashes if I try to run it from the release folder (or anywhere else …

Software Development
Member Avatar for Suzie999
0
397
Member Avatar for eromeroma

Hi everybody: I need help to know how can I draw at runtime in a web page (aspx), a shape over a picture, just like tag somebody in Facebook. ¿Which are the tools I need to do this? I prefer VB .Net but any idea is welcome. Thanks

Software Development social-media vb.net
Member Avatar for Mr.M
0
208
Member Avatar for EDWIN_4

Hello, in which senario do we normaly use this (*args,**kwargs)type of arguments in python.

Software Development python
Member Avatar for snippsat
0
150
Member Avatar for dd2308

Hello,In my windows application , I am loading a form having datagridview. First i bind this datagrid to database than i try to change particular link cell based on certain condition. int key = 0,CountCheck; string CheckSql; try { foreach (DataGridViewRow dgr in dataGridView1.Rows) { key = Convert.ToInt32(dgr.Cells["id"].Value); CheckSql = …

Software Development c c# c++
Member Avatar for ChrisHunter
0
762
Member Avatar for EarhawkPH

Okay, i've done atleast 4 programs. The problem is, how do i combine them using switch? TBH, switch is kinda confusing... Here's the kind of output i want: press [1] for program1 press [2] for program2 press [3] for program3 press [4] for program4 *Program Here* Do you want to …

Software Development c
Member Avatar for dinad578
0
778
Member Avatar for Mohamed_37

this is my code : #include <stdio.h> #include <stdlib.h> int main(){ FILE *fp; int i,n; char task[ 30] ; char filename[ 30]="c:\\out.c"; fp =fopen(filename,"w"); if(fp != NULL){ printf("Enter number of tasks for today!\n"); scanf("%d", &n); for(i=0;i<n;++i){ printf( "Enter tasks for today!\n"); scanf("%s",task); fprintf(fp,"%s\n",task); } fclose(fp); printf("\nDone!"); }else{ printf("couldn't open the …

Software Development c
Member Avatar for dinad578
0
277
Member Avatar for ashiselma
Member Avatar for dinad578
0
377
Member Avatar for krunal1986

Hi, I want to convert my word file to pdf file in vb6. source code will be appreciated. so far, i have tried with below code also. Private Sub Convert_WordDoc_to_PDF(DocPath As String, sDestsPDFFile As String) 'Dim worddoc As New Word.Application Dim worddoc As Object Set worddoc = CreateObject("Word.Application") Dim x …

Software Development file-system open-source pdf visual-basic
Member Avatar for Vidya Sagar
0
5K
Member Avatar for xxmp

hello i would like to charge a user using paypal or any other way you think that is better but i want when i charge the user i want to update my database. the application is in jsf any suggestion how i implement the solution? that you very much

Software Development java
Member Avatar for ashleywoodliff
0
212
Member Avatar for sahil_4

Suppose we are given an array a[10] such that it contains both even and odd numbers. We have to move the even elements to another array say b[10] and odd elements(numbers) to array c[10]. the numbers in array are to be entered by the user which means we do not …

Software Development c++
Member Avatar for pritaeas
0
136
Member Avatar for Raymond_5

public class Receipt public static void main (String[] args) { // Calculate total owed, assuming 8% tax/15% tip System.out.println("Subtotal:"); System.out.println("int.Subtotal:=108"); System.out.println("Mystring = Mystring.Replace(38+40+30,Subtotal)"); System.out.println("Tax and Tip:"); System.out.println((("Subtotal")*.08)+(("Subtotal")*.15));) System.out.println("Total:"); System.out.println("Subtotal"+("Subtotal")*.08 +("Subtotal")*.15); } } On line 10 it's giving me the ; expected error but when i put it in it gives …

Software Development java
Member Avatar for stultuske
0
190
Member Avatar for sankubha

I am Developing an Client Server socket application .Am reading Strings in server side for multiple clients inside run(override) method and I getting EOF Exception at readUTF. I Dont know why the error is comming and how to rectify it. while (ss.compareTo("true") == 0) { System.out.println("Waiting for port " + …

Software Development client-server java socket-programming
Member Avatar for sankubha
0
394
Member Avatar for silvercats

How to draw a convexthull and a polygon around the hand in this tutorial. I found this tutorial in JavaCV how to detect a hand gesture. But it doesn't show how to draw the convexhull or a polygon around the palm. Can someone tell me how to do that in …

Software Development java
Member Avatar for Hiroshe
0
248
Member Avatar for nirmala lakshmi

i am in need to retrive content from acess with date/time datatype as constraint and its checking value is from datetimepicker of vb.net. i have set both format of date as short format but getting datatype mismatch error in expression. my coding: dim bdate as date bdate = datetimepicker_oneday.Value.Date sSQL …

Software Development vb.net
Member Avatar for Begginnerdev
0
306
Member Avatar for Silfro

Hell sadly I dont understand much about memorypool so I tryed to use a memorypool from other sources. My problem: The gameserver always crash and the debugger shows the following error: `Unhandled exception at 0x01034a65 in GameServer.exe: 0xC0000005: Access violation reading location 0xcdcdcdd5.` First the first memorypool with which everything …

Software Development c++
Member Avatar for rubberman
0
104
Member Avatar for infoitmanoj

I need code for upload images for php as well as to edit that image

Software Development image php
Member Avatar for rubberman
0
239
Member Avatar for sahil_4

Suppose we are given an array a[10] such that it contains both even and odd numbers. We have to move the even elements to another array say b[10] and odd elements(numbers) to array c[10]. the numbers in array are to be entered by the user which means we do not …

Software Development c++
Member Avatar for rubberman
0
204
Member Avatar for Saboor880

Hi to all!. I have wrote a program which converts character numeric value into integer numeric value by using function atoi(string). For example if i write 45 then it gives output :"after conversion from ascii to integer, value is 45." or if i write 4521 it gives output:"after conversion from …

Software Development c++
Member Avatar for NathanOliver
0
152
Member Avatar for AliGulSoomro1

How to get only numbers and - in the text box? How to get only Alphabates and . in text box? How to get uppercase alphabate in Text box?

Software Development vb.net
Member Avatar for Reverend Jim
0
406
Member Avatar for dani_boy

I have made a simple game that I want to add sound effects to. I have the short clips and can get them to work with the following command: import os os.startfile("filename") It plays fine, but the problem is that it plays the file(s) with windows media player: effectively taking …

Software Development python tkinter
Member Avatar for HiHe
0
3K
Member Avatar for harley.roberts.56

Hi there, i am a novice coder and i'm trying to comprehend the addhandler function. on my current form, i have two pictureboxes, that i am trying to use in an addhandler with a loop, so when they are highlighted, the sender will change image. Public Class Form1 Dim i …

Software Development vb.net
Member Avatar for harley.roberts.56
0
183
Member Avatar for Learner010

hello i want to create a chat application. i will design it once i get the idea of how it works.the chat will be based on ip addresses. is it possible to create a chat system which uses ip address for chat communication?how can i do that ?i am unaware …

Software Development database-design vb.net
Member Avatar for Mr.M
0
248
Member Avatar for rathiikk

hello sir,i have created vb.net software and i try to use in my laptop ,in my lap there is no vb.net software ,when run that application it showing the error as .net framework needed ,what is this error means ,then how can i give my apllication to other users

Software Development vb.net
Member Avatar for Mr.M
0
179
Member Avatar for DavidB

I am working with dynamic arrays which have been created using **<vector>**. For convenience, I have created a typedef : typedef vector<double> C1DArray; In the main program, several variables are created using this definition which, at the moment, means working with arrays of size 30. main() { . . . …

Software Development c++
Member Avatar for mike_2000_17
0
348
Member Avatar for amraam

The idea is to have an HTML page that looks like this: PROJECT1 Send what goes into the web form below to a python script! _________________________________________________ ____ | Input some text! | | GO | |_________________________________________________| |____| When the user hits "GO", the text somehow goes into script.py that does …

Software Development python web-server
Member Avatar for amraam
0
6K
Member Avatar for Siick7

import java.util.Scanner; class EmployeeInfo { private double wage; private double hours; private String empName; public EmployeeInfo() { wage = 0.0; hours = 0.0; empName = ""; } public void setwage(double wage) { wages = wage; } public double getwage() { return wages; } public void sethours(double hours) { hours = …

Software Development java user-interface
Member Avatar for Slavi
0
157
Member Avatar for psichoman5

Help! UnboundLocalError: local variable 'B' referenced before assignment. Thanks! if a >= 3: A = (3 ^(int(log((a/3), 2)* 3))) if b >= 3: B = (3 ^(int(log((b/3), 2)* 3))) if c >= 3: C = (3 ^(int(log((c/3), 2)* 3))) if d >= 3: D = (3 ^(int(log((d/3), 2)* 3))) if …

Software Development python
Member Avatar for woooee
0
468
Member Avatar for HuePig

Hi, I'm trying to figure out the basics in state design. I don't quite get it. Say I have an `enum GameState{ MAIN, ABOUT, ADVENTURE, QUIT}`, how do I proceed from there? class Game{ class state *current; public: Game(); void setState(State *){ current = s; } void Main(); void Adventure(); …

Software Development c++
Member Avatar for rubberman
0
310
Member Avatar for mind_1
Member Avatar for rubberman
0
94
Member Avatar for myk45

Hi All, I´m using a QTextBrowser to display an external html document (and its image resources) which is placed in the same directory as the application. Everything works fine except that images are not displayed properly. Instead of the actual picture there is a "missing image" icon. I tried different …

Software Development c++ html-css image qt web-browser
Member Avatar for NathanOliver
0
2K
Member Avatar for Boby Smith

How to create a simple 'Hello World' module in Magento?

Software Development java
Member Avatar for stultuske
0
86
Member Avatar for Pablo149

Hello to all who read this: I have been reading many of the posts here, where there are so many different levels of expertise. I am hoping that some of you may be able to provide me with some answers. I have read over and over again how formal training …

Software Development java
Member Avatar for stultuske
0
3K
Member Avatar for harley.roberts.56

I am trying to insert a filled picturebox when my form loads. My current code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Seatimage As PictureBox = New PictureBox() Seatimage.Name = "Seatimage" Seatimage.Location = New System.Drawing.Point(419, 134) Seatimage.AutoSize = True Seatimage.Size = New System.Drawing.Size(65, 23) …

Software Development vb.net
Member Avatar for Minimalist
0
170
Member Avatar for Slavi

Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. …

Software Development java
Member Avatar for Slavi
0
146
Member Avatar for andrew mendonca

Define a function string sort(string s) that returns a string with the same characters as s, but arranged in ascending order, according to ascii value . For example sort("hello") will return the string "ehllo". Notice that the function returns a different string from the original argument, since s is not …

Software Development algorithm c++
Member Avatar for Moschops
0
190
Member Avatar for 42452

i want to make a program written in vb.net which will take text file and a image file,after that the ouput will be the hidden text in a image so that no one can steal data from that image only sender can hide that data in a image and the …

Software Development image vb.net
Member Avatar for Mr.M
0
478
Member Avatar for Santanu Das

Hi! I am now facing a problem to sent a short message to a smart mobile device. There is no problem to sent a mail to a mail address by using SMTP. But, in my current project, I am in problem to re-set userid and user password through a message …

Software Development vb.net
Member Avatar for Mr.M
0
189
Member Avatar for mark103

Hi all, I'm working on my python script as I'm pulling the data from the sqlite3 database. I'm trying to convert the string object to datetime object, but I have got a problem with the code as I get the error when I'm trying convert from the string object to …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for andrew mendonca

Write a function int findLast(string words[], int numWords, string target) that returns the index of the last occurence of target in words or -1 if there is no occurrence. Remember: you can compare string objects using ==, these are NOT C-strings ! Here is my solution: int findLast(string words[], int …

Software Development c++
Member Avatar for rubberman
0
353
Member Avatar for singersongrita

So I'm trying to make a calculator. I'm doing it by parsing the strings of the operation the user inputted. im doing it by adding spaces next(both left and right) of the operator(like "+")and using istringstream to divide the string to divide it. for example, dividing "10+10" to '10', '+', …

Software Development c++
Member Avatar for hAbbas
0
329
Member Avatar for nunntb473

I'll prelude this with I am a novice coder at best and this is mostly a hobby that I would like to do professionally one day, but that day may be 10+ years from now. So for now I tinker and learn here and there. Part of the reason I …

Member Avatar for nunntb473
0
2K
Member Avatar for mark103

Hi guys, I'm working on my python script to create the button for tv programs. I know how to create the variable to get the program title for the programs which I have to pull the data from the sqlite database. I can also create the variable for the height …

Software Development python sqlite
Member Avatar for chriswelborn
0
183
Member Avatar for entropicII

I'm using python to try and talk to my Arduino with pyserial. The code should wait for an input from COM5, (the arduino), and then sends a 1 and waits for the response. import serial connected = False ser = serial.serial("COM5", 9600) while not connected: serin = ser.read() connected = …

Software Development python
Member Avatar for woooee
0
2K
Member Avatar for himanjim

The code simply captures your working window as jpeg image and stores it in the same directory as where your java class after compiling by javac is being stored

Software Development image java
Member Avatar for Ashan_1
0
2K

The End.