43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for malg

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
Member Avatar for samir_ibrahim
0
112
Member Avatar for noamjob

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 …

Software Development pdf python
Member Avatar for Stefano Mtangoo
0
6K
Member Avatar for TasostGreat

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++
Member Avatar for TasostGreat
0
110
Member Avatar for TasostGreat

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++
Member Avatar for TasostGreat
0
527
Member Avatar for Stefano Mtangoo

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
Member Avatar for Stefano Mtangoo
0
91
Member Avatar for Torquai

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
Member Avatar for Torquai
0
83
Member Avatar for skynwa

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
Member Avatar for Patel S
0
267
Member Avatar for shers

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
Member Avatar for LizR
0
4K
Member Avatar for RenFromPenn

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
Member Avatar for Alibeg
0
134
Member Avatar for VernonDozier

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++
Member Avatar for VernonDozier
0
149
Member Avatar for winrawr

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++
Member Avatar for Freaky_Chris
0
140
Member Avatar for shers

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
Member Avatar for shers
0
135
Member Avatar for FrancisC07

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++
Member Avatar for FrancisC07
0
158
Member Avatar for winrawr

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++
Member Avatar for grumpier
0
168
Member Avatar for Jacky1

OK i have an array of 10 elements and I want to color the 5th element with a different color than the default color , is that possible ? Thanks

Software Development c#
Member Avatar for Jacky1
0
102
Member Avatar for Manutebecker

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++
Member Avatar for Manutebecker
0
8K
Member Avatar for JoeK

[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
Member Avatar for JoeK
0
457
Member Avatar for ravikiran032

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
Member Avatar for Alibeg
0
90
Member Avatar for winrawr

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++
Member Avatar for winrawr
0
121
Member Avatar for piotr_kast

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
Member Avatar for piotr_kast
0
168
Member Avatar for Freaky_Chris

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++
Member Avatar for Freaky_Chris
0
125
Member Avatar for Gribouillis

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
Member Avatar for Gribouillis
0
184
Member Avatar for gauravmishra

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
Member Avatar for puneetkay
0
165
Member Avatar for chococrack

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++
Member Avatar for chococrack
0
176
Member Avatar for revenge2

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
Member Avatar for Murtan
0
332
Member Avatar for rapture

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
Member Avatar for rapture
0
104
Member Avatar for Phil++

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++
Member Avatar for Phil++
0
152
Member Avatar for samir_ibrahim

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
Member Avatar for samir_ibrahim
0
209
Member Avatar for Lokolo

[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
Member Avatar for Lokolo
0
266
Member Avatar for winrawr

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++
Member Avatar for winrawr
0
116
Member Avatar for serhannn

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
Member Avatar for serhannn
0
263
Member Avatar for Lord Prime

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
Member Avatar for Lord Prime
0
181
Member Avatar for kv79

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
Member Avatar for kv79
0
140
Member Avatar for wien

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#
Member Avatar for LizR
0
186
Member Avatar for tomtetlaw

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++
Member Avatar for tomtetlaw
0
92
Member Avatar for JamieC90

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
Member Avatar for javaAddict
0
218
Member Avatar for Whilliam

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
Member Avatar for Whilliam
0
117
Member Avatar for Clawsy

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
Member Avatar for Diamonddrake
0
946
Member Avatar for tomtetlaw

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++
0
61
Member Avatar for piotr_kast

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
Member Avatar for LizR
0
146
Member Avatar for mercury113

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
Member Avatar for mercury113
0
177
Member Avatar for findlay

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++
Member Avatar for findlay
0
130
Member Avatar for Stefano Mtangoo

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
Member Avatar for Stefano Mtangoo
0
96
Member Avatar for uxp

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
Member Avatar for uxp
0
141
Member Avatar for winrawr

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
Member Avatar for winrawr
0
159
Member Avatar for mr.white

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
Member Avatar for LizR
0
144
Member Avatar for winrawr
Member Avatar for bcasp
0
153
Member Avatar for sumit-saini

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, …

0
211
Member Avatar for prashanth s j

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
Member Avatar for grumpier
0
145
Member Avatar for cVz

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
Member Avatar for cVz
0
148

The End.