Jump to content
Compatible Support Forums
Sign in to follow this  
miku

Visual Basic and VC Code

Recommended Posts

Hi Guys,

 

I have program and its code in Visual C to extract Winace 2.x compression files.

 

Is there a way to convert that into graphical form in VB.

 

Or I have to write stuff again.

 

ARC

Share this post


Link to post

Better find some VB version code. Porting from one language to another is not an easy task, and cannot be always done.

 

for example:

------------------------------------------

#include <stdio.h>

 

void main(void){

prinft ("Only 6 months for the euro\n"):

}

----------------------------------------------

BASIC code

 

10 print ("HELLO. Who cares about the euro")

-----------------------------------------------

Visual Basic (assuming you have a form with a "Main" button

 

private sub onclick()

Main.caption="the euro

Msgbox("I do care about the single currency")

------------------------------------------------------------

but what if...?

 

double getdata(double *x, double *y){

double FromBanderas;

FromBanderas=CallSomeTrickyFunction();

return FromBanderas;

}

 

nahh! forget it. It is a pain to port from C to basic. Better find some VB code, or learn C/C++ as I did :-)

 

PS: please...NO COMMENTS on my code. I know these two pointers aren't needed, but hey, it's just some pointless code anyway...

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×