43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nor_d83

Hello everybody.. I have tried to use these codes that I got from a book. I'm using MSFlexGrid, with the Grd name. It was set to be invisible (false visible). And when i enter the year (tahun) needed in the "txttahun" textbox, it will only show the data that related …

Software Development visual-basic
Member Avatar for nor_d83
0
126
Member Avatar for usman2k4u

Implement the following improvement to the quick sort and find out the percentage of key comparisons that can be saved in each case. Using randomly generated 1000 integers as input for sorting. Repeat the experiment 1000 times for each case to get the average percentage reduction in key comparisons. Case …

Software Development c++
Member Avatar for Narue
0
5K
Member Avatar for swappy

if db.open = true then db.close End if I want some code like this where it will check in the form load and if the connection is open , and if it is open it will close it..

Software Development visual-basic
Member Avatar for swappy
0
405
Member Avatar for tehbrozor

hi, Im running debian/ubuntu linux and am trying to get a script/module that runs each time python is called from terminal. I am trying to write scripts that use Scipy,numPy,pyLab, etc and am trying to have all those packages import automatically each time python starts. I am not new to …

Software Development debian python ubuntu
Member Avatar for tehbrozor
0
133
Member Avatar for dilipkk

Hi, I am downloading url using urllib2, the problem I am facing is some times server goes down and then read will take indefinite time. I dont want that, I want to raise a exception after 20 secs in this case. There is solution using signal.alarm but it works only …

Software Development python
Member Avatar for dilipkk
0
4K
Member Avatar for tomtetlaw

can anyone suggest any tutorials for the vc++ resource editor? or can anyone tell me how to use it? i know how to design the forms but i dont know how to use it in my code any help would be appreciated :)

Software Development c++
Member Avatar for tomtetlaw
0
201
Member Avatar for LindseyV

Hello there. I have successfully read my emails from outlook into access. The problem is that I am trying to get the sent date field but I can not figure out the command for it. Below you will find the commands I used to find the subject, body and sender. …

Software Development email visual-basic
Member Avatar for jonc
0
215
Member Avatar for daviddoria

I found this while googling for something [url]http://msdn.microsoft.com/en-us/library/ms177203(VS.80).aspx[/url] I tried it (with g++) and it seems to be a syntax error - is this like something specific to Visual Studio or something? Dave

Software Development c++ visual-studio
Member Avatar for Narue
0
92
Member Avatar for ARYT

Hi everybody Thanks again for your helps in my last thread. Now, I have some more problems. :( 50 Errors for this program. Certainly, a basic problem within the structure of class "Block". This assignment is all about "Class and objects". We can use functions, but no arrays. [code=cplusplus] #include …

Software Development c++
Member Avatar for monkey_king
0
221
Member Avatar for gluttonous

[code=csharp] public struct MY_TYPE1 { public int A; public int B; } public class MY_TYPE2 { public int X; public int Y; public MY_TYPE1[] array2 = new MY_TYPE1[80]; } MY_TYPE2[] array1= new MY_TYPE2[800]; public void MtMethod() { [B] array1[0].array2[0].A=0;[/B] } [/code] When i try to use this code ,a null …

Software Development
Member Avatar for gluttonous
0
104
Member Avatar for Alibeg

i have problem passing double pointer to my funciton first i declare: [icode]int m, n;[/icode] i read m and n from user just fine (i've checked that) then i declere: [icode]int farm[m][n];[/icode] and i have a function... [icode]void harvest(int **farm,...);[/icode] and when i call it with: [icode]harvest (farm,...);[/icode] it says …

Software Development c
Member Avatar for Narue
0
226
Member Avatar for PhiberOptik

Hi Guys! I am trying to get a scroll bar to go to the lowest position possible. I am using a chat program and it bothers me that I have to scroll down to see new messages! I googled around and found lots of answers for flash, and other languages …

Software Development flash java
Member Avatar for PhiberOptik
0
138
Member Avatar for GDICommander

Hi, everyone! At work, I'm having problems to run a XPath using the selectNodeList() method from Xalan. The XPath I want to execute is: //pam:message//prism:coverDate The error message I have is: The prefix 'pam' is not declared. expression = '//pam:message//prism:startingPage' Remaining tokens are: ('/' '/'). I have searched on the …

Software Development xml
Member Avatar for GDICommander
0
125
Member Avatar for cljlxwater

OleDbConnection thisConnection = new OleDbConnection( @"Provider = Microsoft.Jet.OLEDB.4.0;Data Source=e:\DataMoney.mdb"); OleDbDataAdapter thisAdapter = new OleDbDataAdapter( "SELECT * FROM SchoolMoney", thisConnection); DataSet thisDataSet = new DataSet(); thisAdapter.Fill(thisDataSet, "SchoolMoney"); OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter); thisBuilder.QuotePrefix = "["; thisBuilder.QuoteSuffix = "]"; //set up keys object for defining primary key DataColumn[] keys = new DataColumn[1]; …

Software Development dataset
Member Avatar for cljlxwater
0
74
Member Avatar for asifjavaid

Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
328
Member Avatar for lehe

Hi, I am using copy_n from GNU C++ Library under Ubuntu 8.10. My code is like this: [code] #include <ext/algorithm> using namespace std; void myfun(char * flags ) { char * flags_new = new char[3]; copy_n(flags, 3, flags_new);// both copy_n and copy would give not in this scope error. delete …

Software Development algorithm c++ ubuntu
Member Avatar for John A
0
237
Member Avatar for emiller7

This is not a complete program, I have comments to omit the incomplete portions. After "Player One" enters a row (see lines 54-5), the program ends. It outputs the "Enter a column" and the board and ends. I don't see why. Any help would be greatly appreciated! (Output after runtime …

Software Development c++
Member Avatar for emiller7
0
83
Member Avatar for jackiejoe

Hi, learning swing at the moment and was following a tutorial off the sun website, made mine with eclipse instead of netbeans. but all I get when I try to run it is the following in the Console window: gap= 4 gap= 0 Not sure what is going on here. …

Software Development java java-netbeans java-swing
Member Avatar for BestJewSinceJC
0
297
Member Avatar for bobrien314

I have this assignment to write my own malloc program and I am having some trouble. I am using a doubly linked list to manage free space and used space, and using next fit to allocate the memory. the problem that i am writing about is when i return the …

Software Development c linked-list
Member Avatar for nucleon
0
107
Member Avatar for BestJewSinceJC

I'm not sure what forum this fits into, if any, but the program itself is going to be written in Java (not that it matters much). My question is, what is the easiest software to use that I can create a drawing of a GUI with? The GUI I want …

Software Development gui java
Member Avatar for BestJewSinceJC
0
87
Member Avatar for JAGgededgeOB172

Hi all, I'm just asking for help for my linked list sort function, I'm not including my entire program, as I'm sure my problem lies in my sort. I need to sort the linked list by rearranging the pointers, I was fairly sure I got the function correct. When I …

Software Development c++ linked-list
Member Avatar for JAGgededgeOB172
0
104
Member Avatar for serkan sendur

i want to add a control to a windows form using a method in some class file, then i want to access that control to register to its events. it must be done with one line of code, i know it from asp.net but i dont know how to do …

Software Development asp.net
Member Avatar for serkan sendur
0
112
Member Avatar for konczuras

Hello! I'm trying to create some files in the folder where my exe is located. This works just fine in VS 2008 C# express, but when I publish the file, (e.g.: D:\Program), it refers to quite an other place (somewhere in my documents and settings' applications folder) I've tried several …

Software Development
Member Avatar for konczuras
0
175
Member Avatar for Gribouillis

Consider the following script [code=python] #!/usr/bin/env python # foo.py import sys print sys.argv [/code] When I run this in a terminal with arguments, here is the output [code] $ ./foo.py -h hello -m "this is a string" ['./foo.py', '-h', 'hello', '-m', 'this is a string'] [/code] My question is: is …

Software Development python
Member Avatar for Gribouillis
0
168
Member Avatar for fx7202

greetings everyone, i seem to be having an issue with a function that has a reference n a value to do a loop. the nature of the prog, is to roll a dice (n) times n then count the number of time srand rolls an even num. for the most …

Software Development c++
Member Avatar for fx7202
0
119
Member Avatar for emiller7

Compiler errors: (In main) Line 9:cannot convert char (*)[3] to char* for argument 1 to void showboard(char*, int, int) (in showBoard) Lines 16, 17, 21, 22, 26, 27:invalid types char[int] for array subscript I don't understand these errors. I am trying to make a tic tac toe game, I have …

Software Development c++
Member Avatar for emiller7
0
3K
Member Avatar for sid78669

For the last 3 days I have been trying to compile m assingment on visual studio 2008. Its giving me error: [QUOTE]Error 2 error C2143: syntax error : missing ';' before 'using' screen.cpp 27 Assignment_2[/QUOTE] This is the same error its giving me in my main: [QUOTE]Error 1 error C2143: …

Software Development c++ visual-studio
Member Avatar for sid78669
0
228
Member Avatar for abu taher

I made a datareport simple. just connect. but I want to make it with condition. I have 2 dtpicker for date. I want 1 day report or weekly or monthly report by dtpicker. example I want 03/11/08 report or 01/11/08 to 03/11/08 report. But I dont know how make it. …

Software Development visual-basic
Member Avatar for abu taher
0
812
Member Avatar for karenmaye

Does anyone here have a wxPython code that converts a folder of images to a .wmv file just by clicking a button? What I did in my program was I load an Image-to-Video Converter Software by clicking a button but I feel that it would be better if I can …

Software Development image python video
Member Avatar for sneekula
0
2K
Member Avatar for serkan sendur

Having a big project and having to compile it in order to run it each time, takes long time. I want to run it without build stage if possible(provided that i didnt make any change to source codes). Any ideas? Thanks.

Software Development asp.net
Member Avatar for dickersonka
0
146
Member Avatar for get2tk

hi,pls wat does this symbol mean(%)?i know it means remainder,but can not seem to understand in what context . for example if you say hours = hours%24; minutes = mins%60;.................

Software Development java
Member Avatar for masijade
0
80
Member Avatar for SSagar

Hi, How to get the value from a hashtable irrespective of its case... plz reply ASAP. Thanks in advance, Shilpa

Software Development java
Member Avatar for masijade
0
99
Member Avatar for PCli

I tried a code like this [CODE] #include <stdio.h> int main() { enum a { b, c, d, e,}f; printf("The stack top is near %p\n", &(f = e) ); return f; }[/CODE] and got message : error: lvalue required as unary ‘&’ operand I use gcc4.3.2. and I had tried …

Software Development c
Member Avatar for PCli
0
110
Member Avatar for tanu.rajgor

How to convert ISingleResult<..> to List? in WCF? please give detail information...

Software Development
Member Avatar for alc6379
0
270
Member Avatar for mastermosley

Whats the difference between loading an XML into a string or from a file stream?

Software Development file-stream xml
Member Avatar for alc6379
0
3K
Member Avatar for rman10

Hello! I am a newbie to scripting and I'm trying to start an application via a bash script after checking to make sure that two condititions do (or do not) exist first. I've attempted to write down what I'd like to do and was hoping someone could point me in …

Software Development shell-scripting
Member Avatar for eggi
0
168
Member Avatar for arvin2006

what's wrong with the code, it doesn's display the data based on the SQL query: Private Sub cmdSearch_Click() On Error GoTo Notfound squery = "": squery = "Select * from tblStation where Station like " & txtStation.Text & "" Call ExecuteCommand With Me .txtStation = rs!Station .cboCluster = rs!Cluster .txtArea …

Software Development sql visual-basic
Member Avatar for arvin2006
0
146
Member Avatar for guest11

hi all, I have one problem with resizing forms. I am developing our application in vb and i gave code for resizing forms in resize event of form. First i save the sizes of all controls in forms in form load event and then in resize event i resizes all …

Software Development visual-basic
Member Avatar for guest11
0
161
Member Avatar for arvin2006

Where should I get the declaration ADODB.Stream Object? as far as i know, ADODB library has only 4 objects: Command, Connection, Recordset & Parameter. I need this object for the Image DB. thanks

Software Development visual-basic
Member Avatar for arvin2006
0
1K
Member Avatar for chris5126

Hi I have a command that produces the following: [code] /usr/ucb/ps -auxxx|awk '{print $3,$4,$2,$1,$11}'|grep -v 0.0 %CPU %MEM PID USER COMMAND 0.2 5.217405286920 1910 noaccess 0.1 0.1 180 root 0:43 0.1 0.1 686 root 0:41 0.1 0.1 26198 chris /usr/lib/ssh/sshd 0.1 0.1 26767 root /usr/ucb/ps 0.1 0.1 26215 root bash …

Software Development shell-scripting
Member Avatar for Fest3er
0
2K
Member Avatar for nschessnerd

how do i find methods in a .exe so i can create a dll injection that uses those methods?

Software Development c++
Member Avatar for nschessnerd
0
81
Member Avatar for daviddoria

Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave

Software Development c++
Member Avatar for Narue
0
102
Member Avatar for toadzky

I like really clean code so I want to pull all of the common includes into a separate file and then include that single file in all my other files. Also makes it easier if I start using a new or different library cuz I only have to change it …

Software Development c++ opengl
Member Avatar for toadzky
0
194
Member Avatar for losh177

Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the …

Software Development c++
Member Avatar for losh177
0
229
Member Avatar for Icebone1000

The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By …

Software Development c++ file-system ios
Member Avatar for nucleon
0
209
Member Avatar for eviocg

how can i pass a variable to command? ex.. [CODE] #include <iostream> using namespace std; int main(int argc, char *argv[]) { string ip cout << "Enter an ip"; cin >> ip; system("ping ip"); //// this is the problem. how do i enter the value of "ip" here? system("PAUSE"); return EXIT_SUCCESS; …

Software Development c++
Member Avatar for eviocg
0
99
Member Avatar for Hiroshe

I just wrote a simple function to convert a number with any base into a base 10 number: [CODE=c]#include <stdio.h> #include <math.h> #include <string.h> int tobase10(int *input, int size, int base); int main() { int input[256] = {2, 2, 1, 0}; printf("%d\n", tobase10(input, 4, 3)); printf("Press any key to continue …

Software Development c
Member Avatar for Hiroshe
0
171
Member Avatar for daviddoria

If I make an array like this [code] GLubyte bufImage[100][100][3]; [/code] I can pass bufImage to a function and then get the values using: [code] r = bufImage[im_x][im_y][0]; g = bufImage[im_x][im_y][1]; b = bufImage[im_x][im_y][2]; [/code] However, if I don't know Width and Height at runtime, this does not work. I …

Software Development c++
Member Avatar for Narue
0
313
Member Avatar for serkan sendur

guys, first of all please dont post some google search results, i already did it. i need to grap mobile device information and send it to the server. the user connect to web server using pocket pc internet explorer, and then redirected to appropriate page according to its model, using …

Software Development flash web-server
0
72
Member Avatar for Trekker182

I went today open an existing VB project and noticed that all of my project files are missing for all of my VB programs that lets me start VB with that particular program. The only file that I'm able to open is the .sln file and that's only from inside …

Software Development vb.net
0
235

The End.