|
Hello All
I am using VC6 to get an Image data type from SQL server.
I am using the bellow statement.
<br />
RFX_Binary(pFX, _T("[@File]"), mFileParam, 800000);
The statement works fine when I am trying to get the data from DB.
And also it works fine when I insert data of size is bellow 8KB. But when the data size exceed I an not able to insert data into SQL server using it.
Can you please give me any clue to search.
Regards
Anil
|
|
|
|
|
_anil_ wrote: But when the data size exceed I an not able to insert data...
Do you receive an error?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks for the respond.
yes i am getting exception. it says that Right side data truncated. Actual error message may be different, Since its on japanese. But the meaning is this.
Regards
Anil
|
|
|
|
|
Hello,
I am currently working on a simple program with the Windows API that will be drawing polygons in a dialog box to provide the user with a guide to the values that are being graphed over them. My question is this:
I would like to be able to draw two shapes (bascially using the LineTo function and connecting all the lines) and then shade in the area between them. To give an example, think of a bullseye, I would like a large ring with a smaller ring inside it, with the larger ring colored in.
Anyone have any suggestions on where to start? I am fairly new to the drawing functions in Windows.
Thanks guys,
Joe
|
|
|
|
|
|
Can any one explain in brief the bind function in SDK for Socket programming
"Assigns a local name to an unnamed socket"
VIBIN
Sim Infosys
|
|
|
|
|
VIBIN wrote: Can any one explain in brief the bind function in SDK for Socket programming
"Assigns a local name to an unnamed socket"
The bind function is used on an unconnected socket before subsequent calls to the connect or listen functions. It is used to bind to either connection-oriented (stream) or connectionless (datagram) sockets. When a socket is created with a call to the socket function, it exists in a namespace (address family), but it has no name assigned to it. Use the bind function to establish the local association of the socket by assigning a local name to an unnamed socket.
ref: from MSDN 2005.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
yeah, bind simply finds and open and available socket to commense ethernet communication. Without a binded socket, (an address through which the computer knows it can send data) it is impossible to process function like send and recv.
|
|
|
|
|
Hi,
I have a position within a listCtrlView
POSITION pos = listCtrl.GetFirstSelectedItemPosition();
and want to select thr row 'pos - 1'. Is there any command to do this?
Thanks, Gerhard
|
|
|
|
|
ensger wrote: listCtrl.GetFirstSelectedItemPosition();
I think the CListCtrl::GetNextItem() is more easy to use than the GetFirstSelectedItemPosition function. Cause it reurns the index of item
ensger wrote: and want to select thr row 'pos - 1'. Is there any command to do this?
you can use CListCtrl::SetItemState() to make the previous item selected.
nave
|
|
|
|
|
Gerhard wrote: Is there any command to do this?
Go Through SetItemState and SetSelectionMark API's of the ListCtrl.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Tried the following:
POSITION pos = listCtrl.GetFirstSelectedItemPosition();
int z = listCtrl.GetNextSelectedItem(pos);
.....
listCtrl.SetSelectionMark(z-1);
but the selected line remains, where it is??
|
|
|
|
|
Use listCtrl.SetItemState(z-1, LVIS_SELECTED, LVIS_SELECTED); instead.
|
|
|
|
|
Thanks very much. Works fine, but last question:
listCtrl.SetItemState(zeile, ???, ???);
What's ??? if I want the original selected line not to be focused any more?
|
|
|
|
|
ensger wrote: if I want the original selected line not to be focused any more?
Use 0 for the second argument.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Perfect. Thank's very much!!
|
|
|
|
|
ensger wrote: int z = listCtrl.GetNextSelectedItem(pos);
.....
listCtrl.SetSelectionMark(z-1);
For z = 0, here -1 will be passed to SetSelectionMark . Have you considered that ?
|
|
|
|
|
Not yet, but I see the problem with the first line. Thank's, Gerhard
|
|
|
|
|
Hello guys,
I am been working on developing a plugin for Adobe Director, Speech recognition.
I am been getting Stuck in a macro USES_CONVERSION.
It is unable to execute the statements following this macro.
Can anybody provide help exactly how to debug this particular error
Girish
Software Developer
|
|
|
|
|
Girish601 wrote: am been getting Stuck in a macro USES_CONVERSION.
It is just a macro. Can you show code ?
Girish601 wrote: It is unable to execute the statements following this macro.
How you know that ? Is function retuning from that line ?
|
|
|
|
|
USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem...
Is defined in atlconv.h
#define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)
I don't know man, no idea what could be the problem
|
|
|
|
|
Kharfax wrote: USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem...
Is defined in atlconv.h
#define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)
I know why its used. I asked OP the code following it.
|
|
|
|
|
Before you use any of the A2W, W2A... macros, you must first define USES_CONVERSION. That macro is not a function itself, but defining it allows you to use the conversion macros.
|
|
|
|
|
If you are using VC7.0 or later you should use the ATL7.0 conversion macros instead of the ATL3.0 ones. The ATL7.0 macros do not require USES_CONVERSION. See http://msdn2.microsoft.com/en-us/library/87zae4a3(VS.80).aspx[^].
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
how can i write a code for sending an e-mail using visual c++ , by an example , please ?????????????
|
|
|
|