132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hkBattousai

I have this C++ code :[code] const int ANYSIZE_ARRAY = 1; struct LUID {DWORD LowPart; WORD HighPart;}; struct LUID_AND_ATTRIBUTES {LUID Luid; DWORD Attributes;}; struct TOKEN_PRIVILEGES {DWORD PrivilegeCount; LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];};[/code]I want to convert this code into C# syntax. I tried this one, but don't know how to place array in a …

Software Development
Member Avatar for drjr01
0
455
Member Avatar for farheen86

Hi! When my login form is loaded, I wish to retrieve the list of usernames from the database login to a combo box on the login form. unfortunately I am stuck with this error messsage " syntax error in FROM clause". Below is my codes.. help me out please Thank …

Software Development dataset open-source
Member Avatar for Geekitygeek
0
164
Member Avatar for wild_angel

Hi All! I have a table that there is a combo box inside the table. For example, the combo box consist of item codes. And then, whenever user choose item from combo box, the next column inside the table will show name of the item. Here is my example coding: …

Software Development java
Member Avatar for wild_angel
0
232
Member Avatar for iou

Hi, I've been working alot on a program lately, and I'm actually veeery close to done. Atleast until I come up with something more to add. The most useful function of this program, is the ability to create Shortcuts, which at the same time creates a command to start it. …

Software Development c++
Member Avatar for mitrmkar
0
336
Member Avatar for checho

hi i have the next problem i have an array or arraylist from class Student which has firstname, lastname and grade. How can i sort them by grade (value) - ascending and descending? [CODE]package zadacha_1; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Zadacha_2 { /** …

Software Development java
Member Avatar for Andreas Hollman
0
490
Member Avatar for fruitcake04

Hello! I'm making an enrollment application in vb6, using Access as my database. It will be used by 2 to 3 persons (registrar and cashier). What codes do I need if I want to retrieve data from my database from one pc to where my database is? If I declared …

Software Development visual-basic
Member Avatar for codefixer
0
142
Member Avatar for mwitu

Hi, i'm trying to take the last list from a list of lists, use that as a start point, then iterate through the list of lists and find the closest match, then use that matched list as a base and iterate through the remaining lists for the closest match to …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for ankush.mukherje

Hi experts Here I am with yet another problem. I want to add data in a tree viewer controller dynamically from my database. I am using ms-access as my back-end Please help me ASAP. Thank you in advance

Software Development visual-basic
Member Avatar for ankush.mukherje
0
201
Member Avatar for Israelsimba

im facing a challenge here peple. i will give as much detail as i can. i am trying to come up with code such that when a button is clicked it runs through a field "copiesremainng" in my subscription table and subtracts 1 from every record in that field. this …

Software Development open-source visual-basic
Member Avatar for codefixer
0
152
Member Avatar for asenteni

Hi guys, I would like to know if there is any way that I could disable a datagridview row and make it unselectable. I need to do this because I have clients in the grid of which some are active while others have been disabled but i am still displaying …

Software Development
Member Avatar for asenteni
0
16K
Member Avatar for filch

Hi, I am trying to get a perl script that a contractor created for me but I am having some issues with it. I am NOT a perl programmer and I know just enough about it to be dangerous. I am more of a PHP/CSS guy. Anyway, the purpose of …

Software Development client-server perl
Member Avatar for filch
0
227
Member Avatar for team_ferrari22

Hi, We are developing a C# windows application which [B]scrolls[/B] the selected windows automatically by using(hooking) win32 [B]SendMessage()[/B] function and later will display the no. of pixels scrolled using [B]GetScrollInfo()[/B] function. The SendMessage() is working properly & is scrolling all windows including IE. But GetScrollInfo() is not working for IE …

Software Development
Member Avatar for team_ferrari22
0
126
Member Avatar for Larbi

Please, show me How to return to a calling void method within or without using the RETURN (in java). Thanks

Software Development java
Member Avatar for verruckt24
0
284
Member Avatar for pradeey

chk this piece of code [CODE]#include<iostream.h> using namespace std; class hi { public: void print() { cout<<"hi"; } }obj; int main() { hi *h; h->print(); } [/CODE] output---> hi -------------------------------------------------------- [CODE]#include<iostream.h> using namespace std; class hi { public: void print() { cout<<"hi"; } }obj; int main() { obj.print(); } [/CODE] …

Software Development c++
Member Avatar for Rajesh R Subram
0
140
Member Avatar for cooldude9509

I'm new here at DaniWeb, and my english suck. Does anybody know how to make a form open [B]itself[/B], just in a new window? I want to make a form, that haves a button in it. when i click the button, it opens up a "copy" of itself (the old …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
2K
Member Avatar for nichya88

Today I've learned some concepts about Pointer in C++ and I have a confusion in this code snippet and its result. Source Code: [code] // Pointer array #include <iostream> using namespace std; void main () { char * say = "Hello"; // cout << "say = " << say << …

Software Development c++
Member Avatar for nichya88
0
139
Member Avatar for tqmd1

Dear Experts SqlServer Table1 has data as follows Sno-------date 1------01/01/2010 8------01/01/2010 1------02/01/2010 5------02/01/2010 2------18/01/2010 9------18/01/2010 3------18/01/2010 1------03/01/2010 6------03/01/2010 My questions are: 1) I want to display the SMALLEST Date into textbox1 which is 01/01/2010 2) I want to display the BIGGEST Date into textbox2 which is 18/01/2010 3) I want …

Software Development vb.net
Member Avatar for apegram
0
113
Member Avatar for TommyTran

[CODE] Dim InputText As String = Me.txtenter.Text Dim Letters = From c As Char In InputText.ToCharArray Select c & " = " & AscW(c) & " " Me.lblanswer.Text = String.Join("", Letters.ToArray) [/CODE] The above code is to convert each letter in a word or phrase (including the space) to its …

Software Development vb.net
Member Avatar for apegram
0
92
Member Avatar for blainj

Im brand new to java and programming in general. Just wondering if someone could help me out with my homework. Method 1: Write a public static method named myUserName. This method does not return anything. This method accepts no parameters. This method simply prints out your engr username (all lowercase …

Software Development java
Member Avatar for musthafa.aj
0
81
Member Avatar for vivek4020

Hi, I have a structure declared in C# [CODE]public struct myStruct { int x; }[/CODE] I created a 2D array of structures [CODE]myStruct[,] theStruct = new myStruct[3,3];[/CODE] What is the C# equivalent of the following C++ code? theStruct[0][0].x = 50;?? Please Help Thanks in advance

Software Development c#
Member Avatar for sknake
0
1K
Member Avatar for blacksymmetry

Zdravím, mám jeden dotaz, jelikož na komponentu LV nejde použít wizard jako na DGW, chtÄ›l bych se zeptat, jak postupovat pÅ™i vypisování jednotlivých řádku z DataTable, viz kód: Hello, i have got one questions, because with ListView component i cannot use the Wizard, i would like to ask, how to …

Software Development dataset listview
Member Avatar for JerryShaw
0
2K
Member Avatar for zulfahmi

Hi there, i am new in VB.Net and i have problem with my VB.Net project. I want to create an application where it capable to print a report like we normally do in word and save it in the pdf format. But the problem is i dont know how to …

Software Development pdf vb.net visual-basic
Member Avatar for Psychoticus
0
94
Member Avatar for tqmd1

Dear Experts How to make datagridview current row bold? Please help

Software Development vb.net
Member Avatar for kvprajapati
0
212
Member Avatar for love_dude1984

hi... i just wanted to know how we can access the variable of 1 form to another form.as far as i know, ther is no session management concept in C#. for ex., i want to access my login id into the next form. then what will be the procedure to …

Software Development session
Member Avatar for rodrigobraz
0
454
Member Avatar for atticusr5

Hey everyone I'm a college student taking semester two of C++ and we have a project using classes. This semester we are strictly using Vi to edit and compile my code. WARNING THIS CODE IS NOT THE WAY I WOULD PERSONALY WRITE IT, BUT MY INSTRUCTOR INSISTS ON THIS FORMAT. …

Software Development c++ ios
Member Avatar for Anarionist
0
132
Member Avatar for epicnote

Hello guys, by the way I am a newbie here. This is my first post in this forum. I am now doing a window application(MFC.exe-dialog based) using the Microsoft Visual C++ 6 Enterprise Edition. Actually I am doing the simple application that read a string from text file. I only …

Software Development c++ display
Member Avatar for epicnote
0
151
Member Avatar for asim rehan

Can You give me the code of detecting text from an image, i am a student and i am doing programing at beginner level. so please help me out.

Software Development
Member Avatar for Raahi
0
463
Member Avatar for luisgomez

Hello, my name is Luis Gomez, i'm the responsable for z3950's client development, i want to thank you for your time and will for help us. I've already revised de code, i looked some test source code: /*Test source code */ public void testLOC2() throws Exception { app_context = new …

Software Development api data-structure java xml
Member Avatar for adams161
0
602
Member Avatar for dnyal-1

i wrote this module code but not sure if this is how you write a module. Is there anything i have missed?? [CODE]int FirstModule(int section) { cout<< "Pick a number " <<endl; cout<<endl; cin>>number; if (number == 1) value = 1.00; else if (number == 2) value = 1.10; else …

Software Development c++
Member Avatar for jonsca
0
68
Member Avatar for alkeshtech

Hi guys, I am wondering how can I create a sorted linked list, without using Collection.sort(). Is there a way I can add element in a list in a sorted fashion?

Software Development java linked-list
Member Avatar for Andreas Hollman
0
116
Member Avatar for jmoran19

Hi, I'm having a syntax issue with timeit while trying to measure the time taken by a function meant to concatenate two linked lists. [CODE] def get_time() : import cell import timeit for i in range( 1, 16 ): lista = cell.make_list(i) #this function return the root of a sll …

Software Development linked-list python
Member Avatar for lrh9
0
196
Member Avatar for clutchkiller

Hi, so ive been teaching my self pointers, and I just wanted to clarify what I assume so far. You cant declare: int var1 = &var2; You MUST use a pointer to store an address: int *var1 = &var2; When assigning a pointer variable, it must always point to an …

Software Development c++
Member Avatar for clutchkiller
0
77
Member Avatar for jigglywiggly

So I am new to C++, but I have read on dynamic memory and pointers. I know java well, but java gives you a lot of helpers, C++ not so much D: Ok so I am using VS 2008, and I am just rather baffled on how to get started. …

Software Development c++ visual-studio
Member Avatar for mrnutty
0
323
Member Avatar for seto.girl

[B]hi I want my delphi db programm to run automatically in resolution 1024.768 and when I close the programm it returens to previous resolution (windowes resolution)like the most games what should I do? [/B]:(

Software Development delphi pascal
Member Avatar for Ionelul
0
125
Member Avatar for Violet_82

Hi there, I am new to C++ and trying to get my head around it. I am writing really simple and small programs and I have Visual C++. Now, can anybody summarize how I can run a program I wrote with C++ on Visual? The guide that comes with the …

Software Development c++
Member Avatar for Violet_82
0
187
Member Avatar for SergioQ

Am embarrassed to ask this but RegEx is really my kryptonite. I have a RegEx line that extracts just numbers from a string. However, I need to tell it that I only want the numbers that come BEFORE a specific set of characters, let's say SDCSDC. Any numbers after that …

Software Development perl regex
Member Avatar for d5e5
0
169
Member Avatar for tizzo233

Hi. I have a working program that lets you put info about a coupon. and then later on you can search for coupons, display them or remove them from the linked list. My problem is that, we are not supposed to perform input operations from our classes. But the way …

Software Development c++ linked-list
Member Avatar for Agni
0
111
Member Avatar for revathskumar

hello friends I need to create a child window. but when i am triggering the same event mutiple window is creating. How can i check whether a the window is already visible or not? How can i focus on the same if it exists?

Software Development python
Member Avatar for lllllIllIlllI
0
152
Member Avatar for fadia

Hello.. I'm working on my project.. It's not done yet.. But i wanna debug these errors now first.. Please would someone check them for me. Thanks.. Here is the interface: [CODE]# ifndef MAINMENU_H # define MAINMENU_H # include <iostream> using namespace std; class MainMenu { public: MainMenu(); MainMenu(string the_name); MainMenu(string …

Software Development c++
Member Avatar for WaltP
0
124
Member Avatar for paddy8788

I want to launch a new process from a given string of input (including parameter). I tried to use system() but it appears that in the child process, getppid() is not the same as the caller in some runs (probably because system uses the shell as command interpreter). However, if …

Software Development c multithreading
Member Avatar for nezachem
0
241
Member Avatar for valatharv

Please suggest how thius can be achieved and best approach to follow. a) Suppose server1 have application which is started using "java -[B]Xmx512M[/B] -jar <[B]app1[/B]>.jar" from command prompt from particular directory example C:\proj\application1> C:\proj\application1> Based on certain condition I want to stop this <app1>.jar on server1 and b) Start app.jar …

Software Development java
Member Avatar for vladimirdlc
0
161
Member Avatar for sathya8819

Hi, I have an application where I have to use two dll files as reference to my project. The thing is, my dll files both have the same name, but are something like different versions. I am not able to add both as references becoz of clash in name. And …

Software Development
Member Avatar for sknake
0
83
Member Avatar for badboizEnt

i wrote this shell given below. please i need any suggestions and assistance in making this created shell support the following commands: cp (copy), del (delete), hos (prints the hostname of the machine), cd (changes directory), clr (clears the screen), dir (lists contents in directory), environ(lists the environment setting), echo …

Software Development c
Member Avatar for Salem
0
104
Member Avatar for xxmp

i cave this code [CODE] #include <iostream> #include <cstdlib> #include <cassert> using namespace std; typedef int typos_akmis; template <class typos_stoixeiou> struct korifi { typos_stoixeiou dedomena; /* i would like to do korifi<typos_stoixeiou> * ->kdktis */ korifi<typos_stoixeiou> * epomenos; akmi<typos_stoixeiou>* kefali; /* here is the problem */ int episkeftike; } ; …

Software Development c++
Member Avatar for tkud
0
103
Member Avatar for sbanks_charles

Ok, I know that I am missing something due to my lack of knowledge with Binary Serialization and wish I could find better material on it. In the mean time, thanks to one of the moderators help, I have now been able to store an array in my database. Once …

Software Development vb.net
0
63
Member Avatar for DevC++4.9.9.2

Hey, Im using visual studio 2008 trying to make a windows form application that uses a database. Currently The design looks like this a Table BandID -> links to a table of Contacts -> also links to a table of Songs If i have a member of Table BandID with …

Software Development database-design visual-studio
Member Avatar for DevC++4.9.9.2
0
247
Member Avatar for ferlyn

hello everyone, im just confused on how to create GUI using the visual c++, could you help me.. coz i tried one but it doesnt work at all, do i haVE to setup anything on its properties

Software Development c++ gui
Member Avatar for donaldw
0
122
Member Avatar for zeeven

Hello guys, need a little help here! I wanted to create a fading effect on a groupbox but there is no opacity property for that control. Is there any way to set a control 's (i.e. button, groupbox, etc) opacity? Ive been searching the net but found no useful help... …

Software Development
Member Avatar for zeeven
0
90
Member Avatar for evanguiton

I am currently doing a college project using asp and c#. I have the sql database connected and I am able to write to it but i cant read from the database the way I want. So I have a dropdown list populated by dates from my database and I …

Software Development gui xml
Member Avatar for evanguiton
0
158
Member Avatar for robinotje

Hello everyone, I'm new to C / C++, and just wanted to make a file which can delete an item. The code worked, but when I want to give a path, it doesn't work anymore. Any help? [CODE] #include <iostream> #include <stdio.h> using namespace std; int main() { remove ("c:\users\asus\new.docx"); …

Software Development c++ file-system visual-studio
Member Avatar for robinotje
0
194

The End.