Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DLL in C to use with VB...?

Posted on 1997-01-19
1
Medium Priority
?
326 Views
Last Modified: 2010-04-15
I'm a BSc Computer Engineering student and I can program with VB(3) good enough (for me!). I'm at the beginning of a new project (the big one) where I would like to use VB (productivity, functionality, good understanding) but in some parts (like internal calculations) I need maximum speed and the use of assembly language (like in C with asm ... end) because I'm going to make a hardware emulator.

Please tell me how can I use VB (3 or 4) but write some parts of the needed code in C?  I'm willing to learn some VC if making a DLL is the appropriate way of doing this...

If it is (making a DLL) please tell me how, and also if the functions in a DLL can contain assembly code.

The platform I'm tageting to is Win 3.x (cause my college use them) and maybe Win95 (cause I use them! :)

Note: currently I have VB 3, VB 4, BC 5.0

Looking forward your help...
0
Comment
Question by:makis
1 Comment
 
LVL 2

Accepted Solution

by:
tovergaard earned 200 total points
ID: 1249369
Yes, it is okay to include ASM in the DLL, the user (= the program which call the dll) of a DLL can't see how the DLL is made. So you are free to make the DLL in C, C++ or assembler or a mix of them.

You are correct, to make a DLL is the way to do it!

There are no reason for learning Visual C (VC) when you have Borland C(++) version 5.0

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question