VC++ 6 and 7H-03

Post your C and C++ discussions here
Post Reply
dozen21c
Newbie
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

VC++ 6 and 7H-03

Post by dozen21c »

I am trying to use c example of 7H-03 with VC++ 6, but it shows many errors.

Do you have any examples that is workiong on VC++ 6?
I just need to see temp. numbers on screen.

Thanks

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: VC++ 6 and 7H-03

Post by Robin »

Hi

All of our examples are included in the SDK. The C example should work in VC6. What errors are you getting?

Robin

dozen21c
Newbie
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

Re: VC++ 6 and 7H-03

Post by dozen21c »

I originally have errors

--------------------Configuration: TH03TES - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/TH03TES.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

TH03TES.exe - 2 error(s), 0 warning(s)

And after I compiled I have warnings

C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(36) : warning C4236: nonstandard extension used : '_export' is an obsolete keyword, see documentation for __declspec(dllexport)
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(94) : warning C4068: unknown pragma
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(101) : warning C4028: formal parameter 1 different from declaration
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(101) : warning C4028: formal parameter 2 different from declaration
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(116) : warning C4047: '=' : 'struct HBRUSH__ *' differs in levels of indirection from 'const int '
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(49) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(54) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(54) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(62) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(62) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Program Files\Pico Technology\Pico Full\Examples\TH03\TH03TES.C(79) : warning C4761: integral size mismatch in argument; conversion supplied

I also tried to use the example while PC connecting to 7H-03
Should I move necessary (I think 4 files - .h .c .rc and .lib) files into new folder?
Thanks

dozen21c
Newbie
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

Re: VC++ 6 and 7H-03

Post by dozen21c »

Honestly, it is hard to gather files because of unnecessary files. Can you please provide an example that is working on VC++ 6 without modifying or adding codes?

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: VC++ 6 and 7H-03

Post by Robin »

Hi

The example was written for Borland C. I was able to build it in Visual Studio after replacing 'pascal' with __stdcall and removing 'far' from the header file (TH03.h).

Robin

dozen21c
Newbie
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

Re: VC++ 6 and 7H-03

Post by dozen21c »

Thanks what about far and pascal in .c file? also need to replace those? If you don't mind, can you provide the example that was working on Visual Studio, so that I can download?

Thank you

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: VC++ 6 and 7H-03

Post by Robin »

Here it is...
Attachments
TH03DOS.zip
(4.06 KiB) Downloaded 479 times

Post Reply