132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for GregDen

Hi all, Can someone please help me. I'm writing a VB5 app that connects to an Access 97 database using a data access control with the following parameters: Connect = "Access" DefaultType = 2 'UseODBC Exclusive = 0 'False Options = 0 ReadOnly = 0 'False RecordsetType = 1 'Dynaset …

Software Development microsoft-access visual-basic
Member Avatar for TnTinMN
0
328
Member Avatar for salohcin

i having problem saving a txt file and printing it back out , i have the hints of using fgets(v[i],14,infile); and sscanf(v[i],"%d: %s %s,%x"%line_num[i],inst[i],reg[2],reg2[0]); i have no idea on how to imply this correctly can someone show me a correct implemtation of the code so i can move forward to …

Software Development c file-system perl
Member Avatar for salohcin
0
211
Member Avatar for cheesepotato

I want users to enter their name into a textbox but i want to ensure that they type in something so my program will continue the name into another form by a button. How do foolproof this while clicking the button won't automatically send nothing to the other form and …

Software Development gui vb.net
Member Avatar for Begginnerdev
0
161
Member Avatar for James456

Hi, I am developing a website that allows users to be able to navigate the website by only clicking on a soft switch. All links are rotated through an array when a link is highlighted and the user clicks the link it is selected. I need to be able to …

Software Development java
Member Avatar for James456
0
122
Member Avatar for myk45

Hello All! I am a little confused about the memory allocated for an executable. Now, say for example, this is my code: int foo = 1; int main() { const char* bar = "hello world"; int num; return 0; } Now, the "hello world" part would be stored in the …

Software Development c++
Member Avatar for myk45
0
300
Member Avatar for triumphost

How can I get SetConsoleTextAttribute to work with my Console? I tried everything. First I redirected the cout and cin buffers so that my console can have input and output. But now it doesn't have Colour :S I used: HANDLE OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(OutputHandle, 10); I don't think GetStdHandle is …

Software Development c++ ios
Member Avatar for triumphost
0
338
Member Avatar for WellCom34

What would be the possible reason why my code display two reasults whenever i search for a record that is in the second row or higher, first it display the first records and then it display the record i am searching. example output: ->Enter ISBN : A200 then the output …

Software Development c++
Member Avatar for deceptikon
0
165
Member Avatar for txikiting

Hello, I want to convert a WORD type to a string, I have this code: FileTimeToSystemTime(&fdFile.ftLastWriteTime, &SysTime); String numday = SysTime.wDay; But i says that operation connot be done because it's a WORD what I wan to insert to a String. And my question is, is there any function/way to …

Software Development c++
Member Avatar for Schol-R-LEA
0
407
Member Avatar for triumphost

How can I create PNG Files from an array of bytes or read a PNG file to create an array of bytes? I looked up the format but it looks nothing like a bitmap and I read the GDI doesn't support PNG's. So how does LibPNG do it then? I …

Software Development c++
Member Avatar for DeanMSands3
0
310
Member Avatar for XodoX

import java.util.Arrays; public class binary_search { public static void main(String[] args) { int ar1[] = new int[128]; int p, key=78; p=Arrays.binarySearch(ar1, key); System.out.println("element found at index "+p); Arrays.sort(ar1); p=Arrays.binarySearch(ar1, key); long start = System.currentTimeMillis(); Long elapsed = System.currentTimeMillis() - start System.out.println("Time to do stuff (in milliseconds): " + elapsed ); …

Software Development java
Member Avatar for JamesCherrill
0
111
Member Avatar for capton

Hello 'am working in qt creator but have problem running my code. It compiles alright but never executes. And also gives the following message at the output pane 'exited at code -1073741819' Please help me out

Software Development c++ qt
Member Avatar for capton
0
132
Member Avatar for GlenRogers

I have a JTextArea that I need to be able to print off from the printer. This is the kid of text that is in the JTextArea GLEN ROGERS 47 PINE AVENUE, CARRICKFERGUS, BT38 8EE, 07824771114 733KIA 2012/07/03 DEVICE; OTHER - GIVE MAKE AND MODEL PACKARD BELL EASYNOTE TN? WINDOWS …

Software Development java printer
Member Avatar for GlenRogers
0
117
Member Avatar for sangita.t.adhikary

i have two string .One has sentence of Devanagari /Nepali langauge="संसार भरी साथी बनाऔ" and next i have the vowels of Nepali Language".I have created the array of both the array and compared each letter. But i got trouble while append the vowels to letter and get the required array …

Software Development display mathematics
Member Avatar for krunal1986
0
100
Member Avatar for iamtheuser

I need to open two pdf files as popup window on click ona button in asp.net C#,but now its opening only the first popup?Can anybody help me ,to open the both windows at the same time? This is my code: string PDFPath = folderpath + filename; string PopupName = "popUp"; …

Software Development asp.net c# java javascript
Member Avatar for krunal1986
0
440
Member Avatar for Rouf mir

Can someone tell me how to implement priority queues using arrays.Please help!!!!!!

Software Development c++ queue
Member Avatar for princysharma90
0
120
Member Avatar for kau14

Hi first of all am new to progarmming. Am using using combo box control in vb.net combo box getting filled properly Public Sub new_entry_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cn As New SqlClient.SqlConnection("Data Source=KAU-4A76A124FB9;Initial Catalog=SRRY;Integrated Security=True") cn.Open() Dim adp As New SqlDataAdapter("select * from Bank_Details …

Software Development dataset open-source vb.net
Member Avatar for Maulikpra
0
1K
Member Avatar for Manithan

Hi im doing a application tool which will check for spoof email headers. now i want to do some comparison of text in textbox can anyone help me in this? thank you

Software Development email vb.net
Member Avatar for iFrolox
0
5K
Member Avatar for abhadoria

Hi, I have a requirement in XSLT where in I have a xml as below, <Process> <name></name> <duration></duration> <time></time> <name></name> <duration></duration> <time></time> <name></name> <duration></duration> <time></time> . . . . </Process> <The first <name> node we get we create a Process_INfo and copy <name> in it and all other node following …

Software Development xml
Member Avatar for Mike Askew
0
150
Member Avatar for michael.vertreese

! Hi- this program is supposed to generate 100 random numbers between 100 and 1000, print out a message every 10th number printed to screen, and sum the total of the numbers. It does generate "random" numbers, but the message is not showing up and the numbers are not totalled …

Software Development c#
Member Avatar for arunkumars
0
1K
Member Avatar for Andy90

Hello, I have developed an app. I want to protect this app, just like the one where we install some software by entering CD-key/Serial key. But I m not understanding how to do it? I want the serial key to be based on some formulation by MAC address! My Case: …

Software Development mac-software
Member Avatar for Mike Askew
0
210
Member Avatar for 3e0jUn

Is there any way to host several txt files on a computer without having to dive deep into socket programming? I have a few requirements, though: * People could connect when the app is running * No inteference of Windows * Instructions on how to create a client side software …

Software Development file-system python socket-programming
Member Avatar for 3e0jUn
0
124
Member Avatar for rajilakshmi

In PHP using isset() function for checking the form value is set or not? Like wise which methed is used in java? Any one can help ASAP..?

Software Development java php
Member Avatar for JamesCherrill
0
2K
Member Avatar for I_m_rude

int main() { float i=0.3; ....... ........ if(i<0.3) printf("ishq\n"); else printf("hello\n"); return 0; } hi, can anyone please explain why i am getting output as "ishq" even if i=0.3 so if condition must be false. pleas help i am not getting it. thanks.

Software Development c
Member Avatar for Banfa
0
204
Member Avatar for teomurgi

Hi all I would like to embed an encoded image into an FXML (i need this in that I'm coding a converter between svg and fxml). I tried with this: <AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml"> <children> <ImageView fitHeight="150.0" fitWidth="200.0" layoutX="153.0" layoutY="94.0" pickOnBounds="true" preserveRatio="true"> <image> <Image url="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYEAYAAACw5+G7AAAABmJLR0T///////8JWPfcAAAA …

Software Development image java xml
0
229
Member Avatar for Jake.20

Greetings, Guys could you give me some idea on how to count months left before the due date? For example 08/17/2012 - 12/17/2012 result: 4

Software Development vb.net
Member Avatar for samsylvestertty
0
209
Member Avatar for esedee

Pls i need help wit my windows form...i hav 25 buttons wen any of d buttons is clicked nd it all 25 buttons turns red dats d end...this is my question..... How do I randomly assign the Content of the buttons so that the correct option 4 all button 2 …

Software Development
Member Avatar for HTCc
0
108
Member Avatar for osiron

Hey guys, So I've been working on a program that takes a student id and name but however I got a weird error saying: error: expected ‘(’ before ‘.’ token error: expected ‘{’ before ‘.’ token and it occurs around the `name_first(firstName), name_.second(lastName)`. I'm having trouble to get the pairs …

Software Development c++
Member Avatar for osiron
0
106
Member Avatar for danielgr

I have a dataset with the following data: account_number,master_code,score 100000023,UL189PU,1 100000025,UK120PU,1 100000026,AAL004PU,1 100000026,UL221PU,1 100000026,YHL003PU,1 100000034,UL246PP,1 100000043,1198112CS,1 100000060,182112JS,1 100000060,996211CS,1 100000060,AAL012PU,1 100000074,UI136PU,1 100000074,UK131PU,1 100000074,UL178SU,2 I've started a master loop where I loop through the accounts. I now need to do a sub loop and compare this account to the rest of the …

Software Development dataset vb.net
Member Avatar for TnTinMN
0
172
Member Avatar for Dimansu

Hi I am using RDLC in .Net framework for my reports. I have a field StartDate and it can be null in the database.I want to show the date as 02/12/2010 . My code is, =Format (Fields!StartDate.Value,"dd/MM/yyyy") But in the report it shows "dd/MM/yyyy". When there is no formatting i.e …

Software Development asp.net
Member Avatar for Wai Zin Hnin
0
207
Member Avatar for mpyap

I'm making a sales receipt. The user enters in the name and price of the items. On the display, I want the name of the items to be aligned as well as the price of the items. Is there a way to get the setw for the objects after the …

Software Development c++
Member Avatar for L7Sqr
0
728
Member Avatar for mpyap

I'm creating a program using strings to create a contact card for a customer. It works to allow users to input information up until the "state" input part. It skips over this and doesn't allow a state to be entered and then continues with the remaining two inputs. On the …

Software Development c++
Member Avatar for VernonDozier
0
134
Member Avatar for dilbert_here00

Hi, I was trying to access some functions from a dll using python ctypes, but not sure how to pass pointers to get it to work. Here is an example of what i am trying to call: GetAvailableDevices ( SdkHandle session, DeviceDetail * pDev_list, uint32_t * dev_list_size ) Parameters: [in] …

Software Development python session storage
Member Avatar for dilbert_here00
0
3K
Member Avatar for musicman432

So I'm trying to write this program in C that will take a message the user types in and encrypt it using an RSA public key that the user supplies. I know there are encryption functions and libraries in C but I want to actually recreate the algorithm in code …

Software Development c encryption unix
Member Avatar for sccdqx
0
298
Member Avatar for marky101

Good day guys! I am recently developing an attendance monitoring system using a webcam. I have successfully downloaded some sample programs how to make a webcam application in vb.net primarily using avicap. I tried to apply it on my program. The code seems fine but everytime i run the code, …

Software Development image vb.net visual-studio webcam
Member Avatar for marky101
0
458
Member Avatar for cheesepotato

how to disable a button with another button in another form that hasn't been opened yet in visual basic 2008?

Software Development gui vb.net visual-basic
Member Avatar for cheesepotato
0
764
Member Avatar for yordan.todorov.35

Hi there, i need to use this function but it is write in Python and if is possible i dont want to start learning Python just for one function so i wanted to ask if someoen can direct me to Pythong to C# convertor or help me convert this function. …

Software Development c# python
Member Avatar for chris.stout
0
1K
Member Avatar for LMat619

Hey everyone. I am making an application where a user can draw shapes with their mouse. All the other shapes are implemented, but I am having difficulty with drawing arcs correctly. I got the program to draw arcs, but I am having some bugs in the code. Basically it's supposed …

Software Development asp.net c#
0
214
Member Avatar for gefen2215

i have a form from all costumers and i also have all payments now i need a sum field for all payments from a DataGridView

Software Development vb.net
Member Avatar for TnTinMN
0
106
Member Avatar for morgan.wowk

I'm wondering why this code doesn't work on form load. Everything works except the item being added to the listview. I just got back into C# syntax, so can you guys explain this a bit please, thanks ahead. if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true) { } else { MessageBox.Show("An error occured in …

Software Development listview
Member Avatar for Mitja Bonca
0
285
Member Avatar for branflake

On my class side I cannot seem to get netPay to calculate and am also having problems with finding insDeduct. On the demo side I have you choose between S - Single and M - Married. Any help would be greatly appreciated. [CODE]public class ChapterFiveClass { // Declare some fields …

Software Development java java-swing
Member Avatar for SylvesterAbreu
0
140
Member Avatar for HTMLperson5

Hi, all. I am having a problem using the `getpass()` function, there are no problems with the `raw_input()`, though. I'm trying to check the user input is valid (meaning that the Username is nav and the password is 39429432) Really, I DON'T want to use `raw_input()` for the password field. …

Software Development file-stream python
Member Avatar for Gribouillis
0
3K
Member Avatar for alexandra.lopez.94043

Public Class Form1 Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Checkbox1.CheckedChanged If Checkbox1.Checked Then TextBox2.Visible = True Else TextBox2.Visible = False End Sub Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged If CheckBox2.Checked Then TextBox3.Visible = True Else TextBox3.Visible = False End …

Software Development vb.net
Member Avatar for Reverend Jim
0
201
Member Avatar for javanub123

Hey Guys, i just started learning python and havent really done much programming so im pretty new im following a book and I have to read some data from a text file the code thats giving me trouble is os.chdir('Users\spreston\Desktop\HeadFirst\Chapter 3') the error says that the path does not exist, …

Software Development python
Member Avatar for Gribouillis
0
143
Member Avatar for iFrolox

Hi, ok i had a file looking like this: SilkroadR,,321,13,321,Gobi,False,False,False,False,False SilkroadR,,321,321321,321,Gobi,False,False,False,False,False SilkroadR,,213,321,231,Gobi,False,False,False,False,False SilkroadR,,3251325,3215,3251,Gobi,False,False,False,False,False SilkroadR,,,,,Gobi,False,False,False,False,False I encrypted it and it looks like this: Hdgr6oHm47q2SC5AEjqUY9Boi5WfUT5FTfLvMVYLtorgmufM5GiH6wMg12raZ/YpW/OPZ7bL94wbSWiauy59nrEHlJdO3o1voedaWb/XV7lxNzbUURqDgGtkpr6Ex++d0YAA4sCnkB/GcDtuFd+vqF2IJoI3cC+WKPF73zM5eNz6mJd1hjZK+40je7/LbUyU7JQ8nmvBpEy7J391xM5X5dfKlNziYahufdVsxbO8mTAosQcEZ8JtUoJg2ZWjXO8nPqDci8iy/JgBYnd8Z4fpbfwY5jKwTrq2+TW9k/+I2F9PXUT6OzUUTk4tRFfvWVXBFj/C5s60puxaYJQxgzUzKE2yWls4N3qk3TcZBH1kKCB8h0lS69X77mOxJ0ixkOm1a+deaIWXsBfFHq8ej30ShH2WFf09iAr3 Ok, thats what i wanted, i used to load my accounts like how it looked before the encrypting with this code: Dim iCount As Integer = CInt("0") …

Software Development encryption vb.net
Member Avatar for TnTinMN
0
141
Member Avatar for godzab

I am new to Linux, and C++. Usually when I used Java, I could just use javac Something.java and run it using java Something. How do I compile my own c++ code without the help of an IDE? Also I am using Linux Ubuntu 12.04

Software Development c++ ide ubuntu
Member Avatar for godzab
0
646
Member Avatar for stevelance99

hi i am getting a floating point error while im trying to complile the rc4 encryption in c++...i was wondering if anyone could help me out...i have the code pasted as below #include <stdio.h> #include <iostream.h> #include <ctype.h> #include <string.h> unsigned char s[256]; unsigned int i, j; void swap(unsigned char …

Software Development c++ encryption
Member Avatar for gusano79
0
194
Member Avatar for GlenRogers

Can someone point me in the right direction for formatting text and aligninng text in a JTextField? Thanks...

Software Development java
Member Avatar for GlenRogers
0
2K
Member Avatar for MasterHacker110

I know that it generates a public key and then a private key. You encrypt with public and can only decrypt with private key. How is this algoritm going to work in a C++ program, how am i going to compute the public key and then the private key? Also, …

Software Development c++ encryption
Member Avatar for np complete
0
196
Member Avatar for PhoenixInsilico

I have a exe file named file.exe When it is run through command line, it takes some data and process it and creates an output file. I want to feed data to file.exe within a perl script and want the output file. Please let me know the commands to do …

Software Development operating-system perl
Member Avatar for chandrashekar
0
220
Member Avatar for ktsangop

Hi everybody! I am having some trouble running a detached process using CreateProcess function in C++. I have been using the following function to spawn processes in c++ for years now havnig no trouble. I have used it with console applications, mfc apps, dialog based ... etc : StartProc(char *callprogram, …

Software Development c++ java windows-api
Member Avatar for ktsangop
0
825

The End.