132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for manishanibhwani

int n; scanf("%d\n", &n); printf("you typed %d\n", n); it seems to hang until I type one extra line of input....Can anyone explain this behaviour

Software Development c
Member Avatar for WaltP
0
180
Member Avatar for Alochai

IDC_FUNCTIONALITY MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", IDM_EXIT END POPUP "&Help" BEGIN MENUITEM "&About ...", IDM_ABOUT END END This is an example of a part of the default Foo.rc file distributed with VisualC++ 2010(Express), this is how this section of code was shipped. I'm interested in knowing why Exit …

Software Development api c++
Member Avatar for Alochai
0
138
Member Avatar for Sendy Hipo

hi im trying to do Bjarne Stroustrup's exercise (calculator), it worked well but when im trying to add new function in the calculator (add new variable) it has bugs.. its not complete yet, because when i checked a bit, after i add string "name" inside `Token class`, it gives no …

Software Development c++
Member Avatar for Sendy Hipo
0
175
Member Avatar for Hades80

I need help translatinthis problem The sum of the sqaures of the 2 larger interagers is 12 less than 4 times the square of the smaller number.

Software Development java
Member Avatar for Taywin
0
145
Member Avatar for triumphost

Hey guys, I have two structs and I have two functions in two DLL's. DLL-A is attached to a process and collects data. When the data is requested by DLLB which is attached to a second process, DLLA maps the data for B to read. The problem is, I cannot …

Software Development c++
Member Avatar for triumphost
0
957
Member Avatar for vstl

I have two text area on the screen, I can make bold the different words between two text areas and I want to have for up and down to go the different words helping this button on the text areas. how can I do that?

Software Development java
Member Avatar for NormR1
0
98
Member Avatar for Skrell

I recently came across this code on the internet and I'm having a very hard time understand how it works. I was hoping someone could comment the code a bit in order to help me learn it better? I understand most of it, but get lost when any of the …

Software Development perl python
Member Avatar for Skrell
0
294
Member Avatar for slowlearner2010

This is my code that i put inside Form 1....(for ur info, im using microsoft visual c++ 2010). #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { char szDSN[256] = "Driver={Microsoft Access Driver (*.mdb, *.accdb)};DSN='';DBQ=C:\Documents and Settings\user\Desktop\dbtesting.mdb"; } i try to compile my code and here I get hundreds of …

Software Development c++ microsoft-access
Member Avatar for sanjayogii
0
515
Member Avatar for Mike Askew

I am currently running a live 'in-memory' XSLT transformation using the following code XmlDocument XmlDoc = new XmlDocument(); XmlDoc.LoadXml(DS.GetXml()); XslCompiledTransform XsltTranformation = new XslCompiledTransform(); XsltTranformation.Load(@"C:\Users\maskew\Desktop\XSLTMapping.xsl"); Stream XmlStream = new MemoryStream(); XmlDoc.Save(XmlStream); //Stream is still blank after this line XmlReader XmlRdr = XmlReader.Create(XmlStream); MemoryStream stm = new MemoryStream(); XsltTranformation.Transform(XmlRdr, null, stm); …

Software Development file-stream
Member Avatar for Mike Askew
0
585
Member Avatar for el fahem

i'm at the begining of using vb6 , so i ask if some one send me a nice web site that contain training video vb6 and i want also a nice web site that teach vb code

Software Development visual-basic
Member Avatar for frnds2vivek
0
97
Member Avatar for crazykoolit

Good Day! We would like to seek help on managing multiple values within a single XML attribute. <Row> <title>type Title here</title> <description>type Description here</description> <stage>Development</stage> <platform>Java, .NET, Mainframe</platform> <lifecycle>Custom Development</lifecycle> <servicegroup>System Integration (SI), Technology Consulting (TC)</servicegroup> </Row> With the above sample xml, as you may notice, <platform> does have 3 …

Software Development oracle xml
Member Avatar for Mike Askew
0
259
Member Avatar for coroll

Hi, I want to get the object of the currently open JFrame? I found this Frame[] frames = Frame.getFrames(); Does this provide the open frames? If so how to get the frame that i need. Plz Help..

Software Development java
Member Avatar for stultuske
0
121
Member Avatar for abbas.aleryani

Hi all when i execute my code it gives me this error " no data exists for the row column" can anyone please help me,,,am using access database here is my code: private void UpdateStudent_Load(object sender, EventArgs e) { OleDbDataAdapter da = new OleDbDataAdapter(); da.SelectCommand = new OleDbCommand("select * from …

Software Development c c# c++
Member Avatar for Cameronsmith63
0
463
Member Avatar for nmaz22

Hi i was hoping someone could help me as im new to programming. Basically i have a form containing 6 combo boxes which have different options to select from the the drop down. Basically each of the options in each box are worth a different number of points eg one …

Software Development vb.net
Member Avatar for Reverend Jim
0
104
Member Avatar for geek86

Hello everyone. 1)I am trying several days now to display an image from file Chooser in Netbeans. i have read and tried many different approaches from the web, but something goes wrong.Although the program runs ok,I see no results.Until now, I have used the "Design" tab of Netbeans to create …

Software Development display image java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Oracan

Hi, I'm trying to add a right parenthesis to a number when it is negative upon returning from a Java function and so far am unable to do it. I can add the left parenthesis no problem but can't find a way to add the right parenthesis. It is much …

Software Development xml
Member Avatar for gilltech
0
182
Member Avatar for M.Waqas Aslam

hello ! i want to disable my usb port using c# or vb.net ,is it possible to do so using .net ? if yes then any idea how i can do this ? Regards

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
96
Member Avatar for riahc3

Hello I want to make two shell scripts but they shell scripts isnt exactly my language :P The following is all pseudocode The first script will run every say 5 minutes: if /tmp/media/sda1 exists or /tmp/media/sda2 exists or /tmp/media/sda3 exists or /tmp/media/sda4 exists then do variable storage=what ever above first …

Software Development shell-scripting storage
Member Avatar for riahc3
0
184
Member Avatar for I_m_rude

Can you please give me link for this tree ? I have searched alot and alot , but i am not getting how to implement it or how to use it. please give me links. it's a request to all of you. thanks.

Software Development c
Member Avatar for I_m_rude
0
122
Member Avatar for n.aggel

Hi to everyone! I want to create a simple chat application using udp sockets. I want to have 2 applications that will be able to talk to each other.In particular app1 will send msgs to p2 and p2 will display them in stdout. Then maybe p2 sends a msg to …

Member Avatar for Ambreshbiradar
0
1K
Member Avatar for matt.malone.921

#include <stdio.h> main() { FILE*fp ; if ((fp = fopen("new.txt","r")) == NULL); { printf("file could not be opened\n"); return 0; } } this is what ive written and it always comes back with file could not be opened. I need to read the text file new, which has 10 variables …

Software Development c file-system
Member Avatar for Sokurenko
0
90
Member Avatar for titusnainggolan

I have the code below #include <stdio.h> int main(){ float n; scanf("%f",&n); printf("%f",n); return 0; } Then, I run the code input: 45321.56 is not same with output:45321.558594 I want to get output which same as the input. How to solve this problem? Thank you

Software Development c
Member Avatar for WaltP
0
376
Member Avatar for laklaker

Hello! I'm new on VB.net I just want to ask. How would I use openfiledialog selecting multiple files? I was creating a school project a media player. It should play all media basis like audio, and video. My problem is everytime I open the OpenFileDialog it will only select a …

Software Development audio vb.net
Member Avatar for laklaker
0
99
Member Avatar for bharath54321

I want to hide or delete the Jtable from the frame

Software Development java
Member Avatar for stultuske
0
147
Member Avatar for bo0ga

Graduated in May and still jobless. I want a position in programming but chose IT as my major. I should have chose computer science which focuses more on programming. Anyway, I seem to not be knowledgeable or skilled enough when I go on interviews - even for junior level positions. …

Software Development java
Member Avatar for stultuske
0
133
Member Avatar for system_Broken

I WANT SEND ITEMS INTO DATABASE WITH ONE TIME CONNECTION OPEN ? MYCONN.OPEN(); FOR(INT I =0; I < CODE.COUNT ; I ++) { DB.SUBMITITEMS(CODE[I]); //IS IT RIGHT IF I HAVE 100 ITEMS TO SEND DATABASE WITH ONCE TIME OPEN CONNECTION OF DATABASE; OR I NEED TO REOPEN AND CLOSE CONN …

Software Development c c# c++ mysql
Member Avatar for M.Waqas Aslam
0
146
Member Avatar for fasna

Write a function estimatePi() to estimate and return the value of Pi based on the formula found by an Indian Mathematician Srinivasa Ramanujan. It should use a while loop to compute the terms of the summation until the last term is smaller than 1e-15. The formula for estimating Pi is …

Software Development mathematics python
Member Avatar for fasna
0
730
Member Avatar for Vish0203

How can i give an icon to the exe file produced after executing my code?? is it possible??

Software Development c
Member Avatar for Vish0203
0
113
Member Avatar for Afropuff01

Hello, I am working on a project in which I have multiple 16x128x16 chunks of data(basically just a 3d array). I need to save the chunks so that they can be easily and quickly rebuilt later. The problem is that each element in the chunk is a short, so each …

Software Development algorithm
Member Avatar for Momerath
0
193
Member Avatar for dinohead

Hello! I have what I want to print to file current printf-ing on my console. Can I have some help getting it to do the same, only this time to file please. I can't get it to work. Many thanks for(i= 0; i <= k; i++) { add = (unsigned …

Software Development c
Member Avatar for deceptikon
0
160
Member Avatar for alissaw

Hi everyone, java newbie here. I've got a bit of a loose grip on delimiters, which I'm trying to use in this code from project "Add 'em Up" in Blue Pelican Java lesson 17. The code **does** compile, but I'm not getting the results I want. When I run the …

Software Development java
Member Avatar for stultuske
0
210
Member Avatar for alissaw

Hi everyone, Java newbie here. I'm trying to compile this code, but I'm getting errors on lines 40 and 42 saying it can't find the symbols *balance* and *name* that I defined in the beginning of the code. I'm not quite sure what I did wrong, and would appreciate any …

Software Development java
Member Avatar for alissaw
0
172
Member Avatar for 3nrichedd

Basically I have found myself stuck in a math problem, any possibilities for assistance? I know this is java but I figured there must be a java programmer out there that knows how to solve this? c=95% In small NY towns (population < 30000) a sample of 22 libraries had …

Software Development java mathematics
Member Avatar for NormR1
0
177
Member Avatar for bettybarnes

I am currently doing a simple loading system, what I want to do is to check specific numbers for example these cellphone numbers are only for globe telecom (0915, 0916, 0917) and for smart telecom (0918, 0919, 0920, 0921). If the user checks on globe the number should be in …

Software Development regex vb.net
Member Avatar for Reverend Jim
0
160
Member Avatar for Sneaky Pete

Hello, I've got a question about some mathematics in VB.net. I really hope someone can help me out! On a form i've got two textboxes. Users can give input (numbers) and the numbers are like this: 0.000 or 250.000 or 36547.256, etc. The numbers are converted to a string for …

Software Development mathematics vb.net
Member Avatar for Sneaky Pete
0
238
Member Avatar for harirock

**Jvm is a folatform independent or not if it is yes way? no why no?**

Software Development java
Member Avatar for rotten69
0
128
Member Avatar for tonkata_stoilov

Absolutely new to C. I just downloaded Code::Blocks with MinGW and tried to build my first piece of code and I got this strange message: Linking console executable: bin\Debug\intro1.exe Execution of 'mingw32-g++.exe -o bin\Debug\intro1.exe obj\Debug\main.o' in 'D:\Documents\intro1' failed. Nothing to be done. And I don't know what to do. Any …

Software Development c
Member Avatar for gusano79
0
238
Member Avatar for chaacoali

Can someone please tell me what is wrong with this code int main() { char str[10],str2[10]; int k,i=0,j; printf("enter de string\n"); scanf("%s",str); k=strlen(str); printf("length of de string %d\n",k); for(j=k-1;j=0;j--) { str2[i++]=str[j]; } printf("%s",str2); for(i=0;i<k;i++) { if(strcmp(str,str2)==0) { printf("palindrome"); } } return 0; } this is my output enter de string …

Software Development c
Member Avatar for chaacoali
0
131
Member Avatar for G_Waddell

Hi, I've written a routine for a customer to import sales orders into their Sage system. Everything was going well but the client has come back with a particular excel sheet that is not importing. He is getting a message to tell him the sheet is not in a valid …

Software Development microsoft-office vb.net
Member Avatar for G_Waddell
0
534
Member Avatar for ryantroop

So, I would like to start working on a python module to support RFC 2326 (RTSP), in an effort to work on a larger application that I will probably need help with later. I am unsure how to go about making software that is meant to adhere to a specific …

Software Development python
Member Avatar for ryantroop
0
278
Member Avatar for hamiltino

I missed one of my classes for data structures. Can anyone give me a general guide in solving this simple recursive problem using Linked lists. Where one has to find the min and max values of integers stored in a linked lists. Here is methods i need to use. Write …

Software Development java linked-list
Member Avatar for JamesCherrill
0
431
Member Avatar for K.os

Hello! first of all i'm a **newbie **and don't know much about visual basics. I'm using **Visual Basics 2008** and i'm having a problem. It is that i don't know how to generate a search through my 'cmdsearch' i browse on internet but got nothing that approach to my expectations. …

Software Development vb.net
Member Avatar for jemz
0
111
Member Avatar for Tinnin

I'm trying to print out whether a number is prime or not up to and including the user inputted integer. The problem I'm having is that regardless of the user inputted integer, the loop only runs up to 4. How do I break from the nested loop without ending the …

Software Development c++
Member Avatar for deceptikon
0
160
Member Avatar for agnair

Hi, I am new to VB, and still learning. Please help me. I am developing a simple VB application, in Visual Studio 2010, where in we have to enter values in the fields given. I need to add a REFRESH button, which should act like a clr screen command. When …

Software Development vb.net visual-studio
Member Avatar for Netcode
0
278
Member Avatar for glao

Hello , i am trying to understand how periodic boundary condition works.Of course, i understand what it is and how it works,just i am trying to implement it in c++ and i have some problems.( for now i want to make it work in 1d but i want it for …

Software Development c++
Member Avatar for glao
0
3K
Member Avatar for Gaving30

Hi, Using ASP.NET 2.0 C# I am looking to get some idea how to reduce the quantity as the user buys a product. In my database i have a quantity column and when the user buys an amount of a certain product i would like it to deduct this from …

Software Development
Member Avatar for M.Waqas Aslam
0
125
Member Avatar for pallas_athena

Help! I need to run my function every 5 mins but I don't know how and what to use. I tried using Restart but my whole application ill restart too.

Software Development c#
Member Avatar for M.Waqas Aslam
0
114
Member Avatar for rajesh1158

Need an Hello world example of how to add an item in the context/pop-up menu in eclipse plugin development. (menu should pop-up when we right-click anywhere in the workspace).

Software Development ide java
Member Avatar for JamesCherrill
0
309
Member Avatar for triumphost

Hey all. I'm having a problem with a DLL being loaded. In codeblocks, if I don't export Main + ALL the functions in my DLL, they cannot be used by an external program! Yet in visual studio, I exported nothing and external programs are able to load the DLL. Example: …

Software Development c++ visual-studio
Member Avatar for triumphost
0
527
Member Avatar for deepthought

Hi Guys, I have managed to connect to a laser sensor and get data back from the unit into python however i think i need to decode this data. Below is what i have sent and get back. Console Result:- UDP target IP: 192.168.60.3 UDP target port: 9008 message: FF …

Software Development python
Member Avatar for deepthought
0
134

The End.