Smith
Smith

Reputation: 5961

Convert C++ to VB6

I basically have a script in C++, and want to convert it to VB6. The help i need is something like this

dim SomeString as String '--> what is the c++ equivalent
#include<stdio.h> 
'// what is the vb6 equivalent
#define MAX_BUF_SIZE 1024

if i can get a syntax comparison sheet sort of that compares very well, It would be OK.

Upvotes: 0

Views: 1539

Answers (2)

Dummy00001
Dummy00001

Reputation: 17420

if i can get a syntax comparison sheet sort of that compares very well, i'ld be ok

VB unfortunately misses lots of advanced constructs, thus C++ and many other programming languages generally can not be translated into it.

Normal practice in the case is to compile C++ code into an ActiveX component and use the component from VB.

Upvotes: 1

Tony Delroy
Tony Delroy

Reputation: 106126

Does sound like it'll be tough if it's a non-trivial program. I stumbled upon http://rigaux.org/language-study/syntax-across-languages/Vrs.html#VrsCmprs - is that the kind of thing you're hoping for? Good luck!

Upvotes: 1

Related Questions