Driver Installation and Commands
3
V3500A User’s Guide
75
Microsoft Visual C++ 6.0
This example is a console application. Follow the steps
below to run in Visual C++ 6.0:
1
Create a new Win32 Console Application.
2
Delete the source code of the newly created console
application project.
3
Copy the following code into the source code file.
Example code using Microsoft Visual C++ 6.0
This sample program shows how to program the V3500A using Microsoft Visual C++ 6.0.
#include
"stdafx.h"
#include
<atlbase.h>
#include
<atlconv.h>
#include
<iostream.h>
#include
<windows.h>
#include
<stdio.h>
#pragma
warning (
disable
: 4278)
#import
"C:\Program Files\Keysight\Keysight V3500A Driver KeysightV3500A.tlb" \
no_namespace named_guids
void
dump_com_error(_com_error &e);
void
CheckForOK(BSTR Message);
N O T E
Although Visual C++ 6.0 does not need any special steps to reference the
DLL, make sure the code refers to the correct installation directory — refer
to
“Adding a reference (Microsoft Visual C++ 6.0)” on page 45
. In the
sample code below, the specific program statement regarding the driver
file installation is in bold-face type style.
Содержание V3500A
Страница 1: ...Keysight V3500A Handheld RF Power Meter User s Guide ...
Страница 2: ......
Страница 3: ......
Страница 12: ...X V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 16: ...XIV V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 18: ...XVI V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 20: ...XVIII V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 49: ...Driver Installation and Commands 3 V3500A User s Guide 29 ...
Страница 52: ...32 V3500A User s Guide 3 Driver Installation and Commands ...
Страница 53: ...Driver Installation and Commands 3 V3500A User s Guide 33 ...
Страница 103: ...RF Measurement Basics 4 V3500A User s Guide 83 V0 Vpeak 2 ...