Results 1 to 12 of 12

Thread: vb to c ??

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    364

    vb to c ??

    hi is there a converterthat will convert a visual basic program into a c program ?
    Richard <><

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    If you had bothered to search the forum you'd know the answer already.

    There is no complete one, but someone here is working on one, don't know how far or good.

    Usually it isn't worth it, translating VB code 1:1 to C code will end up in a bad program.

    Oh, and you can't convert VB forms and events, I hope you are aware of that.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Oh, and you can't convert VB forms and events, I hope you are aware of that.
    I don't see how that would be impossible.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Not impossible, but quite tricky. The converter would need to create dialog templates from the VB form code, write a message loop, a WndProc, ActiveX container code...

    It is possible (has to be), but I can't imagine anyone would bother to write such a program.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    One easy solution: learn VC++ and add 1 skill to your bag of tricks.

    But seriously, I don't see any point in converting a working VB program to another language. Just leave it as it is. Go on to do your next project.

  6. #6
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    If you need speed or whatever, just completely re-write the program in c++. (btw, vc++ is a compiler ) There are way more than one way to get an outcome.
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  7. #7
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    similar question:

    is there a program that can convert a vb .frm file into the code required to create the window (and child windows, not including ActiveX controls) using RegisterClass and CreateWindow in c++? i'm not lookng to convert the events or anything; i just want to draw the form in vb and code everything in c++.

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Not that I know of, but there might be one. After all this can't be too hard to write.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  9. #9
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You can always use VC++'s Dialogue editor...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  10. #10

  11. #11
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    they sure want a lot of mony for it...

  12. #12
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    that thing dont even work dont bother buying it lol
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width