List:General Discussion« Previous MessageNext Message »
From:Sinisa Milivojevic Date:November 20 2001 5:03pm
Subject:Re: Problem with Result class
View as plain text  
thomas WOLFF writes:
> Y have make a function like
> 
> Result CSql_tools::SendaQuery(CString request)
> {
> 	Result res;
> 
> 	Query query = GetQuery();
> 	// This creates a query object that is bound to con.
> 
> 	query<<request;
> 
> 	res=query.store();
> 	// Query::store() executes the query and returns the results
> 
> 	return res;
> }
> 
> when y run the programm he made a access violation, when he return the
> result why ????
> Please help !
> thanks.
> 
> 
> Thomas Wolff
> -------------------------------------------------------------
> Akosystem
> Am Tiefen Weg 17b
> 76547 Sinzheim
> 
> Email: mailto:thomas.wolff@stripped
> Telefon: +49 (0) 7221 / 98 78 40
> Fax: +49 (0) 72 21/98 78 42
> Handy France : +33 (0)6 84 20 50 86

Hi!

Are you using MySQL++ ??

If so which compiler did you build it with.

Next, you must check the errors. Best way to do it is with C++
exceptions.




-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <sinisa@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com

Thread
Problem with Result classthomas WOLFF20 Nov
  • Re: Problem with Result classSinisa Milivojevic20 Nov