Click here to Skip to main content
15,399,688 members
Home / Discussions / ATL / WTL / STL


AnswerRe: Group Box won't group Pin
H.Brydon19-Sep-13 20:39
professionalH.Brydon19-Sep-13 20:39 
AnswerRe: Group Box won't group Pin
JasMineLeaf25-Sep-13 18:00
MemberJasMineLeaf25-Sep-13 18:00 
QuestionChanging Title of an SDI appliction Pin
puneit4u12-Aug-13 10:43
Memberpuneit4u12-Aug-13 10:43 
AnswerRe: Changing Title of an SDI appliction Pin
Richard MacCutchan12-Aug-13 20:43
mveRichard MacCutchan12-Aug-13 20:43 
GeneralRe: Changing Title of an SDI appliction Pin
puneit4u14-Aug-13 19:40
Memberpuneit4u14-Aug-13 19:40 
GeneralRe: Changing Title of an SDI appliction Pin
Richard MacCutchan14-Aug-13 20:40
mveRichard MacCutchan14-Aug-13 20:40 
GeneralRe: Changing Title of an SDI appliction Pin
H.Brydon19-Sep-13 20:41
professionalH.Brydon19-Sep-13 20:41 
Questiontrouble with a safe array of variants Pin
jeffery c9-Aug-13 8:56
Memberjeffery c9-Aug-13 8:56 
I have a safe array of variants I have been working on getting working in c++. I need to pass a safearray of variants with this flags in fFeatures set by default: FADF_FIXEDSIZE, FADF_STATIC, FADF_HAVEVARTYPE and FADF_VARIANT.
Trouble is I have an ATL com dll project (mouse emulator) that wraps another ATL com dll called softhidreceiver.
When I called softhidreceiver I need to pass a safe array of variants but Iam having trouble doing so. Here is an msdn forum post that never got solved but grew so large I just started a new post.[^]

Anyone knowledge with safearray of variants? I have not choice in the matter unless someone has a better idea of passing values to queueinputreport?
Heres my current code though so far:
STDMETHODIMP CMMEmulator::sendinputreport(unsigned char inputreport[5], int length)
	_TCHAR szBuffer[100];
    _stprintf_s(szBuffer, _T("%i"), inputreport[1]);
  	MessageBox(NULL,L"value of second byte input report",szBuffer,NULL);

	BYTE bSampe[5] = {0x00,inputreport[1],inputreport[2],0x00,0x00};
	HRESULT        hr            = S_OK;
    SAFEARRAY     *psaData       = NULL;
    VARIANT HUGEP* pVarArrayData = NULL;
	bound.cElements = 5;
	bound.lLbound = 0;
 psaData = SafeArrayCreateVector(VT_VARIANT,0,5);

 hr = SafeArrayAccessData(psaData,   (void HUGEP**)&pVarArrayData);
 if (SUCCEEDED(hr))
 for (long i = 0; i < 5; i++)
       pVarArrayData[i].vt = VT_UI1;
       pVarArrayData[i].bVal = static_cast<byte>(bSampe[i]);
	 //  SafeArrayPutElement(psaData,&i,&pVarArrayData);
 hr = SafeArrayUnaccessData(psaData);
 if (SUCCEEDED(hr))
	return S_OK;


QuestionPassing CString Pin
bkelly1322-Jul-13 16:31
Memberbkelly1322-Jul-13 16:31 
AnswerRe: Passing CString Pin
Richard MacCutchan22-Jul-13 20:57
mveRichard MacCutchan22-Jul-13 20:57 
AnswerRe: Passing CString Pin
pasztorpisti22-Jul-13 23:44
Memberpasztorpisti22-Jul-13 23:44 
GeneralRe: Passing CString Pin
bkelly1323-Jul-13 16:15
Memberbkelly1323-Jul-13 16:15 
GeneralRe: Passing CString Pin
pasztorpisti24-Jul-13 0:43
Memberpasztorpisti24-Jul-13 0:43 
GeneralRe: Passing CString Pin
H.Brydon19-Sep-13 20:58
professionalH.Brydon19-Sep-13 20:58 
AnswerRe: Passing CString Pin
Krishnakumartg13-Aug-13 6:43
MemberKrishnakumartg13-Aug-13 6:43 
AnswerRe: Passing CString Pin
Manoj Kumar Rai21-Aug-13 12:29
professionalManoj Kumar Rai21-Aug-13 12:29 
Questionchang folder's icon Pin
swing001016-Jul-13 0:33
Memberswing001016-Jul-13 0:33 
QuestionCOM technology and use Pin
marisha.u12-Jul-13 9:53
Membermarisha.u12-Jul-13 9:53 
AnswerRe: COM technology and use Pin
Richard MacCutchan12-Jul-13 22:06
mveRichard MacCutchan12-Jul-13 22:06 
AnswerRe: COM technology and use Pin
pasztorpisti13-Jul-13 7:58
Memberpasztorpisti13-Jul-13 7:58 
GeneralRe: COM technology and use Pin
marisha.u15-Jul-13 4:31
Membermarisha.u15-Jul-13 4:31 
GeneralRe: COM technology and use Pin
pasztorpisti15-Jul-13 4:48
Memberpasztorpisti15-Jul-13 4:48 
AnswerRe: COM technology and use Pin
yusif muffed ektilat25-Aug-13 9:19
professionalyusif muffed ektilat25-Aug-13 9:19 
SuggestionHelp : learn ATL, STL and COM Pin
shanmugarajaa8-Jul-13 18:59
Membershanmugarajaa8-Jul-13 18:59 
GeneralRe: Help : learn ATL, STL and COM Pin
Richard MacCutchan8-Jul-13 21:12
mveRichard MacCutchan8-Jul-13 21:12 

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.