|
r u connected with ur DB if yes then this should work
|
|
|
|
|
Still STUCKED into same problem???
|
|
|
|
|
HI,
Iam actually very confused as to how to proceed.
|
|
|
|
|
tell me one thing have u successfully got connected with ur DB
(whatever ACCESS or something else) have u gone thru the link which i gv u
about connection strings, If u r connected with ur DB then whats the problem??
try what i told u before to get the value from record set
& use setwindowtext method.
I think unneccessarily u r getting confused.
who told u that if ur application is dialog based u can't connect to DB.
|
|
|
|
|
CADODatabase Eror
Code=80004005
Code meaning=Unspecified error
Source=Microsoft OLE DB Provider for IDBC Drivers
Description =[MYSQL][ODBC 3.51 Driver]Can't connect to MySQL server on '61.247.251.95'(10060)
I got this error while i connect database from remote system ?
can any one please help me?
my database connection string
_T("Driver={MySQL ODBC 3.51 Driver};Server=61.247.251.95;Port=3306;Database=ist_encoder;User=root;Password=isakura;Option=4");
Where did i gone wrong?
JAYARAJ
|
|
|
|
|
is your database remote one?
if yes, did you add your PC's IP address to the database from host?
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
how to add your PC's IP address to the database from host?
please help me .
JAYARAJ
|
|
|
|
|
is the website (which contains the mysql database) yours?
if yes, go to cpanel, then you can see "add IP address" somewhere, or contact your server for help.
if not, you have to ask owner of the site to do that for you.
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
I am using VC++/MFC .
I am checking the remote database connection in LAN.
JAYARAJ
|
|
|
|
|
Hi all,
This is the code, I've written in my Button class:
void CMyButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)<br />
{<br />
CDC dc;<br />
dc.Attach(lpDrawItemStruct->hDC);<br />
CRect rt;<br />
rt = lpDrawItemStruct->rcItem;<br />
<br />
UINT state = lpDrawItemStruct->itemState; <br />
if ( (state & ODS_SELECTED) )<br />
dc.DrawEdge(rt,EDGE_SUNKEN,BF_RECT);<br />
else<br />
dc.DrawEdge(rt,EDGE_RAISED,BF_RECT);<br />
<br />
dc.SetTextColor(m_colText);<br />
<br />
CString strTemp;<br />
GetWindowText(strTemp);<br />
<br />
dc.DrawText<br />
(strTemp,rt,DT_CENTER|DT_VCENTER|DT_SINGLELINE);<br />
<br />
if ( (state & ODS_FOCUS ) )<br />
{<br />
int iChange = 3;<br />
rt.top += iChange;<br />
rt.left += iChange;<br />
rt.right -= iChange;<br />
rt.bottom -= iChange;<br />
dc.DrawFocusRect(rt);<br />
}<br />
dc.Detach();<br />
}
The focus rectangle is still there even it is lost the focus. How should I handle this ?
IMPORTANT
**********
If you could see my previous post, titled "MDI and ResizeParentToFit()", and give your thoughts, it would be more helpful.
It is here:
http://www.codeproject.com/script/comments/forums.asp?msg=1433452&forumid=1647&mode=all&userid=2355322#xx1433452xx[^]
Thanks in advance,
Saravanan AR
|
|
|
|
|
|
Hi Sarvan AL
Whats (m_colText)?
antway your code worked.It draw a yellow color
|
|
|
|
|
Hi inculdeh10 & WhiteSky,
I missed the the following code. Thats why I got the focus rectangle always.
dc.FillSolidRect(rt, GetSysColor(COLOR_BTNFACE));
Thanks a Lot,
Sarvan AL
-- modified at 4:02 Tuesday 4th April, 2006
|
|
|
|
|
I have a module in VC++6.0. it enumerates all desktop items and displays each item.tested this module on Win 2000 and Win XP.
After displaying each window i want to close each launched desktop item window by doing the following:
CWnd* pWnd = FindWindow(NULL, strName);//strName is name of window launched.
if(pWnd)
{ pWnd->PostMessage(WM_CLOSE,0,0);
}
but i get the foll error:
error C2065: 'CWnd' : undeclared identifier
i tried including the foll in the stdafx.h file
#define _WIN32_WINNT 0x0500
#include <windows.h>
still i get the same error.
What do i need to include to overcome this problem?
Kindly reply at the earliest.
Sincerely
Giftsana
|
|
|
|
|
ur project is a Win32 one which doesn't allow MFC.
go to "Project/Setting" to see if u can add MFC libraries into your project.
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
Check the "Ignore HTML tags in this message" otherwise the '<' and '>' will be considered as HTML tags and not displayed. An alternative is to use the tags that are just above the emoticons.
|
|
|
|
|
I have a module in VC++6.0. it enumerates all desktop items and displays each item.tested this module on Win 2000 and Win XP.
After displaying each window i want to close each launched desktop item window by doing the following:
CWnd* pWnd = FindWindow(NULL, strName);//strName is name of window launched.
if(pWnd)
{ pWnd->PostMessage(WM_CLOSE,0,0);
}
but i get the foll error:
error C2065: 'CWnd' : undeclared identifier
i tried including the foll in the stdafx.h file
#define _WIN32_WINNT 0x0500
#include <windows.h>
still i get the same error.
What do i need to include to overcome this problem?
Kindly reply at the earliest.
Sincerely
Giftsana
|
|
|
|
|
giftsana wrote: CWnd* pWnd = FindWindow(NULL, strName);//strName is name of window launched.
if(pWnd)
{ pWnd->PostMessage(WM_CLOSE,0,0);
}
HWND handleWnd = FindWindow(NULL, strName);//strName is name of window launched.
if(handleWnd )
{ pWnd->PostMessage(handleWnd ,WM_CLOSE,0,0);
}
never say die
|
|
|
|
|
is it illegal to develop and distribute gaming (lotteries) programs on the Internet?
i guess it is illegal because I can not find this kind of software on the Internet.
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
|
any simple law info of Australia about gaming software in your links?
A special image tool for Windows C++ programmers, don't miss it!
The world unique Software Label Maker is waiting for you and me ...
A nice hyper tool for optimizing your Microsoft html-help contents.
|
|
|
|
|
can i both send and receive information using a single socket or do i have to use two sockets with more than 1 thread in a client server application.???
there is always a tomorrow
-- modified at 3:11 Tuesday 4th April, 2006
|
|
|
|
|
once ur sockets is connected it can send and receive
never say die
|
|
|
|
|
hey thanx for the reply.. i'm able to send a string thru CSocket::Send(LPTSTR...,len).. can i send a variable as well?
there is always a tomorrow
-- modified at 3:13 Tuesday 4th April, 2006
|
|
|
|
|
You always send a buffer therefore the function first parameter is const void* lpBuf.
the trick is to know what you are sending and be able to read it on the other side.
so if you know you need to send a variable, translate it to the buffer (using simple Format of CString for example) and on the other side read the buffer and do a simple number translation (_ttol for example)
hope this helps ya
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|