Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-11-2007, 02:39 AM   #1 (permalink)
Malachi
Recruit
 
Join Date: May 2007
Posts: 2
Malachi is on a distinguished road
String Conversion

Hi,
I am using VB.6 to access a external piece of equipment using a C DLL.
But I have run into a problem, a lot of the functions require you to pass strings, but you cant seem to pass strings from vb to c without converting them, as they both seem to use different structures.
Does anyone know of a method of doing this in VB?
I found ways on the net for doing it through the DLL, but I am not too confident on my ability to do it without messing up the DLL.
Hope you can help
Thanks
Malachi
Malachi is offline   Reply With Quote
Old 05-16-2007, 09:33 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
I don't know but perhaps this helps:
How to pass arrays and strings between Visual Basic and C functions or between Visual Basic and C++ functions by using Visual Basic 6.0
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help for another program Androto Standard C, C++ 54 10-15-2004 07:21 AM
GUID to string conversion milena Platform/API C++ 1 09-14-2004 12:04 PM
From C to Java HighterDK Java 11 07-13-2004 07:15 PM


All times are GMT -8. The time now is 02:24 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting