09-12-2008
Hi,
Thanks for the reply..
yes the model part should be 3 alphabetic chars and number should be 5 numerical characters.
I need do pass these variables to some other fn like this
db_insert_last_log_name(char *model,int number)
Thx,
jagan
10 More Discussions You Might Find Interesting
1. Programming
void main()
{
int a={1,2,3,4,5,6,7,8,9,10};
int *p=a;
int *q=&a;
cout<<q-p+1<<endl;
}
The output is 10, how?
if we give cout<<q it will print the address, value won't print....
if we give cout<<p it will print the address, value won't print....
p has the base addr; q... (1 Reply)
Discussion started by: sarwan
1 Replies
2. Programming
can u tell me the reson that why we should not delete a pointer twice.?
if we delete ponter twice then what happen and why this happen
Regards,
Amit (2 Replies)
Discussion started by: amitpansuria
2 Replies
3. Programming
what is far pointer in C (1 Reply)
Discussion started by: useless79
1 Replies
4. Programming
If one wants to get a start address of a array or a string or a block of memory via a function, there are at least two methods to achieve it:
(1) one is to pass a pointer-to-pointer parameter, like:
int my_malloc(int size, char **pmem)
{
*pmem=(char *)malloc(size);
if(*pmem==NULL)... (11 Replies)
Discussion started by: aaronwong
11 Replies
5. Programming
Can anyone tell me what the following statements do?
float (*tab);
tab=(float (*)) calloc(MAXCLASS,
(MAXCLASS+1)*sizeof(float)); (3 Replies)
Discussion started by: littleboyblu
3 Replies
6. Programming
Hi,
Can anyone tell me how i can declare and allocate dynamically an array of pointers to structured type?? Is declaration something like this:?
struct_name ** array; (1 Reply)
Discussion started by: littleboyblu
1 Replies
7. Programming
Hi guys, I'm trying to understand pointers in C and made a simple example and I've problems with It.
Can someone help?
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int f1(char **str_);
int main(int argc, char **argv)
{
char *str = NULL;
f1(&str);
... (3 Replies)
Discussion started by: pharaoh
3 Replies
8. Programming
Does anyone know?
int x = 1;
int *p = &++x; //ok !
int *q = &x++; //gives an error :O
why the first pointer is ok but the second is an error? (13 Replies)
Discussion started by: nishrestha
13 Replies
9. Programming
Here are two programs that pass a pointer to a variable but behave differently. Shouldnt the i in second program be 0 after the function call?
#include<stdio.h>
void changeI(int *i)
{
*i = 10;
}
int main(void)
{
int i=5;
printf("%d before\n", i);
changeI(&i);
printf("%d... (1 Reply)
Discussion started by: dragonpoint
1 Replies
10. Programming
how to copy content of character pointer to character array in c programming..
char *num;
char name=num; (1 Reply)
Discussion started by: zinat
1 Replies
LEARN ABOUT SUSE
gtk2::comboboxentry
Gtk2::ComboBoxEntry(3) User Contributed Perl Documentation Gtk2::ComboBoxEntry(3)
NAME
Gtk2::ComboBoxEntry - A text entry field with a dropdown list
SYNOPSIS
# the easy way
$combo_box_entry = Gtk2::ComboBoxEntry->new_text;
foreach (qw(one two three four five)) {
$combo_box_entry->append_text ($_);
}
# or the powerful way. there always has to be at least
# one text column in the model, but you can have anything
# else in it that you want, just like Gtk2::ComboBox.
$combo_box_entry = Gtk2::ComboBoxEntry->new ($model, $text_index);
# to mess with with entry directly, get the child:
$current_text = $combo_box_entry->child->get_text;
DESCRIPTION
A ComboBoxEntry is a widget that allows the user to choose from a list of valid choices or enter a different value. It is very similar to
a ComboBox, but displays the selected value in an entry to allow modifying it.
The ComboBoxEntry has a Gtk2::Entry as its child. To get or set the currently-displayed text, just manipulate the entry normally.
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::ComboBox
+----Gtk2::ComboBoxEntry
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::CellLayout
Gtk2::CellEditable
METHODS
$entry = Gtk2::ComboBoxEntry->new
$entry = Gtk2::ComboBoxEntry->new ($model, $text_column)
o $text_column (integer)
o $model (Gtk2::TreeModel)
widget = Gtk2::ComboBoxEntry->new_text
Since: gtk+ 2.4
$entry = Gtk2::ComboBoxEntry->new_with_model ($model, $text_column)
o $text_column (integer)
o $model (Gtk2::TreeModel)
Alias for new, with two arguments.
integer = $entry_box->get_text_column
$entry_box->set_text_column ($text_column)
o $text_column (integer)
PROPERTIES
'text-column' (integer : readable / writable / private)
A column in the data source model to get the strings from
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::ComboBox
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::ComboBoxEntry(3)