c++ question

I dont know any good forum for C++, but i guess people who uses JNI would know C++ as well =)

i have method that i call which takes many LPSTR args

I need to concat all those LPSTR into a SELECT query

and pass into another method withconst char* sqlstm

as an arg

my question is that

i know if i dochar qry[256]

and use sprintf, i can do this easily. However, i know the query might run above 256 characters.

what is a good way to handle something like this?

char qry[50000000] << not a good idea right?

very simple example code would be appreciated, cuz I am very new to C++

[717 byte] By [khan2265a] at [2007-10-1 23:56:35]
# 1
Hi,You could check the length of the strings, and then create the array: http://www.cplusplus.com/ref/cstring/strlen.html/Kaj
kajbja at 2007-7-15 15:49:01 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
how do i concat the string?... =(suppose 'marker' is passed in as LPSTRstring query3 = "INSERT IGNORE INTO something (Marker) VALUES ("+marker+")";this gives me '+': cannot add two pointers
khan2265a at 2007-7-15 15:49:01 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
nevermind i got it
khan2265a at 2007-7-15 15:49:01 > top of Java-index,Java HotSpot Virtual Machine,Specifications...