kararu 0 Junior Poster in Training

Thanks bennet.

Dear castro,

1 final question..sorry for being personal.If its okay please share with me whether you use mysql community server or mysql enterprise server with tomcat?

with this i think i hav to wait for reply from mysql ppl.

thanks for bearing, :)
kararu.

kararu 0 Junior Poster in Training

Hi Catro and jbennet,

Your replies were really to the point and seems reliable....Now that is clear for me.

I got this doubt because I want to use Apache tomcat (only GPLV3 Compatible) and Mysql 5.0 community server (only GPLv2 compatible) together in my program.Can I combine these programs to a larger single website software (bcos gpl2 and gpl3 are not compatible licences).Mysql 5.0 enterprise version is a different license which has no such rules.

do suggest something on this too.

Thanks.
kararu.

kararu 0 Junior Poster in Training

Hi all,

I need to use MySql in a commercial website.
What License should I buy MySql in?
What if I reveal the sourcecode?

Do guide me.
thanks
kararu.

kararu 0 Junior Poster in Training

Hi,

I am facing the same thng as you faced. I need to use MySql for my commercial website. What license should I buy Mysql server in?

can you share what you went thru?..
thanks
kararu.

kararu 0 Junior Poster in Training

Hi all,
I am good in Java.But I dont have any idea about PHP. With this matter in mind please suggest me which to choose(PHP or JSP) to create my own forum.
(coding my own forum..not using exixting freeware forum)....

What are the pros and cons of using JSP.(I dont want to enter into new language php now.Is that okay)

Thanks in advance,
kar.

kararu 0 Junior Poster in Training

Although it is true that static and global array are initalized with 0, you failed to mention that in the differences list. And since Bench assumed you were referring to local arrays, which are completely random, he was correct in saying that elements will remain unitialized until you put values into them.

It's still not correct to neglect a return type on main(), even if the compiler doesn't complain. For example, Visual C++ didn't (I'm not sure if it still does; I think so) complain about void main(). Does that mean it's correct? Of course not, it never has been, and probably never will be. So you can't always rely on compilers to be correct.


Your background makes it very hard to read, and it's highly unlikely any newbies will stop very long trying to make out the words that are barely visible against the low constrast.

I think you didnot check the link after Bench mentioned about the background.

kararu 0 Junior Poster in Training

Just because something works on your compiler or your friend's compiler doesn't mean that it will work on other people's. Compilers are allowed to work in ways which aren't defined by the standard, such as allowing void main() - implementations which conform more strictly to the standard are well within their right to complain about this (And some do!).

If you intend your site to be used as a reference for beginners, then may I suggest that you make no assumptions about what compiler your visitors might be using. or whether or not they are compiling in a mode which adheres strictly to the standard.

got it.no dependencies on compilers.I will put it as per standards alone.thanks.

kararu 0 Junior Poster in Training

Anyone following this thread, read this instead
http://david.tribble.com/text/cdiffs.htm

Check by YourSelf
The above is an elaborate explanation on incompatibilities..A good source of info.


This is ofcourse a good quick reference of differences for novices
http://www.geocities.com/karthika_79/diff.html

kararu 0 Junior Poster in Training

Aside from being difficult to read against that background, an awful lot of that makes no sense, is innacurate or completely wrong.
return types are never defaulted to anything. the standard specifies that main must return an int, however, it is not valid to simply write your function signature without explicitly specifying a return type.

That's not true for either C or C++. Array elements which are uninitialised remain uninitialised. To access an uninitialised variable or array element is undefined behaviour.

Please verify anything before you post.
1.Arrays that are static or global are initialized with zeros if no values are mentioned. You can check this out in http://www.cplusplus.com/doc/tutorial/arrays.html

2.Main and other functions default to int return type. ISO standard requires main to be return type int always.I accept. But my compiler and my friends compiler didnot complain when main was not specified with returntype int..though its not standard C++ programming, You can see tutorials and books still with code like
main()
{....
return 0;
}
For example (main): http://www.cs.uregina.ca/Dept/manuals/Manuals/7Language/7_18C++/c++.htm
(other functions) : http://jupiter.clarion.edu/~rsmaby/cis254/introcpp.html
http://cs.nmhu.edu/personal/curtis/cs1htmlfiles/essentialssec3.htm

Though you were not polite to ask me to check,I appreciate your valuable inputs. I understand what you meant.It was just an ambiguity which I now madeup by putting a Note there. Thanks a lot.

kararu 0 Junior Poster in Training

The differences are listed here

http://www.geocities.com/karthika_79/diff.html

hope this helps,
karthika

kararu 0 Junior Poster in Training

Hi all,
I had developed an Ip scanner with perl and inline c++. The forum was really useful for me..So thought I will share it with you.

www.sourceforge.net/projects/computeip

thanks,
karthika.

kararu 0 Junior Poster in Training

Is there a command to draw a circle in javascript or I have to use only a circle picture?
Also is there a way to arrange many circles randomly in a browser page ,using html/javascript?

kararu 0 Junior Poster in Training

How can I link my c++ program with html/javascript code?
My c++ program should have browser interface....Is cgi the only option.I dont want webserver and cgi...What else can I do?

kararu 0 Junior Poster in Training

A c++ project has to have a web based interface.
Anyone pls suggest what languages/frontends are the choices here?

kararu 0 Junior Poster in Training

Hi Matt,
Thanks a lot...I made my module into two parts and made the inline module have only c++ code.
Previously 1; was at the end of perl code and so c++ code was not recognised.Now 1; is at the end of c++ code and it worked.
Thanks a lot for helping. keep the good job going.
--karthika.

kararu 0 Junior Poster in Training

How to edit the XS file that is created while creating par binary? what should package name be and module name be?

kararu 0 Junior Poster in Training

Hi,
thanks..INC is proper and everything is in per/bin...So the way is using XS file while craeting par binary.
Pls hint on 'How to use XS in a module' ,while creating a binary using par (of a perl module using inline c++) .
My binary says inline subroutines as undefined...So I grabbed the XS file,inline.h and makefile.PL....How do I proceed?
No results sofar from hunting the internet...helpout. .thanks..
karthika.

kararu 0 Junior Poster in Training

Hi ,thanks.
1)Are there any other options while PPing inline code.
2)Along with my files,there is one _Inline folder created during building.thats all.whatelse should be present inside the same folder.


(I have one .pl file which 'use's seven .pm files and one of the .pm is having inline c++ in it (It has use inline CPP;).running it is very fine and working.
while running the executable , all subroutines in the other .pm files are recognised.Only the subroutines in the inline code are erroring as undefined.)

any hints?...

kararu 0 Junior Poster in Training

my error is
Tk::Error Undefined subroutine &test::test1 where test is the module name and test1 is an inline cpp function in that module.

any hints plss
thanks

kararu 0 Junior Poster in Training

I have my hashbang line as /usr/bin/perl -w since my perl interpreter is in this path only...I anything to be done for inline?

kararu 0 Junior Poster in Training

In linux I used PAR pp and converted my perl code to executable..
while running the filename.pl it is completely fine.
But when I run the executable with ./filename It says it cant locate object methods new and other function (both written in inline c++.)

some hints plssss

kararu 0 Junior Poster in Training

I used widget->update; for a particular frame frequently and transfered the variable value immeadiately....
So update refreshes a variable too.

kararu 0 Junior Poster in Training

when a process is running,I need to stop it by generating a signal immdly.I tried using kill pid to generate.But what happens is signal is generated only after the current process is over.

when some signal, say sigint comes,i need to stop a process immdly..I hav to generate this signal in the middle of a process.

help me please.

kararu 0 Junior Poster in Training

thanks matt,
Actually my program uses perl,Tk.Since Tk didnot workout with perl threads I used inline c++ for threading alone.Now when I press a stop button,I need all running threads to stop.
In c++ we can use a volatile variable.If it was perl threads kill would have helped. Now I have to find a method to transfer stop command from perl to c++ program.
Something like the volatile variable , sig interrupt or so. :-|

kararu 0 Junior Poster in Training

How do I stop a thread immediately, in perl?
Should I use the SIG interrupt or someone show me hints.
thanks.

kararu 0 Junior Poster in Training

Hi, thanks for your time and interest.Actually it is a c++ program used as inline in my perl program.and so I was not able to attach the full code.sorry.
I found that the string in which I concatenated another string, had no null as last character and so the string was taken to a length till it could find a zero and so when deleted, it gave segmentation error.
thanks again
bubye.

kararu 0 Junior Poster in Training

Hi,
I am doin a multithreading program in c++.

......
class thr
{......
public:
d =new char[35];
......
void start(){...start thread by calling function run..}
void run(){...}
int joining(){..join all threads}
~thr(){delete []d;}
};

In the program I am creating all threads,calling start on all thread objects and then calling joining on all thread objects.

Now I want to know when will this destructor be called for each thread object?Finally altogether or when each thread joins..or....
confused state :-|....help me out,pls.
thanks

kararu 0 Junior Poster in Training

HI all, In my c++ program, I did the following.

......
class thr
      {private:
               char *d;
......
        public:
               d =new char[35];
....
}
destructor has the line
delete [ ]d;

i get segmentation error 
 *** glibc detected *** /usr/bin/perl: free(): invalid next size (normal): 0x0000 000001bc7120 ***

But if I do the following in class,no error comes.

char *d;
char id[35];

Here I need not delete since it will automatically get deleted when it comes out of scope.I need this data in object functions.So is it wrong if I do this way?

help me out,pls.

kararu 0 Junior Poster in Training

okay.I will try that .Thanks. meanwhile, I tried using GDB(since perl is written in c too),But gdb requires a program in executable form.How will I put that .pl there ? :(.It naturally says not exe format.How do I come out of this?

kararu 0 Junior Poster in Training

I am starting to use GDB, It can take in only executable form programs as argument is it? Or there are other options. I need to use gdb on a non-exe program directly.Can I do it?

kararu 0 Junior Poster in Training

Since Iam not sure from where the error arises, I am not able to provide code.Actually it uses inline CPP. the cpp program has memory allocations and deallocations done properly in a thread environment.(I create threads in a loop.When I create many threads, seg fault comes. if I create few threads no error).help me out pls.

kararu 0 Junior Poster in Training

I am getting segmentation fault in my perl code. I am not able to find out,from where this arises.Can anyone suggest em a good debugger to find it out.thanks a lot.

kararu 0 Junior Poster in Training

Actually a variable will stay in register for a while and then be put in memory..I need the memory location to change immediately when I change the variable.(Like volatile variable in C)

kararu 0 Junior Poster in Training

Hi all, Is there anything in perl to declare a variable volatile...I need the value of a variable to change immeadiately when I change.help out pls.

kararu 0 Junior Poster in Training

to destroy mainwindow 'destroy'
to destroy widget 'forget' :)

kararu 0 Junior Poster in Training

Hi gurus
In PERL TK , I am displaying some labels when i click a button.When I click teh button again I want some other labels in that place.How do i destroy the old labels each time I click the button.
Is it possible to use 'destroy' on widgets or only on windows?
Any thoughts...
thnks,
bye.

kararu 0 Junior Poster in Training

I found a solution.I redirected the output to a file handle.

kararu 0 Junior Poster in Training

Thanks wolpack,..... Iam using linux.
Thanks dave....I will search popen.

kararu 0 Junior Poster in Training

Hi all,
Can anyone suggest me commands which will take a given thing and execute it in the command line and return the output. system() doesnt suit me bcos
1.it returns int not entire output
2.it opens command line window(shell) ( I dont want to open the window or display the output in a window).
thanks for any help

kararu 0 Junior Poster in Training

Hi all,
I have attched a code (inline c++) which is working fine if its alone run.But when I make it a package, giving package name; and putting 1; at the end ,,the calling script is not able to recognise new and says "cant locate object method new via name.perhaps you forgot to load class".
someone help.
thanks,
kararu.

kararu 0 Junior Poster in Training

Hi all,
What are the statements in a perl script that need attention/change for making the script run in a different OS.
ofcourse the perl interpreter path(hashbang line)
Say for eg: perl statements (system, exec and backtick ) involves command line commands.So commands will differ for different OS and so that needs to be changed.
what else needs change?
help out,
thanks.

kararu 0 Junior Poster in Training

thanks in advance for any suggestions. :)

kararu 0 Junior Poster in Training

I am clubbing this application with another very related application which is in perl.So I need to do this in perl only.I m using Tk as my frontend. Tk is not safe with perl threads.seems there is a bug.(segmentation fault occurs when using Tk and thread in same application).
So I opted for using C++ threads.
In Inlining I have to create thread objects and join threads in perl( thread class alone written in c++).
i am thinking of processing each output(sent from c++ to perl) which I got in joining thread.(My only option is joining in perl.not c++ :( )...I have to explore an option in inline to put everything in a datafile.

kararu 0 Junior Poster in Training

Thanks Matt..I have to ping several IPs and get the status.Without threading it is going to take so much time.I feel threading is necessary in this situation..(A thread will be called once for each IP).What u say?

kararu 0 Junior Poster in Training

Hi ,
Anyone help me out with a clarification.
Can a 'C++ multithreaded program' be used with inline::c++ module in perl?
Want to be sure whether multithreading can be done when using inline.
thanks in advance
karthika.

kararu 0 Junior Poster in Training

Though you would have started your app by now.....:)
win32::GUI and Gtk are your choices.But they are not portable..Tk is easy to learn but has no native look(to OS)
WxPerl is your other good choice.

kararu 0 Junior Poster in Training

Thankyou..:)..I knew that.But I was mislead by an ambiguous meaning in an article about using c++ from perl.Wanted to know whether something new was there.

kararu 0 Junior Poster in Training

You gave me advice..no solution.I got a solution (software) to convert perl to exe.Note:My perl uses inline.pm for c++ program.

kararu 0 Junior Poster in Training

I am in need to do a c++ program which will take in argument from command line and return output.I need to use it from my perl environment.
Is it better to convert this program to an exe ? Or Is it possible to make an exe out of the whole thing(after perl calls c++)
Please give some hints or pointers on how to proceed?
Can exe take in arguments and return output?
thanks a lot in advance

kararu 0 Junior Poster in Training

I am in need to do a c++ program which will take in argument from command line and return output.I need to convert this program to an exe in order to use it from my perl environment.
Please give some hints or pointers on how to proceed?My major confusions are
Are there free softwares around to convert c++ to exe?
can exe take in arguments and return output?