Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 4th, 2002, 11:13 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Your First COM Client In Visual C++

Your First COM Client In Visual C++ If you have any questions or comments about this article then please post them here.

You can read the article here .

Reply With Quote
  #2  
Old October 2nd, 2002, 10:30 AM
jocafi jocafi is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 1 jocafi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sending a string to VB DLL

Hi,

This article was very good for me, but I don't how can I pass a string to VB. Your code doesn't show it.

I ' m trying something like this :

IN C++:

{
_bstr_t pato (L"gato");

pJBMenu->Insert_Description (pato);
}

IN VB DLL (class Menu):

Public Function Insert_Description(ByVal desc As String) As Long
On Error GoTo Fatal
Dim g As String

' Insert a new description in the list
FormStartup.Insert_Description (desc)

Insert_Description = 1
Exit Function
Fatal:

MsgBox "ERRO " & Err.Description & " " & desc
End Function

The C++ program compiles, but breaks in this moment :

pJBMenu->Insert_Description (pato);

Could someone help me ?

Thanks,

Joao Araujo

Reply With Quote
  #3  
Old July 19th, 2004, 10:08 AM
jamestwok2004 jamestwok2004 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 jamestwok2004 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Some mistakes

First a question:- where are the support files located?

Secondly, I found a bunch of small mistakes which you might like to
correct:

GetDlgItemText(IDC_CARDNO,cardtype);
should read
GetDlgItemText(IDC_CARDTYPE,cardtype);

ValidateCard (num As String , type As String) As Long
should read
ValidateCard (ByVal num As String , ByVal cardtype As String) As Long
otherwise VC++ thinks that the function expects unsigned shorts instead
of BSTRs and also type is a reserved word

using namespace Validate
should read
using namespace ValidateCard;

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Your First COM Client In Visual C++


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT