C2VB,API,SDK,parses,through,style,declaration
Quick Search for:  in language:    
C2VB,API,SDK,parses,through,style,declaration
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
RentACoder Stats

 Code:  lines
 Jobs: 0 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for RentACoder.
Wrapping Scrolling Text
By Paranoid_Androi d on 7/2


Create A Dummy File
By AML on 7/2


Click here to see a screenshot of this code!Captionbar manipulation!
By Peter Hebels on 7/2

(Screen Shot)

A Game Of War
By Co0nest on 7/2


Click here to see a screenshot of this code!KeyGen Example
By Bengie|NET on 7/2

(Screen Shot)

Click here to see a screenshot of this code!OpenBrowser v1.9
By Orlando Jerez on 7/2

(Screen Shot)

SendMessageBySt ring() Example
By Jaime Muscatelli on 7/2


Click here to see a screenshot of this code!FirstSunday
By Jan Paul Penning on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Ikonz v1.0
By Gaurav Creations on 7/2

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

C2VB

Print
Email
 
winzip icon
Submitted on: 11/2/2000 5:07:00 PM
By: Kimon Andreou 
Level: Intermediate
User Rating: By 32 Users
Compatibility:

Users have accessed this code 9079 times.
 
 
     C2VB parses through C style declarations of functions, structures etc and creates the VB equivalent. I decided to create this little program to make my life easier when working with APIs. Instead of having to "translate" an API declaration from the Platform SDK help file, I wanted a way to do that automatically. This is the result. All you have to do, is copy paste the declaration from the help file. Apart from being a handy app. it demonstrates how to parse instructions, how to implement a rudimentary splitter and above all, it explains what do all those wierd things mean in C! It can process either user inputted instructions or it can read from a file. Optionally, a filename can be passed on the command line. If you have any comments or disagree with the way I converted the datatypes, let me know.

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    //**************************************
    //     
    //Windows API/Global Declarations for :C
    //     2VB
    //**************************************
    //     
    (none)
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
11/2/2000 8:03:48 PM:Anonymous
Now all you need to do is make it 
convert .cpp files...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2000 12:12:10 AM:Jeff Cockayne
What an unbelieveably useful app! 
Thanks!!!!! I'm reasonably good at 
reading C, but what a time saver...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2000 9:42:03 AM:Dan Messenger
this code is the tops, i know nothing 
in C, so i also have problems - 
especially when looking through MSDN. 
Thanks!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2000 11:16:51 AM:Benjo Bartolome
I really needed this!!!!!!!!
Thank 
you VERYYYYYY MUCCCHHHHHHHH!!!!!!1
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/18/2000 11:54:10 AM:kle
Cool Code.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/4/2000 5:32:20 PM:Daniel Vandersluis
Of course, you could just use the API 
reference app included with VB, 
but...
Just Kidding! It's a great idea 
and a great app!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/6/2000 10:43:06 AM:Cossak
Nice1 :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/7/2000 1:26:25 PM:DiB
Daniel, not every API is included with 
the API app that comes with VB. Also if 
you need to convert a custom struct 
this proves quite usefull. I think this 
program is great and because it's open 
source I can fix some of the bugs I've 
found without waiting for the author to 
update it him/herself. Good job Kimon, 
this is a great program and I thank you 
for it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/7/2000 3:04:45 PM:Kimon Andreou
Thanks everybody for your feedback!
It 
took me a while to develop this 
program.
DiB, you're right about 
Microsoft's API app that comes with VB. 
 Not only it doesn't contain all the 
declarations, many of them are wrong.  
As for the bugs you mentioned, I'd 
appreciate it if you would send me any 
changes you make or a list of those 
bugs.
One bug I've discovered is when 
converting unions within structures, 
although it was initially working I 
guess by adding more functionality I 
broke that part.
Finally, my next 
project is to process C++ files, but 
don't expect it anytime soon.  Handling 
all those objects & classes is a 
pain.
Thanks
Kimon
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/14/2000 7:53:43 AM:Linguar
Wow,
Never thought about posting such 
a thing...  Good job though.  I've done 
something similar, however, I'm not 
sure how effective it is.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2000 11:31:47 PM:Gavin
Nice Very Nice.
Well done ive been 
waiting for something like this for 
ages.
keep up the good work !!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/7/2001 5:51:38 AM:Rob Van Mieghem
It's a really nice tool and a time 
saver, I just want to warn beginner api 
programmers that there is no such thing 
as a standard way of passing byval or 
byref, it depends on what you're trying 
to do. You can for example just as well 
pass a stringvalue as a long(if you 
want to use a unicode version of an 
extern method and don't want VB to 
transform your string to ascii). Always 
be careful of what you're doing, 
especially when working with windows 
api. I don't want to discourage you 
all, just want to encourage you to go 
into detail in whatever you develop. 
Have fun
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/13/2001 3:55:21 PM:mgigani
Does anyone know if there is program 
that will convert C sub/functions to VB 
sub/functions.  I have some C routines 
that needs to be converted to VB. I am 
will to pay for such a thing.  
Thanks
If you know of such a tool 
please send me an email about it 
(mgigani@aol.com) Thanks a bunch
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/3/2001 6:55:52 PM:Benj
I can't seem to get it to work I tried 
converting Winuser.h file from .Net ws 
up.... Any Ideas??? email me..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/10/2002 2:47:16 AM:Unruled Boy
this is fatastic!
could it convert 
vb to c?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | RentACoder Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.