Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

use vb6 code

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2009, 08:51 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default use vb6 code

hi folks

can I use Visual Basic 6.0 or VB2008 Express Edition code in Basic4 ppc?


WmC


PC: Laptop CoreDUo, Windows XP SP2 E
PPC:hp5555"ARM"/Windows CE 4.2/no internet connection
Bayern/Germany
Reply With Quote
  #2 (permalink)  
Old 03-27-2009, 08:49 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

No. You will need to manually convert it. Note that Visual Basic 6 and VB .Net (Visual Studio 2008) are different programming languages.
Reply With Quote
  #3 (permalink)  
Old 03-27-2009, 02:21 PM
Basic4ppc Veteran
 
Join Date: Dec 2008
Posts: 203
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Can we use an ActiveX dll, compiled with VB6?
If so, then how is that done?

RBS
Reply With Quote
  #4 (permalink)  
Old 03-27-2009, 05:11 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by RB Smissaert View Post
Can we use an ActiveX dll, compiled with VB6?
Yes-ish, probably maybe - see http://www.basic4ppc.com/forum/quest...html#post10125 Ideally you need VS with which it is dead easy on the desktop as it builds the Interop Assembly for you which you can also do at the command line with the tlbimp.exe utility. Then you need to write a Basic4ppc library in C# or VB.NET that uses the Interop Assembly to expose the bits you want to Basic4ppc.
Reply With Quote
  #5 (permalink)  
Old 03-27-2009, 05:26 PM
Basic4ppc Veteran
 
Join Date: Dec 2008
Posts: 203
Awards Showcase
Beta Tester 
Total Awards: 1
Default

OK, thanks, that doesn't look that promising then and probably not worth the trouble. I do have VS6, but I don't know about any .net. It looks that as you need .net coding in any case it might be easier then to re-write the ActiveX dll in .net.

RBS
Reply With Quote
  #6 (permalink)  
Old 03-27-2009, 05:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by RB Smissaert View Post
I do have VS6
Too old I'm afraid. You need VS2005 or VS2008 to be able to do .NET development.

Quote:
in any case it might be easier then to re-write the ActiveX dll in .net.
Probably as you need to write the wrapper library in .NET anyway. The free Express versions of VS200x will do desktop libraries (I think) but you need VS2005 Standard or VS2008 Professional (ouch!) to do device libraries. SharpDevelop is free and can do devices as well but I believe it is a bit more finicky to use than VS but I don't know as I have never tried it. I use VS2005 Standard myself.

According to Microsoft the "Visual Basic 2008 Express includes a migration wizard that will help import existing Visual Basic 6.0 projects. You may need to make some manual adjustments to the code you port over, but the migration wizard is a good first step towards moving your code forward."
Reply With Quote
  #7 (permalink)  
Old 03-27-2009, 07:29 PM
Basic4ppc Veteran
 
Join Date: Dec 2008
Posts: 203
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Too old I'm afraid. You need VS2005 or VS2008 to be able to do .NET development.
Ah, yes, of course.

Quote:
According to Microsoft the "Visual Basic 2008 Express includes a migration wizard that will help import existing Visual Basic 6.0 projects.
All I have heard is that this is a fruitless task and that is better to re-write from scratch.
Will forget about this.

RBS
Reply With Quote
  #8 (permalink)  
Old 03-27-2009, 09:01 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Erel

have to try another way then.
10/4 on that
WmC

PC: Laptop CoreDUo, Windows XP SP2 E
PPC:hp5555"ARM"/Windows CE 4.2
Bayern/Germany
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code snippets tremara1 Share Your Creations 23 02-09-2009 05:59 PM
Help With Code Please cdeane Questions (Windows Mobile) 5 01-19-2009 08:55 PM
help with code twisted Questions (Windows Mobile) 10 01-09-2009 06:27 PM
Add Code giannimaione Questions (Windows Mobile) 5 06-01-2008 06:03 PM
Help with code cdeane Questions (Windows Mobile) 9 09-22-2007 04:30 PM


All times are GMT. The time now is 04:04 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0