132,726 Archived Topics
Remove Filter ![]() | |
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 am using a code to read a grayscale image and store the pixel value in a 1D array. But the code is taking a default image(though i am providing the complete path for the image to be loaded) and the height and the width are returned as -1. … | |
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 | |
Hello I need some tips regarding line striping i.e, number of lines joining with the indices and vertices in GUI using c++. | |
hello, in the below code i have established conection through jdbc to oracle database,here my program will give continous ping to the server and stores the result in to the file. again by opening the file iam reading the file and searching for the "Request Timed out " pattern and … ![]() | |
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 | |
So 2 questions. 1) MPI_Init. I'm trying a python -> c -> cluster project. So I have no problem with the python -> c, but the problem comes with the c-> cluster. I'm making a python wrapper (I believe this is the correct term) around a premade c driver for … Software Development c | |
Hi All, Sorry for my posting if it was already in the forum. I could not find the answer to my question. I am newbie. I have never programmed anything. I just started to learn. Now I want to do is to produce automated searches. How can I do that? … Software Development python | |
Hello everyone, i want use EnterKey in my Project ,i write some code in from load,but still TAB key use in my project. Here is a code, [B]If KeyAscii = 13 Then SendKeys vbEnter End If[/B] Software Development visual-basic | |
For Input 4 15.01 15 3 3.01 The value of 'avg' is becoming 9.00. I don't understand why this should be 9.01. Please help. [CODE] #include<stdio.h> #include<math.h> double round(double x) { return floor(x * pow(10.0,2.0) + 0.5)/pow(10.0,2.0); } int main() { //freopen("10137.txt","r",stdin); //freopen("out1.txt","w",stdout); long i,n; double sum,avg,sum1,a[1005]; while(scanf("%ld",&n) == 1 … | |
hi all, i am very new to programing and i have just writen a calculator for measuring building marerials, the program works great, but it dosn't look to pretty. how can i get my calculator to work in a window, instead of the default dev c++ command window thingy i … Software Development c++ | |
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 | |
Hi.. i have a little homework from my school my lecture want me to create a little program in VB.NET he wanted if i pressed Ctrl + S in ...it will appears msgbox.... and one more...if i click button...it like i press Ctrl + S Can u help me.... thx … Software Development vb.net | |
hello everyone, can u plz. specify steps how to convert s/w into exe thankyou 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 am making point of sale system.. i want to make empty grid and i want to add list box in first cell of each row, that list box contain items name so that when user select item all other cell of that row is filled by the respective … Software Development 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++ | |
I have written two classes, one the GrabPixels class which takes an image and extracts the pixels from it. The FFT class then tries to call grabPixel. The problem I get is that img in this line [CODE]grabPix = new GrabPixels(img);[/CODE] is null. I'm not too sure why. Could someone … Software Development algorithm data-structure java | |
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 | |
how to make a method wait for an event? when the function is called, it will wait for an event to occur to continue execution. is that possible? Software Development | |
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 | |
how many days will it take to get perfect with core java? any shortcuts? Software Development java | |
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 have declared the following variables in the form transoverride.vb Dim Account_Name, PolicyNumber, TransCodeOrig, TransEffDate, Override_Action, Override_New_Renewal, Override_Transaction_Code, ModifiedDate, ModifiedUID, Plan_Year As String Dim RowNum As Integer The goal of this question is that I want to pass the above variables to a dialog form called edittransoverride. Public Sub DoModify() … Software Development vb.net | |
hi,all Just like the title,i want to programme a update software for my softeware,but i don't know how to start. Is there a function that can download in VB6?And how to check the version? Please help me.... Software Development visual-basic | |
I use MS Access database and I want to create a simple backup system, but I have not idea how to create it. I tried with copy paste on the database but I got error because my database is being used by my application... I also tried to disconnect the … Software Development assembly | |
Hi; I am relatively new to this forum and to C#.net. I am trying to retrieve data from an SQLBase database using C#.net, System.Data.OleDb namespace on visual studios 2008. i have executed the SQL statement given within the code (copy and pasting it into SQLTalk) and it worked fine. when … Software Development 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++ | |
[code]#include<iostream.h> #include<conio.h> class A { int a[10]; char name[10]; public: void read(); void display(); }; void A::read() { cout<<"enter rno name"; for(int i=0;i<3;i++) { cin>>a[i]; cin>>name; //cin>>a[i]; } } void A::display() { //cout<<count; for(int i=0;i<3;i++) cout<<a[i]<<name; } //int A::count; main() { clrscr(); A x; x.read(); x.display(); getch(); }[/code] here i … 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 | |
![]() | As the title suggests how? I have successfully used pyExcelerator to convert an xls file to csv, 1) I downloaded the pyExcelerator file. 2) Extracted it and put the file under C:\Python25\Lib\site-packages 3) Then I ran the example script xls2csv.py example.xls > comma.csv but I would like to know how … Software Development python |
I am facing a problem. I have an enum which further goes as some string values. Now I have a check or validation for that particular enum type as if it is null, then display some error message. But when I give nothing for the particular parameter, it takes the … Software Development c# | |
hi i am a new one to this community i have a problem in my code ,in that when i try to implement keylistener it works only for text not for image while using drawImage the image painted but not moved and when iam trying it with draw string keyListener … Software Development java | |
Hi guys I'm creating an installer for a program and one of it's perquisites is the .NET framework well when i try to install the software on Windows XP it downloads the framework but what i want to do is install it from the installer Software Development | |
Actually , i must admit , i did not knew about connecting with database but i am trying to learn , i want to insert data into jtable from Ms acess database , i have made a table called song_library there and also created the dsn as testy1...Also in the … Software Development java | |
I have a maskedtextbox. I am trying to convert the contents to DateTime but when I do it says it is not a valid string. I have checked the value at runtime and it is returning the mask in the string. I did a little research and found the TextMaskFormat … Software Development | |
Hi everybody sorry if the title is misleading what am meant to say does anyone know of such a book or anything where I or we (depending anyone coming back to this thread) lol Know were we can see step by step on how to build application on java you … ![]() | |
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 | |
Hello! I am having a problem with my program.I have made a program that prints the four different shapes one after the other. But the program should print these four different shapes side by side. I know there should be one outer loop for this but I am unable to … Software Development c++ | |
i am done with almost all the functions of a simple mp3 player , i am trying to make , i 'm stuck with pause function, i dont know , i was thinking of creating a separate thread for it... [code] private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0); if(count>0) … Software Development java |
The End.