[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vCard/vCalendar SDK for Visual Basic



======================================
 vCard/vCalendar SDK for Visual Basic
======================================

1. C vCard/vCalendar SDK vs. Visual Basic
-----------------------------------------
I have tried to use the SDK downloaded from the Internet with Visual
Basic. However, I failed for the following reason: the original SDK
has this declaration (port.h)
	#define DLLEXPORT(t)    __declspec(dllexport) t
This declaration causes the linking with _cdecl calling convention,
and this seems to be a great problem for Visual Basic; 
see (Q153586 HOWTO: Call C Functions That Use the _cdecl Calling 
Convention).
Therefore I have changed the above line to
	#define DLLEXPORT(t)    __declspec(dllexport) t __stdcall
which makes it possible to use the SDK with Visual Basic.  

I believe that this change will by no means affect the C developers,
and it will also enable the Visual Basic developers to use the SDK.
I have created a MS Visual C++ (ver. 6.0) project file as well.

Source Code: http://balas.webpark.cz/source/sdkdllsr.zip (56 kB)

2. Visual Basic VObject
-----------------------
Then I have developed a Visual Basic project. I have created some 
classes and modules, which may be downloaded from the url bellow.
The Visual Basic project contains the correct compiled versit.dll.
I am aware that the Visual Basic VObject does not concern pure 
programming - it mixes some C "memory" objects with Visual Basic
"COM" objects, but I have been testing it and at present hope 
that there is no null pointer access denied and/or memory leeks.

Home page:   http://balas.webpark.cz/VObjectSDK
Source code: http://balas.webpark.cz/source/VObjectSDK.zip (56 kB)

3. "License"
------------
This Visual Basic project is open source. You can use, modify or delete
it, but at your own risk. The project uses vCard/vCalendar SDK 
(http://www.imc.org/pdi/) and its license is rather benevolent, too.

4. "Support"
------------
There is no support provided, but if you find any bugs or have a problem
with the Visual Basic VObject, you can send an email message to me and
I will try to help you. 
If you make any improvements and would like to share these with others 
developers, please send them to me, too, and I will incorporate them 
in this project.

--------------------------------------------------------------------------
Pavel Balas (pavel.balas@xxxxxxxx)


---
Sluzba GTS Volba pro stredni a mensi firmy 
---> uspora telekomunikacnich poplatku az o 35%
Volejte zdarma 0800 31 31 31