Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to refesh traywindow programtically Pin
swarup19-Dec-06 21:33
swarup19-Dec-06 21:33 
GeneralRe: how to refesh traywindow programtically Pin
Mark Salsbery20-Dec-06 5:14
Mark Salsbery20-Dec-06 5:14 
AnswerRe: how to refesh traywindow programtically Pin
swarup30-Dec-06 4:32
swarup30-Dec-06 4:32 
QuestionRemove entries of the Startup page Pin
Dai Hui17-Dec-06 22:41
Dai Hui17-Dec-06 22:41 
QuestionReading sms already on phone Pin
KongHL17-Dec-06 22:29
KongHL17-Dec-06 22:29 
AnswerRe: Reading sms already on phone Pin
vijay_aroli17-Dec-06 22:43
vijay_aroli17-Dec-06 22:43 
QuestionHOWTO: export a string table from a regular Windows DLL? Pin
Mohammad A Gdeisat17-Dec-06 22:25
Mohammad A Gdeisat17-Dec-06 22:25 
AnswerRe: HOWTO: export a string table from a regular Windows DLL? Pin
prasad_som17-Dec-06 22:45
prasad_som17-Dec-06 22:45 
AnswerRe: HOWTO: export a string table from a regular Windows DLL? Pin
Michael Dunn18-Dec-06 7:17
sitebuilderMichael Dunn18-Dec-06 7:17 
QuestionCRecordset::Edit(); [modified] Pin
Bravoone_200617-Dec-06 22:23
Bravoone_200617-Dec-06 22:23 
AnswerRe: please help me ! Pin
G Haranadh18-Dec-06 0:22
G Haranadh18-Dec-06 0:22 
AnswerRe: CRecordset::Edit(); Pin
David Crow18-Dec-06 7:21
David Crow18-Dec-06 7:21 
QuestionMulti-language text Pin
himuskanhere17-Dec-06 22:01
himuskanhere17-Dec-06 22:01 
QuestionRegQueryValueEx Problem! Pin
bosfan17-Dec-06 21:59
bosfan17-Dec-06 21:59 
QuestionRe: RegQueryValueEx Problem! Pin
prasad_som17-Dec-06 22:04
prasad_som17-Dec-06 22:04 
AnswerRe: RegQueryValueEx Problem! [modified] Pin
bosfan18-Dec-06 0:57
bosfan18-Dec-06 0:57 
AnswerRe: RegQueryValueEx Problem! Pin
prasad_som18-Dec-06 2:17
prasad_som18-Dec-06 2:17 
GeneralRe: RegQueryValueEx Problem! Pin
bosfan18-Dec-06 3:04
bosfan18-Dec-06 3:04 
GeneralRe: RegQueryValueEx Problem! Pin
krmed18-Dec-06 2:53
krmed18-Dec-06 2:53 
AnswerRe: RegQueryValueEx Problem! Pin
Hamid_RT18-Dec-06 0:05
Hamid_RT18-Dec-06 0:05 
AnswerRe: RegQueryValueEx Problem! Pin
kakan18-Dec-06 0:16
professionalkakan18-Dec-06 0:16 
QuestionUnhandled execption in ariel.exe(APIOCX):0xC0000005 :Access violation Pin
With_problem17-Dec-06 21:42
With_problem17-Dec-06 21:42 
Questionconverting unsigned char array to bstr Pin
dekta17-Dec-06 20:54
dekta17-Dec-06 20:54 
AnswerRe: converting unsigned char array to bstr Pin
CPallini17-Dec-06 23:02
mveCPallini17-Dec-06 23:02 
GeneralREpost : converting unsigned char array to bstr Pin
dekta18-Dec-06 16:08
dekta18-Dec-06 16:08 
pls help...another VC++ newbie here.

i tried to return string values from this particular dll im workin on thru BSTR. this return value shall be recievd by a VB application

this DLL im workin on is not a MFC dll but a win32 dll.
using the code block below...i tested if i could really
return a string thru BSTR, and it worked jst fine.

BSTR Message;
char *buff = "This works fine" ;
Message = SysAllocStringByteLen (buff , lstrlen(buff));
return Message;


but when i tried to return the values im really supposed to return ....i cant find a way to make it work.the program/dll must return the values of an array of unsigned char[].

heres what i did.

BSTR Message;
unsigned char vst[121];
vst[0] = 0x00;//these are the kind of values i expected it to return
vst[1] = 0x17;
vst[2] = 0xFF;
..
..(and so on..)
vst[20] = 0xFF;

CHAR theChar;
CHAR* pChar = &theChar;
res = VarI1FromUI1( vst[10] ,pChar);
Message = SysAllocStringByteLen (pChar, lstrlen(pChar));
return Message;

The code above shouldve returned the converted values of array GETvst[10] but only resulted wierd values i cant understand...i should be returning the values of array vst[10] to vst[16]....
ive read a lot of article abt this problem but cant find the solution


sorry for my previous typo errors gurus


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.