43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nocookies92

I'm trying to create a class that holds a 2D string array to be used by another class. For some reason, my IDE gives me a bunch of errors when I try to compile. Here's my code: [CODE]public class Lists { String[][] ListArrays = {"Why, Hello there!","Welcome.","blah blah blah","more useless …

Software Development ide java
Member Avatar for nocookies92
0
132
Member Avatar for killhha

iv seen the line 'halt' in some pascal programs after readkey or readln. what does halt do exactly?

Software Development pascal
Member Avatar for Turtle85
0
307
Member Avatar for Kanoisa

Hi all, Im wokring through NEHE's tutorials at the moment and building a cone approximation class to play with the code and learn from the examples but iv reached a snag. I cant get texturing the top curved part of the cone to work (i have called it a pyramid …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
487
Member Avatar for AngelicOne

i have textboxes that needs to have a value before passing it to database. How to do this? I'm new to windows form validation.. I know of something [CODE]if(textBox1.Text=="") { //do something }[/CODE] is this the right valdiation for windows form?

Software Development
Member Avatar for Geekitygeek
0
401
Member Avatar for imso

How do you allow the controls of an application to go back to the cursor of the textbox after checking that the textbox has an empty input? what i want is just the cursor back to the textbox to allow easy user access. thx :) [CODE]txtReminder.?????[/CODE]

Software Development
Member Avatar for nick.crane
0
138
Member Avatar for Ketsuekiame

Exact Message: [CODE="plain"]Error 1 error C3861: 'SHOWERROR': identifier not found[/CODE] My Includes: [CODE]#pragma once // Exclude rarely-used stuff from Windows headers #define WIN32_LEAN_AND_MEAN #define SAFE_RELEASE(x) if( x ) { (x)->Release(); (x) = NULL; } #define SAFE_DELETE(x) if( x ) { delete(x); (x) = NULL; } #define SAFE_DELETE_ARRAY(x) if( x ) …

Software Development c++
Member Avatar for Ketsuekiame
0
304
Member Avatar for dadam88

There is a easier way and more efficent way to do this with a for loop I believe...I can't put the nail on it can anyone help me out? I want to move a character around in a array...right or left or up and down with md arrays. [CODE] #include …

Software Development c++
Member Avatar for Kanoisa
0
108
Member Avatar for hanvyj

I have a curius problem with my bitmap writing function, it takes a char array and writes a 24 bit BGR bitmap. It was working fine using an array captured from a camera, I printed out the content of the first couple of bytes: 132 135 131 132 135 131 …

Software Development c++
Member Avatar for hanvyj
0
214
Member Avatar for Smithy566

Hi all, I'm having a bit of trouble trying to convert a string which represents hex, to a byte. Logic below, something like this: [CODE] String hexString = "0x5C"; Byte myNewByte; myNewByte = Byte.Parse(hexString); [/CODE] [B]Error: "The input string was not in a correct format"[/B] I know I can have …

Software Development
Member Avatar for Smithy566
0
96
Member Avatar for AngelicOne

This is my current code [CODE] SqlConnection con = new SqlConnection("Data Source = .\\SQLEXPRESS; Initial Catalog = Library; Integrated Security = True"); string query = "select author_name from author"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = query; SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = cmd; DataTable dt …

Software Development
Member Avatar for AngelicOne
0
122
Member Avatar for trippinz

I have created a string in (e.g. Button1_click) Call that string "textboxtext" now for some basic text to assign to the string I did the following [code] public void button1_Click(object sender, EventArgs e) { string textboxtext; textboxtext = textBox1.Text; textboxtext += textBox2.Text; textboxtext += textBox3.Text; //Some other code later on …

Software Development c c# c++
Member Avatar for saravind84
0
179
Member Avatar for nv136

I am having a tough time in vb.net to make the scrollbars to work of the contents of a panel.... here is my code Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll Panel122.Left = HScrollBar1.Value now, i want to change .Left to .Right, but it won't …

Software Development vb.net
Member Avatar for Oxiegen
0
181
Member Avatar for gahhon

hey anyone, what is the meaning of while(!correct) ? when correct = 0, what is the meaning of it? i have to trace the output but i dont understand it. please help me (: thanks alot...

Software Development c
Member Avatar for Narue
0
135
Member Avatar for TrueVb.NetNoob

Hi guys! I wanna ask how to code to make a button make a sound out when pressed? Can you add sound files to it, like a mp3 file? Any suggestions? Thank You!

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
452
Member Avatar for Hardz

Hello, How do i select or set the focus of a particular cell in a datagridview? Actually, this problem is simple but it is hard for me to solve it coz i'm only a beginner in c#. So here is my sample list of students as shown below: [COLOR="Green"]Ann[/COLOR] Antoinette …

Software Development
Member Avatar for Hardz
0
959
Member Avatar for miturian

So, in advance, I have to admit that this is not quite as "good" a question as what is otherwise found here. It's not about a weird error, or something I can't figure out to do. I just get weird output. I've spent around 2 days simplifying the code, trying …

Software Development c++
Member Avatar for miturian
0
353
Member Avatar for PixelExchange

Hello everyone. I am trying to make a simple, one lined text field, which permits users to enter text into it. The text field I am reffering to is the type that has a carriage return blinker to signify that a user can type there. I have looked up "text …

Software Development c++
Member Avatar for PixelExchange
0
116
Member Avatar for daredevil786

[code] int x[] = { 1, 4, 8, 5, 1, 4 }; int *ptr, y; ptr = x + 4; y = ptr - x; [/code] why y is coming 4 in this code i think that it should be 8

Software Development c
Member Avatar for pheininger
0
1K
Member Avatar for m_ishwar

I am experiencing a problem with turbo c while I execute odd loops. The compiler doesnt wait till I give a yes or a no. It just jumps out of the loop. Can anyone help me?Is it a problem with the compiler or my program. The latter is not possible …

Software Development c
Member Avatar for Aia
0
119
Member Avatar for indigo.8

Hey guys I'm having a little problem with unsigned char and reading a file of integers into the array. 1. What the program is suppose to do: It's suppose to dynamically create an array of unsigned char that is the correct size to read in the array of numbers. The …

Software Development c++ file-stream ios
Member Avatar for indigo.8
0
2K
Member Avatar for Steve_Jones

Im brand new to programming, ive only been doing it for couple weeks. Im having trouble learning functions(or methods) and classes. I really need some problems i can work towards myself to learn this stuff, but there is nothing like that anywhere. Its all just the same tutorials and them …

Software Development asp.net visual-studio
Member Avatar for taylby
0
124
Member Avatar for guru_iyer

I need to get an output like: 1 1 11 11 111 111 1111111 I tried a lot and came to the following program. But i'm getting output like: 1 1 11 11 111 111 1111111 Please help me correct this program. The preview of the shape was not coming …

Software Development c
Member Avatar for Adak
0
148
Member Avatar for Jsplinter

I am getting this error even though a) the header file does exist and is located in the directory and it's not somehow been switched to read only. Also, my #include statement uses "" like "test.h" so the compiler knows to look in the project directory first. I've read that …

Software Development c
Member Avatar for Jsplinter
0
362
Member Avatar for hanvyj

I am trying to write a char array to a bitmap in c++. I (think) i know what values I need in my file header and bitmap info header, and i have looked at some examples but I cant seem to solve this problem (i'm sure its something stupid) In …

Software Development c++
Member Avatar for hanvyj
0
668
Member Avatar for gunjannigam

Is it possible to access a TCP server running outside our LAN through internet? I thought we could use the router IP Addess(which I got from whatismyip.com) in the class Socket Constructor[CODE] Socket(InetAddress address, int port) [/CODE]. But client wasn't able to find the server. Has anybody successfully achieved this …

Software Development client-server java
Member Avatar for musthafa.aj
0
654
Member Avatar for Talguy

Is there a way to determine what control I clicked using a global click event. I would like to be able to click a form text box table I created for my access app to enable to enable and unlock it without have a million on click event handlers

Software Development visual-basic
Member Avatar for AndreRet
0
135
Member Avatar for watery87

hi guys, I found this code on the web but unable to integrate it into my code, can any1 help?. The problem is, it doesnt read till the eof, instead it stops when the condition is erroneously made. [code] #declare Line_Char_Buffer_Size 4000 #declare INPUT_FILE_NAME "Countries.txt" void readData () { FILE …

Software Development c
Member Avatar for zerocool21
0
103
Member Avatar for Naveed_786

Hi all, I am trying to check a record in database before inerting a new record here is my code but problem is when i enter a names first alphabet it imediatly populate massage please help me i want to check it after entering whole name thanks in advance. [CODE]Private …

Software Development open-source vb.net
Member Avatar for Naveed_786
0
108
Member Avatar for avirag

Hi! how can I convert words into numerals... for Example we enter "One crore twenty lakh thirty four thousand seven hundred eighty four" , then its corresponding numeral should be "12034784". What will be the C# code for finding corresponding numerals for range 0 to 999999999 .....

Software Development
Member Avatar for Geekitygeek
-1
3K
Member Avatar for imso

This is the partial codes i wrote for an alarm clock application but why the counting down time don't worked? Thanks in advance :) [CODE]int intTimeDelay = 10; private void mnu5Sec_Click(object sender, EventArgs e) { intTimeDelay = 5; //intTimeDisplay = 5; } private void mnu10Sec_Click(object sender, EventArgs e) { intTimeDelay …

Software Development c# display
Member Avatar for Geekitygeek
0
424
Member Avatar for arshiyafatima

i have write a c++ progam psudocode on additon of two numbers and average of two numbers enterd from keyboard

Software Development c c# c++
Member Avatar for jasikamarshel
0
98
Member Avatar for eligio

Hello! I need to extract a custom shape from a given image. That custom shape can be, for example, a triangle. For example, if source picture is 100px width and 100px heigth, I need to define a triangle with points: (x=0 y=0) , (x = 50, y = 50), (x …

Software Development c c# c++ image
Member Avatar for eligio
0
1K
Member Avatar for patrick k

I was wondering if anyone could help me a little bit with a problem I encountered on Project Euler. The specific problem at hand is to find the 10,001st prime. I have implemented what I think to be a version of the Sieve of Eratosthenes. When I modify the problem …

Software Development c
Member Avatar for GreenDay2001
0
129
Member Avatar for SoulMazer

Hi, I'm new to C++ and I'm having trouble with this dang linker error. The full error is as follows: [quote]Error 4 error LNK2001: unresolved external symbol "public: static class std::list<class Node,class std::allocator<class Node> > NodeManager::node_list" (?node_list@NodeManager@@2V?$list@VNode@@V?$allocator@VNode@@@std@@@std@@A) Nodes.obj Error 5 fatal error LNK1120: 1 unresolved externals[/quote]From this error, I have …

Software Development c++
Member Avatar for SoulMazer
0
319
Member Avatar for AngelicOne

How to put parameters within dataadapter? Here's an example of non-parameter query.. [CODE]SqlDataAdapter da = new SqlDataAdapter ("SELECT * FROM Table WHERE column='"+textBox1.Text+"'",con);[/CODE]

Software Development sql
Member Avatar for Lusiphur
0
2K
Member Avatar for kurtzky

Hi all. This is the scenario that i have right now. i have a stored procedure created in MS SQL 2000 and is linked to my C# program. The stored procedure contains four select statements (which means it will return 4 tables). In my program, I have four datagrids and …

Software Development dataset
Member Avatar for kurtzky
0
176
Member Avatar for PixelExchange

Hello everyone. I am attempting to build a "form" using Win32 and C++, which contains all of the necessary elements (drop down menus, radio buttons, and check boxes). The problem is, I can find absolutely no resources as to how I would code a drop down list within Win32. The …

Software Development c++
Member Avatar for PixelExchange
0
147
Member Avatar for buster2209

I can't items to my combobox I am under the impression the code is; [CODE]comboBox1.Items.Add("NAME");[/CODE] but this doesn't work. The program compiles correctly but nothing is displayed in the box. What am I doing wrong?

Software Development
Member Avatar for buster2209
0
1K
Member Avatar for Lukezzz

Hi, I have a code where I upload a file to a server. The code is shown below. As seen I use a loop to try to connect 10 times if attempts is failing. I have also put this in a try/catch block and at the end, I am showing …

Software Development c++
Member Avatar for Lukezzz
0
245
Member Avatar for Musing888

Using the following code I am trying to check the users input string (CAcodes) and checking each one individually by assigning each element in CAcodes to a list (CAcode). A for-loop checks the conditions to make sure that the conditions for each code are met. The main for-loop tests several …

Software Development programming-construct python
Member Avatar for TrustyTony
0
296
Member Avatar for nssltd

Hey well i am using microsoft visual c# 2008 professional edition and i seem to be having trouble using the cursor. The cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my windows default cursors to …

Software Development c c# c++ file-stream
Member Avatar for nssltd
0
255
Member Avatar for nssltd

Hi well i posted a earlier thread but no one has replied in three days i have one reply, but it's not what i wanted. he cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my …

Software Development
Member Avatar for nssltd
1
364
Member Avatar for cjmartin

I have tried a few different ways to to highlight the text in a jcombobox when it receives focus but none have work. Any have a code example that could help? Some examples I have tried: [CODE] private void fromComboBoxFocusFocusGained(FocusEvent event) { JTextField field = (JTextField)fromComboBox.getEditor().getEditorComponent(); field.selectAll(); } [/CODE] [CODE] …

Software Development java
Member Avatar for cjmartin
0
503
Member Avatar for Naveed_786

Dear All, I am designing a crystal report in VB.NET I have designed a crystal report i want to pass parameter from a textbox but when i pass parameter or without passing parameter run the report it pulls all the records from the database please help my code is as …

Software Development vb.net
Member Avatar for Oxiegen
0
207
Member Avatar for Lukezzz

Hello, I use a a flashcontrol in the Form application. If I have Flash installed on the computer, the control plays the movie fine. If I uninstall the flash from the computer, I receive this error when opening the form. I have tried to put this code inside a try{} …

Software Development c++ flash
Member Avatar for cgcgames
0
176
Member Avatar for iamcreasy

Can anyone tell me how to compile "mingw-util 0.3"? I am a little confused, when some article says "use make command and it is all done".But "make" command in unknown in my command prompt.I have MinGW installed which comes with codeblocks. I need it to compile MySQL driver, to use …

Software Development c++ qt
Member Avatar for iamcreasy
0
119
Member Avatar for cpp.coder37

Hi every one. I want to ask a question. Whenever i plugged a usb in my computer i want to save that time when this happen. Means that i want to save when when a usb is plugged in my pc in a particular day. I want to do it …

Software Development c
Member Avatar for sirio.bm
0
83
Member Avatar for helpme87

So i am trying to make a program that takes the date from windows (this is not where i have the problem). My problem is i want to use that date and create a txt file for each day. For example it would create a file named... 8_4_2010 for today …

Software Development c++ ios
Member Avatar for helpme87
0
156
Member Avatar for aabi

hi i m using widos 7 64 bit home edition and want to use borlandC++ taht is not supported by 64bit OS so i install DOSBOX0.74 and try use borlnad in it but seems to me not working as it firstly dosbox can not able to initialize some of it …

Software Development c++ ide
Member Avatar for aabi
0
313
Member Avatar for pdk123

Hello All, I need your help to understand , if the following code is ok ? (Baically to have polymorphism of different argument types ) class A{ ... ... public: int function( structA *ptrA); int function( structB *ptrB); } I am getting the compilation error saying the syntax error at …

Software Development c++
Member Avatar for pdk123
0
121

The End.