43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for snurd

VB6.0 The following is how I open the Excel file, what I need to know is how to see if it is already open, and also a new Sub to close the file. [code]Private Sub Command1_Click() 'Place statement here to see if already open, if so then Goto 1 Dim …

Software Development visual-basic
Member Avatar for snurd
0
1K
Member Avatar for snurd

VB6.0: Writing an argument to see if an Excel file is already opened before opening the Excel file, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the next "goto" label (ie: "File Already Opened"). Thanks, …

Software Development file-system visual-basic
Member Avatar for aktharshaik
0
397
Member Avatar for plike922

When i run the program it shows the first line then blank i dont know whats wrong! [CODE]#include <cstdio> #include "simpio.h" #include "strlib.h" int main() { int i, d, t; printf("This program generates all perfect numbers from 1 to 100.\n"); t = 0; for (i=1; i<=100; i++) { for (d=1; …

Software Development c
Member Avatar for Aia
0
94
Member Avatar for neknek

We were asked to create an applet in which it will get the current date, then the user will input a number (n), when the user presses 'ok', the date+n after will display. Here is my code so far [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Calendar; import …

Software Development java
Member Avatar for neknek
0
96
Member Avatar for tactfulsaint

hello everyone I still need code snippet help with authentication of username and password on both java and web application..

Software Development java
Member Avatar for ~s.o.s~
0
569
Member Avatar for ChroNoS

I am still very new to C++ and I'm a bit :confused: too. I am trying to make a program which takes the ascii string from a text file and converts it into binary. I have been able to come up with this code so far: [ICODE] #include <iostream> #include …

Software Development c c# c++ ios
Member Avatar for ChroNoS
1
111
Member Avatar for bomtk

Hi every one, i got a trouble with opening and reading multi files (200 files) in. These files include 4 columns and 1010 rows. event i have tried many times but it still can not work. if possible, could you please give me some suggestion on my code as the …

Software Development c++ ios
Member Avatar for bomtk
0
133
Member Avatar for plike922

can you check the code... it doesn't work for some reason i tryied everything [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" int Fibonacci(int fnum); int main() { int fnum; printf("Please enter in the Fibonacci number: "); fnum = GetInteger(); printf("The number for f(%d) is %d\n", fnum, Fibonacci(fnum)); system("pause"); } int Fibonacci(int …

Software Development c
Member Avatar for Aia
0
113
Member Avatar for cellus205

Can anyone help me translate this regex match in Perl to a VB.Net Regex match? Heres the perl regex: if ($line =~ /\\([\w\d\s\-]+?\.\w{3})\"\t\"/) { print "LINE: $1\n" } # regex match And heres what I have for the VB regex, but its currently not working: [code=VB] Dim fs As New …

Software Development perl regex vb.net
0
74
Member Avatar for Nemoticchigga

Does anyone know if vs2005 has the borland equivilent of a "scrollbox"? Thanks.

Software Development c++
Member Avatar for Nemoticchigga
0
169
Member Avatar for witza

:$ Ok people, bare with me for a second (or 60...) I'm developing a part of a larger application, and to cut to the chase, i now need to access an Hashtable that I've made global. This aplication is multithreaded, but I'm trying to access this hashtable from the same …

Software Development gui java
Member Avatar for nnobakht
0
182
Member Avatar for mksakeesh

[code] #include<fstream.h> #include<string.h> using namespace std; class emp { public: char *per; void write() { ofstream out("ss.txt",ios::app | ios::binary); cout<<"Enter some character ....\n"; cin>>*per; //out.write(per,sizeof(per)); out.write(per,strlen(per)); } }; void main() { emp e; e.write(); } [/code] Why this is not working?

Software Development c++ ios
Member Avatar for Clockowl
0
162
Member Avatar for Cosa

I have a problem where i want to compare strings, however the comparison cant be case sensitive. I have tried to use stricmp strnicmp strcmpi They do not seem to be part of the <string> or <cstring> libraries on my compiler. I am using the GNU compiler. Is there a …

Software Development c++
Member Avatar for Cosa
0
91
Member Avatar for ulquiorra

Hello all, I am in need of some assistence. So if anyone could help that would make my day;). This is a piece of my code [code] for( int i = 0; i <= 13; i++ ) { cout << "SLOT : " << slotNumber; fprintf( HashTable, "\t%i slot : …

Software Development c++
Member Avatar for ulquiorra
0
305
Member Avatar for dinilkarun

Hi, I am using the following syntax in VB 6.0 to copy distinct values from strTableName to TableName strOpen = "Select distinct * into" & " " & strDupTableName & " from " & strTableName rst.Open strOpen, db, adOpenDynamic, adLockOptimistic But I am getting a runtime error "-2147217833". I have …

Software Development visual-basic
Member Avatar for dinilkarun
0
458
Member Avatar for hny_lyn

hello to all!!! i really don't have any problem this time, but there's something i wanna learn more about! we are discussing classes and inheritance now!! my professor have given us quite examples of it....but it wasn't that clear!! can i ask for a simple codes that implements a class …

Software Development java oop
Member Avatar for javaAddict
0
196
Member Avatar for m_banerjeein

Hi All Guys few quick questions on C.. 1. What does "static void <function_name>(argument1,argument2)" means.. 2. Whether this would give a compilation error if i write this piece of code... int a =1 , b=2,c=3 ; (a=b)=c;

Software Development c
Member Avatar for jephthah
0
129
Member Avatar for jorgeflorencio

[QUOTE]Hello everyone I have the code that allows me to colect values acording if its Fail or Passed[/QUOTE] [CODE]package spimonitoring; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.lang.reflect.Array; public class InspectionResults44{ public static final byte HEIGHT_AVG_RESULT = 6, HEIGHT_RANGE_RESULT = 11, AREA_AVG_RESULT = 16, AREA_RANGE_RESULT = 22, VOLUME_AVG_RESULT = 29, …

Software Development java
0
128
Member Avatar for cellus205

Im having trouble trying to pass a parameter to a SQL query that I am trying to run on a DataTable, that Im using to Dynamically populate a treeview. Im not having any trouble filling the first nodes, but to fill the second nodes, I have to use a query …

Software Development sql vb.net
0
304
Member Avatar for MaestroRage

I am trying to get the main to read in a number, and use that number to do a mod calculation. However my best efforts are giving me garbage values. I am sure I am not using the pointer correctly, yet my efforts have gone unrewarded. How can I get …

Software Development c
Member Avatar for jephthah
0
214
Member Avatar for Saddi

I wanna make a program for a little shop the progs idea is to calculate the daily amount and the items and monthly report but I don't know where to start please help me :) :)

Software Development vb.net
Member Avatar for Saddi
0
85
Member Avatar for y_itay

Hey guys, I was trying to find some way to filter and sort data in a Generic Collection of List<> Type but couldn't find any way to do this. I have Tried to use [B]BindingSource [/B]which didn't really filter any of the data in my collection. Anyone have any idea …

Software Development
Member Avatar for y_itay
0
636
Member Avatar for dexter1984

[CODE= CPP] //Searching for specific characters while (!stats.eof()) { stats.getline(counter,200); for (int i=0; i<strlen(counter); i++) { if (isupper(counter[i])) upper++; if (islower(counter[i])) lower++; if (isdigit(counter[i])) decimal++; if (isspace(counter[i])) blank++; if (counter[i] == '.') end++; if (counter[i] == '!') end++; if (counter[i] == '?') end++; total++; } } [/CODE] Hi guys, I …

Software Development c++
Member Avatar for Ancient Dragon
0
118
Member Avatar for jssupekar

hi, I want to upload one photo at a time in picture box.... I would like to take input from user.. i have taken one button...by clicking on that button it should open the drives and files window.........after selection that link is stored in textbox.... how that link i can …

Software Development visual-basic
Member Avatar for Jx_Man
0
103
Member Avatar for vs49688

Hey, I am having a really weird problem with my OpenGL Program. When I compile it in Debug mode and run it through Visual Studio 6, it works fine, but when I run it from windows, it works fine until the part where you go to manipulate the camera of …

Software Development c++ opengl visual-studio
Member Avatar for vs49688
0
80
Member Avatar for Typhoon

Due to some changes in my company's structure, I need to transform our catalog of products in a xml file. I need to know how can I do this provided that nobody has a technical background in the team.

Software Development xml
Member Avatar for gtd
0
211
Member Avatar for Chaster

Hi everyone, well, my problem would be:There is a database server which contains no databases. So there is nothing to connect to (as it is needed by the DriverManager.getConnection instruction). How can I create a new database under these circumstances? Thanks, Chaster

Software Development java mysql
Member Avatar for Chaster
0
137
Member Avatar for JackDurden

I know I already posted this but I guess I cant do it the way it was shown. I want a 2-dim array to print out on the same line as string word. I cant seem to figure out how to get a 2-dim array to do this, does anyone …

Software Development c++
Member Avatar for Ancient Dragon
0
130
Member Avatar for cellus205

Right now Im having trouble getting data from a MySQL table and creating a new datatable to store this. I have a TreeView control that I am trying to dynamically add nodes to. The query that I have is returning the Attachments column of all rows where Owner = (parameter), …

Software Development mysql queue vb.net
0
81
Member Avatar for sciwizeh

new to network stuff going through the java tutorials and i did what it said heres the code: [code=java]import java.io.*; import java.net.*; public class EchoClient { public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; try { echoSocket = …

Software Development java
Member Avatar for sciwizeh
0
3K
Member Avatar for HLA91

Hi all In the book im learning from 'Getting Started In Java' one of the example programs is a small swing application with some buttons and icons on the buttons. I typed the code and the book tells me to place my picture that i want to use as an …

Software Development java java-swing
Member Avatar for HLA91
0
120
Member Avatar for soppyhankins

Hello again! I am trying to make a jump and run game using SDL, but I am stuck at the jumping part. Whenever I press the Up key, the sprite should go up. However, when I press it, it goes down. I have changed it and done math that should …

Software Development c++
Member Avatar for soppyhankins
0
252
Member Avatar for JackDurden

I want a 2-dim array to print out on the same line as string word. I cant seem to figure out how to get a 2-dim array to do this, does anyone know how to do this? [CODE]void Sort(string word[],float grades[][8], int number) { int i,j=o, temp; string aName; float …

Software Development c++
Member Avatar for Radical Edward
0
146
Member Avatar for saneeha

Can any one guide me how can i write a byte array to a file.. I am using ofstream class function write().. but it only accepts char*, can any tell me some other function or any way of conversion..ma code is: [code]Byte array[512]; //....the array is initialized using memcpy()....// fstream …

Software Development c++
Member Avatar for saneeha
0
957
Member Avatar for shaynicb25

I have to create a program that reads the text, outputs the text as is and prints the number of lines and the number of times each letter appears in the text. I have to include an exception, so that if the array index goes out of bounds when the …

Software Development java
Member Avatar for javaAddict
0
444
Member Avatar for Alex Edwards

Is the [X] at the top right corner part of the JApplet or container with the JApplet? I need to make an action happen when the user attempts to close out of the JApplet and I'm not sure of how to properly access the window-closed button within JApplet context. Thanks …

Software Development java
Member Avatar for Alex Edwards
0
173
Member Avatar for Alex Edwards

I'm having a Focus issue when running a Swing application. There are 4 buttons visible on the JApplet. I have an implementation that allows the user to make keyboard and mouse events in the JApplet. The problem is that I can use the keyboard and mouse events when the program …

Software Development java java-swing
Member Avatar for Alex Edwards
0
167
Member Avatar for Clockowl

Hi guys, Could you tell me what's wrong with this code? I don't get why the compiler says it can't find a matching function... [code=cpp]#include <iostream> #include <vector> using namespace std; template <class T> int printVector(vector<T> &x){ for(unsigned int col = 0; col < x.size(); col++){ cout << x[col] << …

Software Development c++
Member Avatar for Clockowl
0
109
Member Avatar for ++C LOVER

guys! please help me to choose language (c++/J2ME) for mobile application! Actually I decided to do in c++ but some of my friends say it is not a good idea to do it! so please tell me which language I should select for S60 mobile phones to do project and …

Software Development c++
Member Avatar for peter_budo
0
149
Member Avatar for Clockowl

Hi guys, I'm getting a segfault and I don't really understand why.. Here is the code n, i, quadcount, quadPerVert and quadindex are all (arrays of) unsigned integers. [code=cpp]unsigned int *quadsPerVert = new unsigned int[quadcount * 4]; //(...) vector<vector<unsigned int> > quadsPerVertIndex; quadsPerVertIndex.reserve(quadcount * 4); for (n = 0; n …

Software Development c++
Member Avatar for Clockowl
0
119
Member Avatar for Pgmer

Hai all. In my appliction im having MDI parent form. and i made frm2 as topmost form But problem is whenever i open some other appliction still that frm2 will come on top. whenver my application is open or active then only frm2 should be on top. Thanks

Software Development vb.net
Member Avatar for waynespangler
0
95
Member Avatar for death_oclock

I am making a blitting call on my backbuffer: [CODE=C++] BOOL drawImage(IMAGE *lpImage, LONG x, LONG y) { RECT rect; rect.left = x; rect.top = y; rect.right = x + lpImage->lWidth; rect.bottom = y + lpImage->lHeight; dwVideoErrCode = lpBack->Blt(&rect, lpImage->lpSurface, NULL, DDBLT_WAIT | DDBLT_KEYSRC, NULL); if(dwVideoErrCode != DD_OK) { MessageBox(NULL, …

Software Development c++
0
71
Member Avatar for HLA91

Hi all I was trying to make it so my small program that gets user input would first ask for a string and then print out the string that the user entered, then it would ask for a number it would read it in as a string and then convert …

Software Development java
Member Avatar for javaAddict
0
157
Member Avatar for robertmacedonia

Hello, I was just looking up the threads and I must say I saw a lot of codes with "std::string", "std::cout", etc... I just wanna ask, wouldn't it be better if you just wrote "using namespace std" instead ? I am doing it all the time, but if it's wrong …

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

I am using memcpy()function.. memcpy(&_bpb, bBootSector, 512); where _bpb is the variable of structure, bBootSector is byte array the whole progran works fine but at the exit it generates the following error: "[B]Run-Time Check Failure #2 - Stack around the variable '_bpb' was corrupted[/B]." Can any one please guide me …

Software Development c++ visual-studio
Member Avatar for saneeha
0
207
Member Avatar for olagh

Hi everybody, I want to declare a class having an object of another class as its member data. but I recevie compiler error: "No appropriate default constrctor available" my code samlpe is as follows: [code] class bigInt { bigInt(unsigned); bigInt(const bigInt &); unsigned *value } class RSA { RSA(unsigned); bigInt …

Software Development c++
Member Avatar for olagh
0
154
Member Avatar for Psykocyber

Hi I'm trying to use a vector to store function pointers, but when implemented in a class there method ceases to work. Class header: [CODE]std::vector<void (*)()> fns[/CODE] Class .cpp file: [CODE] fns.push_back(Search); fns.push_back(Print);[/CODE] Search() and Print() are (public) members of a class named Movie. This code is currently placed in …

Software Development c++
Member Avatar for Psykocyber
0
5K
Member Avatar for leegeorg07

hi my brother has created a program called 'guess my number' (see it here: [url]http://www.naughtyottselprograms.tk/[/url]) and i know the coding that i need but i dont know if there is a module that includes numbers does anyone know the name for that module if it exists?

Software Development python
Member Avatar for friendklay
0
236
Member Avatar for linu

Hello Please help me with the following: i am trying to open a file with a specific application using java. I am working on a desktop application. The following code using java.awt.Desktop works for known extension types,but when trying to open a file with an unknown extension it throws an …

Software Development file-system java
Member Avatar for linu
0
217
Member Avatar for JaR

Hello again. I am currently using a base class for a certain type of object, which looks like this: [CODE=C++]#include <vector> template <class T> class CObject { public: inline virtual ~CObject () { } virtual std::vector<T> *Output (std::vector<int> *Input) = 0; };[/CODE] The problem, that arises from this contraption is, …

Software Development c++
Member Avatar for JaR
0
2K

The End.