Click here to Skip to main content
15,905,913 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralEvents with an MTS COM object. Pin
Jamie Nordmeyer27-Jun-01 6:01
Jamie Nordmeyer27-Jun-01 6:01 
GeneralRe: Events with an MTS COM object. Pin
Klaus Probst7-Aug-01 15:49
Klaus Probst7-Aug-01 15:49 
QuestionHow can i use the UDP in the Web ?? Pin
khamis22-Jun-01 7:49
khamis22-Jun-01 7:49 
AnswerRe: How can i use the UDP in the Web ?? Pin
Klaus Probst7-Aug-01 15:51
Klaus Probst7-Aug-01 15:51 
GeneralShowing modeless form in VB DLLs called from MFC Pin
22-Jun-01 1:18
suss22-Jun-01 1:18 
GeneralFormatting duplicates in excel Pin
Ian21-Jun-01 23:16
Ian21-Jun-01 23:16 
GeneralString Pin
20-Jun-01 4:46
suss20-Jun-01 4:46 
GeneralRe: String Pin
20-Jun-01 16:00
suss20-Jun-01 16:00 
Why did you define your string as [out]?
Who is providing the string VB or VC?

* if your string is defined in VB and you want to view it in VC, use [in]
* if your string is returned to VB, then you should use [out] BSTR * pbstrOut

Can you give me more details, please!
Did you create your VC++ object using ATL?
How do you create an instance inside VB?
What is the code that you have in your VC++ function?

You should realize that BSTRs are not like LPTSTR or TCHAR *

so, inside your SegundoError:

SegundoError(BSTR my_string)
{
USESCONVERSION;

LPCTSTR psz = W2T(my_string);

printf("String is : %s", psz);
}

Mh2!Smile | :)
GeneralRe: String Pin
Michael P Butler20-Jun-01 22:35
Michael P Butler20-Jun-01 22:35 
GeneralRe: String Pin
19-Jul-01 10:07
suss19-Jul-01 10:07 
Generalcomunication Pin
19-Jun-01 6:28
suss19-Jun-01 6:28 
GeneralPlus! Settings, large icons, et al. Pin
18-Jun-01 10:34
suss18-Jun-01 10:34 
GeneralMDI and Bitmap Pin
mr200318-Jun-01 8:17
mr200318-Jun-01 8:17 
GeneralRe: MDI and Bitmap Pin
20-Jun-01 17:04
suss20-Jun-01 17:04 
GeneralMultiple lines in input boxes Pin
Ian17-Jun-01 22:36
Ian17-Jun-01 22:36 
GeneralRe: Multiple lines in input boxes Pin
Erik Thompson18-Jun-01 7:52
sitebuilderErik Thompson18-Jun-01 7:52 
GeneralRe: Multiple lines in input boxes Pin
Ian18-Jun-01 21:02
Ian18-Jun-01 21:02 
GeneralRe: Multiple lines in input boxes Pin
Klaus Probst7-Aug-01 15:54
Klaus Probst7-Aug-01 15:54 
GeneralCapture the key hit Pin
An16-Jun-01 8:21
An16-Jun-01 8:21 
GeneralRe: Capture the key hit Pin
17-Jun-01 22:19
suss17-Jun-01 22:19 
GeneralRe: Capture the key hit Pin
19-Jun-01 15:07
suss19-Jun-01 15:07 
GeneralRe: Capture the key hit Pin
7-Jul-01 20:41
suss7-Jul-01 20:41 
GeneralOutlook VB script: Print Method Pin
15-Jun-01 5:21
suss15-Jun-01 5:21 
GeneralActiveX control for the web Pin
15-Jun-01 4:45
suss15-Jun-01 4:45 
GeneralDates and period in between (Excel VBA) Pin
Ian14-Jun-01 23:17
Ian14-Jun-01 23:17 

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.