132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for finston

I have added some additional code to the Get_PrintDC function of my Sipprt.c code so as to get the print out in landscape rather than the default portrait format. The code reads as follows (the additional code is inserted after the return CreateDC line): HDC NEAR Get_PrintDC( void ) { …

Software Development c
Member Avatar for finston
0
245
Member Avatar for cucolino

Hello Once again, I'd need your help. I was messing around (if I say so, although I only set the formstyle properties to mdiform and mdichild once, and then reset them to Normal, ever since my problem appears) formstyle property, and got some strange behaviour for which can't seem to …

Software Development pascal
Member Avatar for cucolino
0
293
Member Avatar for danimischiu

Hy all, I'm new at using sql server compact,so I don't know yet if what I want to do is possible:)? I have the following setup: 1.Datatable created from a table from my database(this is the table that I want to update later); 2.Make modification on datatable and save it; …

Software Development dataset sql
Member Avatar for pitic
0
1K
Member Avatar for Sandy20

`MSXML DLL : #import <msxml3.dll>` I am writing XML using MSXML DOM & expected to add multiple processing instruction. ex: <?xml version="1.0" encoding="ISO-8859-1"?> ------ first processing instruction. <?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?> ------ second processing instruction. <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> </catalog> I have write below …

Software Development c++ xml
Member Avatar for Sandy20
0
437
Member Avatar for shaminim

We are running a code to trigger user for exceeding certain dates. The trigger have to be every 1hr post the 1st trigger. But the system triggers inconsistently right now. Any suggestion how to start & close the loop properly? dTime = Now + TimeValue("01:00:00") Application.OnTime dTime, "RunOnTime"

Software Development vb.net
Member Avatar for hometownnerd
0
133
Member Avatar for scippi

This is the block of data I have to work with: 5 5 5 6 5 8 9 5 6 8 good, very good, excellent, good 7 7 8 7 6 7 8 8 9 7 very good, Good, excellent, very good 8 7 6 7 8 7 5 6 …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for vishalonne

Hi Friends I got lots of help from you all for diiferent types of problem. I am making a project using C# , SQL SERVER 2005 and Crystal Report. I already developed the project but problem is I have to deploye it on other computer. So how can I make …

Software Development sql
Member Avatar for Jackson Kumar
0
243
Member Avatar for hckrwb

Hi Everyone, Very beginner with C++. Reading some books and trying to write some codes as much as I can. I'm trying to understand what voiding a function does. Now in the book and the searches I did says it doesn't return anything. But looking at the code below, doesn't …

Software Development c++
Member Avatar for deceptikon
0
301
Member Avatar for ng.astley

i got this error when i opne my file and try to run it,can anyone help it is urgent, thank a lot if anyone can help me,desperately need to solve it

Software Development ide
Member Avatar for ng.astley
0
84
Member Avatar for blessing.mashcom

how do you make data in the database to appear on an applications textboxes

Software Development vb.net
Member Avatar for azareth
0
129
Member Avatar for Sandy20

Evniorment : Windows 7.0 , C++ , Multithreading I have created a new worker thread to receive data on socket & add it into static multimap. **code snap :** //remember mymultimap is static data type static std::multimap<string,string> mymultimap; EnterCriticalSection(&m_criticalsection); mymultimap.insert ( "aaa", "bbb") ); LeaveCriticalSection(&m_criticalsection); At same time my main …

Software Development c c# c++ multithreading
Member Avatar for Banfa
0
309
Member Avatar for new_developer

Can we access updated public variable of one class in another class without inheritance. Just like below. This class A which have public int variable x. In updateValue function i have updated x value. class A { public: int x; A() { x=0; } void updateValue() { for(int i=1; i<=5; …

Software Development c++
Member Avatar for Lucaci Andrew
0
5K
Member Avatar for BirdaoGwra

Hi, I am trying to test this timer movement and I just don't understand why the rectanglee is not moving right and down. Here is a simple test. Using GLFW. #include <GL/glfw.h> #include <stdlib.h> void Init() { //! Create the viewport and projection glClearColor(0.4f,0.4f,0.4f,1.0f); glViewport(0, 0, 800, 600); glMatrixMode(GL_PROJECTION); glLoadIdentity(); …

Software Development c++ opengl
Member Avatar for BirdaoGwra
0
510
Member Avatar for write.me

Here is the assignent: Sort the integer elements within the array from lowest (element 0) to highest (element 4). Do not use the preexisting Array.Sort method; code your own. Output the sorted array as follows: Element 0 => smallest value Element 1 => next smallest value Element 2 => next …

Software Development
Member Avatar for ddanbe
0
1K
Member Avatar for rishif2

how to add scroll bars to mdi form when the height of child form is greater than the actual height of mdi parent form . . .

Software Development visual-basic
Member Avatar for rishif2
0
131
Member Avatar for scippi

Hi everyone, I am using this method to read in a collection of ints and strings then converting the strings to numbers using the switch statement(as stated by my lecturer) and save it back into an array for further processing. However, everytime it gets to the line studentResponses[row][column] = scanner2.nextInt(); …

Software Development java regex
Member Avatar for henock
0
410
Member Avatar for dp121307

I wrote out a test for a Complex class on python but I'm getting an error. Here's what I have: class Complex: def __init__(self, real=0, imaginary=0): self._r=real self._i=imaginary def __add__ (self, other): return Complex((self._r + other._r), (self._i + other._i)) def __sub__ (self, other): return Complex((self._r - other._r), (self._i - other._i)) …

Software Development python
Member Avatar for TrustyTony
0
488
Member Avatar for Boniface Mutind

I have this json data and would like to convert to xml with php.. [themes] => Array ( [theme] => Array ( [0] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 0 ) [1] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 1 ) …

Software Development javascript json php xml
0
102
Member Avatar for sbharani

I want to send string and save in different computer's database using c# using Asynchronous Any body Plz Help me finding a Solution

Software Development c# client-server
Member Avatar for pitic
0
304
Member Avatar for AnkitGuru

Hi Guys, I've just started learning the multithreading in vb.net; Needless to say I'm facing issues. Please check the code written below as its not giving any output, it just hangs. Public Class Form1 Private Delegate Sub _invokeUIControlDelegate(ByVal errMsg As String) Dim Thread1 As New System.Threading.Thread(AddressOf doSome1) Dim Thread2 As …

Software Development multithreading vb.net
Member Avatar for AnkitGuru
0
139
Member Avatar for Na'Vi

Hi, I'm having a minor problem with output with printf. I understand you escape % in printf with %% so if I had some string it would be printf("%%eax"); But if I have printf("%%%s", registers(C)); I get an an output of %%eax, which is one too many percent signs. I …

Software Development c
Member Avatar for nullptr
0
154
Member Avatar for amalaza

1.binary 2.decimal 3.octaldecimal 4.hexadecimal enter your choices 1-4?_ enter binary:_ in decimal:_ in octal:_ in hexa:_ do you want to repeat the programm? yes or no?_

Software Development c++
Member Avatar for amalaza
0
251
Member Avatar for pandeter

Hello, I am finishing up a program in VB that edits, saves, and adds data to a listview via textboxes. The listview data is stored on the harddrive via a txt file. One of the columns in the listview is a birthday in a DD/MM/YYYY format. I want to have …

Software Development listview vb.net
Member Avatar for tinstaafl
0
320
Member Avatar for Gazzmonkey

Hi all, This code below is not my own work but is exactly what I need for my project, the code runs a real time clock through an Arduno Duo development board as it's micro-controller using an I2C connection if that all makes sense. The problem is when running the …

Software Development c++ ide
Member Avatar for ajit.nayak
0
840
Member Avatar for tristanhall

I'm trying to make a program for my computer science class and it requires that I run output to the console as well as to a file. I'm looking for a way to intialize a string at the beginning of the program and pass the variable by reference to my …

Software Development c++ data-science
Member Avatar for tristanhall
0
306
Member Avatar for Papa_Don

Hello Group! I've created a fairly large database with approximately 170 columns. I now want to begin writing data to that database table and saving the data. I'm using a form I'm calling "frmInventoryMasterSetup". I've also created the individual textboxes that I want to link to the columns for saving. …

Software Development sql vb.net
Member Avatar for Papa_Don
0
283
Member Avatar for malcomm

Hi I have an application which uses a backgroundWorker to do a simple file copy whilst the main UI is doing some other work. The problem is that the RunWorkerCompleted event does not always fire and I can see no pattern as to when it may or may not work. …

Software Development vb.net
Member Avatar for malcomm
0
2K
Member Avatar for adem87

string location = Environment.CurrentDirectory; string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + location + "\\harita.accdb"; // get records from the Shippers table string commandString = "Select x from map"; //create the data set command object and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet ds = new DataSet(); // fill …

Software Development dataset
Member Avatar for Momerath
0
188
Member Avatar for darylglenng

package wow; import java.io.PrintStream; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Wow { String question; String answer; int correct=0, number=15; Wow[] quizBank = new Wow[15]; List<Wow> quizList = Arrays.asList(quizBank); public static void main(String[] args) { Wow bank = new Wow(); bank.bankList(); bank.askQuestion(); } //end main public void …

Member Avatar for M4trixSh4d0w
0
342
Member Avatar for darylglenng

>equal button wont work =( /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculator; /** * * @author Gatongay Famiglia */ public class NewJFrame extends javax.swing.JFrame { double plusminus; double firstDouble; double secondDouble; double totalDouble; int plusClick; int …

Software Development java java-netbeans java-swing oracle
Member Avatar for M4trixSh4d0w
0
332
Member Avatar for Fernando_1
Member Avatar for mikejs

I am using the following to store the X Y cords [CODE]Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick MyX = Me.Location.X MyY = Me.Location.Y My.Settings.Save() End Sub[/CODE] but the Me.Location.X or .Y are not detecting the forms position when I move it?

Software Development vb.net
Member Avatar for josh.weide.3
0
3K
Member Avatar for canadaaaaa

this is an assignment i recieved i have been trying to get it to work but it wont.i edited a couple times but i still get the same messages can anyone assist? The purpose of the program is to assist with the check-in and searching of guests registered at the …

Software Development pascal
Member Avatar for blesiw
0
434
Member Avatar for chriswelborn

I've added the necessary registry key to have my app run when windows loads: [B]Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Run[/B] [B]MyProgram[/B] = [B]c:\MyDir\MyProgram.exe[/B] [I]..I've also tryed adding it to the Programs\StartUp folder.[/I] My app still won't load when windows does. Other apps do, and I was wondering what might be preventing my app, and [U]only …

Software Development asp.net microsoft-windows vb.net
Member Avatar for chriswelborn
0
529
Member Avatar for RozenKristal

I got a java test done and somehow my answer for this question is incorrect, can you guys help me explain it? So the question is: in a binary tree with height 3 the least deep leaf has depth 2 (Root has depth 0). a)Max numbers of nodes this tree …

Software Development data-structure java
Member Avatar for RozenKristal
0
297
Member Avatar for DevilDog22

First I want to say hey, new here, hopefully this places is welcoming! Second, I am in a java class and it is my first class and my only experience with programming. So the questions I will be asking will be based off of my assignments. What I want to …

Software Development algorithm java
Member Avatar for DevilDog22
0
116
Member Avatar for toldav

I need help to figure it out how to keep track of how many guesses the user is making and NOT allow the user to guess any value thet had already tried. tHANK YOU import java.util.Random; import java.util.Scanner; public class GuessingRand { public static void main(String[] args) { Random rand …

Software Development java
Member Avatar for tux4life
0
335
Member Avatar for ladybirdchance

I'm currently working on a college Hangman project to build a GUI to ply an external hangman game, but I keep recieving a NullPointerException error. Here is the code for the GUI import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Color; import java.awt.Image; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Font; import javax.swing.JButton; …

Software Development gui java java-swing
Member Avatar for ladybirdchance
0
178
Member Avatar for adem87

string location = Environment.CurrentDirectory; string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + location + "\\harita.accdb"; // get records from the Shippers table string commandString = "Select x from map"; //create the data set command object and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet ds = new DataSet(); // fill …

Software Development c c# c++ dataset microsoft-access
Member Avatar for ddanbe
0
163
Member Avatar for Suzie999

I have searched high and low for a definitive answer to this, and I cannot find one (that I understand) The windows function [GetPixel](http://msdn.microsoft.com/en-us/library/windows/desktop/dd144909(v=vs.85).aspx) takes 3 arguments (HDC, int, int). Both ints represent a coordinate in the devive context, but are measured in logical units, x = > The x-coordinate, …

Software Development c++
Member Avatar for Suzie999
0
286
Member Avatar for VictorK19

Heres the assignment: > Write a program that will perform sorting and searching across records stored in a file. > The program should first query the user for a filename. The program should open the file and read > the first entry. It defines the number of records in the …

Software Development c++
Member Avatar for tinstaafl
0
199
Member Avatar for JustLacksZazz

Hello everyone, I'm quite new to coding and can't seem to find an answer to this question online. So far I have created a multiple choice quiz and am now working on the nitpicky details. Right now the quiz works great but I'm just trying to add a function where …

Software Development flash vb.net
Member Avatar for JustLacksZazz
0
692
Member Avatar for sundog1

Hi Guys, Is there a best practise when having an ADO connection to speed up the process? Currently the method I am using below works fine but it's a little slow in getting the data. Is there any hints, tips or tricks I can utilise to speed this up? //Opens …

Software Development dataset
Member Avatar for Ketsuekiame
0
379
Member Avatar for fonzi

Hey guys I'm having a bit of touble assigning the toString to a string from an index of an array list, any help would be appreciated. @Override public String indentedToString(int level) { String answer = " "; answer = super.indentedToString(level); answer += "Value " + this.list.toString() + "\n"; for(int i …

Software Development java
Member Avatar for fonzi
0
267
Member Avatar for lewashby

The following code block is producing and endless loop and I can't figure out why. Note that charv is just he second command line argument in the main function. int testNumber = 1; while(argv != '\0') { std::cout << testNumber; argv++; testNumber++; } I wrote this piece of code just …

Software Development c c# c++
Member Avatar for Suzie999
0
164
Member Avatar for sh4rif

Hello everyone I am running Ubuntu 12.04 compiling a c++ file which has the following code #include <iostream> #include <libusb-1.0/libusb.h> using namespace std; int main(){ //pointer to pointer of device used to retrieve a list of devices libusb_device **devs; libusb_device_handle *dev_handle; //a device handle libusb_context *ctx = NULL; //A LIBUSB …

Software Development c++ session ubuntu
Member Avatar for Moschops
0
315
Member Avatar for vb_newbie

hello, this is my first post here. I'm working on my movie library project now in vb2008. I have a form with 3 listboxes, a remove button and find button. Listbox1 is populated with names of actors from a table in the mysql database and selection mode = one. User …

Software Development vb.net
Member Avatar for vb_newbie
0
1K
Member Avatar for lena1990

hi all i want to send html file from pc to android phone if any body have an idea of how to do that i will be greatful for help?? thanxs in advance

Software Development android android-development java
Member Avatar for peter_budo
0
209
Member Avatar for sahilkharidia

outlook temperature Humidity Windy PlayTennis sunny hot high false N sunny hot high true N overcast hot high false P rain mild high false P rain cool normal false P I found out unique elements from file and their occurence ( ignored the elements whose occurence was less than 1(taking …

Software Development c#
Member Avatar for Ketsuekiame
0
197
Member Avatar for Dili1234

In my database there two table call sample and sample customer in sample table primary key is sample_Note_no and it is a foreign key in sample_customer table I got same error after I wrote this coding also ALTER TABLE Sample Customer ADD CONSTRAINT FK_Sample Customer_Sample FOREIGN KEY (Sample_NOTE_No) REFERENCES Sample(Sample_NOTE_No) …

Software Development vb.net
Member Avatar for G_Waddell
0
154

The End.