132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VBNick

hello! I am trying to learn how to do paralell processing. I am baseing this on an example that I saw here: [url]http://www.codeproject.com/KB/recipes/sseintro.aspx[/url] the one titled "SSETest Demo Project" I tried to make my own, and don't understand why it isn't working. Here is the code: [code="cplusplus"] // testconsole.cpp : …

Software Development c++
Member Avatar for VBNick
0
233
Member Avatar for shasha821110

Hi, all. I have one question: I am writing my-string class now according to the assignment. And like other String class assignment, we have to overload the operator, do the difference type constructor, etc. Well, i almost finish my assignment. But there have one problem with my code. I am …

Software Development c++
Member Avatar for William Hemsworth
0
256
Member Avatar for EJD

The following code is giving me `"Exception in thread main java.lang.NumberFormatString"` error and some specifics following it. The file I am having the program read is in the following REQUIRED format: Smith 12 14 15 12 16 -1 James 19 19 28 48 12 -1 Where -1 is a sentinel …

Software Development java
Member Avatar for llemes4011
0
111
Member Avatar for BobLewiston

In C#, I'd like to convert some numbers to strings in a standard format, but preferably in a simple way, such as if you were going to output them rather than store them in string variables, a la:[code]Console.WriteLine ("{0:F2}", num);[/code]rather than use a bunch of string methods to make them …

Software Development
Member Avatar for ddanbe
0
189
Member Avatar for colmcy1

Hey all, I am trying to first write an array to a text text file, delete the array, then later in the program I need to use the array again so I need to open the text file and read the array and call it the same name as before. …

Software Development c++ file-system
Member Avatar for 10Pints
0
272
Member Avatar for EDanaII

I'm not sure if this is the right place to post this, but as there is no .NET forum (only a VB.NET and ASP.NET forums) and I'm using C#, so here I go. :) I have a datagridview with a single combobox per row. I want to populate that combobox …

Software Development asp.net vb.net
Member Avatar for EDanaII
0
875
Member Avatar for katamole

Hi everyone, As a personal project I've decided to write a small script which will take a raw_input film title, then look up the IMDB rating and return the result. As an extra challenge I decided to employ re. Now, this is how far I have got (yes, I am …

Software Development html-css python regex
Member Avatar for katamole
0
678
Member Avatar for Norbert X

Is there any way to save to progress of a Python Program onto an I.P. Address or Harddrive? Like if you enter '5' into a program that multiplies your number by 3 and save it, your saved number would be 'x' when you reopen the file. I need help! :)

Software Development python
Member Avatar for leegeorg07
0
141
Member Avatar for Webbsta

At the moment i am using the shell command simply because i need to the my program as if it was a batch file, the program that im using needs the shell command to run properly otherwise it would need to be done in a batch file, now i know …

Software Development vb.net
Member Avatar for bartj1
0
1K
Member Avatar for BruenorBH

I am sort of new to Win32 API programming with C++ and I am having an issue trying to save what is in the textboxes to a file when you hit the close button. I am using the WriteFile() and CreateFile() functions. Everytime I try to do it I get …

Software Development api c++ windows-api
Member Avatar for BruenorBH
0
184
Member Avatar for JameB

Hello, I have a problem where I need to delete any occurrence of "~" from a string. I created a function but in the end, it only deletes half of the "~" and leaves the other half.... [code=c++] string goodstring(string inp) { for (int i = 0; i < strlen(inp.c_str()); …

Software Development c c# c++
Member Avatar for GDICommander
0
134
Member Avatar for sam_sumit184

program for copying one file to another by using protection of conventional run time error.

Software Development c++
Member Avatar for siddhant3s
0
59
Member Avatar for peacerosetx

Greetings All, I have one class I'll call main class and it creates and initializes all of the classes so that they are not re-created again. What I simply want to do is to have in the creation of my other classes pointers to the classes they need to operate. …

Software Development c++
Member Avatar for peacerosetx
0
108
Member Avatar for viv_daniweb

hi....can u suggest me the latest mini project on the c++....

Software Development c++
Member Avatar for siddhant3s
0
164
Member Avatar for drone626

I have written code to compute the discriminant of a polynomial f(x) using the determinant of a sylvester matrix which for f(x)=x^5 -110*x^3 +55*x^2 +2310*x +979 looks like [CODE] [[ 1 0 -110 55 2310 979 0 0 0] [ 0 1 0 -110 55 2310 979 0 0] [ …

Software Development python
Member Avatar for Gribouillis
0
106
Member Avatar for tux4life

While searching the internet I always come across several posts where they're saying that Bloodshed Dev-C++ isn't for advanced use (rather for newbies), why are they saying that? Is MinGW not an advanced compiler? Or is it just because they aren't developping Dev-C++ anymore... I know there's Code::Blocks, but I …

Software Development c++ ide
Member Avatar for tux4life
0
170
Member Avatar for MosaicFuneral

In GCC/MinGW when I map a function to a specific section can I expect the sections [icode]Characteristics[/icode] bits 5, 9 and 30(IMAGE_SCN_CNT_CODE | IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ) to be set or always set? What about for an all variable mapped section? I just wanted to know if I could confirm a …

Software Development c++
Member Avatar for Salem
0
268
Member Avatar for kleinsun

Dear all, I am trying to use WIN32 API "CopyFile" to copy a file from a remote machine to local. [code=C++] bRet = CopyFile(src, dest, false); [/code] "dest" is defined as [code=C++] dest = "\\\\desk\\data\\1.txt"; [/code] But this operation always fails. Could anybody give me a little hint? Thanks!

Software Development api c++
Member Avatar for mitrmkar
0
2K
Member Avatar for firoz.raj

can anybody tell me .How should i store Requistion Nos In MaterialRequisitionorder table and Material Requistion Detail table. Here is the code what i have wriiten.Why it is breaking on the bold line. i am getting error item cannot be found in the collection corresponding to the requested name or …

Software Development visual-basic
Member Avatar for hkdani
0
105
Member Avatar for slimjimmer

Hi, I am trying to validate user input from the scanf function. I have managed to ensure the input is an integer between the limits of 2 and 1000, but I haven't managed to get the program to only allow one value at input. Can I do this with scanf …

Software Development c
Member Avatar for Salem
0
2K
Member Avatar for hawisme000

[QUOTE]this code is from another form before i get to the formload below xNum = 2 adminlec.show unload me [/QUOTE] [CODE]Private Sub Form_Load() lblLECNUM.Caption = xNUM '<----this is a public dim that i wrote on a module as integer Set cnn = New ADODB.connection Set rs = New ADODB.Recordset cnn.ConnectionString …

Software Development open-source visual-basic
Member Avatar for hkdani
0
388
Member Avatar for mishu1516

hello dani........ plz help to get the following output using C language(array) using one nested for loop ******* ***** *** * *** ***** ******* plz...........help........quick

Software Development c
Member Avatar for jenilgandhi
0
234
Member Avatar for tmani_85

I am setting focus to combobox as combobox.select() in a thread by using the delegate. But only after changing the ALT+TAB to another window the combobox is getting focused. How to solve this problem... Please help me... Thanks in advance... The code is here... ============= Private Delegate Sub cmbusersetfocus() Private …

Software Development operating-system vb.net
Member Avatar for tmani_85
0
2K
Member Avatar for revenge2

hey guys how would i print something 60 times without actually typing the character out 60 times. [CODE=C]printf("#"*60);[/CODE] ^ which is complete rubbish and doesnt work, but what is the syntax for it? cheers!

Software Development c
Member Avatar for Aia
0
133
Member Avatar for cppStudent

Hi Can someone please help me figure out how to find the parent of a node? Here is the closest I got to something that works. It finds the parent and prints it out "parent: x" but it doesn't send the parent node back ? Any help would be appreciated. …

Software Development java
Member Avatar for quuba
0
1K
Member Avatar for Vovka

Help please.....a misfortune happened, here unmaybe I in any way to complete work for a bank...It is needed to create a class bank which will contain a class account:(current and deposit), and also the class of persons which contains (manager and cashier)...help please, very ask...! beforehand thank you...

Software Development c++
Member Avatar for Vovka
0
115
Member Avatar for Joe_Coolish

Ok, I'm using the[URL="http://www.codeplex.com/LINQtoAD"] Linq-to AD[/URL] and I'm having a problem implementing a lambda expression for the where clause in the linq expression. Basically, I'm getting a MethodCallExpression object of method type Func<User,bool> (user is the object that has all the Active Directory information) and the lambda expression that I …

Software Development
Member Avatar for Joe_Coolish
0
84
Member Avatar for karthik.c

Hi guys ,i came across coding in a book where they given the below program and named it as singleton class.but here we are able to create 2nd object and also call constructor for second object (only here do we check the status of count and exit from the program …

Software Development c++
Member Avatar for ArkM
0
104
Member Avatar for xonxon

int *p; int *q; p=new int; *p=35 q=new int; *q=62; p=q; cout<< *p << ","<< *q<< endl; What is the value of `*p` and `*q`? Why? the statement p=q refer to?

Software Development c++
Member Avatar for BevoX
0
109
Member Avatar for jooa

Hi I am trying to implement the Fast Fourier Transform. I have some code which I got online and slightly modified. I have a class GrabPixels which extracts a pixel array from an image, the class FFT implements the transform. My problem is I don't think the methods in the …

Software Development data-structure java java-swing
Member Avatar for JamesCherrill
0
403
Member Avatar for tintincute

hi I'm new to C# and I didn't have any programming skills. I'm on my third week now and it seems it's quite complex I would like to design a code, where it can determine the word type in the sentence. So, first one must type a sentence and then …

Software Development c#
Member Avatar for LizR
0
264
Member Avatar for Reg74

[CODE= C++] //Pg.288 #include <cassert> #include <iostream> using namespace std; void deleteKthElement(int k, int& count); int main() { struct nodeType { int info; nodeType *link; }; nodeType *first, *newNode, *last, *traverse; int num; int count = 0; cout << "Enter a list of integers ending with -999.\n"; cin >> num; …

Software Development c++ linked-list
Member Avatar for Reg74
0
124
Member Avatar for dev_kc

how do i use update command in vb?? I need to make changes in the database from vb form,the changes made in the text box should be made in the database as well,this is the code i am using Con.BeginTrans Con.Execute "update Details set PS_No=" & Trim(txtPSNo.Text) & " and …

Software Development visual-basic
Member Avatar for javmedia
0
77
Member Avatar for DemonGal711

Alright, I had to design an N-ary tree so later I could use it to produce a word ladder. I got the tree to insert and print perfectly. Now what I need to do is add pointers so that everything points to the correct item. Here's the example: Connect cat …

Software Development c++
Member Avatar for DemonGal711
0
91
Member Avatar for nagatron

Hallo to all, can anyone help me with my thesis? I need to filter space between character. Ex. If I input: "Jump and Go" a message box will appear saying "Space between character is not allowed." if I input: JumpAngGo or Jumpandgo is are accepted as long as there is …

Software Development visual-basic
Member Avatar for javmedia
0
430
Member Avatar for wwnnm25

Hello I am upsizing a MS Access database to SQL. I am keeping the MS Access 2003 frontend and using a SQL Server for the Backend. All the MS Access VBA code seems to be working fine except for the code below. I have the same code using different tables …

Software Development sql visual-basic
Member Avatar for javmedia
0
112
Member Avatar for nandomendoza

I have to wrtie a program for class that asks the user to input to cards ex: 7c(7 of clubs) and then compare the two cards at the end to see which one is the greater card. This is the code I have so far and for some reason it …

Software Development java
Member Avatar for stephen84s
0
117
Member Avatar for r5quad

Im getting a pretty out there error that I have no explanation for when I run my program, here is what Im getting. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:65) at apple.awt.CToolkit$4.run(CToolkit.java:1259) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Exception in thread "AWT-EventQueue-0" …

Software Development apple java
Member Avatar for stephen84s
0
103
Member Avatar for homeryansta

[CODE=c++] inFile >> x; while(!inFile.eof()) { if(x == '\n') { cout << endl; } cout << x; inFile >> x; }[/CODE] will this code detect end of line? I'm having trouble with this. Can anyone help?

Software Development c++
Member Avatar for DemonGal711
0
298
Member Avatar for PhiberOptik

Hey guys, I want to writing a program that clicks. I want to be able to specify the area it clicks. Anyone know how to do this? I googled a bunch and couldn't find anything even close to this.

Software Development java
Member Avatar for sillyboy
0
114
Member Avatar for MarMcD

Hello, Can anyone please help me... I need to create a GUI program that holds product inventory. I have five errors and I can't figure out what they are... I need a second look from someone... Thanks in advance! [code] import javax.swing.*; import java.awt.*; import java.text.NumberFormat; import java.util.Locale; public class …

Software Development gui java java-swing
Member Avatar for MarMcD
0
160
Member Avatar for abu taher

I make two table in ms access. both of two table has like 'student name' column. when I enter a name it save in table1. Now I want this name will save in table2 automatically. I mean I don't enter this name in table2, but it will store this name …

Software Development visual-basic
Member Avatar for javmedia
0
101
Member Avatar for themightycrag

Here's the scenario. I have a web server running with IIS 6 and website running written in ASP. The site and code has been working perfectly up until about 2 days ago when for no reason whatsoever the ASP has decided to partly work. and by this i mean as …

Software Development asp visual-basic web-server
Member Avatar for javmedia
0
104
Member Avatar for DemonGal711

I was writing up my NTree class that I need for a program that I'm working on. My function order() takes in a vector and a string and sorts the vector according to that string so the words closest to the string (one letter off) are at the beginning of …

Software Development c++
Member Avatar for DemonGal711
0
76
Member Avatar for cool1_best1

If the stack top is maintained at the [B]end of the linked lis[/B]t, i.e. stack top is the last item, accessing the stack top would take a lot of time, since N items of the linked list need to be traversed before we can access the last item, This would …

Software Development c c# c++ linked-list
Member Avatar for death_oclock
0
105
Member Avatar for ofnature

I am writing a program, that will automatically post an image from a folder on my computer onto a blog of mine. I want to be able to have the program add a title for the post and maybe even fill in some tags. I don't know how to make …

Software Development c++
Member Avatar for skatamatic
0
139
Member Avatar for Drahmina

Im just trying to load a PNG file i created of a background for a game I plan to produce eventually. However im not sure how you go about adding that image to the window. Ive opened up a standard windows app template with the following code. [code]#include <windows.h> /* …

Software Development c++ data-structure image queue
Member Avatar for death_oclock
0
113
Member Avatar for swetharvss

The description of my problem is here- Suppose I have an array of arrays- 1.1) 23445 1.2) 2144 1.3) 77988 1.4) 545 1.5) 52358 2.1) 2356 2.2)7878 2.3)531 2.4)78 2.5)78090 3.1) 578689 3.2) 90877 3.3) 1345 3.4) 422 3.5) 64 ..... .... ... Now i need to compare 1.1 , …

Software Development c
Member Avatar for death_oclock
0
114
Member Avatar for aqee_se

I'm working on a messenger. Scenario is this: a thread is running at background as soon as it gets a message from server. It has to show this in a new form. But when i try to show the form, form just hangs and nothing happens on form. Code is …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
103
Member Avatar for aqee_se

When calling a form from a thread. It just hangs. No error detects or etc

Software Development vb.net
Member Avatar for Ramy Mahrous
0
87

The End.