473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Convert C .h file to VBA .bas

Hello,

I'm converting an Excel spreadsheet which uses dll file A to use dll file B. dll file B came with a .h file (a C header file), but no .bas file. The .h file is huge, and I don't have much time to convert it to .bas. Is there a tool to convert .h files into .bas?

Thanks,

Jess Stuart
Feb 3 '07 #1
5 3079
willakawill
1,646 1GB
Hi Jess. Sorry, bad news. There is no such thing. No such translation. You have to understand c and rewrite the same code in vb. It does not translate.
Feb 3 '07 #2
Killer42
8,435 Expert 8TB
Hi Jess. Sorry, bad news. There is no such thing. No such translation. You have to understand c and rewrite the same code in vb. It does not translate.
Hey Will, sounds as though there's a market for such a translator. Get on it, quick! :)
Feb 4 '07 #3
Hi Jess. Sorry, bad news. There is no such thing. No such translation. You have to understand c and rewrite the same code in vb. It does not translate.
Hm... I guess I didn't explain properly. The spreadsheet I'm converting already uses a dll which came with both a .bas and .h file.

The new dll I'm supposed to use only comes with a .h file. So I need to convert the .h file into a .bas file. I guess there aren't any automatic tools to do this. I made one that would, and I now have a .bas file.

I'm not sure about when to use ByVal vs ByRef.

Does anyone know of any rules for this?


Thanks.
Feb 7 '07 #4
willakawill
1,646 1GB
ByRef will change the original value of the sending parameter. ByVal will not.
Feb 7 '07 #5
Killer42
8,435 Expert 8TB
ByRef will change the original value of the sending parameter. ByVal will not.
Also, I recall reading that ByVal causes VB to pass strings as null-terminated (as expected by C/C++ code) rather than it's usual format which I think starts with a length indicator.
Feb 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
7
by: whatluo | last post by:
Hi, all I'm now working on a program which will convert dec number to hex and oct and bin respectively, I've checked the clc but with no luck, so can anybody give me a hit how to make this done...
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
7
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
3
by: Thubaiti | last post by:
Hi, I have this code in my ASP.NET and I want to convert it to C# (code behind) <asp:Repeater id="subCategoryRepeater" runat="server"> <ItemTemplate> <ul> <li> <asp:HyperLink...
12
by: Brian Henry | last post by:
first question... I have a flat file which unfortinuatly has columns seperated by nulls instead of spaces (a higher up company created it this way for us) is there anyway to do a readline with this...
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
6
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" &...
5
by: sonu | last post by:
hey good morning ...... how to convert a video file in .flv format in php for linux hosting......is there any package whis provide this facility . Can i use ffmpeg for linux hosting...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.