132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DotNetUser

Code in VC++.NET I have a string that has html tags. I want to replace <BR> with \n, but not sure if <BR> will be uppercase, lowercase, or a mixture of both. The string replace function allows only one parameter for the replaced value. Is there a better way of …

Software Development c++ display
Member Avatar for DotNetUser
0
201
Member Avatar for williamrojas78

Hi I am developing this application where i have to create a report in excel; in other words i am writing to an excel file from VB. The application writes the contents of a grid into the excel file. The first time I run it it works fine, but the …

Software Development microsoft visual-basic
Member Avatar for williamrojas78
0
404
Member Avatar for DotNetUser

Anybody know how to create a pop up menu in VC++.NET? In VB 6.0, you would make a call to PopupMenu(menu) with menu visible property = unchecked.

Software Development c++
Member Avatar for DotNetUser
0
452
Member Avatar for k_en

Is this correct? How do i fix the error? [CODE]for i in range(10): for j in range(10): if(list[i] != alpha[j])[/CODE]

Software Development python
Member Avatar for k_en
0
122
Member Avatar for masa

Hi if you have a file on c drive under a particular folder how can you open it [code] ifstream input(filename); [/code] if your file name is available in c drive on myfile folder (filename=" C:\myfile\hi.txt") :idea:

Software Development c
Member Avatar for masa
0
97
Member Avatar for Dark_Omen

I was wondering if it would be possible to access the contacts list for a particular user over a pop server. Does anybody know if this is possible? Thanks

Software Development java
Member Avatar for Dark_Omen
0
94
Member Avatar for Jon182

Hey guys, I have been told that the getline function in C++ is a standard library member but is this true as the #include <stdlib> header file does not have to be included in order for getline to work? Thanks.

Software Development c c# c++
Member Avatar for Ancient Dragon
0
371
Member Avatar for Aldin

Hi see this code [code] #define MAX_LINE_LENGTH 1024 #define MAX_TOKEN_LENGTH 32 typedef struct max_min { char maximum[MAX_TOKEN_LENGTH]; char minimum[MAX_TOKEN_LENGTH]; } m_and_m; [/Code] [code] enum data_type{enumber}; [/code] in your main program did this [code] m_and_m max_number; FILE *fp; int result; /*Open input file*/ fp = fopen("read.csv","r"); if (fp != NULL) { …

Software Development c
Member Avatar for Narue
0
123
Member Avatar for CPL85

i'm a c++ beginner and now i got a question i try many times but i stil can't solve it so can anyboby here help me to solve? here is my question: Write a program that read in a sequence of characters in terms of sentences. Provide analysis of the …

Software Development c++ display
Member Avatar for CPL85
0
86
Member Avatar for eliauction

Ok...how bout in java Hi evry1, i need opinion here...im thinking of developing app whether online or for desktop...something like the following 1) [url]http://www.netsuite.com/portal/products/main.shtml[/url] 2) [url]http://www.smartdraw.com/exp/flo/home/[/url] [COLOR=Indigo]For 2), can you pin-point what should i use to create flow-chart, the nice-looking gui, graphic, drag n drop func(desktop app)...what bout for online …

Software Development gui java
Member Avatar for eliauction
0
487
Member Avatar for masa

hi if you use [code] rewind( FILE *in); [/code] what you can use for [code] I/O stream library ifstream in(ff.txt); [/code]

Software Development c file-stream
Member Avatar for masa
0
130
Member Avatar for plus

hey, newbie here.. how do i store a string which is taken from integer :?:

Software Development c
Member Avatar for winbatch
0
57
Member Avatar for Pscsc

Hello Im new to c# , I found delegates very difficult to understood can any one recommend a good sites , examples , books or any thing that can make it simple to me ,, thank you

Software Development
Member Avatar for beuls
0
191
Member Avatar for tdizzle342

Hi , i was just wondering how you would produce a time delay in java. Bascically all im trying to do is draw a circle in a bunch of random places. Just draw circles way to fast. Here my code import java.awt.*; import hsa.Console; public class Delay { static Console …

Software Development java
Member Avatar for tdizzle342
0
266
Member Avatar for WOTAMod

Don't worry, this isn't a homework assignment :p I've been working on a Half Life 2 modification for a little over a year now. I tried learning C++, I picked up a visual c++ book and it came with a compiler. The book is about 4 inch thick, seems very …

Member Avatar for RedSevenBlue
0
259
Member Avatar for barryhuizenga

Hi Thanks in advance for any assistance with this side project of mine. The hospital I work for wants to improve patient interaction with a laboratory blood draw station by taking them from a crowded cooridor to a more comfortable waiting room. The idea is to hire a greeter who …

Software Development display visual-basic
Member Avatar for barryhuizenga
0
189
Member Avatar for Maged

Hello All, I have 2 problems I think related to same problem I use VB6 pro edition with SP6 The first I use thr function RmDir to delete a directory when cancel button is clicked, it works on 98,ME but in XP I get "File Acsess error" message. I stop …

Software Development user-interface visual-basic
Member Avatar for Yomet
0
176
Member Avatar for aminura

Can somebody please tell what does this function prototype indicate-- [CODE]const char* fun( char const *,const char*);[/CODE] Is it some thing like that the return type would always be constant char ? And what is the difference in the two declarations-- char const* and const char*? Thanks

Software Development c++
Member Avatar for aminura
0
119
Member Avatar for Steko

To process my data files I need whitespaces between all characters in a string, to be written to a text file. Is there a simple Pythonfunction to solve this?

Software Development python
Member Avatar for Steko
0
88
Member Avatar for ismedave

Hello, I want someone to comment off the following coding so that I can produce appropriate javadocs. Thanks. Here's the coding: import java.awt.*; import java.awt.event.*; import java.awt.geom.Ellipse2D; import java.util.Random; import javax.swing.*; public class ShellGame extends JPanel implements ActionListener { final int ROWS = 10; final int COLS = 10; final …

Software Development java java-swing
Member Avatar for jwenting
0
101
Member Avatar for skulkarni

Hi, I'm trying to write a shell script that accepts wildcards as arguments. But instead of the wildcards expanding into the list of files from the current directory, I'd like to have them expand into files from another directory. For example, I have a script called test.sh in the folder …

Software Development operating-system shell-scripting
Member Avatar for jim mcnamara
0
175
Member Avatar for JoBe

Hello ladies and gents, I was just wondering how you would implement this into C if it actually is possible, if not, how do you guys implement an equal way of dealing with this in C ? For instance, if you would have classes like this in C++: [code] class …

Software Development c++
Member Avatar for Ancient Dragon
0
140
Member Avatar for JoBe

Hello ladies and gents, I hope the moderators won't mind me posting this here, if they do, feel free to move it, but since it is related towards C++, I figured it belonged here ;) A while back I was browsing the GameDev forums and I found this thread in …

Software Development c++ video
0
128
Member Avatar for JoBe

Hello ladies and gents, Wondered if any of you could help me out here, I'm trying to increment an element of a vector of integers. Here's the code: [code] #include <algorithm> #include <cctype> #include <iostream> #include <string> #include <vector> using namespace std; int main() { vector<int> scores; scores.push_back(500); scores.push_back(600); scores.push_back(300); …

Software Development algorithm c++
Member Avatar for JoBe
0
6K
Member Avatar for VTMas

Here's what I'm trying to do: I have a DSN for an Oracle ODBC Connection. My code needs to attempt to read from a file first the connection string, followed by the SQL commands to be executed. All of this I have down already, except for the Database name in …

Software Development c c# c++ oracle sql
Member Avatar for VTMas
0
166
Member Avatar for masa

Hi when I was looking on some thread, a question :?: comes to my mind, when you have a file like the one Log.csv from Aldin post, do you need to put it in a dynamic array to get the max and the min and the date..etc. or you can …

Software Development c first-post
Member Avatar for masa
0
203
Member Avatar for gmv

hi i am doing a project and i would like to know if anyone can please tell me how to write a delay or wait function in c++ which works asynchronously with other programs. :confused: Thank you for ur help. gmv

Software Development c++
Member Avatar for Dave Sinkula
0
239
Member Avatar for Ahzraei

I have a base class (call it A) from which I have several derived classes. A has a CArray<A*> data member (dynamic array of pointers to A objects). When adding an object of B (class derived from A), none of B's data members show up when the object is accessed …

Software Development c
Member Avatar for Ancient Dragon
0
288
Member Avatar for Aldin

[qoute] If you have a folder called Data in your C drive, in Data folder there are day_01.txt, day_02.txt ,……………………day_30.txt . you need to build a program that called the file according to it previous date, so if the date 2/10/2005 you have to call and open file day_01.txt. Notice1: …

Software Development c
Member Avatar for masa
0
463
Member Avatar for iamlearning

I would like to create a macro to convert a variable string into the UNICODE (16 bits). Example: [B]#define UNICODE ("xyz") [/B] - It will return 0,'x',0,'y',0, z at compilation time. The size of parameter to the macro can be any length. Thanks for helping

Software Development c c# c++
Member Avatar for Rashakil Fol
0
191
Member Avatar for TimC

I am having a small problem removing ALL items from a linked list. I have written a function that will remove all discharged patients from the linked list. [code] [COLOR=Red] for(int a=1;a<(S.size()+1);a++) { int x=S.retrieve_status(a); if (x==5) { S.remove(a); } }[/COLOR] [/code] in this function I check to see if …

Software Development c display linked-list
Member Avatar for TimC
0
190
Member Avatar for kahaj

I'm trying to create a simple text-based word jumble game. Basically, I'm trying to create a bank of jumbled words. Ppl can try to solve the jumble. If it's right, it will cout something about having it right. If it's wrong, it will cout something about sorry, but it should …

Software Development c++
Member Avatar for winbatch
0
185
Member Avatar for spacedani

public class Generator { static Random rnd= new Random(); private static void generator() { double zahl = 0; double min = 0.0;// minimum number double max = 1.0;// maximal number int x = 0; // number of numbers you want to output System.out.print("How many numbers: "); x = Eingabe.liesInt(); //User-input …

Software Development java
Member Avatar for spacedani
0
131
Member Avatar for zenoen

[code]#include <stdio.h> #include <c.h> //int main (int argc, const char * argv[]); switch (1066) { case 1066 printf( " Battle of Hastings"); break; case 1492 printf( "columbus sailed to some place" ); break; case 1776 printf( "The decleration of indipendence was written and signed") break; defult: printf( "something happend but …

Software Development c
Member Avatar for winbatch
0
132
Member Avatar for mariposa104

Hi. I have to create this program in c++ but I have many problems when I try to create can you help me please. Create a class rectangle. The clas has attributes length and width, each of which defaults to 1. It has members function that calculate the perimeter and …

Software Development c++
Member Avatar for iamlearning
0
254
Member Avatar for mariposa104

I try to run but I don't can. > write a Java Program that calculates the length of a hypotenuse of a right > triangle.the method should take two arguments of the double and return the hypotenuse as double. import java.io.*; public class Hypotenuse { public static void main(String[] args) …

Software Development java
Member Avatar for server_crash
0
112
Member Avatar for some one

[CODE]#include <vector> #include <string> #include <iostream> #include <windows.h> using namespace::std; class customer{ private: char type; double balance; public: void check_type(){ if(type=='p'){ if (balance<1000) { balance=balance-2;} else if (balance<1000) { balance=balance-5;} } } }; class Transactions{ private: char type; double amount; int houre; int minute; public: Transactions(char t,double a,int h,int m):type(t),amount(a),houre(h),minute(m) …

Software Development c++
Member Avatar for iamlearning
0
123
Member Avatar for bondito

Hi everyone, i am building a secure online voting system for my project, i really need some tips on how i can go about encrypting the information stored in a database which contains the votes submitted by the candidates. I was told by my project supervisor to try and implement …

Software Development encryption java
Member Avatar for Evenbit
0
175
Member Avatar for bops

Hi, I am trying to get the file size of a .exe file in C, I have tried using the GetFileSize(); function using the CreateFile(); function to get a handle for it, but the value returned is a DWORD and doesnt seem to work when i output it. I want …

Software Development c file-system
Member Avatar for Ancient Dragon
0
546
Member Avatar for sam1

hi, How many libraries does java has for gui part of an application? I know about 2 of them, swing and AWT, but I dont knw the difference between the two? thanks :mrgreen:

Software Development gui java java-swing
Member Avatar for sam1
0
121
Member Avatar for iamthwee

Hi, I so close to getting this to work. Basically, I trying to wrap my program up in a jar file. So that wen i doulbe click it, it executes. Much like c/c++ programs do. I can jar it up from the command line, but when i double click it …

Software Development java
Member Avatar for jwenting
0
1K
Member Avatar for osean

Hi, can someone point me to a good tutorial on using the CreateThread and CreateRemoteThread API? I've already read the MSDN documentation for both functions, i'm looking for a site that explains the use of both functions in more detail and provides alot of example code, thanks.

Software Development api c++
Member Avatar for osean
0
565
Member Avatar for Acidburn

Hello, in 'cpp' code if I wish to include a header file its .H...ie //function definitions are located in function.h . The implementation is loaded in functions.cpp, however some of the functions take parameters created in main. Therefore rather than including the following: [quote] #include <iostream> ... function.h function.cpp ... …

Software Development c++
Member Avatar for Acidburn
0
139
Member Avatar for mariposa104

I try to run this program but I don't can. write a Java Program that calculates the length of a hypotenuse of a right triangle.the method should take two arguments of the double and return the hypotenuse as double. import java.io.*; public class Hypotenuse { public static void main(String[] args) …

Software Development java
Member Avatar for server_crash
0
318
Member Avatar for rajuwani121

I have a project in Borland C in which i need to Connect with SQL server 2000 plz give me the code for that.

Software Development c++ sql
Member Avatar for SpS
0
299
Member Avatar for server_crash

I have a weird question. I'm trying to access a .txt file from a java applet, which would reside locally. When running this with the applet viewer, everything works fine. When you click on the .html file, however, you get an accesscontrolexception. I find it weird that the applet viewer …

Software Development java
Member Avatar for server_crash
0
196
Member Avatar for juergenkemeter

Hi there, Here is a (hopefully) convenient description of my situation: - I have a main folder, containing several subfolders. - Every (sub)folder contains one or more .xls - Workbooks. - Every Workbook contains one or more different Spreadsheets. - The workbooks contain some cells which have Hyperlink addresses to …

Software Development postgresql python
Member Avatar for bumsfeld
0
187
Member Avatar for k_en

I can do a control loop like this in C++ [CODE]int case =0; while( case<0 && case>20){}[/CODE] How am i suppose to implement this in Python? I didn't get any errors if i wrote this, the problem is it doesn't enter the while loop when case<0 and case>5 [CODE] while …

Software Development python
Member Avatar for bumsfeld
0
143
Member Avatar for hatch101

Hello, im new to this forum. I have an assignment for class that I am really confused with, please can you guys take a look and help me with the code or point me in the right direction, I am not asking anyone to do it for me...I ofcoarse wouldn't …

Software Development java
Member Avatar for Phaelax
0
1K
Member Avatar for k_en

Do anyone know why i got this error ? Do i have to import anything in order to use string.lower() & string.upper() ? [CODE][color=RED]sentence = "how are you" newS = string.lower(sentence) NameError: name 'string' is not defined[/CODE][/color]

Software Development python
Member Avatar for k_en
0
186

The End.