Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to connect VB to C programming Posted by leichin2307 on 1 Jan 2005 at 9:22 AM
i have problem in connecting VB to C programming source code. hope somebody can help me...
Report
Re: how to connect VB to C programming Posted by Jonathan on 1 Jan 2005 at 11:01 AM
: i have problem in connecting VB to C programming source code. hope somebody can help me...
:
If you want to call C source from VB, it's not too bad.
1) Arrange your C source code so it can be built as a DLL.
2) Mark any functions that should be callable from VB with
__declspec(dllexport) before their name.
3) Declare the function in VB just as you'd declare any other API call.

The other way round, probably ain't happening. Certainly not this easily anyway.

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Report
Re: how to connect VB to C programming Posted by leichin2307 on 2 Jan 2005 at 5:53 AM
i not so understand about the code "__declspec(dllexport)". and can u recommand any website that describe more details on it? it was because i am a VB beginner and have little knowledge on it only....thanks!!






: : i have problem in connecting VB to C programming source code. hope somebody can help me...
: :
: If you want to call C source from VB, it's not too bad.
: 1) Arrange your C source code so it can be built as a DLL.
: 2) Mark any functions that should be callable from VB with
: __declspec(dllexport) before their name.
: 3) Declare the function in VB just as you'd declare any other API call.
:
: The other way round, probably ain't happening. Certainly not this easily anyway.
:
: Jonathan
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.