⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdafx.h

📁 连接oracle
💻 H
字号:
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#ifndef _UNICODE
#define VC_EXTRALEAN
#endif

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions (including VB)
#include <afxole.h>         // MFC OLE 2.0 support
#include <afxodlgs.h>       // MFC OLE 2.0 dialog support
#include <afxcmn.h>			// MFC common control support
#include <afxtempl.h>
#define MIN_DISTANCE	10		//最小跨度

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#import "c:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" rename("EOF","ADOEOF") exclude("RecordCreateOptionsEnum")
using namespace ADODB;

typedef struct
{
	_bstr_t dsn;
	_bstr_t user;
	_bstr_t pwd;
} tagDsnInfo;

typedef struct tagLayerLink2xch
{
	CString sWellNO;
	CString sLayerNO;
} LayerLink2xch,*PLayerLink2xch;

//HRESULT OpenConnection(LPDISPATCH* ppadoConnection_out,tagDsnInfo pDsnInfo);
void ErrorRaise(_bstr_t ErrorDescrption);
//_bstr_t FixString(BSTR strSQL);
_bstr_t FixString(short);
_bstr_t FixString(DATE);
_bstr_t FixString(long);
_bstr_t FixString(float);
_bstr_t FixString(CURRENCY);

BOOL CalcDblPoint(float xy[][2],float *x1,float *x2,float *y1,float *y2);
//////////////////
double calcLength(float *x, float *y, int n);
double calcLength(int *x, int *y, int n);
int crossXY(float *x, float *y, 
			float X, float Y,
			float X1,float Y1,
			float &XC, float &YC, int np);
BOOL insideEx(float *XPV, float *YPV, int N,  double x, double y, int &LOCP);
BOOL insideEx(int *XPV, int *YPV, int N,  int x, int y, int &LOCP);
BOOL insideEx(CPoint *XYP, int N,  int x, int y, int &LOCP);
BOOL isVCrossAtLine(double pox, double poy, double psx[], double psy[],
					int nps, double &smin, int &ipos,
						double &x0,  double &y0);
BOOL isVCrossAtLine(CPoint po, CPoint ps[], int nps, int &smin, int &ipos,
					double &x0,  double &y0);
BOOL isVCrossAtLine(int pox, int poy, int psx[], int psy[],
					int nps, int &smin, int &ipos,
						double &x0,  double &y0);
BOOL isVCrossAtLine(float pox, float poy, float psx[], float psy[],
					int nps, float &smin, int &ipos,
						double &x0,  double &y0);
BOOL isVCrossAtLine(CPoint po, CPoint ps[], int nps);
int testCross(	float xa, float ya, float xb, float yb,
				float xA, float yA, float xB, float yB,
				float &xc, float &yc);
int testCross1( float xa, float ya, float xb, float yb,
				float xA, float yA, float xB, float yB,
				float &xc, float &yc);
int testCross2( float xa, float ya, float xb, float yb,
				float xA, float yA, float xB, float yB,
				float &xc, float &yc);
int testCrossed(float xa, float ya, float xb, float yb,
				float xA, float yA, float xB, float yB,
				float &xc, float &yc);
BOOL RemoveAt(CPoint ps[], int &nps,int pos);
BOOL UpdateAt(CPoint po,CPoint ps[], int nps,int pos);
int FindRoundDot(CPoint *XYP, int N,  int x, int y, CPoint *retPt);
BOOL GetMidDot(CPoint *XYP, int N,  int x, int y, CPoint *retPt);
//int CalcPolygon2(CPoint* XY1,int N1,CPoint*XY2,int N2,CPoint *retPt);
int CalcPolygon2(CPoint* XY1,int N1,CPoint*XY2,int N2,CPoint pt1,CPoint pt2,CPoint *&retPt);
int CalcPolygon3(CArray<class CPoint,class CPoint> &XY1Array,CPoint*XY2,int N2,CPoint *&retPt);





















⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -