132,726 Archived Topics
Remove Filter ![]() | |
![]() | 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 ![]() |
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 | |
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 | |
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 | |
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 … | |
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. … | |
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 | |
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 | |
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 = … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
![]() | 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++ |
I need code for upload images for php as well as to edit that image | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
any tutorial for insert data in mysql with c language | |
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 | |
How to create a simple 'Hello World' module in Magento? Software Development java | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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++ | |
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++ | |
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 … Software Development database-design microsoft-access sql visual-studio | |
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 … | |
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 | |
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 |
The End.