I have a project written in C if I build it using Borland C++ compiler things are going on fine and if I build using Visual Studio compiler its not.
The scenario is,
I have a project which is in C, in one of the file I have redefined the printf function. Below
// This printf will write on to a file instead on stdout
// myfile.c
#define printf(format, ...) \
perprintf(forma t, __VA_ARGS__)...
User Profile
Collapse
-
The problem, was with the cross compilation. I was using both the Borland and Windows C++ compiler to build my project. I removed the dependecy for the Borland compiler by creating a Visual Studio project and it didnt crash.
But didnt understand what was the cause for the crash.
Anybody knows why???Leave a comment:
-
I created a visual studio project and added all the relevent files and built it. It worked.
Thanks a lot for your help.Leave a comment:
-
windows C++ compiler option to link user define printf
Hi,
I have rewritten a printf function according to my usage and I want call my printf function instead the standard printf function during my project execution.
Can anybody tell me what is the windows C++ compiler option in Visual studio 2005, so that I can tell the windows compiler to use my printf function. -
DLL crash due to memory corruption
Hi,
I have a DLL created in Borland C++, which I am trying to call at runtime using DLL LoadLibrary() from one of my Visual studio C++ project which is a DLL again. And both these are used in a .Net application.
Following is the way I am trying to export and call.
Borland C++ DLL exposing the function,
__declspec(dlle xport) const char * __stdcall Function(char *paramStr1, char *paramStr2, int paramStr3)... -
Convert Borland makefile to MS Visual Studio
Hi,
I have a borland C++ makefile for a project created in Borland C++ which I wanted to translate into microsoft visual studio compatible makefile, so that I can build-Compile-debug the whole project in Visual Studio editor.
The obvious reason for this translation is that, I am not able to debug the whole project for some run-time errors.
can anybody help me out in this?
No activity results to display
Show More
Leave a comment: