43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for s.w.a

hello, please i make a code that i want it to work as follows: the user input 3 value and after an inspection(that i am not put it now, i want to try it now so i make the condition, if k%2==0)the input is be either spoof or valed,at the …

Software Development java
Member Avatar for s.w.a
0
199
Member Avatar for Sturdy

Hi masters, I try to write and read file into txt file but i dont know how to do it. Anyone know how to achieve this? Please help me. any help will appreciated much. Best Regards

Software Development visual-basic
Member Avatar for Jx_Man
0
292
Member Avatar for xanawa

i want a regex pattern that accepts from 3 to 6 digits.. and only A,M or G at the end eg: 1234G

Software Development regex
Member Avatar for samueal
0
109
Member Avatar for adarshcu

[CODE]import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexTest { public static void main(String[] args) { String regex = "([a-zA-Z'-]*[ ]*)*"; Pattern p = Pattern.compile(regex); String input = "Adarsh has been testing this issue for a very long time now!#!"; Matcher m = p.matcher(input); System.out.println("Called"); if(m.matches()) System.out.println("Matched"); else System.out.println("Not Matched"); if(input.matches(regex)) System.out.println("Matched"); …

Software Development java regex
Member Avatar for thekashyap
0
185
Member Avatar for jenny666

hello...im new to visual studio 2008 How do i compile C in visual studio 2008? i have read this thread "[URL="http://www.daniweb.com/software-development/cpp/threads/16256"]Compiling C[/URL]" and its says to do this... ------------- Go to View Menu select Solution Explorer or CTRL+ ALT +L Then Select The project that your are developing and right …

Software Development c visual-studio
Member Avatar for jenny666
0
382
Member Avatar for lianpiau

I want make the installer for free try 30 days. after 30days disable the function of program. so I'm want to get user install date + 30days to get expire day. When user key in license key, then can use program. As a result, how can I get the install …

Software Development
Member Avatar for lianpiau
0
273
Member Avatar for virendra_sharma

HI , i need code for to insert , update and for to delete record in excel in asp.net using c#. i am able to add data in excel but having problem while deleting . :( can anyone plz help me. your help will appriciated.:)

Software Development
Member Avatar for abelLazm
0
103
Member Avatar for Jazerix

Hey So i got a Webbrowse (wb_MainBrowser) and a button. for the webbrowser i got a code that looks like this: [CODE] private void wb_MainBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (wb_MainBrowser.Url.ToString() == "http://www.google.dk/") { MessageBox.Show("HEY"); } } [/CODE] and i got a button that goes [CODE] private void btn_Start_Click(object sender, …

Software Development
Member Avatar for Jazerix
0
220
Member Avatar for novice20

Hi all, Here is a part of my code: [CODE]#-- if the ports are mapped properly if(map_dict1[int(MIO_outports1[i])] == int(Exp_map_inport[i]) ): flag = 1 elif(map_dict2[int(MIO_outports1[i])] == int(Exp_map_inport[i])): flag = 1 else: flag = 0 [/CODE] But I am not able to navigate to the 'elif' part. I am getting : [CODE] …

Software Development python
Member Avatar for TrustyTony
0
277
Member Avatar for niths

hi all, I am having a string. Now i need to get the last word in that string. suppose string text = "Hello.. how are you"; Now i need to get 'you' from that string. can anyone help me.. Thank you.

Software Development
Member Avatar for niths
0
140
Member Avatar for gulbano

Hey all, I have an assignment which has a part in which i have to reverse a given string. Can any one tell me any code snippets which will reverse the string automatically or refer any built-in function. Thanks in advance

Software Development
Member Avatar for abelLazm
0
112
Member Avatar for bhagvad301

hi, I made one dll and use it in my project, when i debug my project it show the dll code and its class and method. I dont want show that dll code. Please tell me the solution.

Software Development
Member Avatar for abelLazm
0
80
Member Avatar for vincezed

Hi all the treeview i am creating here works very well but i tried so many ways to add tag to the child nodes but i could not... can any one tell me how to add tag to the nodes... that are created from the database... I could add tag …

Software Development assembly open-source
Member Avatar for vincezed
0
2K
Member Avatar for kiracho

write a python program , which takes one argument ,which is a word( as a string), and returns "true" if the word contains alternating vowels and consonants(i.e a consonant , followed by a vowel , followed by a consonant ....). Then write a short piece of code to read the …

Software Development python
Member Avatar for vegaseat
0
315
Member Avatar for predator78

Hi from what I have seen this should be correct but compiler is complaining. [CODE] #include <iostream> #include <string> using namespace std; // player class class Player{ int *position; string name; public: Player(); ~Player(); void set_name(){ cout << "enter name: "; getline(cin,name); cout << "name is now: " << name …

Software Development c++
Member Avatar for predator78
0
99
Member Avatar for triple_A

Hello all. I am making my first hello world program in C, and I have already run into issues. [CODE]#include <stdio.h> int main() { printf( "Hello World\n" ); getchar(); return 0; } [/CODE] I am getting two errors when I try to run this. C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\firstproject.c|4|multiple definition of `main'| and obj\Debug\main.o:C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\main.c|5|first …

Software Development c
Member Avatar for sergent
0
106
Member Avatar for WolfShield

I have a lot more code than I'm going to post here, but I am posting the relevant parts. What I have is a Calculator program. Here's the code: [CODE=Python] num1 = None num2 = None oper = None def calculate(num1, num2, oper): print("calculate() called") if(oper=="+"): answ = Decimal(num1) + …

Software Development python
Member Avatar for woooee
0
261
Member Avatar for sergent

I made a simple assembly program about a year ago and I lost the source, but I still have the .exe file. I wanted to see the assembly code, so I disassembled the program with ollydbg and there was MUCH MORE code. There was about 3000-4000 lines of code, but …

Software Development assembly
Member Avatar for GunnerInc
0
184
Member Avatar for jowana

Hello, how can I pause the terminal after running the program? I am using a program that outputs a table of error rates.. but can't see the result. I used few suggestions on the web but still not working , char d; cin>>d; not working , what else can I …

Software Development c++
Member Avatar for sergent
-1
213
Member Avatar for Ertzel

I am trying to use the Net User command from the cmd in my C++ program. I have this... [CODE]char acUserName[100]; DWORD nUserName = sizeof(acUserName); if (GetUserName(acUserName, &nUserName)){ cout << "User Name: " << acUserName << endl; system("Net User"); }[/CODE] This displays the User Name on the screen and then …

Software Development c++
Member Avatar for Ertzel
0
148
Member Avatar for VIPER5646

[QUOTE]Hi all I am using Vb2008 Express and an Access DB. I would like to Display a note from a column in the Notes_tbl to a text box this from an Access database. Here is the code that I used but it does not do the job. [/QUOTE] [ICODE] Dim …

Member Avatar for viki123
0
544
Member Avatar for VulcanDesign

Hi all, I'm trying to use Python's urllib to get a Facebook profile page. I get the following error: [CODE]IOError: [Errno socket error] [Errno 10035] A non-blocking socket operation could not be completed immediately[/CODE] Here's my code: [CODE] import urllib member_profile_text = urllib.urlopen('http://www.facebook.com/profile.php?id=1073109649').read() [/CODE] I need to get this working …

Software Development python
Member Avatar for VulcanDesign
0
542
Member Avatar for winecoding

In servlet side, I am trying to receive an vector sent from the applet. The code is like [CODE]InputStream in = request.getInputStream(); ObjectInputStream inputFromApplet = new ObjectInputStream(in); Vector v = (Vector)inputFromApplet.readObject(); [/CODE] But the compiler specifies that the following one is wrong. [CODE]Vector v = (Vector)inputFromApplet.readObject(); [/CODE] The error message …

Software Development java
Member Avatar for JamesCherrill
0
145
Member Avatar for Muhammad Anas

A part of one of the programs in my assignment requires to declare three arrays of same size which will be used in parallel to store gpa's, registration numbers and names of the students respectively. When I use a single loop to take input in all these three arrays then …

Software Development c++
Member Avatar for Muhammad Anas
0
2K
Member Avatar for tboz203

I've had an idea for a class that, instead of storing a number as a single floating-point value, stores the exact value as two or more integers (in cases such as division, fractional exponents, or irrational numbers such as pi or e). The class would have it's own mathematical functions …

Software Development java mathematics storage
Member Avatar for JamesCherrill
0
192
Member Avatar for xanawa

Hi, I need a validation using regex just the pattern i have. The user has to enter digits and after the digits one letter. User can have up to six digits or less eg: 1234(G) 123456(K) 12(O)

Software Development regex
Member Avatar for xanawa
0
801
Member Avatar for TrustyTony

[I]This is one idea for thread of some lessons learned with experience about asking wrong question and answers 'thinking out of box'. If there is need to have sticky, I suggest that this thread become sticky development thread and moderator can move the upvoted suggestions for next part in new …

Software Development data-structure linked-list python
Member Avatar for TrustyTony
0
223
Member Avatar for bulger2503

Is there a way to add data into a RandomAccessFile using seek(long) without writing over the data at that position and beyond? For example: [code] public static void main(String[] args) throws Exception { RandomAccessFile raf = new RandomAccessFile("test.txt", "rw"); raf.writeBytes("Hello, World!"); seek(2); raf.writeBytes("Goodbye, World!"); raf.close(); } [/code] Using that the …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for Red Dragon

the aim of this programme is to create a .txt file (of which the name is specified by the user) of all the items in a certain directory (also specified by the user) the problem is about half way down, the 'mydir' bit [CODE] #include <iostream> #include <fstream> #include <string> …

Software Development c++ file-stream file-system ios
Member Avatar for Red Dragon
0
360
Member Avatar for towerrounder

Hi all, I'd appreciate some advice concerning the following issue. I have a situation with two very different ways to implement. Both are easy, but Im not sure of the pros and cons of each. Basically I am allowing users to message each other on a website, and so I …

Software Development sql xml
Member Avatar for nick.crane
0
214
Member Avatar for ninjatalon

[CODE] If count < max Then If Br.Checked = True Or AM.Checked = True Or LU.Checked = True Or PM.Checked = True Or SU.Checked = True Or EV.Checked = True Then 'Code End If End If [/CODE] is there a way i can put both if statements together like if …

Software Development vb.net
Member Avatar for Jx_Man
0
118
Member Avatar for samueal

I need to disconnect internet connection of a single system which I'm using now,connected in LAN. And I need to Connect again to the internet. How could i make this. I used [CODE]ReleaseDHCPLease [/CODE] and [CODE]RenewDHCPLease [/CODE] But it didn't work Help me

Software Development
Member Avatar for samueal
0
604
Member Avatar for gulbano

Hi I have two forms MainForm and DisplayForm. From MainForm i get the file name on button click and load the form in picturebox placed on display form... Can any one tell me how to do that??? Thanks in advance

Software Development
Member Avatar for abelLazm
0
128
Member Avatar for ninjatalon

I have a table that i'm trying to use as a template that I can then copy to a new page. i only got this much [CODE] Dim oWord As word.Application Dim oDoc As word.Document Dim oTable As word.Table FileCopy("C:/1535.doc", "C:/1535_1" & ".doc") oWord = New word.Application oDoc = oWord.Documents.Open("C:/1535_1" …

Software Development vb.net
Member Avatar for ninjatalon
0
2K
Member Avatar for aplee

Hi everyone, I have this problem, I developed the program in C#(winform) in my computer, when I try to publish it and install in my computer, it works fine. But when other users with different computer install, the are receiving this error : unable to install or run the application. …

Software Development assembly microsoft-office
Member Avatar for aplee
0
564
Member Avatar for vincezed

Hi all I am developing a form with a toggle button in the toolstrip ... i have given the property checkonclick to true and gave this coding in the click event.... I am loading a Groups (Usercontrol) in the MainPanel1 (panel).... It works for first time but does not work …

Software Development
Member Avatar for abelLazm
0
303
Member Avatar for hirenpatel53

Hi All i am filling dataadapter by using query which contains joins Means Retraive data from Multiple Table and fill that data into datatable code shows as follows [CODE]_problemAdapter = new MySqlDataAdapter("SELECT xr.ID,vw.ID view_ID, vw.DX, vw.DisplayName, xr.Active,xr.Preferred FROM vw_Dignosis vw LEFT JOIN diagnosisXref xr ON vw.ID=xr.View_ID ORDER BY vw.DX;", SupraClasses.SupraConnection.Instance); …

Software Development
Member Avatar for abelLazm
0
219
Member Avatar for Derek Elensar

I have another problem... Let's start with said code: [code] #include <iostream> #include <fstream> //I have tried using fstream.h like my teacher instructs me to do/ #include <cstdlib> //but it gives me another error: see below, in actual post. using std::cout; using std::cin; using std::ios; using std::endl; //using namespace std; …

Software Development c++ ios
Member Avatar for Derek Elensar
0
1K
Member Avatar for imperialguy

Platform and Python installation info: [b]Platforms: Windows, OS X Python: Active State Python 2.7 wxPython: Version 2.9[/b] Here is a sample code in which I use a wxMessageBox: [code]import wx,os class Frame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(100, 100),style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | …

Software Development os-x python
Member Avatar for vegaseat
0
1K
Member Avatar for Toikkala

Hi! On school we got exercise to calculate how much the length of substance grow when we know original length and temperature change. So,the case goes that i have value temperature coefficient of different substances and i have to multiply them. I'd like to it without doing several condition statements. …

Software Development python
Member Avatar for woooee
0
255
Member Avatar for [V]

For some reason, I can create temp files but I cannot write to them. Nothing is saved, and the file is always empty. What am I doing wrong? I've tried making it in /tmp, Ive specified mode=w+b, they all do the same. (nothing) [CODE] import tempfile def main(): test = …

Software Development python
Member Avatar for woooee
0
238
Member Avatar for sheennave

I seem to have a problem refreshing the data within my JTable. I know the code is being run through. I have a JTable which is populated from a selection in a combo box, on first click within the combo box the table displays the correct data. So basically the …

Software Development apache java java-swing
Member Avatar for sheennave
0
2K
Member Avatar for lexusdominus

Hey, ive got a problem. i cant seem to get Playsound() to work. Ive searched google, and alot of people say to go to properties - all configurations - linker - and add winmm.lib to the additional dependencies to link it. ok, so i did that, have included mmsystem.h, but …

Software Development c++
Member Avatar for lexusdominus
0
98
Member Avatar for gynmd

hello, can someone explain me how this printf inside the function works? [CODE] #include<stdio.h> #define SIZE 10 void function(int [],int); int main() { int a[SIZE]={32,27,64,18,95,14,90,70,60,37}; function(a,SIZE); return 0; } void function(int b[],int size) { if(size>0){ function(&b[1],size-1); printf("%d ",b[0]); } } [/CODE]

Software Development c
Member Avatar for gynmd
0
173
Member Avatar for gcardonav

Hi guys: I created this code to read two file get their input and post certain output. My problem is that C++ is sorting out my output from smaller to greater. Is there a way that I can get c++ not to sort out the output. Thanks: Gus Here is …

Software Development c++
Member Avatar for Sky Diploma
0
268
Member Avatar for VIeditorlover

I have a problem with this construction, can not find how to rewrite it properly. [CODE] private SqlParameter op <T> (T? t, string name) { SqlParameter sp = new SqlParameter(); sp.IsNullable = true; sp.ParameterName = name; sp.Value = t.HasValue ? t.Value : Convert.DBNull; return sp; } [/CODE]

Software Development
Member Avatar for gusano79
0
221
Member Avatar for Ephexeve

I am reading a Python book for Pyton 2.5 (But I am doing Python 3). I am at the chapter classes and I got this part; "You can check whenever the function attribute was callable." [CODE]callable(tc,'talk',None)[/CODE] In Python3 we do not have callable anymore, so I checked on the internet, …

Software Development oop python
Member Avatar for TrustyTony
0
278
Member Avatar for Trepach

Environment: MS Visual Studio 2008. (Please transfer this thread to where it belongs.) Project type: Windows Forms Control Library. Goal: Get the pixel color from a given process' main window. Already achieved: I got the desired process's pointer by using [code]cli::array<Process ^>^ Proc = System::Diagnostics::Process::GetProcessesByName("Notepad");[/code] I believe I got the …

Software Development c++ visual-studio
Member Avatar for Trepach
0
424
Member Avatar for Acegikmo

I'm trying to make a class called "Sprite", which is supposed to handle spritecards and such. However, I can't seem to be able to get the image height without having an image observer object. Do I have to pass the image observer from the main class to every sprite class …

Software Development image java
Member Avatar for Ezzaral
0
197
Member Avatar for BleepyE

Hey Guys, Ive made a settings form for my latest StopWatch project. The stopwatch also includes a countdown timer. To set the time to countdown from, ive made a settings form in which you can enter a value into a textbox and when you start the countdown, it reads the …

Software Development vb.net
Member Avatar for BleepyE
0
100

The End.