Connecting Tech Pros Worldwide Forums | Help | Site Map

Bloodshed Compiler in Windows XP print problem

German English Technical
Guest
 
Posts: n/a
#1: Sep 1 '08
Hi Community,

Would you please be so kind and tell what is wrong with this code
snipped :

{
fprintf(stdprn, " 9bB 6dB
3dB 0dB\n");
fprintf(stdprn, " freq dB | |
| | \n");
}


Your help is much appreciated and all comments are welcome.


Kind regards

Al:

Pascal J. Bourguignon
Guest
 
Posts: n/a
#2: Sep 1 '08

re: Bloodshed Compiler in Windows XP print problem


German English Technical <8635738@googlemail.comwrites:
Quote:
Hi Community,
>
Would you please be so kind and tell what is wrong with this code
snipped :
>
{
fprintf(stdprn, " 9bB 6dB
3dB 0dB\n");
fprintf(stdprn, " freq dB | |
| | \n");
}
>
>
Your help is much appreciated and all comments are welcome.
It is not any valid C++.


Perhaps you could try to add a function declaration:

% cat ps.c++ && gcc -c -o ps.o ps.c++ ; echo status = $?

extern "C"{
#include <stdio.h>
}

void printSomething(FILE* stdprn){
fprintf(stdprn, " 9bB 6dB 3dB 0dB\n");
fprintf(stdprn, " freq dB | | | | \n");
}

status = 0



--
__Pascal Bourguignon__
Technical Services
Guest
 
Posts: n/a
#3: Sep 2 '08

re: Bloodshed Compiler in Windows XP print problem


On 1 Sep, 15:01, p...@informatimago.com (Pascal J. Bourguignon) wrote:
Quote:
German English Technical <8635...@googlemail.comwrites:
>
Quote:
Hi Community,
>
Quote:
Would you please be so kind and tell what is wrong with this code
snipped :
>
Quote:
{
* * fprintf(stdprn, " * * * * * * * * *9bB * * 6dB
3dB * * * * * * * * * * * * 0dB\n");
* * fprintf(stdprn, " freq * *dB * * * *| * * * |
| * * * * * * * * * * * * * | \n");
}
>
Quote:
Your help is much appreciated and all comments are welcome.
>
It is not any valid C++.
>
Perhaps you could try to add a function declaration:
>
% cat ps.c++ && gcc -c -o ps.o ps.c++ ; echo status = $?
>
extern "C"{
#include <stdio.h>
>
}
>
void printSomething(FILE* stdprn){
* * fprintf(stdprn, " * * * * * * *9bB * 6dB * 3dB * 0dB\n");
* * fprintf(stdprn, " freq * *dB * *| * * | * * | ** | \n");
>
}
>
status = 0
>
--
__Pascal Bourguignon__
Hi, Good morning:

Thanks for your kind reply and suggested code sample.
What I was trying to do was to fins a workaround without the full
blown Windows 32 API.

Anyhow, thanks so much.

Kind regards

Al:
---
=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=
Guest
 
Posts: n/a
#4: Sep 2 '08

re: Bloodshed Compiler in Windows XP print problem


On 2008-09-02 11:40, Technical Services wrote:
Quote:
On 1 Sep, 15:01, p...@informatimago.com (Pascal J. Bourguignon) wrote:
Quote:
>German English Technical <8635...@googlemail.comwrites:
>>
Quote:
Hi Community,
>>
Quote:
Would you please be so kind and tell what is wrong with this code
snipped :
>>
Quote:
{
fprintf(stdprn, " 9bB 6dB
3dB 0dB\n");
fprintf(stdprn, " freq dB | |
| | \n");
}
>>
Quote:
Your help is much appreciated and all comments are welcome.
>>
>It is not any valid C++.
>>
>Perhaps you could try to add a function declaration:
>>
>% cat ps.c++ && gcc -c -o ps.o ps.c++ ; echo status = $?
>>
>extern "C"{
>#include <stdio.h>
>>
>}
>>
>void printSomething(FILE* stdprn){
> fprintf(stdprn, " 9bB 6dB 3dB 0dB\n");
> fprintf(stdprn, " freq dB | | | | \n");
>>
>}
>>
>status = 0
>>
>--
>__Pascal Bourguignon__
>
Hi, Good morning:
>
Thanks for your kind reply and suggested code sample.
What I was trying to do was to fins a workaround without the full
blown Windows 32 API.
Just to be clear, the above is standard C/C++, and has nothing to do
with the Win32 API.

--
Erik Wikström
Closed Thread


Similar C / C++ bytes