473,508 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bloodshed Compiler in Windows XP print problem

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:
Sep 1 '08 #1
3 1587
German English Technical <86*****@googlemail.comwrites:
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__
Sep 1 '08 #2
On 1 Sep, 15:01, p...@informatimago.com (Pascal J. Bourguignon) wrote:
German English Technical <8635...@googlemail.comwrites:
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__
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:
---
Sep 2 '08 #3
On 2008-09-02 11:40, Technical Services wrote:
On 1 Sep, 15:01, p...@informatimago.com (Pascal J. Bourguignon) wrote:
>German English Technical <8635...@googlemail.comwrites:
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__

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
Sep 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4406
by: Developwebsites | last post by:
I have tried out these C++ compilers: Watcom 11.0c - simply does not work. now they bundled fortran with c++ but it just doesnt install on my pc. digi-mars DOS - good, fast, small. however, no...
6
2328
by: PCHOME | last post by:
Hi! I am looking for a good free IDE C Compiler. Dose any have experience on using them? Which is better? Bloodshed C or Miracle C? Or anyother free IDE C Compiler you like to recomend? ...
3
6881
by: pauldepstein | last post by:
Just installed dev cpp on Windows XP. When I try to compile programs, however simple, I always get the message Linker error undefined reference to cpu_features_init. Could someone please help me...
30
3757
by: Dave -Turner | last post by:
So I just downloaded Bloodshed devcpp, opened up the Hello example, compiled it, no problems ..... well, except one - the exe is 474,990 bytes! What's the secret to compiling small exes? Thanks
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.