Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 24th, 2004, 04:09 AM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to LacrimaMosa
Default strings between VB and C++ in a COM

hello,

i´m new here and i´m looking for help. for 2 weeks i´m trying to create a dll in c++. this dll should work witch vb and give methods to work with strings (my boss says, it is more faster than vb-own).
so i try to do...but nothing works. then a try numbers...this works...after a long time. then i try it again with strings..i think, a little bit it works too, but the string i get looks strange... :(
please help me, it´s the 3rd week and slowly it´s enough :(

if you want, you can reach me on icq for instant helping :)

btw: excuse my bad englisch, i´m from germany :)

 
Old August 24th, 2004, 04:31 AM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to engrahul
Default

Can you be more specific?

If you are retrieving string from a C++ DLL in VB, try increasing the length of the string variable...this works a lot of times.

Happy Coding:D

 
Old August 24th, 2004, 05:56 AM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to LacrimaMosa
Default

well, all you can use, when you write this:

CString x;
x. <-- you know the list, that opens now?

should be able in vb. but i don´t have any idea and my energy slowly becomes very low :(

i get somer results, but only, when i get bstr-strings from c++ dll...and this strings are strange..imagine "hello" becomes "h e l l o" and something between the letters. and when i try to send a string from vb into the dll...error '49'.

it´s the first time i try something like this and it will not work :/

i found a document from ms and i´ll try it
http://support.microsoft.com/default...n-us;205277#27

perhaps yoou have some tips for making a dll and using strings in this.

enrico






Similar Threads
Thread Thread Starter Forum Replies Last Post
strings RoniR VB.NET 2002/2003 Basics 1 May 4th, 2007 02:55 PM
strings bschleusner C# 2005 3 February 27th, 2007 11:46 PM
Strings ldoodle Classic ASP Basics 0 June 28th, 2005 09:26 AM
strings... slowhand BOOK: ASP.NET Website Programming Problem-Design-Solution 1 January 5th, 2004 06:27 AM
strings slowhand SQL Server 2000 1 January 5th, 2004 12:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.