Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
Michael Dunn7-Feb-05 11:55
sitebuilderMichael Dunn7-Feb-05 11:55 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 12:01
LukeV7-Feb-05 12:01 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 13:14
LukeV7-Feb-05 13:14 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 13:36
LukeV7-Feb-05 13:36 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
Michael Dunn7-Feb-05 14:47
sitebuilderMichael Dunn7-Feb-05 14:47 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
Peter Weyzen7-Feb-05 13:35
Peter Weyzen7-Feb-05 13:35 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 13:38
LukeV7-Feb-05 13:38 
GeneralHaving trouble sending this Pin
Tom Wright7-Feb-05 11:33
Tom Wright7-Feb-05 11:33 
I'm having trouble sending some data from my SQL database over a socket connection. When I send it, I only receive 4 bytes. I tried memcpying it to a BYTE array but that also only sent 4 bytes. Here is my code:
<br />
		CString mySelect;<br />
		mySelect.Format("SELECT EMG1_E911_MSG FROM EMG1 WHERE EMG1_DEST_ID = '%s'", thdID);<br />
		pCommand.CreateInstance(__uuidof(Command));<br />
		pCommand->ActiveConnection = m_pConnection;<br />
		pCommand->CommandText = _bstr_t(mySelect);<br />
		pRecordset.CreateInstance(__uuidof(Recordset));<br />
		pRecordset->CursorLocation = adUseClient;<br />
		pRecordset->Open((IDispatch*) pCommand, <br />
			vtMissing,<br />
			adOpenStatic,<br />
			adLockBatchOptimistic,<br />
			adCmdUnknown);<br />
		_variant_t E911_Msg;<br />
		while (!pRecordset->adoEOF)<br />
		{<br />
			E911_Msg = pRecordset->GetCollect("EMG1_E911_MSG");<br />
			if (E911_Msg.vt != VT_NULL)<br />
			{<br />
				m_sConnectSocket.Send((char*)_bstr_t(E911_Msg), sizeof(1500));<br />
			}<br />
			pRecordset->MoveNext();<br />
		}<br />

I'm not sure it I'm setting something up wrong here. Could someone provide some suggestions.
Thanks


Tom Wright
tawright915@yahoo.com
GeneralRe: Having trouble sending this Pin
Peter Weyzen7-Feb-05 13:37
Peter Weyzen7-Feb-05 13:37 
GeneralRe: Having trouble sending this Pin
Tom Wright10-Feb-05 5:15
Tom Wright10-Feb-05 5:15 
GeneralGdipluseffects.h new functions in GDI+ 1.1. Pin
Anne Jan Beeks7-Feb-05 11:05
Anne Jan Beeks7-Feb-05 11:05 
GeneralUINT nFlags Pin
Anonymous7-Feb-05 10:19
Anonymous7-Feb-05 10:19 
GeneralRe: UINT nFlags Pin
Chris Losinger7-Feb-05 10:44
professionalChris Losinger7-Feb-05 10:44 
GeneralRe: UINT nFlags Pin
Neville Franks7-Feb-05 10:50
Neville Franks7-Feb-05 10:50 
GeneralRe: UINT nFlags Pin
namaskaaram7-Feb-05 19:21
namaskaaram7-Feb-05 19:21 
GeneralUsing Libaries Pin
TheCult7-Feb-05 9:45
TheCult7-Feb-05 9:45 
QuestionHow to find the size of free store Pin
Budric B.7-Feb-05 9:02
Budric B.7-Feb-05 9:02 
AnswerRe: How to find the size of free store Pin
David Crow7-Feb-05 9:53
David Crow7-Feb-05 9:53 
GeneralI had no idea it would be this complex Pin
Budric B.7-Feb-05 11:22
Budric B.7-Feb-05 11:22 
GeneralRe: I had no idea it would be this complex Pin
Ravi Bhavnani7-Feb-05 11:39
professionalRavi Bhavnani7-Feb-05 11:39 
GeneralRe: I had no idea it would be this complex Pin
Michael Dunn7-Feb-05 12:00
sitebuilderMichael Dunn7-Feb-05 12:00 
GeneralRe: I had no idea it would be this complex Pin
Budric B.8-Feb-05 3:37
Budric B.8-Feb-05 3:37 
Generalpassing Visual C++ variable to an VB Access subroutine Pin
elephantstar7-Feb-05 8:12
elephantstar7-Feb-05 8:12 
QuestionHow to crate new frame Pin
TooLeeDiN7-Feb-05 8:06
TooLeeDiN7-Feb-05 8:06 
AnswerRe: How to crate new frame Pin
Budric B.7-Feb-05 9:00
Budric B.7-Feb-05 9:00 

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.