Click here to Skip to main content
15,914,221 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs16-Mar-08 11:24
Capitanevs16-Mar-08 11:24 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak17-Mar-08 5:22
mveDave Kreskowiak17-Mar-08 5:22 
QuestionMORE TEST PERFORMED: the situation is very curious and annoying!! [modified] Pin
Capitanevs16-Mar-08 13:09
Capitanevs16-Mar-08 13:09 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak17-Mar-08 5:25
mveDave Kreskowiak17-Mar-08 5:25 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs17-Mar-08 11:37
Capitanevs17-Mar-08 11:37 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak17-Mar-08 12:58
mveDave Kreskowiak17-Mar-08 12:58 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs19-Mar-08 12:07
Capitanevs19-Mar-08 12:07 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak19-Mar-08 12:57
mveDave Kreskowiak19-Mar-08 12:57 
Capitanevs wrote:
I mean, I expected that C/C++ compilers built an EXE or a LIB without
any particular library, 'cuz the program is compiled in machine code.


Partially true. Code is compiled into native code modules that are linked together, either by stitching modules together into the .EXE or .DLL or by including external import table entries that load and call into external modules (library .DLL's) at runtime.


Capitanevs wrote:
On the contrary, I knew that VB needed its
runtime libraries because EXE created with VB aren't "really compiled",


Yes they are. For VB6 and below, the code is compiled into native code, but with a bunch more imports of external library calls. For any language targeting the .NET CLR, code is compiled into a CPU-agnostic "middle" language, called MS intermidiate Language (MSIL), whcih is then compiled into native machine code on-demand, at runtime. But, the library import process is approximately the same.


Capitanevs wrote:
I built a simple "Hello world" C++ program with MS Visual Studio and
with DEV-C++ (using g++ compiler).

The result is that the first one depends on MSVC9 libraries and DOESN'T
work on the other machines, but the second one (which doesn't depend on
MSVC9 dlls) correctly runs everywhere...

Cannot I make a DLL-independent EXE with Visual Studio? It must be possbile!!!


No, it's not. Every version of the .EXE or .DLL you make depends on the VC runtime libraries. It's just that some versions of the libraries come preinstalled in Windows, while other versions are installed by other applications when they're installed. This is why you seem to think that a version of your .EXE/.DLL doesn't require the runtimes. They do need them. It's just that they're already installed for you by something else.

If you made an installer for your application or .DLL, you'd have to include the runtime libraries in your installer.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs21-Mar-08 5:41
Capitanevs21-Mar-08 5:41 
QuestionRe: A bit confused about DLL dependencies of new VC++ executables... Pin
Capitanevs19-Mar-08 12:45
Capitanevs19-Mar-08 12:45 
GeneralRe: A bit confused about DLL dependencies of new VC++ executables... Pin
Dave Kreskowiak19-Mar-08 13:03
mveDave Kreskowiak19-Mar-08 13:03 
QuestionPLZ do tell me how to Read, write and Append a txt file. Pin
varun conday14-Mar-08 3:10
varun conday14-Mar-08 3:10 
GeneralRe: PLZ do tell me how to Read, write and Append a txt file. PinPopular
Smithers-Jones14-Mar-08 3:42
Smithers-Jones14-Mar-08 3:42 
GeneralRe: PLZ do tell me how to Read, write and Append a txt file. Pin
Dave Kreskowiak14-Mar-08 8:06
mveDave Kreskowiak14-Mar-08 8:06 
GeneralComboBox Search AutoSuggest Pin
SIlviaTerzi14-Mar-08 1:37
SIlviaTerzi14-Mar-08 1:37 
GeneralRe: ComboBox Search AutoSuggest Pin
C1AllenS14-Mar-08 1:59
C1AllenS14-Mar-08 1:59 
GeneralRe: ComboBox Search AutoSuggest Pin
SIlviaTerzi14-Mar-08 2:47
SIlviaTerzi14-Mar-08 2:47 
GeneralRe: ComboBox Search AutoSuggest Pin
C1AllenS14-Mar-08 3:41
C1AllenS14-Mar-08 3:41 
GeneralRe: ComboBox Search AutoSuggest Pin
AshokPatra14-Mar-08 2:21
AshokPatra14-Mar-08 2:21 
GeneralRe: ComboBox Search AutoSuggest Pin
Dave Kreskowiak14-Mar-08 8:00
mveDave Kreskowiak14-Mar-08 8:00 
GeneralRe: ComboBox Search AutoSuggest Pin
Saiyed Alam5-Aug-09 20:44
Saiyed Alam5-Aug-09 20:44 
GeneralRe: ComboBox Search AutoSuggest Pin
akash_omsairam14-Mar-08 7:45
akash_omsairam14-Mar-08 7:45 
QuestionHow to send E-MAILS using VB.NET Pin
jitesh zawar14-Mar-08 1:03
jitesh zawar14-Mar-08 1:03 
AnswerRe: How to send E-MAILS using VB.NET Pin
Rajesh Anuhya14-Mar-08 2:26
professionalRajesh Anuhya14-Mar-08 2:26 
GeneralRe: How to send E-MAILS using VB.NET Pin
Dave Kreskowiak17-Mar-08 5:20
mveDave Kreskowiak17-Mar-08 5:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.