Click here to Skip to main content
15,891,905 members
Home / Discussions / COM
   

COM

 
Generalcomparioson of VB COM and ATL COM Pin
Ganesh Ramaswamy24-Sep-01 6:39
Ganesh Ramaswamy24-Sep-01 6:39 
GeneralRe: comparioson of VB COM and ATL COM Pin
Daniel Turini24-Sep-01 6:43
Daniel Turini24-Sep-01 6:43 
GeneralRe: comparioson of VB COM and ATL COM Pin
Amit Dey25-Sep-01 18:21
Amit Dey25-Sep-01 18:21 
GeneralRe: comparioson of VB COM and ATL COM Pin
David Salter27-Sep-01 11:11
David Salter27-Sep-01 11:11 
GeneralUnable to synchronize the data from SQL Server CE Pin
24-Sep-01 0:07
suss24-Sep-01 0:07 
Generalretrun BSTR Pin
Eran22-Sep-01 3:25
Eran22-Sep-01 3:25 
GeneralRe: retrun BSTR Pin
Aaron Schaefer24-Sep-01 5:49
Aaron Schaefer24-Sep-01 5:49 
GeneralRe: retrun BSTR Pin
Michael Dunn24-Sep-01 14:55
sitebuilderMichael Dunn24-Sep-01 14:55 
There are two problems with the code. First, sRetVal is a pointer to a BSTR, so assigning to sRetVal won't do anything. Second, sTemp isn't a Unicode string, so casting it to (OLECHAR*) will give you unpredictable results. You can use CComBSTR to handle the memory allocation and character set conversion:
CComBSTR bstr ( sTemp );
 
  *sRetVal = bstr.Detach();


--Mike--
http://home.inreach.com/mdunn/
Trillian: What are you supposed to do with a manically depressed robot?
Marvin: You think you've got problems. What are you supposed to do if you are a manically depressed robot?
GeneralCOMAddin for Word2000 and Excel2000 Pin
Sree Ram21-Sep-01 8:55
Sree Ram21-Sep-01 8:55 
GeneralMFC CFtpFileFind CFtpConnection and timeout Pin
Amit Dey21-Sep-01 6:07
Amit Dey21-Sep-01 6:07 
GeneralRe: MFC CFtpFileFind CFtpConnection and timeout Pin
Carlos Antollini21-Sep-01 6:44
Carlos Antollini21-Sep-01 6:44 
GeneralAdvanced problem -- DCOM remoting in VB without configuration of DCOMCNFG Pin
21-Sep-01 4:50
suss21-Sep-01 4:50 
GeneralTo pass a structure/class object across com components Pin
20-Sep-01 23:48
suss20-Sep-01 23:48 
GeneralRe: To pass a structure/class object across com components Pin
Not Active21-Sep-01 2:33
mentorNot Active21-Sep-01 2:33 
GeneralRe: To pass a structure/class object across com components Pin
Aaron Schaefer21-Sep-01 4:01
Aaron Schaefer21-Sep-01 4:01 
GeneralRe: To pass a structure/class object across com components Pin
ioannhs_s21-Sep-01 5:08
ioannhs_s21-Sep-01 5:08 
GeneralCOMponent dependencies Pin
Brian van der Beek20-Sep-01 22:50
Brian van der Beek20-Sep-01 22:50 
GeneralDISPPARAMS (COM) Pin
20-Sep-01 0:27
suss20-Sep-01 0:27 
Generaladsi:create attribute failed! Pin
19-Sep-01 22:34
suss19-Sep-01 22:34 
Generalpassing char * to COM Object function Pin
Stephane Denis19-Sep-01 17:31
Stephane Denis19-Sep-01 17:31 
GeneralRe: passing char * to COM Object function Pin
Chris Losinger19-Sep-01 17:51
professionalChris Losinger19-Sep-01 17:51 
GeneralRe: passing char * to COM Object function Pin
Stephane Denis20-Sep-01 10:37
Stephane Denis20-Sep-01 10:37 
GeneralRe: passing char * to COM Object function Pin
Chris Losinger20-Sep-01 10:50
professionalChris Losinger20-Sep-01 10:50 
GeneralRe: passing char * to COM Object function Pin
Michael P Butler20-Sep-01 10:51
Michael P Butler20-Sep-01 10:51 
GeneralRe: passing char * to COM Object function Pin
Stephane Denis20-Sep-01 11:45
Stephane Denis20-Sep-01 11:45 

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.