43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
hello everyone I still need code snippet help with authentication of username and password on both java and web application.. Software Development java | |
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 … | |
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 … | |
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 | |
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 … | |
:$ 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 … | |
[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? | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
[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 | |
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 … | |
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 | |
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 | |
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 | |
[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++ | |
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 | |
![]() | 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 ![]() |
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 | |
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 | |
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++ | |
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), … | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
![]() | 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 |
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 | |
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++ |
The End.