Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] OT: .DLL coded in Visual C++, called in VB6; HELP!

2004-08-12 by Felicity & Bruce

Hi,

I haven't played with VB but this may be worth looking at.
The above dll will be created with a C++ mangled export and VB may not
understand it.
To create the entry point with a standard C name add a .def file to the link
process.

Put this line in the project options for the link. ie.Use menu Project --->
Settings and select the LINK tab
/def:".\convert.def"

Create a def file in the source folder called CONVERT.DEF with the contents
LIBRARY CONVERT
DESCRIPTION 'Convert DLL'

EXPORTS
     _conv_8to7

Good luck...

  -----Original Message-----
  From: jay marante [mailto:jaythesis@yahoo.com]
  Sent: Thursday, 12 August 2004 10:25 a.m.
  To: avr-chat@yahoogroups.com
  Subject: [AVR-Chat] OT: .DLL coded in Visual C++, called in VB6; HELP!


  sorry for the OT but i really have a hard time making this program run. im
new in VB.

  i have a code done in VB6. now, i want to manipulate every element
(character) of a string variable. i want to shift its bits to the left. my
professor told me that it can't be done in VB, instead, he suggests to make
a .DLL file in C++. i don't know anything about C++, but i have knowledge in
C since i've been doing my AVR project.
  what i did was, chose WIN32 DLL file, then chose simple DLL. i code my
routine inside the .CPP file. and compile the program, and build the .DLL
file, as what i can see under the PROJECT taskbar. now, i declared a module
in VB where i put the declaration of the function and the .DLL file. i
called the the function in my VB code but there's an error. it says "Can't
find DLL entry point". what am i doing wrong?

  attached is my code in C++. its supposed to get the string input in the
text box in VB which will be send to the serial port, connected with a nokia
phone, send its message to another mobile. before sending it to the com
port, i have to manipulate its input. that's the reason for the .DLL file.
just run the program. can somebody please help me. tips and smaples are
highly appreciated. i tried to google the net but there are lots of examples
and i don't know when to use them. and also, how am i going to declare and
call it in VB?

  thank a lot.
  __________________________________________________
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
        Yahoo! Groups Sponsor
              ADVERTISEMENT







----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/AVR-Chat/

    b.. To unsubscribe from this group, send an email to:
    AVR-Chat-unsubscribe@yahoogroups.com

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.