|
Do you want to make setup for your program?
|
|
|
|
|
yes.
i need a setup in order to make my application available to eny workstation but without beeing necesary to instal sql server to those machines
|
|
|
|
|
|
I have class CMySock derived from CAsyncSocket and that class has a member as
CMySock *pSock;
CMySock's object is created and kept in listen mode.When a connection reqest comes and CMySock's OnAccept() is called. There I want to connect to another system with pSock. and my code for that is
if(!(m_pSrcClientSocket->m_pDestClientSocket)->Create())<br />
{<br />
MessageBox("Falied to create a socket");<br />
}<br />
else<br />
{<br />
if(!(m_pSrcClientSocket->m_pDestClientSocket)->Connect(rs.GetAt(0),port))<br />
{
<br />
int err = GetLastError();<br />
MessageBox("Failed to connect to Connect");<br />
}<br />
else<br />
{<br />
}<br />
}
if the pointer is of CSocket instead of CMySock its connecting well.
I want to user CMySock only.
How to overcome this problem. Please help.
Thank you
KIRAN PINJARLA
|
|
|
|
|
Hi,
why would you connect to another system at function OnAccept()?
CMySock::OnAccept()
{
CMyClientSock *NewClientSock = new CMyClientSock();
Accept( NewClientSock, NULL, NULL );
//--> now the NewClientSock object is connected to the new incoming connection, you don't need construct / connect any object.
}
HTH
Frank
|
|
|
|
|
i write once class called IOCP, derive two class called downIOCP(serve terminal), and upIOCP(serve up-station) another.
so, when data from terminal to downIOCP and it shoud be transfer to up-server station , the downIOCP PostQueuedCompletionStatus() to upIOCP to let it WSASend() data to up-station.
are there some problem such as accessing buffer mutexly ?
|
|
|
|
|
am getting dta from remote server and i want to save it in database any sql/msaccess?
How can i do that?do any link for that.Any suggestion.
Do i need to make ODBC connection or if i want to use dll i have to set ODBC drive
|
|
|
|
|
Do you need to save some data to a database?
|
|
|
|
|
yes,i need to save data coming from server in databse.At present i m displaynig it in editbox
|
|
|
|
|
i think a easy way use from Access for write data to databse see two examples in msdn CDaoDatabase Class
[^]
|
|
|
|
|
Hi, I am new to VC++. I have a list box in my window, i have checked the properties 'Horizontal scroll' 'Vertical scroll' and also 'Disble no scroll', to true.
But when I run the application, the scroll bars are disabled. Please let me know where I went wrong.
regards
haasini
|
|
|
|
|
Hi,
But if you set the 'Horizontal scroll' 'Vertical scroll' to 'Disble no scroll', the scroll bars will be disabled. Cause your telling the compiler that you won't be using then by: 'Disble no scroll'.
Well, that is if I understand your question correctly.
Hope it helps.
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Right ... After futher investigation ... How many items are in your list box, cause if there were only one | two, the scroll bars will be disabled, depending on the vertical size of the list box.
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Thanq for the response..
I have many items in the list box, but only Vertical scroll is enabled..
horizontal scroll is not enabled though the text is exceeding the width of listbox..
regards
haasini
|
|
|
|
|
Ok, so if I understand it correctly ... both of the scroll bars (Vertical & Horizontal) (in their properties) are enabled? And you have text that is exceeding the vertical and horizontal width | height of the object?
Just for interrest what complirer are you using?
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Actually, the scroll bars will be enabled only if there are more items to be displayed in the list box.
Please check after inserting more items in the List box.
Regards
Velayudhan
|
|
|
|
|
Thanq for the response..
I have many items in the list box, but only Vertical scroll is enabled..
horizontal scroll is not enabled though the text is exceeding the width of listbox..
regards
haasini
|
|
|
|
|
How many items in your listbox?
|
|
|
|
|
Thanq for the response..
I have many items in the list box, but only Vertical scroll is enabled..
horizontal scroll is not enabled though the text is exceeding the width of listbox..
regards
haasini
|
|
|
|
|
I suggest use from CListCtrl its better than CListBox
|
|
|
|
|
It seems the horizontal bar cannot be used as you expected. It is supported by the list box only in case of multicolumn lists, and does not perform horizontal scrolling for long items.
I think you can try an alternative solution based on "list control" instead of "list box" (available in Dialog Editor too). When a list control is used in Report mode, it looks like a list box with or without header, but with new features, like horizontal scrolling.
I hope this helps.
|
|
|
|
|
Hi..
Thanks a lot for the reply..
I ll try with listcontrol and
get back to u if i have any problem..
regards
haasini
|
|
|
|
|
|
catch will execute, only if SQLConnect throws some exception or, code after call to it catch block throws exception.
Programm3r wrote: my whole application fails and closes down
That may be necessariy because of passing some invalid parameters to SQLConnect .
|
|
|
|
|
First of thanx for the reply..
"...That may be necessariy because of passing some invalid parameters to SQLConnect..."
O.k, but if what you you are saying is true, then the catch block will catch it .. right?
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|