Click here to Skip to main content
15,904,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAccess Violation problem Pin
p_26-Jul-07 18:23
p_26-Jul-07 18:23 
AnswerRe: Access Violation problem Pin
Jonathan [Darka]26-Jul-07 20:54
professionalJonathan [Darka]26-Jul-07 20:54 
GeneralRe: Access Violation problem Pin
p_26-Jul-07 21:08
p_26-Jul-07 21:08 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]26-Jul-07 21:20
professionalJonathan [Darka]26-Jul-07 21:20 
AnswerRe: Access Violation problem Pin
p_26-Jul-07 22:16
p_26-Jul-07 22:16 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]26-Jul-07 22:19
professionalJonathan [Darka]26-Jul-07 22:19 
GeneralRe: Access Violation problem Pin
p_26-Jul-07 22:31
p_26-Jul-07 22:31 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]26-Jul-07 23:07
professionalJonathan [Darka]26-Jul-07 23:07 
I suspect the call is failing, have you tried adding mysql_error() to see if you get an error.

Also, change this part of the code:

if(mysql_query(myDB,"select * from login"))
{
    res=mysql_store_result(myDB);
    row = mysql_fetch_row(res);
    MessageBox(row[0]);
}


to this:

<pre
if(mysql_query(mydb,"select *="" from="" login"))
{
="" res="mysql_store_result(myDB);
" if(res)
="" {
="" row="mysql_fetch_row(res);
" if(row="" !="FALSE)
" messagebox(row[0]);
="" }
}<="" pre="">


Jonathan Wilkes
Darka[Xanya.net]

GeneralRe: Access Violation problem Pin
p_26-Jul-07 23:33
p_26-Jul-07 23:33 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]26-Jul-07 23:37
professionalJonathan [Darka]26-Jul-07 23:37 
GeneralRe: Access Violation problem Pin
p_26-Jul-07 23:47
p_26-Jul-07 23:47 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]27-Jul-07 0:02
professionalJonathan [Darka]27-Jul-07 0:02 
GeneralRe: Access Violation problem Pin
p_27-Jul-07 0:09
p_27-Jul-07 0:09 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]27-Jul-07 0:24
professionalJonathan [Darka]27-Jul-07 0:24 
GeneralRe: Access Violation problem Pin
p_27-Jul-07 0:40
p_27-Jul-07 0:40 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]27-Jul-07 0:41
professionalJonathan [Darka]27-Jul-07 0:41 
GeneralRe: Access Violation problem Pin
Shouvik Das27-Jul-07 0:06
Shouvik Das27-Jul-07 0:06 
GeneralRe: Access Violation problem Pin
p_27-Jul-07 0:35
p_27-Jul-07 0:35 
GeneralRe: Access Violation problem Pin
Shouvik Das27-Jul-07 0:45
Shouvik Das27-Jul-07 0:45 
GeneralRe: Access Violation problem Pin
p_27-Jul-07 1:06
p_27-Jul-07 1:06 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]27-Jul-07 1:07
professionalJonathan [Darka]27-Jul-07 1:07 
GeneralRe: Access Violation problem Pin
p_27-Jul-07 1:18
p_27-Jul-07 1:18 
GeneralRe: Access Violation problem Pin
Jonathan [Darka]27-Jul-07 1:25
professionalJonathan [Darka]27-Jul-07 1:25 
GeneralRe: Access Violation problem Pin
p_27-Jul-07 1:40
p_27-Jul-07 1:40 
GeneralRe: Access Violation problem Pin
Shouvik Das27-Jul-07 1:43
Shouvik Das27-Jul-07 1:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.