Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / June 2005

Tip: Looking for answers? Try searching our database.

problem with c++ dll called from vb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ned@cop.ufl.edu - 27 Jun 2005 17:35 GMT
I wrote the following very simple programs to test calling a c++ dll
from visual basic. I'm working in visual studio 7.

*** the .cpp file ...

int __stdcall ver()
{
  return 1;

}

*** the .def file ...

LIBRARY
EXPORTS
  ver

*** the vb source ...

private declare function ver lib "vcnetdll.dll" () as long
sub form1_load()
  msgbox(hex(ver()))
end sub

When I run this I get 10b7f3800000001 instead of just 1. I seem to have
done something to cause me to get back 64 bit values.

Thanks in advance.
Patrice - 27 Jun 2005 19:28 GMT
Long is a 64 bit value in .NET

Patrice

> I wrote the following very simple programs to test calling a c++ dll
> from visual basic. I'm working in visual studio 7.
[quoted text clipped - 24 lines]
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.