Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Bloodshed Compiler in Windows XP print problem

Reply
Thread Tools

Bloodshed Compiler in Windows XP print problem

 
 
German English Technical
Guest
Posts: n/a
 
      09-01-2008
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:
 
Reply With Quote
 
 
 
 
Pascal J. Bourguignon
Guest
Posts: n/a
 
      09-01-2008
German English Technical <> writes:

> 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__
 
Reply With Quote
 
 
 
 
Technical Services
Guest
Posts: n/a
 
      09-02-2008
On 1 Sep, 15:01, p...@informatimago.com (Pascal J. Bourguignon) wrote:
> German English Technical <8635...@googlemail.com> writes:
>
> > 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:
---
 
Reply With Quote
 
Erik Wikström
Guest
Posts: n/a
 
      09-02-2008
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.com> writes:
>>
>> > 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker error with template using Bloodshed compiler classesemail C++ 0 09-03-2007 08:31 PM
bloodshed dev c++ compiler pauldepstein@att.net C++ 3 05-12-2007 02:30 AM
Bloodshed Dev. Compiler will only not show me my RUN execuable. Help! MatthewMlane C Programming 12 09-07-2004 07:20 PM
Newbie: Please help on Bloodshed C++ Rick C++ 4 01-23-2004 04:53 PM
Borland vs. Bloodshed Developwebsites C++ 2 09-19-2003 07:58 PM



Advertisments