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 February 12th, 2004, 11:28 PM
Registered User
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help me wirte dll in VC for use VB

Hello to everybody!!

I have one problem with Visual C++.

I did a program with Visual C++ with a DLL, and this DLL allows to you to make the same program with Visual basic.
Code:--------------------------------------------------------------------------------
void __stdcall WGS84TOVN99( char inStr[100], int j, char outStr[100])

{
        char rName[50], rIndex[50], rB[50], rL[50], rH[50];
        char oB[50], oL[50], oH[50];
        double XX1,YY1,ZZ1;
        CCalculate m_cal ;
        int fE = m_cal.BLHResult(inStr,rName,rIndex,rB,rL,rH);
        if ( fE == 0 )
m_cal.TinhVN99(1,rB,rL,rH,oB,oL,oH,&XX1,&YY1,&ZZ1) ;
sprintf(outStr,"\t%02d\t%s\t%s\t%s\t%s\t%s\n",j+1, rName,rIndex,oB,oL,oH);
--------------------------------------------------------------------------------
I call it in VB, when debug i see :
If i remove command :sprintf(outStr,"\t%02d\t%s\t%s\t%s\t%s\t%s\n",j+1 ,rName,rIndex,oB,oL,oH);
program will run best.
If i do not remove it program will be dump
I do not know why.
If anyone knows how to do it, tell me , please!!!
Thanks!!








Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access functions of Dll created in VC in VB seeekvb BOOK: Beginning ASP.NET 1.0 4 January 15th, 2007 06:58 PM
want to use the old Vc++ dll in asp.Net sjs950 ASP.NET 1.0 and 1.1 Basics 0 May 25th, 2006 05:30 AM
How to call a COM DLL from VC++, subhash_w Visual C++ 0 July 15th, 2005 11:33 PM
Face problem to use DLL created using VB in VC++ chirag_chauhan Beginning VB 6 1 January 17th, 2005 10:56 PM
DLL in VC#.NET sachin-csharp .NET Framework 2.0 1 August 23rd, 2004 11:57 PM





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