132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Buffalo101

Hello, I have a function that looks like this: [code=C] CMyMessage(char type, char *name, char namelen, char *text, char textlen){ ... ?! } ... void main() { char name[50]="JOHN"; char text[200]="testing123"; CMyMessage(1, name, strlen(name), text, strlen(text)); } [/code] The ranges are: Type = 0/1; namelen = 0..50; textlen = 0..200 …

Software Development c
Member Avatar for rubberman
0
123
Member Avatar for XxPKMNxX

i have this code. i am trying to set a grid and start at c. it then moves to the next value - 1, so in this case, would move to a 4. However, in my IF statement, i want to put if(position surrounding c == c-1){then change that position …

Software Development java
Member Avatar for XxPKMNxX
0
143
Member Avatar for Tazsweet19

I tried to looking for website about ForAll() "Invokes the specified action for each element in the source sequence in paralle from LINQ (PLINQ). There is no example for ForAll(). Let me know thanks.

Software Development
Member Avatar for Momerath
0
60
Member Avatar for Zaffron

Alright, so I'm trying to make a text rpg for proof of concept purposes, and I've hit a wall. My problem, which may be deeper than I hope, lies within class instance referencing. I have a chest class where it fills the chest with a random amount of items. This …

Software Development python
Member Avatar for woooee
0
465
Member Avatar for Phil++

Hello,I have a function that draws a rectangle on a form (different widths and heights) [code] public void drawRectangle() { Graphics g = pictureBox1.CreateGraphics(); Rectangle rect = new Rectangle(50, 50, 60, 50); g.DrawRectangle(Pens.Black, 10, 10, 10, 10); } [/code] I have a picturebox called picturebox1 but how would I get …

Software Development
Member Avatar for ddanbe
0
110
Member Avatar for DarKKendO

Hi Guys, First post on here :) I've been here before and i've usually been able to find what I needed but now I'm in a bit of a bind. I'm doing a piece of coursework for my university course and i've just hit a huge brick wall. Basically what …

Software Development c++ linked-list visual-studio
Member Avatar for DarKKendO
0
102
Member Avatar for Buffalo101

Hello, My program looks something like this: [code=C] char *name= (char *)malloc(200); unsigned char type=1; unsigned char GetType(){ return type; } char* GetName(){ return name; }; void function(unsigned char* message, int* intPtr){ message[0]= GetType(); // works correctly // CODE HERE } void main(){ unsigned char *message= (unsigned char *) malloc(256); …

Software Development c c++
Member Avatar for gerard4143
0
401
Member Avatar for navimir

I have a folder which contains all images.I want the names of the images to be displayed in a combobox and when i click on a image the image should be displayed in a picturebox(in C#.net).plzz help me in the code

Software Development
Member Avatar for ddanbe
0
616
Member Avatar for msqueen082

hi again.. Could sure use some help in another code I am currently working on. Would really appreciate the help. Today i am trying to convert a date i put in a textbox(txtJulian) to a normal date like 02/05/2011(or any other conversion depending what is imputed in the textbox). I …

Software Development vb.net
Member Avatar for codeorder
0
513
Member Avatar for bklynman01

Hello, Does anyone know if there is a way to keep a desktop icon after a new version of software is installed? I'm using VS .net 2008 and after publishing a new version of software, the program updates the first time it is opened. However, after the install of the …

Software Development publishing vb.net
Member Avatar for bklynman01
0
93
Member Avatar for Mike Bishop

i am trying to write a SP that will return a value in vb.net here is my SP CREATE PROCEDURE ClaimTotal @Ctotal BIGINT output AS select SUM(total) from claim where @ctotal = total I want to SUM my total coloum from my table claim, and store this in a varible …

Software Development sql vb.net
Member Avatar for prashantchalise
0
172
Member Avatar for benjamin.sh

Dear members... I'm looking for a code in C language to calculate the sum of two number in Hexadecimal base.But I don't wanna use Math library.Please help me to do it as soon as possible... Respectfully...

Software Development c
Member Avatar for L7Sqr
0
1K
Member Avatar for Alex Edwards

This is a simple Search Engine that contains tokenized words as keys, in which they will return values associated with them in an ArrayList. All that is required is a text file from a valid extension.

Software Development java
Member Avatar for fayimora
0
10K
Member Avatar for gcclinux

Hello everyone, I am trying to write to a file what I am currently displaying on the console. I have a bit of code that works fine by creating a list of files based on it's file extention and it then displays it using println: What I want it to …

Software Development file-system java
Member Avatar for gcclinux
0
199
Member Avatar for TSprog

hy for all . i have to do a new university work about text mining and specialy on sentiment analysis . i have to try to analyze some mails and forums to extract from about what the student are discussin .. i've seen a lot of documentation about this , …

Software Development java
Member Avatar for TSprog
0
133
Member Avatar for e-papa

HI everyone, I'm a month old python programmer that really loves anything sound, and will like to know how i can use python to create Audio software. What are the tools needed, the platform, the pros, the cons. Thanks in advance.

Software Development audio python
Member Avatar for e-papa
0
165
Member Avatar for Arjun_Sarankulu

My application is running fine on my end Which also contain app.config file from which i am taking the connection string. When i run the exe it gives error on user end And if i hard code the connection string then its working fine on user end. I am not …

Software Development
Member Avatar for abelLazm
0
111
Member Avatar for arezz09
Member Avatar for Mike Askew
0
145
Member Avatar for volkang

hi, is there any code that calculates the cdf of lognormal distribution? i came across one in codecogs.com but it requires commercial license:/ any help would mean a lot. thanks from advance

Software Development c
Member Avatar for volkang
0
113
Member Avatar for fadi_1234

can anyone explain to me : what is counter++ and ++counter and the different between them ? and static_cast <type_id> (expression) and setiosflags ( ios::fixed | ios::showpoint Thanks

Software Development c++ ios
Member Avatar for fadi_1234
0
88
Member Avatar for eileenc87

Hi All, Can I put text in datetimepicker. Instead of it showed the dafault date and time (today's date), can I put text like e.g - Please Select Date - Looking forward to hear from u guys soon... URGENT

Software Development vb.net
Member Avatar for codeorder
0
501
Member Avatar for cornedor

Hello, I am creating an console application for windows. I have set bufferSize and consoleSize so you dont have the console. If a set the cursor position at the very bottom right position the window scrolls down. Is it posible to stop this? Greetings Corné

Software Development c++
Member Avatar for jonsca
0
122
Member Avatar for SWEngineer

When trying to run a simple `Qt program`, I get the following erros: (How can I solve them?) [CODE]In function `WinMain@16': c:/Qt/2010.05/qt/lib/libqtmaind.a(qtmain_win.o)[/CODE] [CODE]error: undefined reference to `_Unwind_Resume: C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:93[/CODE] [CODE]error: undefined reference to `_Unwind_Resume': C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:135[/CODE] [CODE]error: collect2: ld returned 1 exit status[/CODE] Thanks.

Software Development c++ qt
Member Avatar for jonsca
0
133
Member Avatar for NewOrder

This is my first c# application, it took me 2 months to write and it has over 3,000 lines of code.. [url]http://www.youtube.com/watch?v=2ZqYa8agDrQ&feature=channel_video_title[/url] I wanted to ask of your opinion, what do you think?!?

Software Development asp.net
Member Avatar for NewOrder
0
111
Member Avatar for computerbear

Hello, This is part of code I posted in another thread. Seems like the process works, I can load my arrays. But when I make a choice from a menu list. it just jumps out of the while loop. It does not enter the switch. I am sure I am …

Software Development
Member Avatar for abelLazm
0
113
Member Avatar for rockerjhr

globals.h [CODE] #ifndef _globals #define _globals #define NEXT(L) ( (L) -> next ) #define DATA(T) ( (T) -> datapointer ) #define LEFT(T) ( (T) -> left ) #define RIGHT(T) ( (T) -> right ) typedef enum { OK, ERROR } status ; typedef enum { FALSE=0 , TRUE=1 } bool …

Software Development c linked-list queue
Member Avatar for WaltP
0
206
Member Avatar for fibbo

Hey, it's me again. Again with a topic that has been covered here but reading through the old threads didnt help me to solve my problem. And I am pretty clueless at the moment. Consider the class passenger_queue with 2 functions, namely: [CODE]int passenger_queue::get_passengers_waiting() const { // Insert your code …

Software Development c++ programming-construct
Member Avatar for fibbo
0
7K
Member Avatar for Ammara Sajid

hey guys! how do i calculate the sum of a column in .csv file format using C? e.g my fie looks like this 1, 2, 3, 4 2, 3, 4, 5 3, 4, 5, 6 (the ',' shows new cell) how do i calculate sum of each column (desired answer …

Software Development c
Member Avatar for WaltP
0
1K
Member Avatar for margaretna

hi, i am currently doing my school project that require me to have this browse button. this browse button will open a dialog box and the user can open the file from there. example if the user has a microsoft words doc file and they want to view it they …

Software Development vb.net
Member Avatar for Luc001
0
128
Member Avatar for adam80

Hi Experts, I am working on the project that is going to be complate in some days. I want to limit trial usage of program for 1 month. I am succeded to do it. If trial period expired the program doesnt work and prints warning messages. I want to add …

Software Development python
Member Avatar for adam80
0
2K
Member Avatar for leo88

hey, i have 2 listboxs (listbox1 and listbox2), both the listboxs contains output as following: listbox1 1 2 1 4 1 5 1 2 4 2 4 5 listbox2 1 2 2 4 5 1 3 4 5 I wants to compare the 2 listboxs, for each line of listbox1, …

Software Development c#
Member Avatar for leo88
0
160
Member Avatar for maxrio

Hi! im trying to make a procedure wich saves what is on screen in a variable defined on the data segment (antes dw 2000 dup (?)). It compiles well but it freezes the program when it is called by it(program). BTW: this program is in textmode 80x25 16-bit and i …

Software Development assembly
Member Avatar for maxrio
0
360
Member Avatar for elliot81

Hi, im having trouble understanding how private methods are accessed, and overall how they are used. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SIT232_Ass1 { public class Plan { // declares constant private const int CHARGE_BLOCK = 30; // declates our private variables private decimal _MonthlyFee, _CallAllowance, _CallRate; …

Software Development
Member Avatar for elliot81
0
139
Member Avatar for Phil++

Hey, I would like to show a prompt when a user clicks on the "X" button on my form, but it doesn't seem to be working.. Here is the code: [code] private void Form_FormClosing(object sender, FormClosedEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { MessageBox.Show("YES"); } } [/code] Any ideas?

Software Development
Member Avatar for abelLazm
0
105
Member Avatar for rekha gautam

Hello , I'm using ms access 2003, i'm trying to delete the selected data that is the name of employee, from the combobox list when i click to delete button. i'm using this code: [code] Private Sub cmdDelete_Click() For I = 0 To combobox.ListCount - 1 If combobox.ListIndex(I) = combobox.Text …

Software Development visual-basic
Member Avatar for Jx_Man
0
167
Member Avatar for swathys

hi, this is my connection string to connect to mdb file but i'm getting error as remark in red... i create the password using open exclusive method and i generate the p/w. i guess its the way i connect using username and p/w but I have no idea what i …

Software Development open-source vb.net
Member Avatar for swathys
0
228
Member Avatar for LevyDee

Im pretty green when it comes to designing a large scale application architecture, and have a question on the way I should go with it. Just for an example, to ask the direction I should take my design in, consider this: A parking lot manager has control over everything that …

Software Development c++
Member Avatar for mrnutty
0
127
Member Avatar for perlnoob

I just want to ask what this code practically means? [CODE]<xsl:variable name="gSetValues" select="toolPackage:setValues($obDateFormat,$gDocID)"/> <xsl:variable name="gSmi" select="normalize-space(toolPackage:PubMetaDataReader.getEntry($gKey, 'smi'))"/> <xsl:variable name="obDateFormat" select="toolPackage:LNDateFormat.new('<input format date>', '<output format date>', 'ENGLISH', 'German', '19000101', '365', '19000101')"/> <xsl:variable name="vFormattedLoadDate" select="toolPackage:reformat($obLoadDateFormat,$gLoadDate,$gDocID)"/>[/CODE] I don't understand the 'totalPackage' followed by setValues,LNDateFormat,PubMetaDataReader.getEntry,reformat ? How can I connect each different 3 XML …

Software Development file-system xml
Member Avatar for xml_looser
0
297
Member Avatar for floatingDivs

Hi Daniweb, I'm looking to read in a file, but "ignore" the label prefixed to data. For instance, if I have the following on one line, I want to ignore "Cities:" but read in the rest. [code] Cities: Chicago, New York, Atlanta [/code] If someone can point me in the …

Software Development c++
Member Avatar for LevyDee
0
122
Member Avatar for leo88

hi, i wants to ask some string problems, as below: string []first 1 2 3 4 5 1 4 5 1 3 4 5 string second="2 3"; [code] double sum=0; foreach(string a in first) { if( ) // what should i write here? { sum++; } } [/code] In program …

Software Development
Member Avatar for leo88
0
101
Member Avatar for AdmiralDonkey

Hi all. I've been working on a Binary Search Tree as a beginner and have the majority of functions working, however in the program I need to give the option to choose how to traverse the contents and then display them in that order. I've got the traversal methods, however …

Software Development data-structure
Member Avatar for AdmiralDonkey
0
469
Member Avatar for nssltd

Hello, Hi i have been just looking at C++ games programming and i have bought a book and learned the basics of C++ aswell as some indepth games programming. I have been thinking of developing a small game with physics and stuff but for physics i'd like to use the …

Software Development c++ gaming
Member Avatar for DarKKendO
0
142
Member Avatar for CrazyProgrammer

Hey, was wandering if somebody could help we with some classes and objects, I haven't done c# in a while and i can't remember. Could someone tell me what String falls under in c#, ie allowing one to write somthing like [CODE] static void Main(string[] args) { string s = …

Software Development c c# c++ oop
Member Avatar for CrazyProgrammer
0
158
Member Avatar for lilbenji25

Hey, i know you are all probably very bored with the infix to postfix program and its many incarnations but i seem to be having a problem getting the linked list we have to use as a stack to work. More specifically; pushing to the stack, reading from the top …

Software Development c++ linked-list
Member Avatar for nezachem
0
207
Member Avatar for TailsTheFox

Hello, So I get MS visual studio 2010, and the first thing that I find, is that after a whole lot of trouble, I finaly get the tools to appear, and they're all greyed out. Screenshot attatched I think the problem might be: [list] [*]I'm using the trial [*]The file's …

Software Development c++ visual-studio
Member Avatar for TailsTheFox
0
79
Member Avatar for JDevelop

Hi, I'm beginning with C and makefiles. I'm trying to compile a list of C files with GNU Make. My code should compile all the C files in the folder into .o files along with few flags and then use these .o files to compile an executable file 'main'. and …

Software Development c
Member Avatar for nezachem
0
8K
Member Avatar for Taimoor Rana

hello guys, I don't have a programming question but a mathematical one but need to implement it in a program. I need a formula the will let me find the X,Y position of Circular motion. For example: earth travelling around the sun, I would wanna know the X,Y position of …

Software Development java
Member Avatar for Slimmy
0
145
Member Avatar for kipslem

Hello, Please help... I have a small application. When I click on a ListView row to Edit the details populated from the MS Access DB, I have the Else statement being executed all the time. Initially the code is attached behind a button named Edit. I have a Refresh button …

Software Development listview vb.net
Member Avatar for kipslem
0
236
Member Avatar for jasperFernandes

Hi, i wanted to create a JTextField to receive the user input instead of having the user key in the input through the IDE console. This is my code. Now, my code just runs fine if the user key in the inputs through the console. After running the code, the …

Software Development gui ide java java-swing
Member Avatar for mKorbel
0
2K
Member Avatar for ChieftanBill

I've been working on this program recently and its been blowing up with errors, every time I work through a bug, more surface. Now I keep getting incompatible type errors at the spots I marked out. If someone could help me sort it out or point me in the right …

Software Development java
Member Avatar for Slimmy
0
127

The End.