132,726 Archived Topics
Remove Filter ![]() | |
hi all!!!! im trying to do strcmp to a char in a structure and and char* and im getting a msg error: dereferencing pointer to incomplete type.... can somebody explain me what is that and give me an idea how to resolve it? thanx in advanced! Software Development c | |
In undefined cases, anything can happen, the program can crash, or unexpected results be thrown up. What happens is up to the compiler. In unspecified cases, the Standard has deliberately not defined the exact behaviour of a few things so that the compiler is at liberty to do as it … Software Development c | |
Hi, I am building a chat bot using C# and I am having problems with my Text Analyzation method. Can someone please take a look at my code and help me figure out what to do to fix it? Thanks [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ChatBot … Software Development c# | |
[code=c] printf ("%d",EOF);[/code] This gives me -1 [code=c]scanf ("%d",&a);[/code] [code=c]printf ("%d",a) [/code] where a is int (as EOF is an int), this gives me some junk value [code=c]printf ("%d",getch());[/code] This gives me 26 I've always given the input as ctrl+z (that's right, na!) What's the correct value of EOF ? Software Development c | |
Say i have this 10,000,000 (10 million) byte file. I want to perform multiplication,addition and few other operation on all those bytes(total of 5). And after it is done say if i want to repeat the addition and other operations on the same file like a loop,then How many such … Software Development c++ | |
Im trying to make the run.bat file read the .class files from the folder classes/src. But before I didn't package my .java files and the created .class files were found in /classes. But now that I packaged my .java files, the newly created .class files are being read from inside … Software Development java | |
Hi, I'm trying to add an icon to my Tkinter GUI window and have had no luck. After some searching, I came up with the same piece of code which does not work. Here is a snippet of my code: [code=python]from Tkinter import * root = Tk() root.minsize(290, 700) root.title("My … | |
can you please explain the lines in opening a connection to a database?where will i base the datasource, the initial catalog, uid.....? Software Development | |
Hello, Please help me to resize BMP image to bigger and smaller. Actually I'm trying to build PC wallpaer image with some function. And changing wallpaper has no problem but I want to change any image to screen size. Since desktop screen has some infomation section, bmp image should resized … | |
Hi guys, I understand the difference is that the params of ctor 2 are declared const with n being passed by reference. However, I don't seem to understand what difference having these params (n and a) declared constant with n being passed by reference makes? I mean, I'd understand the … Software Development c++ | |
Dear Experts I developed a simple project. The attachment contains one form and a database. This work fine But I need source codes for NEXT and BACK buttons Please unzip and help Software Development vb.net | |
Hi I am having problems using [B]subprocess.Popen.[/B] Here is a small script I have written [CODE]from subprocess import Popen import os global p def executeProcess(): cmd = "ls -l /home" global p p = Popen(cmd) #os.system (cmd)[/CODE] This works only once in a while. I keep getting the error [CODE]Traceback … Software Development python | |
![]() | Hi, I am trying to make a sublime text plugin that will compile some C code, but it uses python for these plugins. I already have a method of using g++ for single files, but I was wondering if anyone knows how to do it for a make file, here … Software Development python ![]() |
![]() | Hi, I'm trying to find an open source project to strect myself with, I have looked on bitbucket and couldnt find anything, any suggestions? Thanks in advance. Software Development open-source python ![]() |
How can I make windows execute a python script when a flash drive is plugged into the computer? Is there a way to do this with python or do I have to use windows? | |
Hi guys, new to site - and fairly new to C#. So be gently. I have an xml file containing the following: [CODE] <?xml version="1.0" encoding="utf-8" ?> <Arm> <Arm1> <Name> Flies </Name> <Weight> 18 </Weight> <Reps> 12 </Reps> </Arm1> </Arm> [/CODE] The xml contains more that just the one Arm … Software Development xml | |
Hi, I have a dll created using C++, which i want to use in my C# prgm. How should i convert it. Also I have header files, how can i use them in my C# prgm. Can anyone guide me or provide some good materials. Thanks... Software Development | |
I am attempting to program a doubly linked list template. My program is setup with the class node defined in a header file,the list itself in a header file and finally the main in a separate cpp file which calls the list header. The list header calls the node header. … Software Development c c# c++ linked-list | |
Hi, I am new in List<string> ,Memory leak,.net, I can i manage memory for List<string> e.g. [CODE]List<string> list=new List<string>(); list.Add("a"); list.Add("b"); list.Add("c"); list.Add("d"); list.Add("e"); list.Clear(); [/CODE] in above example ,will List.Clear() release memory for list or items. Thanks and Regards Shabab Begym Software Development asp.net | |
Write a program that will correct a C++ program that has errors in which operator, << or >>, it uses with cin and cout. The program replaces each (incorrect) occurrence of cin<< With the corrected version cin>> And each (incorrect) occurrence of cout>> With the corrected version cout<< For an … Software Development c++ | |
I use visual basic 8.0 en MySQL. I have a connection witho my MySQL database "test" with Myconn. I have two table's : Rental Articlenr Articledis Articlerent 100 beerclass 15 200 wineclass 10 Stock Articlenr Articledis stock 200 Wineclass 25 So far i have this : [code]Dim con As New … Software Development vb.net visual-basic | |
Hey, I am using a messenging system to do math, and I am in need of help for my string splitting. What I need it to do, is basically see if there is a '/' '*' '+' or '-' and split it from that charectar, and ALSO split it in … Software Development regex | |
hi everyone ı am a new begıner . why and when do we have to use "None" for example if x. is None: or at the definatıons def lookfor(a, b=None): return a, b why and where are we usıng None.whats the aım to use that and my other questıon ıs … Software Development python | |
I know that ++a is faster than a++ because a++ has to first store the previous value of a at some temporary location and then increment a and then return the saved value, whereas ++a simply increments a and returns the pointer to the incremented value. Since, both a++ and … Software Development c | |
Dear Experts I use following codes to display image from sql server. On this line of codes [CODE]Dim ms As New IO.MemoryStream(CType(row("user_img"), Byte()))[/CODE] this error messages appears [CODE]Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.[/CODE] How to get rid of this error message. This message appears because image … | |
well, basicly i just want to detect when the left mouse button goes from being DOWN (clicked) to UP(unclicked). and this will be hapening externaly, like, i may be clicking Freecell, not the VB form. I alredy have some code [CODE]Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) … Software Development visual-basic | |
My question is: If i'm the customer, how can i edit the quantity shown on the overview so that i can afford to pay the totalprice(if i've ordered too much) and delete some on the overview if i want to delete it(really short on money). And if i'm the owner … Software Development c | |
Hi all. I am required to make a program appear a registration form upon the insertion of a USB device. And this registration form is supposed to appear once, when the USB device is inserted for the first time. I am told that I am supposed to make a Windows … Software Development | |
hi folks merry christmas to all of you it is month of sharing and loving but folks i have A big problem On function i dont know how to call a functions on vb can you help me or give me some example program hoping for your kindness god bless … Software Development visual-basic | |
Hi, I'm locking for a control to create cab or zip files. Sombody know about it? I have used the cabinet filem but I'm expecting a situation: the control after extract a number of files is inestable and send a error of automatization. Software Development visual-basic | |
I am working on getting a string into this function but there are already to many arguments. [CODE] char interface[10]; if (!(in = popen("iwlist %s scan","r"))) /*Need interface string here */ { /*to be added */ } [/CODE] I tried to add ",interface" after "r" but it said to many … Software Development c | |
Hi guys. Can a variable be used outside the try block? [CODE]string responseString; char response; Console.WriteLine("1. If you would like to ... press A"); Console.WriteLine("2. If you would like to ... press B"); Console.WriteLine("3. If you would like to ... press C\n"); responseString = Console.ReadLine(); try { response = Convert.ToChar(responseString); … Software Development | |
i recently started typing the code for the program to convert a binary number to its decimal form and i got stuck when my compiler reported this error. this is what i have typed till now. [CODE]#include<iostream> using namespace std; #include<math.h> main() { int n,s=0,k=0,a,b,c; cout<<"\n\n\tPROGRAM TO CONVERT BINARY TO … Software Development c++ | |
Hi All, I'm a newbie. I need to know if we can write a script that tracks the number of times an xls file was downloaded in a day. I tried searching many books & websites, but of no use. Kindly show me the way.. Please.. Thanks Software Development shell-scripting | |
Heyloo ^_^ I've stumbled upon this code :D [CODE]#define VERSION_MAJOR 1 #define VERSION_MINOR 1 #define VERSION_PATCH 2 #define VERSION ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_PATCH)[/CODE] I've been searching for some time now, unable to understand what << 16 and << 8 does, and why. I converted VERSION … Software Development c++ | |
Hi, I would like to ask is it possible for pygame to respond on a key press immediately? I am trying to make a drumming simulation and the response comes after 1-2 seconds. The code is: [CODE]import pygame, sys from pygame import * pygame.mixer.init() pygame.init() #Loading sounds... snare = pygame.mixer.Sound('Snare.wav') … Software Development python | |
I'm completely new to java and am trying to get some experience with programming java applets that can be opened from a browser. I was able to successfully open a simple "hello world" applet from a browser using the below javascript: [CODE]<script src="http://www.java.com/js/deployJava.js"></script> <script> var attributes = { code:'HelloWorld.class'} ; … Software Development gui java java-netbeans java-swing queue | |
Hello, i have a function that starts searching for all files that match the given file name and Recursively traverses itself into sub directories and does the same thing and when a file is found i should output its path starting from the first directory that was given to the … Software Development c file-system | |
Hello, I am currenty using MySQL 5.1 community server and trying to import the data of the comma delimited text file into the table using python 2.6 scripts. I have installed Mysqldb 1.2.2. follwoing is my script: [CODE] import MySQLdb, csv, sys conn = MySQLdb.connect (host = "localhost",user = "usr", … Software Development file-system mysql python | |
Okay, well I have to say I am completely stumped where to go from here. I am writing a media player and I am currently working on song indexing. I have figured out how to extract the song name and its complete path using os.walk(); however, I have no idea … Software Development python | |
Hi boys, I am working for a job interview and I was writing a nice piece of cod in c++, partially copied and pasted. This is supposed to work but now i am obliged to use dev-c++ last version for windows, usually I just use gcc on linux and I … Software Development c++ | |
I get the error 'orphaned case'. So here's the problem: [IMG]http://img385.imageshack.us/img385/6424/errorqg4.png[/img] Here's my case 218 and the case before it, can you help? [code] case 192: // Use an item on an object junk = inStream.readSignedWordBigEndianA(); int UsedOnObjectID = inStream.readUnsignedWordBigEndian(); int UsedOnY = inStream.readSignedWordBigEndianA(); int ItemSlot = (inStream.readSignedWordBigEndianA() - 128); … Software Development java | |
Is there a way in C# to get a value that is normally passed in the url string into the variable while debugging?? Normally this is the string... [url]http://server/foldertest/Page.aspx?sel=ss[/url] But when using "start debugging" I have the url without the form variable that is passed from another server but need … Software Development | |
How do I know what the process owner, who released it? Using Process funktion, and don't using WMI. [CODE]Process[] list = Process.GetProcesses();foreach (Process pr in list) { Process process = Process.GetProcessById(pr.Id); process. ??? }[/CODE] Software Development | |
how to resize the textbox control with runtime events in c# using c# winforms Software Development | |
I have a vbscript that uses a WScript.Shell instance and .Run("ffmpeg.exe -params",,True) to fire off a ffmpeg video conversion. When the conversion is complete, the cmd.exe window stays open at a typical prompt, and i was curious if it is possible to auto-close that child cmd window when it's done … Software Development vbscript visual-basic | |
Hi, I am trying to implement some distributed algorithm (minimum spanning tree) where each node is represented by a process running in a different machine. Each edge represented by a client server communication channel. Suppose host0 is connected to host1, host2 and host5. I create 1 server sockets in each … Software Development algorithm c client-server | |
There has to be an easy answer for this, I hope! I basically need the grandchildren of the below xml tree to show up in a vb.net gridview. I have the data getting pulled but all values are getting put into a single cell. Here is the xml tree. [CODE]<?xml … | |
my task is to create a gui for a list of cars, bus,bicycle etc. and the program should be able to add and remove to the car in store. so i wrote this code below using netbeans IDE. [CODE]package vehicleregister; import java.awt.*; import java.awt.event.*; public class VehicleRegister extends Frame implements … Software Development android gui ide java java-netbeans | |
Hi Everyone hi was trying to call a different and Anonymous objects into my form but i can't reach to the right method tyo do that my matter here is falls under calling a tree view.... i mean any tree view !!! i was trying to handle this code but … Software Development vb.net |
The End.