132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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. | |
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 | |
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 … | |
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 … | |
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 | |
hey, newbie here.. how do i store a string which is taken from integer :?: Software Development c | |
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 | |
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 … Software Development c++ first-post microsoft objective-c posting-games visual-studio | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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); … | |
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 … | |
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 | |
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++ | |
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 | |
[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 | |
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 | |
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 | |
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++ | |
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 | |
[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 | |
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++ | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
![]() | 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 |
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. | |
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++ | |
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 | |
I have a project in Borland C in which i need to Connect with SQL server 2000 plz give me the code for that. | |
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 | |
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 | |
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 | |
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 | |
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 |
The End.