15 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jazzermonty

Hi guys I've written a very simple program that reads in some files, does some cleanup on the data and then creates a sql statement to insert the data into a table. Now I have 125 of these fies of varying sizes and on some (not all) of the files …

Member Avatar for jazzermonty
0
317
Member Avatar for eeeraser
Member Avatar for chdboy

I'm trying to get values from DataGridView to the another form in textboxes and in Picturebox ,data in textboxes are there ok, but when I try to get a picture in a picturebox from DB it gives me this error. Buffer cannot be null Parameter name :buffer and here is …

Member Avatar for chdboy
0
3K
Member Avatar for ctrl-alt-del

Good evening all, Currently I am working on a program that will automate the backup/restore jobs at the place I work. The rough work has been done, but I am somewhat concerned about the possibility of massive IO operations due to the way my program works. Here is the scenario: …

Member Avatar for ctrl-alt-del
0
234
Member Avatar for Matth963

Hi, I'm doing a study planner in java. I'm doing a simple login system. For every user who registers a text file is created holding all of the information inputted during registration. This is the code of a method which the program uses to login the user: public void loginUser(){ …

Member Avatar for Matth963
0
294
Member Avatar for gomonkeyninja

Okay, so this is my final assignment for a class I am taking. I'm making a Book Library Database that keeps track of all books that are entered and changed, things like that. I figured a useful feature would be saving your data in a text file so that it …

Member Avatar for gomonkeyninja
0
339
Member Avatar for abders

[CODE]print "creating a text file" text_file = open("write_it.txt", "a") score = 5 name = raw_input("What's your name?: ") score = (score, name) text_file.write(score) text_file.close()[/CODE] getting TypeError: expected a character buffer object Please help. Thanks

Member Avatar for abders
0
980
Member Avatar for turt2live

Hello, I currently have this code to buffer an image: [CODE] public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; ImageIcon icon = new ImageIcon("back.gif"); Image image = icon.getImage(); BufferedImage buff = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_ARGB); Graphics2D b = (Graphics2D) buff.createGraphics(); b.drawImage(image,imgX,imgY,this); b.setColor(Color.BLUE); b.fillRect((window.getWidth()/2)-13, (window.getHeight()/2)-13, 26, 26); g2.drawImage(buff, 0, 0, …

Member Avatar for turt2live
0
263
Member Avatar for jackmaverick1

Hi! I read the clearing input buffer article on the top of the c++ forum but I don't really get it, and it doesn't work. This is my problem, I know that cin is just like a file in that it has a buffer (correct me if I'm wrong, I …

Member Avatar for jackmaverick1
0
203
Member Avatar for ktsangop

Can anyone please give me a guideline on how to code the following? I have an MFC application which should call on a timer basis a python script from command line and read the ouput of that command line. I thought of using CreateProcess, but i have no clue of …

Member Avatar for ktsangop
0
408
Member Avatar for Slyvr

It's only reading every other line. It's supposed to print out: 28 80.0 22 1 2 2 3 1 3 But it's only reading: 80.0 1 2 1 [CODE]//Load button - #=daynum, $=wallet, @=inventory, &=employees, !=customers if (btn2.getText().equals("Load")){ int id=0; File file = new File("savefile1.txt"); BufferedReader reader = null; try …

Member Avatar for Slyvr
0
3K
Member Avatar for echellwig

Hi, I'm trying to replace an item in a list I made with 0. [CODE]popdata[0][5].replace(0.02,0)[/CODE] when I run this it gives me the error TypeError: expected a character buffer object. I was wondering what this error meant and how I would go about fixing it. Thanks! Elise

Member Avatar for echellwig
0
571
Member Avatar for freemanirl

Okay, so I've been looking at this for quite some time. I think I know what the problem is, but my C++ skills are sad a best due to stuff like Java, C# and VB. So, I'm trying to pull information from the registry, and I have no problem getting …

Member Avatar for freemanirl
0
193
Member Avatar for tcstom

Hi, I am attempting to create a dynamic array using realloc in 2 dimensions. Currently i have managed to get it to work using realloc to dynamically resize the amount of rows but when I attempt to use realloc to dynamically resize the amount of columns per row I keep …

Member Avatar for tcstom
0
4K
Member Avatar for Alex_

Hello everybody. I'm trying to get the current directory, save it, changing the current dir, then coming back to the previous one. My code so far [code=asm] TITLE ep1_7 .MODEL SMALL .STACK 10h .DATA msg DB 'Current directory:',0h msg_l equ $-msg buff db 64 dup('$') ;f_handle dw 1 dup(?) .CODE …

Member Avatar for NotNull
0
246

The End.