43,549 Solved Topics
Remove Filter ![]() | |
Could anyone tell me how to programmatically list the filenames of all open office files (winword.doc files, excel.xls files) ? Software Development vb.net | |
I'm trying to get the content of a web page that is written in pdf format. The following code worked very well for me when I tried to read a regular web page, but it prints all kinds of weird letters when I try it on a pdf page like … | |
i'm trying to figure out what is the fastest way to do an odd / even check on numbers i don't know whether there is a mathematical way of achieving this i've heard that the fastest would be checking the last bit in the binary array but i wonder what … Software Development c++ | |
i'w wondering whether there is a difference between fstream and stdio.h when processing a file with these data [CODE] 10 10 P[/CODE] with fstream it's easier to get the data since with stdio.h i'd need to get every single char and number with getc() and translate i t into whole … Software Development c++ | |
Hello colleagues, I wan't to upgrade to python 2.5.4 from 2.5.2 but I don't want to lose my modules. Is it possible to upgrade without removing those modules? Thanks Software Development python | |
I am writing a small wizard to help the user gather data in a pleasant way, but I don't want to use the standard install wizard layout, so I am working on writing my own. I have tried using a standard TabControl but I don't want the line of tabs … Software Development | |
Hi! I am trying to make a function, which transposes matrix. When declaring it, i get this error, which i mention in the title. I`ve tried to find the solution myself, but i am quite new to C, so i don`t even understand what does this error mean. (I know … Software Development c | |
Hi all, I'm creating a progam in C# that reads a file location at start up and displays the parent folders in a combo box. This file location may change in future. So I intend to keep this in an xml file and allow the user to change it when … Software Development file-system xml | |
![]() | I'm creating a program that is supposed to have enumerated constants that contain days of the week. I am also supposed to have a variable called today that is of type week. Okay, I think I have done all of that correctly. Now I am supposed to assign a value … Software Development c |
I am developing a program that creates random mazes. One part of the program involves keeping track of the correct path. Each point on the path is a (row, column) coordinate. I am trying to store each coordinate as a 2 element integer array and push it back onto a … Software Development c++ | |
I'm trying to learn C++, and I thought I'd start by exploring classes, so I wrote this: [code=c++] #include<iostream> #include<string> using namespace std; class user { public: string logonName; string firstName; string lastName; int uID; }; int main(){ user users[2]; int i; users[0].logonName = "rawrMander"; users[0].firstName = "Rawr"; users[0].lastName = … Software Development c++ | |
Hi, I'm working on C# with COM. I have a COM OLE control that I wish to create on the form as control array during runtime, as the number of cotrols depends on the number of files in the corresponding folder. How do I go about it? I'm attaching a … Software Development | |
hi! i have a problem.. i want to make a program the will input your name and age, and the output will count the char i been input. but my problem is i don't know what would be the code so that i can count the char i been input.. … Software Development c++ | |
Should I avoid casting between data types? I haven't really seen much about the use of this, but it seems like one of those last-minute-no-way-around kind of methods... but, for example, how would I use the length of a string in a for loop? The length property of a string … Software Development c++ | |
So I'm having trouble with classes today, I want to do something like [CODE] #include <iostream.h> using namespace std; class Dummy{ char Name[256]; void setName(char nam){Name=nam;} }; int main(){ char[256] temp; cout << "Name?\n"; cin >> temp; setName(temp); } [/CODE] I want something like this to store a char array … Software Development c++ | |
[B]This assignment requires that I allow for user input in a GUI for principal, interest rate, and term in years. I also have to provide a pulldown with 3 preset rates that will also load a cooresponding term length. All of that plus an amoritization table as well. I have … Software Development gui java java-swing | |
If we consider a pointer variable if takes size of 2 bytes and it can carry max address value of 65535 but actual address are larger than 65535 , how it is able to manage these address..... will u please explain me. Software Development c | |
Can I do this? [code=c++] while(variable=functionCall()!=0){ /* ... */ } [/code] the function I'm calling, is returning a 3, but the variable in the while loop is equal to 1... I'm not sure what is happening in this statement, Originally I thought it would just always evaluate to true and … Software Development c++ | |
I write application which continously reads and rewrites files (this program converts web links in htm files to local links, because I want use this files offline). When I wrote procedure: [code] // index.htm FileName = (string)kolekcjaPlikow.GetValue(0); StreamReader myStreamReader = null; myStreamReader = File.OpenText(FileName); bufor = myStreamReader.ReadToEnd(); myReadBufor = bufor; … Software Development | |
OK, I've been looking at templates recently and eveything was fine...never had a problem with them at any point. But then when I decided to write a function that would either return the given template type or not. the following code explains what I mean.[code=cplusplus]template <class T> T find(char x, … Software Development c++ | |
In python, a "function object", that is to say an object which can be called as a function, is simply an instance of a class which has a [icode]__call__[/icode] method. An example is [code=python] class FuncObj(object): def __call__(self, *args): print("args were %s." % str(args)) func = FuncObj() func(1,2,3) # output … Software Development python | |
I am trying to take continuous pictures of small window of my screen and create a continuos motion picture sort of thing and display it on the java panel . For this i am taking snapshots of the screen window by using "Robot" class . but the panel is only … Software Development java java-swing | |
I am having trouble finding out info regarding how to stop my application from "Beeping" every time I change focus with the "ENTER" key. For the sake of clarity here is the specific action and code which produces a sound (which I want to eliminate): I am simply trying to … Software Development c++ | |
This is my first official python program/scrip which I've done my self;) yay!:D. Im sure most of you guys know the 21 card trick where you guess what card a person is thinking of accurately. anyway, I have trouble passing information between modules within modules and functions within functions. this … Software Development python | |
ok, I'm taking my first Java class and in my first week. I've searched but this is different from .Net so much that I have a headache just getting eclipse set up and how to navigate the environment. That said, I have a program that would take me 5 minutes … Software Development java visual-studio | |
Hey, what I am trying to do is change the way people open text files in c++. What I want to do is: open("example.txt"); which will then open the text file "example.txt" and have a header file that displays like: [code] string line; ifstream file ("example.txt"); if (file.is_open()) { while … Software Development c++ | |
Hi all, Is there a function in vb.net to get how many times string1 is exist in string2? I had search google and all I found is long code such as this one ( i did not test it) [URL="http://www.freevbcode.com/ShowCode.Asp?ID=1025"]http://www.freevbcode.com/ShowCode.Asp?ID=1025[/URL] Is there better way? Software Development vb.net | |
[code] FILE *infile; infile = fopen("coords1.txt", "r"); int num = 0; for(int num1 = 0; num1 < 5; num1++) { for(int num2 = 0; num2 < 4; num2++) { for(int num3 = 0; num3 < 3; num3++) { fscanf(infile, "%f", &num ); targetCoords[num1][num2][num3] = num; } } } [/code] I'm … Software Development c | |
Are there any reeeally good books on programming C++ that anyone knows of? Ones that just do an excellent job of teaching different techniques and clean coding practices, as well as things that can really be applied (like making and styling windows, communicating via TCP/IP, etc)? Software Development c++ | |
Hello, I'm working on a code for my project at college. The goal of the project is to find and extract keywords, and the sentences, which contain these keywords from many text files, which I have already downloaded from Internet using another code. These text files are actually source codes … Software Development c++ file-stream | |
Hi, I new here and currently learning as much programming languages as needed. To start with the simplest programming language, VB. I'm kind of having problems with producing an animation that uses the FOR Loop statement and the System.Threading.Thread.Sleep () command. I've placed two objects (rectangles) together and would like … Software Development vb.net | |
Hi all I made a program who open excel for adding files in excel. I am asking you can for example 15 users uploading that single file ? Thanks advance Software Development vb.net | |
Hi all I am trying to write a C# dataform where a company ID is created from the first four letters of the customers name + a number. Any ideas? As Left() is not used. and I can't find a reference to substrings. Wien Software Development c# | |
Why wont my gun show up? [code=c++] #include "DarkGDK.h" void DarkGDK ( void ) { dbSyncOn ( ); dbSyncRate ( 60 ); SetCurrentDirectory ( "resources" ); dbLoadObject ( "skybox2.x", 1 ); dbSetObjectLight ( 1, 0 ); dbSetObjectTexture ( 1, 3, 2 ); dbScaleObject ( 1, 5000, 5000, 5000 ); dbLoadObject … Software Development c++ | |
Can someone explain to me what this is? I have been asked to code a tic-tac-toe board using an array which I have done, but the brief specifies using standard input, and I have no idea what that is, but I'm guessing does not include changing the values of the … Software Development java java-swing | |
Hello, Im trying to insert some integers to make a sorted list. I am using cursor-based. Here is the function: [CODE=c] void insert_sorted(virtualheap *vh, list *l, int x) { int temp, *p; if(vh->avail != -1) { temp = mymalloc(&(*vh)); vh->h[temp].elem = x; for(p = l; *p != -1 && vh->h[*p].elem … Software Development c | |
I need little help on creating shortcut for my C# app. I want programmatically do this. I intend to create a shortcut in startup menu folder. Maybe you could also show me how to start my app automatically using a registry entry. Thanks! Software Development | |
In DarkGDK how do you place objects? I know about and how to use the dbLoadObject ( ); function but i dont know how to place it where i want to, like XYZ co-ordinates. also when i run this: [code=c++] #include "DarkGDK.h" void DarkGDK ( void ) { dbSyncOn ( … Software Development c++ | |
Now I still learning C#, and in one of the tutorials I found this program: [code] using System; namespace Returning_a_Class_From_a_Method { public class MVADate { private int dayOfBirth; private int monthOfBirth; private int yearOfBirth; public void SetDate(int d, int m, int y) { dayOfBirth = d; monthOfBirth = m; yearOfBirth … Software Development | |
i have this code in java swing... im getting an headaChe thinking what to do... how do i add events in my ComboBox?? wHat i want is that when i sElect a comBoBox iT will tell wether the one you selected is correct or wrong... then the comBoBox will be … Software Development java java-swing | |
Hello All, I am experiencing a problem with the STL map class (or rather the map class is experiencing a problem with me). I am trying to store a number of 2-dimensional vectors of type int, whose corresponding keys are strings. The problem arises when I try to index a … Software Development c++ | |
I found on net this: "Mixins are classes that further enhance the functionality of a wx.ListCtrl. Mixin classes are so called helper classes. They are located in wx.lib.mixins.listctrl module. In order to use them, the programmer has to inherit from these classes. " Please someone explain me the way this … Software Development python | |
I would like to say thank you to all the contributing members of the forum. Daniweb has been the result of many late night google searches and has provided some valuable knowledge to myself and I'm sure countless others. I'll start by saying I'm no _real_ programmer. I've played around … Software Development c | |
Just wondering, since assembly code is more or less what every other language is compiled into, would it be useful to learn how to do things in assembly before learning say, C or C++, pascal, python, etc? I am already fluent in Visual Basic but I want to get to … Software Development assembly pascal visual-basic | |
Hello, I'm building a web application which has Users and these Users have permission to access certain bits of the web app. After a user logs on, according to it's permissions which will be read from permissions table, he will see the bits of the app that he can access. … Software Development web-server | |
so, what is python and what is good about it? Software Development python | |
Hi, Im saving a file in MS Word and when i open it it shows me message to convert the file here is the code i am using Public Sub SaveDocumentAfterValid() Dim fs, f, fc, f1 Dim fbase, fsubfol, fsubfol2, fsubfol3, fsubfol4, fsubfol5, fsubfol6, fname As String Dim fname1, fbase_1, … Software Development microsoft-office open-source printer visual-basic | |
Hi any one please tell me why the warning is generated when the address of pointer to a local variable is passed. [U]The following is the warning generated:[/U] Icore.c:228: warning: passing argument 3 of foo from incompatible pointer type [U]The function declaration is:[/U] int foo(void * , int , void**); … Software Development c | |
Hey there, ok i finally get my list of directories from my server , but these look like this -x 10 test mail 4096 Dec 1 12:01 users -x 10 test mail 4096 Dec 1 12:01 admin etc etc... basically i only need "users", or in the second string "admin" … Software Development |
The End.