Test and Measurement Forum

VC++ 6 and 7H-03

Post your C and C++ discussions here

VC++ 6 and 7H-03

Postby dozen21c » Wed Apr 28, 2010 3:16 pm

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
dozen21c
Newbie
 
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

Re: VC++ 6 and 7H-03

Postby Robin » Wed Apr 28, 2010 3:58 pm

Hi

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

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: VC++ 6 and 7H-03

Postby dozen21c » Wed Apr 28, 2010 4:40 pm

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

Postby dozen21c » Wed Apr 28, 2010 10:31 pm

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?
dozen21c
Newbie
 
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

Re: VC++ 6 and 7H-03

Postby Robin » Thu Apr 29, 2010 12:10 pm

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
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: VC++ 6 and 7H-03

Postby dozen21c » Thu Apr 29, 2010 2:12 pm

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
dozen21c
Newbie
 
Posts: 0
Joined: Wed Apr 28, 2010 3:08 pm

Re: VC++ 6 and 7H-03

Postby Robin » Fri Apr 30, 2010 12:17 pm

Here it is...
Attachments
TH03DOS.zip
(4.06 KiB) Downloaded 161 times
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests