132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mojo1979

Hi, I'm pretty new to scripting so need some help... Basically I have a 1TB drive that hosts hundreds of .mdf files. What I want to do is search this drive for these .mdf files, zip them, and then delete the original .mdf file permanently. Any advice/help would be greatly …

Software Development shell-scripting
Member Avatar for cfajohnson
0
103
Member Avatar for gurupts

Plz any one can help me... i have only one table in an ms access database(2007).that table contain two fields only ID,Name.i want to search that table using ID(primary key) and result should show the name of particular id. In a vb.net(2008) form i put one text box,one button and …

Software Development vb.net
Member Avatar for ShahanDev
0
593
Member Avatar for Unhnd_Exception

[code] ''' <summary> ''' Returns a new copy of the bitmap passed in. The new copy is rotated ''' to the specified degree and resized to fit its new bounding box. ''' </summary> ''' <remarks> ''' The Original Bitmap should be the bitmap that has never been rotated. ''' If …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
941
Member Avatar for saurabhtiwari

Hi I am trying to count the rows from a table at the same time I want to update the new column I m trying the following code but not getting results please help me.... [code] string str1 = "SELECT Extrausage FROM perclientreport WHERE Bill>0"; cmd = new OleDbCommand(str1, con); …

Software Development
Member Avatar for ShahanDev
0
114
Member Avatar for like_bilal02

Dear Freinds I want to get two rows out of 6 columns in datagrid from database out of 6 columns so kindly give me a query of this programme but give me linq to sql query thanks

Software Development vb.net
Member Avatar for ShahanDev
0
65
Member Avatar for Resentful

I apologize for the vague topic title, but the actual topic title would be very long. Is it possible that after you find a string, backup until you find a specific character and copy it? For example, I am looking for "bread". The text is milk8andbread. Would it be possible …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
111
Member Avatar for steven8579

I need help with printing support. i followed a tutorial on dreamincode.net for printing and now i need help. When i print, it prints out two pages the first one has 0 in it and the second one has 00 on it. I am trying to get it to print …

Software Development printer
Member Avatar for steven8579
0
148
Member Avatar for rtk1865

I have a unit conversion program that needs to take in a float and 2 strings from standard input. My previous solution was: [CODE] float orig_quant; char *orig_name = (char*) malloc(MAX_CHARS); char *new_name = (char*) malloc(MAX_CHARS); fscanf(stdin, "%f %s %s", &orig_quant, orig_name, new_name); [/CODE] However, this only works if the …

Software Development c
Member Avatar for Narue
0
23K
Member Avatar for BleepyE

Is it possible to have a feature where the application checkes for updates every 7 days or each launch? If so, please could someone point me in the correct direct to adding this to one of my applications. Thanks

Software Development vb.net
Member Avatar for BleepyE
0
258
Member Avatar for cuckas

Dear friends, hello to you all as this is my first thread - question to the forum. This is my problem, which is a school exersize: I create a linked list which contains three numbers r,c,d per node From this list I have to create a hash table htable[7] with …

Software Development c linked-list
Member Avatar for ambageo
0
338
Member Avatar for stljim

Hello everyone, I'm _very_ new to xml, especially converting using an xslt. Here's my source XML generated by Eeye Retina. This data is being used by MS Access and I don't need all the data from the original XML. When I try to run the MS Access app I get …

Software Development os-x windows-server xml
Member Avatar for iceandrews
0
272
Member Avatar for kjanardhanam

The following code snippet is throwing error if i use the mkpath command.Can any one help please? i get the following error message: D:\perl_prj>perl ex2.pl a.csv mkdir IDS/CPIDS : Invalid argument; The filename, directory name, or volume label syntax is incorrect at ex2.pl line 28 [CODE]use File::Path; #get file name …

Software Development perl
Member Avatar for d5e5
0
230
Member Avatar for BleepyE

My code has all of a sudden gone strange. Example 1: When I click my save button nothing happens, when I double click the button in the designer, it creates a new sub called "save_click_1" Example 2: My linklabel is no longer working. Double-clicking it in the designer ccreates a …

Software Development vb.net
Member Avatar for BleepyE
0
74
Member Avatar for hao90

i[CODE]mport javax.swing.*; public class ReverseArray { public static void reverse(int b[]){ int left = 0; int right = b.length -1; while(left<right){ //exchange the left and right elements int temp = b[left]; b[left] = b[right]; b[right] = temp; left++; right--; } } public static void main(String a[]){ } } [/CODE] how …

Software Development java java-swing
Member Avatar for hao90
0
114
Member Avatar for vbx_wx

[code] lis.py class mylist: def __init__(self,l): self.data = l; def __add__(self,l): self.data = self.data + l def __repr__(self): return self.data main.py from lis import* x = mylist([1,2,3]) x = x + [4,5] print x [/code] Why is it printing None? What do I did wrong,Thanks.

Software Development python
Member Avatar for vbx_wx
0
96
Member Avatar for dbphydb

Hi, I have the below script which downloads few files from server and writes the file size, start time and download time to a file. Now i want a header for that file. The script does so, but when i run the script again, again the header is appended to …

Software Development client-server python
Member Avatar for woooee
0
179
Member Avatar for alexandernst

I'm trying to convert LPWSTR to LPSTR withi this: [CODE] LPWSTR *argvw; int argc; argvw = CommandLineToArgvW(GetCommandLineW(), &argc); LPSTR argv = new CHAR[argvw->size()+1]; WideCharToMultiByte(CP_ACP, 0, argvw->c_str(), -1, argv, (int)argvw->size()+1, 0, 0); [/CODE] but I'm getting this: [CODE] main.cpp:14: error: request for member 'size' in '* argvw', which is of non-clas …

Software Development c++
Member Avatar for Ancient Dragon
0
601
Member Avatar for totalwar235

i am just trying basic C++ GUI and i ran this code from a tutorial site. [CODE] #include <windows.h> int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR pszCmdLine, int iCmdShow) { MessageBox(NULL, "Hello World", "Testing", 0); return 0; } [/CODE] when i run it, it executes and makes a animation of …

Software Development c++ gui visual-basic windows-vista
Member Avatar for totalwar235
0
116
Member Avatar for sheztc1977

Hi, I am trying to create a league table. There are eight teams. The teams and their results are added to a text file on one form. The teams and results are seperated by a comma. On the second form i have a label where I am trying to display …

Software Development c#
Member Avatar for sheztc1977
0
741
Member Avatar for discovery-power

Hi All, I have created a form called new users, I have added my data source, draged over the objects I want from the dataset onto the form and all is well appart from the fact that I cant delete records. To add them I simply click the add button, …

Software Development dataset sql vb.net
Member Avatar for discovery-power
0
112
Member Avatar for WDrago

Greetings everyone, This is my first post, so I hope I don't break any rules by mistake... I am an experienced programmer trying to learn VB.NET. The problem I'm having is that it seems like strings have to be initialized differently than other types and I don't know what I'm …

Software Development vb.net
Member Avatar for WDrago
0
178
Member Avatar for EngSara

Hi, I need to store each path in a tree as a row in a two dimensional array of size #of paths x N. I couldn't find the appropriate indexing scheme for the array. Any ideas would be appreciated. Thanks,

Software Development c++
Member Avatar for vijayan121
0
2K
Member Avatar for seanbp

I'm assuming there's no easier way to do this. Is thread locking really automatic? Am I misreading the documentation? [CODE]from threading import Thread make_thread = lambda fn, *args: Thread(None, fn, None, args).start() def my_fn(*args): for arg in args: print (arg) make_thread(my_fn, "toaster", "ovens") [/CODE]

Software Development python
Member Avatar for griswolf
0
95
Member Avatar for daudiam

Consider the following codes : File : C3.java [CODE]package G; public class C3 { protected int a=5; }[/CODE] File : R3.java [CODE]import G.C3; class R2 extends C3 { void doit() { a=7; } } class R1 extends R2 { void doit(R2 b) { a=8; b.a=1; // (1) } }[/CODE] It …

Software Development java
Member Avatar for daudiam
0
209
Member Avatar for fka

I have to read text file line by line to multidimensional array. I have this code: [CODE] char *data; data = (char*)malloc(size_d); while(fgets(data, size_d, fp) != NULL) { printf("[%d] %s ", strlen(data), data); } [/CODE] I want to put every line to char array. Some suggestions?

Software Development c
Member Avatar for fka
0
135
Member Avatar for rtk1865

[CODE]typedef struct{ char *name; bool exists_in_sys; convert_table *data; } unit; float orig_quant; unit *orig_unit = (unit*) malloc(sizeof(unit)); unit *new_unit = (unit*) malloc(sizeof(unit)); printf("Enter original quantity, original units, new units\n"); fscanf(stdin, "%f %s %s", &orig_quant, orig_unit->name, new_unit->name); printf("Original unit: %s\n", orig_unit->name); printf("New unit: %s\n",2) new_unit->name);[/CODE] OK, so I would like to …

Software Development c
Member Avatar for rtk1865
0
205
Member Avatar for prvnkmr194

Hello to all Actually I want to handle the usb interrupt from c program ....... For example when some one insert usb drive in pc then my program call certain function ..... I try too search in google but i did't get any help i know little about software interrupt …

Software Development c
Member Avatar for prvnkmr194
0
107
Member Avatar for thekitoper

I am still quite a newbie with python so my code Is quite sloppy. Whenever I run it I get an error reading "Surfaces must not be locked during blit" but in my code I did not purposely lock the surface please help thank you. Here is my code: import …

Software Development gui python
Member Avatar for thekitoper
0
1K
Member Avatar for DrMAF

I'm new to C++ programing. the compiler can't find "atlstr.h" to include. I searched alot for this file but I couldn't find. Please, and body knows how to find it , tell me ASAP.

Software Development c++
Member Avatar for DrMAF
0
4K
Member Avatar for pigmario

Hi.. can anyone understand this piece of flowchart,i dont understand. the flow cart is in the attachment. and below is my source code implementation [code]input int n; int i=0,a,b; if(n>0){ while(i<a){ if(n>i){ if(n>a){ if(b>a) b=1; }else{ n=a; if(n*b >i) b=1; } }else{ n=1; } i++; } }[/code] i dont know …

Software Development java
Member Avatar for febrilian samo'
0
742
Member Avatar for cms271828

Hi, I have 2 applet problems. 1) I uploaded a new jar file to server to replace old one. When I load web page in browser for that applet (on this pc), I keep getting the old jar file getting loaded as the applet (even on different browsers on this …

Software Development http-protocol java web-browser
Member Avatar for Akill10
0
229
Member Avatar for sarifah

Hi. I want to backup and restore the database by using vb.net.I have a problem here. .This dialogue box appear. " [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open backup device 'C:\Documents and Settings\S\My Documents\sales.Bak'. Operating system error 5(Access is denied.). [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is terminating abnormally. " Can …

Member Avatar for buddylee17
0
265
Member Avatar for Juginx

Hey I have problem... If i save playlist with 1 item then it work but if i have more then it bug. i can start debugging. [CODE]XmlTextWriter ^textWriter = gcnew XmlTextWriter(dig->FileName, nullptr); textWriter->WriteStartDocument(); for(int i=0; i < listBox1->Items->Count; i++){ textWriter->WriteStartElement("track"+ i); textWriter->WriteStartElement("url", ""); textWriter->WriteString(listBox1->Items[i]->ToString()); textWriter->WriteEndElement(); textWriter->WriteStartElement("name", ""); textWriter->WriteString(listBox2->Items[i]->ToString()); textWriter->WriteEndElement(); textWriter->WriteStartElement("start"); …

Software Development c++ xml
Member Avatar for kvprajapati
0
140
Member Avatar for fsuco

Hi, I’m starting out on C# and need some guidaance. My goal is to develop applications that will control/take measurements/gather data from RF lab instruments (signal generator, vector network analyzer, spectrum analyzer). My issue is to what commands are used by C# to actually talk to the instruments? In my …

Software Development c c# c++
Member Avatar for ddanbe
0
431
Member Avatar for afaque01

Iam trying to Calculate The values From 2 Comoboboxes.....But sometimes its calculating and sometimes its Showing BOOLEAN conversion problem... Plz SEE the code . [CODE] If C1.Text = "Agra Fort" Andalso C3.Text = "Delhi" Then l8.Text = 800 ElseIf C1.Text = "agra fort" Andalso C3.Text = "bangalore" Then l8.Text = …

Software Development vb.net
Member Avatar for afaque01
0
172
Member Avatar for Castiel1631

I am trying to create an abstract data type for matrices. I have a function matrixInit to dynamically allocate memory for the structure and for the array. matrixCopy copies one matrix into another. there are functions to subtract, add and multiply matrices that return a pointer to memory where the …

Software Development c data-structure matrix-multiplication
Member Avatar for Thaylo
0
1K
Member Avatar for judithSampathwa

Hi I have a question regarding the datagridview cellFormatting event in C#, [CODE] if (e.ColumnIndex >= 0) { if (this.dgvSubContractor.Columns[e.ColumnIndex].Name == "TelNo") { if (e.Value != null) { this.dgvSubContractor[3, row].Value = c.CheckingValue(e.Value.ToString()).ToString(); } } return; } [/CODE] I wrote the below code to format a 10 digit number to (456) …

Software Development asp.net c#
Member Avatar for Mitja Bonca
0
770
Member Avatar for tendaimare

i have a checked list box as one of my controls in my code what happens is when i click on the checked list box the item clicked in the checked list box is supposed to be added to a text box, and my code is now doing that however …

Software Development vb.net
Member Avatar for tendaimare
0
148
Member Avatar for Saikumar Adep

Is This Possible Select * from Dataset

Software Development dataset vb.net
Member Avatar for ShahanDev
0
99
Member Avatar for davieJohnson

I am working on a C# Windows Form project and I need to access the controls on a form from a separate class within the project. can anyone help me with this?

Software Development
Member Avatar for Mitja Bonca
0
159
Member Avatar for nmakkena

Hi I want to display tables data(having only one column) into a combobox as items. pls provide me some solution for this.

Software Development display
Member Avatar for pvtam2a
0
184
Member Avatar for Allasso

Hello, I am learning ia-32 assembly. I have observed that when creating an object file using gcc from the simple c program: [CODE]main () { char buf[256]; write(1, buf, 256); } [/CODE] it generates the following instruction for the write: (using the data on top of the stack for the …

Software Development assembly
Member Avatar for Allasso
0
181
Member Avatar for Riga

i'm newbie from programming, what i want to ask is how to get the name from dayofweek?? [code] For cacah = 0 To 6 Dim nodeNamaHari As DayOfWeek [nodeNamaHari = cacah] Dim nodeJelasHari As TreeNode = nodeBulan.Nodes.Add(nodeNamaHari) Next [/code] that's what i try but the nodes appear just the value …

Software Development vb.net
Member Avatar for Riga
0
332
Member Avatar for phobos666

Hi, I am using a C program to open and scan a file containing rows of x,y coordinates. But I need to use the same program to open different files having different number of rows.Therefore, I cant fix a constant number for the array. This is what I have used: …

Software Development c
Member Avatar for Narue
0
131
Member Avatar for hao90

[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public …

Software Development java
Member Avatar for hao90
0
113
Member Avatar for gedas

hey, i have been asking for help for almost a week and there is no reply what so ever. from anyone ... please help i am so so so stuck and i have been stuck for days.. i am creating web services in netbeans (ws-jax) i want to return array …

Software Development client-server java java-netbeans
Member Avatar for gedas
0
126
Member Avatar for daudiam

[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ?

Software Development java
Member Avatar for daudiam
0
162
Member Avatar for harry.jhone

Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question from expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations …

Software Development java
Member Avatar for kvprajapati
0
92
Member Avatar for halil.burak

Frame complete game, only the outer edges of a square drawn on the table is a game played with 2 players. Sequence of a square drawn from the player wants to draw a non-edge. Underline that this edge of the square is not the last edge of the square is …

Software Development c matrix-multiplication
0
122
Member Avatar for JOSheaIV

Okay I have a datagridview with multiple rows and columns of data. I set the grid to Readonly == true by default, but have a method that when the user double clicks the datagridview, it's gets the current cell the user is clicking and then uses this line of code …

Software Development c c# c++
Member Avatar for JOSheaIV
0
1K

The End.