43,549 Solved Topics
Remove Filter ![]() | |
Hi everybody In an application I have, I had to start a word app. Because it took ages to load, I put it in the class constructor, but on exiting the app is not killed. I am trying to kill it by creating a destructor [code=csharp] ~MyClass(){ appWord.Quit(); } [/code] … Software Development | |
Hello! I have made a program that prints a diamond shape. But my program should read an odd number in the range 1 to 19 to specify the number of rows in the diamond, then it should display a diamond of the appropriate side in which it is at present. … Software Development c++ | |
chunk of code... [CODE] public void init(ServletConfig config) throws ServletException { Map map = new HashMap(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); [U]map.put("one1","two2");[/U] [/CODE] compiler says 'map' cannot be resoled......why so? wht shd i do? thanks, BeanBoy Software Development java | |
I have this piece of code [CODE=C++]// some function int px; void SomeFunction( void *dummy ) { ... RECT rect; GetWindowRect(hWnd, &rect); px = ((rect.right - rect.left) / 2) - 60; ... // Terminate thread _endthread(); }[/CODE] And my problem is px doesn't get assigned.. it stays 0.. although in … Software Development c++ | |
Hi, I am new to C++. I am using Visual studio 2008, MFC application. I need to do a GUI program using C++. I have come out with the GUI and now i need source code to communicate to external deivce like hard disk using serial port communication. My GUI … Software Development c++ gui visual-studio | |
Hi, i successfully created the JAVA Applet and embedded it in the HTML page. The applet class is as follows: [code=JAVA] import javax.swing.JApplet; import java.awt.Graphics; public class HelloWorld extends JApplet { @Override public void paint(Graphics g) { g.drawRect(0, 0, getSize().width - 1, getSize().height - 1); g.drawString("Hello World !", 5, 15); … Software Development java java-swing web-browser | |
Hi, I am new to java programming. I have been creating a simple applet. Which is as follows: [code=java] public class HelloWorld extends JApplet { public void paint(Graphics g) { g.drawRect(0, 0,getSize().width - 1,getSize().height - 1); g.drawString("Hello world!", 5, 15); } } [/code] This code is saved in a file … | |
hi i have problem to use doscommand haw to install an use plise help. hire is doscmd [url]http://maxxdelphisite.free.fr/doscmd.htm[/url] Software Development pascal | |
Hi, im trying to write some information into a mp3 file. The information i'm trying to introduce into the file must begin 128 bytes from the end of the file, and this block of information is identified by the string "TAG" at that position (128 bytes from the end). After … Software Development c++ file-system ios | |
The assign was a game called FortuneCity The prof wanted us to follow the MODEL - VIEW - CONTROLLER implemention. The MODEL contains only functions that can be used in the game. It has NO GUI stuff in it. The VIEW contains only contains the GUI interface. The CONTROLLER allows … | |
i tried the following code but not getting the desired output. I need to extend Applet class along with dialog class.how do i do that? [code=JAVA] import java.awt.*; import java.awt.event.*; import java.applet.*; /*<applet code="YesNoDialog" width=400 height=400></applet>*/ public class YesNoDialog extends Dialog implements ActionListener { private Button yes=new Button("Yes"); private Button … Software Development java | |
i am currently working on a GUI for a program. i have created 100 jpanels which i have set opaque and colored blue. All of these blocks get an error which says that an identifier is expected for the lines which set them opaque and colors them, heres an example: … | |
Hello, I am new to Java programming and I just got the NetBeans IDE. One problem that I've been having with Java is the input. [code=java] package learning; public class Main { public static void main(String[] args) { int num1 = 0, num2 = 0; cin >> num1 >> num2; … Software Development ide java java-netbeans | |
Realized something today by accident. I am asking for a dollar amount in my program, and checking to make sure it is a valid amount above $0. What I am not checking for is a character response. I have tried some stuff, and nothing seems to work. Can anyone look … Software Development c | |
So I was looking over someone elses code, and the main is unusual, no type. its just: #include <math.h> main(int argc, char *argv[]) I've come up with 2 theories: 1) It defaults to int? 2) #if/#endif directives somehow negate the need for int? Have no experience with this though, so … Software Development c | |
Hi all, I got the following XML C# string: [CODE=XML] <Grocery> <Food> <Fresh Food> <fruit>BANANA</fruit> <meat>CHICKEN</meat> <desert>CAKE</desert> </Fresh Food> </Food> <Food> <Fresh Food> <fruit>APPLE</fruit> <meat>BEEF</meat> <desert>PIE</desert> </Fresh Food> </Food> </Grocery> [/CODE] I want to remove the Fresh Food tags to obtain the following: [CODE=XML] <Grocery> <Food> <fruit>BANANA</fruit> <meat>CHICKEN</meat> <desert>CAKE</desert> </Food> … | |
Hi, I am new to OOP and I have ended up in a situation that might force me to abondon some of the flexibility I had in mind in my project. Before I do so, I figure I'd ask here to see if there is an easier fix for me. … | |
Hi all, i need to select the paragrah from the current cursor position. any ideas? Software Development vb.net | |
Hi all, I was wondering how I would use a single text box for multiple things eg. In one text box I would type 'createfile file.txt' or something like 'stopprocess process' etc. How would I do that? Thanks Software Development | |
Ok, I am writing a client for the "instant messaging" server I just wrote. The client is in all Python, and the GUI is made with Tkinter. Anyways, my first question is this: is there a way to make a scrollbar widget automatically scroll to the bottom? Second, in a … Software Development client-server gui python tkinter | |
Hi, so in order to make my problem more clear, I shall just make a simple example of what I am trying to do. I will start with a little code: [code=python]from Tkinter import * master = Tk() msgbox = Text(master) msgbox.pack() mytext = raw_input("> ") msgbox.insert(END, mytext) master.mainloop()[/code] Now, … | |
HI experts, I created a crystal report that works great, however I need to have a different page that always shows up at the end of the report. I cant figure out how to create a new report that does this. Thanks in advance. Software Development vb.net | |
Hi, I have written an FTP application that is working with no issues. It uploads one of 4 files to various printers on my network. I maintain a list of IP addresses. The 4 files are printer configuration files, that contain either 1 or 3 lines of code. Very simple … | |
Hi, I was wondering how you could change the head bar of a window in windows API. This is the line of code that I want it to change: CAPTION "Spanish Conjugation Quiz" Software Development api c++ windows-api | |
I've been trying to compile several C++ tutorial files that include the standard Microsoft header files, such as 'windows.h' to create a basic window. I'm fairly new to this C++ business, but I have a bit of experience with writing console applications on C. The problem is that the command … Software Development c++ gui visual-basic visual-studio | |
I'm trying to load a bit map but the picture won't come up. It compiles just fine. I'm not sure if this makes a difference either but I am trying to load a bitmap into a dialog box. Here's the code: The .cpp file: #include "windows.h" #include "resource.h" HBITMAP g_hbmHang … Software Development c++ | |
Hi all, has anyone any idea why I get an InvalidOperationException in this case? [CODE=c#]Dictionary<char, bool> dict = new Dictionary<char, bool>(6); dict.Add('A', false); dict.Add('B', false); dict.Add('C', true); // this works dict['A'] = true; // foreach gives an InvalidOperationException foreach (KeyValuePair<char, bool> KV in dict) { dict[KV.Key] = true; }[/CODE] Software Development | |
Hello! I want to use static_cast<int> on a void* member Variable in another class. (class aMessage). aMessage class has a public variable void* pVar. While using static_cast on a local variable is running smoothly, I get a compiler error trying to cast it on the aMessage->pVar. pVar is being declared … Software Development c++ | |
How do I call a function that gets passed as a paramater? like this: and how do i store it as a variable? [code=c++] void a_func(void(*func)(void)) { //how do i call func? //this gives me an error: func(); //is this hwo to store the function as a var?-> void* this_func … Software Development c++ | |
Hi, I cannot see a separator, though it adds spaces between tools. What am I doing wrong? Here is a code below [CODE=python] self.toolbar.AddLabelTool(wx.ID_REDO, "redo", wx.Bitmap("./icons/edit-redo.png")) self.toolbar.AddSeparator() [/CODE] Also what is difference between AddLabelTool() and AddSimpleTool() ? Software Development python | |
Can Anyone tell me how to use debugger. I have only once used Wingware Wing IDE. I just clicked debugger and it will highlight error! I want to be advanced with debuggers and debugging in python. can anyone tell me how thing go up? Thanks in Advance, S. | |
Hello Guys can somebody provide examples and explanations on how to embed MySQL server using SQLmylibd.dll (If I remember well). Appreciation to all answers, Steve Software Development python | |
can anybody explain me.the use of redim statement and preserve keyword over here.kindly let me know the idea .any help would be Highly appreciated. [code=vb] Public Function LoadData() As Boolean Dim codeString As String On Error GoTo LoadData_Error Dim Obj As IProducts '// The classinterface Dim rs As ADODB.Recordset '// … Software Development visual-basic | |
Okay, I've tried my professor, and he's impossible to get timely feedback from... When he has responded, he has sent me coding - most not even close to containing the proper elements to complete the assignments, and he isn't much for explaning. Although I could copy and paste all my … Software Development vb.net visual-basic | |
Hi I want to play a sound using directsound. As you can see i'm stuck already. [CODE] #include <dsound.h> #include <iostream> using namespace std; int main(void) {//CREATE OBJECT LPDIRECTSOUND8 ppDS8; HRESULT hr = DirectSoundCreate8(NULL, ppDS8 ,NULL); cout << hr; Sleep(2000); }[/CODE] I get the following error: 1>.\main.cpp(9) : error C2664: … Software Development c++ | |
Hi! i'm a newbie in VB6, and I'm creating a program that reads arabic numerals and converts the specified Arabic numerals to Roman numerals. Is there a function in Visual Basic 6 that converts Arabic numerals to Roman numerals or vice-versa?:-/ ..,,If none,..would someone , post some code snippets about … Software Development visual-basic | |
Hey, I'm working on a Spanish program and I want to make it so that if somebody wants to type in an a with an accent all they have to do is press the pushbutton. I realize how to create the pushbutton but I don't know how to just insert … Software Development c++ | |
How to get combobox.items from MS Access database? I'm using ADOTable and Datasource to get database into DBGrid. Software Development pascal | |
hi, i am working on a project to write data into the file and use a search enginee to get the data back. i was advised to use record but i didnt learn record at school. i tried to google it but came up with no solution. that's so far … Software Development file-system pascal | |
i have 4 memos on a page 3 of them are single line and the last is a large memo. Memo1 Memo2 Memo3 and Memo4 now for memo 4 i can use [code]Memo4.Lines.SaveToFile (SaveDialog1.FileName + '.txt');[/code] that works perfectly, but i want Memo1 2 and 3 saved to the same … Software Development pascal | |
Hi everyone, I am doing a program with python on Windows Vista, and I've put a entry in my program, now what I need to do is only allow the user to write number, if the user tries to write anything apart from numbers and commas, appears a message box … Software Development python tkinter windows-vista | |
Hey i have a problem about file copying. I have a source file opened with fstream and a destination file opened with FILE*...im trying to copy a chunk of the source file into the destination (the function receives as parameters the start second on the source file in which we … Software Development c++ file-system ios open-source | |
I'm having a bit of trouble working out how to decide the type of a generic at runtime. For example what I would like to do is decide the type of a generic class depending on user input. The problem being the generic variable that needs to be assigned is … Software Development | |
I am working with TWordApplication that ships with Borland Builder6. I don't seem to convert to C++ successfully from MSDN examples. I manage to open word from my app and paste text from the clipboard. I have used Select() to select the entire document, but can't work out how to … Software Development c++ | |
Hi, By clicking the button first time - it opens the form. if i try the same thing(in second time) .....In my form only [B]one textbox(using as a lostfocus[/B] and also using recordset[sql]) [B] Runtime Error '3367' : Object is already in collection.Cannot Append.[/B] Please ,help me out..........thanks in advance............ Software Development visual-basic | |
Hi , can anyone help me out to create the object of CSVReader() i want to use Filename as a string at time of object creation the below code is working fine : [B] CSVReader reader = new CSVReader(FileUpload1.PostedFile.InputStream);[/B] and i want to use string as an argument like : … Software Development | |
I've been giving myself a crash course in Java using some lectures from Stanford, and I started working on my practice midterm yesterday. So I'm reading my way through Sun's Java tutorial, and they don't define what the operator *= is, and that's the third question on my practice midterm. … Software Development java | |
Hey, I can't figure what is wrong with this part of my program. I know that it has something to do with that my variable i is exceeding the vector boundaries but I can't figure out how to stop it. I try to make the program exit before the vector … Software Development c++ | |
i am usng key ascii 13(Enter key) to move between text fields... but the problem is that it produce some sound i dont want that it produce that sound, can any one know how to avoid the beep in vb6????? Private Sub Text1_KeyPress(KeyAscii As Integer) On Error Resume Next If … Software Development visual-basic | |
Hi all, I'm loooking for somebody willing to write complete working example for: - connection to access database - show one table form mdb in datagridview - implement code for 4 buttons (Add, Update, Delete, Refresh) - every press to buttons reflects to mdb database and datagridview This will help … Software Development vb.net |
The End.