Click here to Skip to main content
15,922,584 members
Home / Discussions / COM
   

COM

 
GeneralRe: Finding COM objects Pin
thowra31-Oct-02 4:33
thowra31-Oct-02 4:33 
Generalerror when doing invokehelper.. Pin
BK Pradeep24-Oct-02 1:15
BK Pradeep24-Oct-02 1:15 
Questionhow to pass a struct to com Pin
zwzcode23-Oct-02 22:22
zwzcode23-Oct-02 22:22 
AnswerRe: how to pass a struct to com Pin
Simon.W24-Oct-02 1:30
Simon.W24-Oct-02 1:30 
GeneralBSTR string as output parameter Pin
Huu Pham23-Oct-02 16:41
Huu Pham23-Oct-02 16:41 
GeneralRe: BSTR string as output parameter Pin
Steve S24-Oct-02 2:56
Steve S24-Oct-02 2:56 
GeneralMax Length of BSTR Pin
nativespirits23-Oct-02 10:43
nativespirits23-Oct-02 10:43 
GeneralRe: Max Length of BSTR Pin
Daniel Turini23-Oct-02 12:00
Daniel Turini23-Oct-02 12:00 
nativespirits wrote:
I am building an Ad Hoc tool for work. Using a DLL to access the SQL Server database via ADO Smart Pointers (_RecordsetPtr, _ConnectionPtr).
Anyway after I generate the SQL string the end user will create it gets truncated when converted to the BSTR datatype (which is necessary to pass out of the DLL via IDL).

It appears to truncate at 511 chars (so I assume BSTR maxes at 512 with a NULL terminating character).


I don't know how long they can be, but I guess they can be as long as available system memory. This should be enough for your query Smile | :)

Are you using wsprintf for building the query? wsprintf has a limit of 1024 bytes, wich should be 512 chars on a UNICODE build. If so, use _snwprintf...



Q261186 - Computer Randomly Plays Classical Music
GeneralRe: Max Length of BSTR Pin
Todd Smith23-Oct-02 12:03
Todd Smith23-Oct-02 12:03 
GeneralRe: Max Length of BSTR Pin
Michael Dunn23-Oct-02 13:39
sitebuilderMichael Dunn23-Oct-02 13:39 
GeneralRe: Max Length of BSTR Pin
ian mariano28-Oct-02 4:16
ian mariano28-Oct-02 4:16 
GeneralActiveX Tutorial Pin
Daniel Strigl22-Oct-02 19:51
Daniel Strigl22-Oct-02 19:51 
GeneralRe: ActiveX Tutorial Pin
Mazdak23-Oct-02 9:16
Mazdak23-Oct-02 9:16 
GeneralSetting the Cursor Shape with an Out-of-Process COM Server Pin
Anonymous22-Oct-02 11:12
Anonymous22-Oct-02 11:12 
GeneralDCOM Server - Memory keeps growing Pin
almirx10122-Oct-02 8:29
almirx10122-Oct-02 8:29 
GeneralErrors From COM Object Pin
Ryan B.21-Oct-02 4:58
Ryan B.21-Oct-02 4:58 
GeneralRe: Errors From COM Object Pin
Steve S21-Oct-02 5:23
Steve S21-Oct-02 5:23 
GeneralRecommended Book on COM :: C++ Pin
valikac19-Oct-02 11:39
valikac19-Oct-02 11:39 
GeneralRe: Recommended Book on COM :: C++ Pin
Renjith Ramachandran19-Oct-02 20:38
Renjith Ramachandran19-Oct-02 20:38 
GeneralRe: Recommended Book on COM :: C++ Pin
Stephane Rodriguez.19-Oct-02 21:05
Stephane Rodriguez.19-Oct-02 21:05 
GeneralRe: Recommended Book on COM :: C++ Pin
valikac20-Oct-02 5:51
valikac20-Oct-02 5:51 
GeneralRe: Recommended Book on COM :: C++ Pin
valikac22-Oct-02 13:38
valikac22-Oct-02 13:38 
GeneralRe: Recommended Book on COM :: C++ Pin
Ranjan Banerji23-Oct-02 6:28
Ranjan Banerji23-Oct-02 6:28 
GeneralRetrieve exchange user information Pin
Anonymous19-Oct-02 1:56
Anonymous19-Oct-02 1:56 
GeneralRe: Retrieve exchange user information Pin
Stephane Rodriguez.21-Oct-02 1:49
Stephane Rodriguez.21-Oct-02 1:49 

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.