<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[zgjxhgh]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/jxhgh</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; jxhgh]]></copyright><item><title><![CDATA[C#调用C++的Dll(参数和返回值為char* TCHAR*)]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/77185516</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/77185516</guid><author>jxhgh</author><pubDate>Tue, 15 Aug 2017 11:14:16 +0800</pubDate><description><![CDATA[想要在C#和C++之间进行字符串传递会涉及到两件事情:


1.C#的string和C++的字符串首指针要怎么对应.  

2.字符串分为ANSI和UNICODE.

C++ 头文件接口:




//xx.h  
  
//參數和返回值為Ansi  
extern "C" __declspec(dllexport) char* __stdcall EncryptSt]]></description><category></category></item><item><title><![CDATA[A、B基金]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/55211821</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/55211821</guid><author>jxhgh</author><pubDate>Wed, 15 Feb 2017 16:48:55 +0800</pubDate><description><![CDATA[1． 杠杆基金分类：A基金＋B基金
A基金又叫稳健(之所以叫稳健, 是因为A基金年收益是固定的, 通常=年利率＋3.5％)；
B基金又叫进取(之所以叫进取, 是因为B基金年收益是不固定的, 通常其升跌％=标的指数*价格杠杆倍数)。
 
2．2份母基金=1份A基金＋1份B基金/或1份母基金=0.5份A基金＋0.5份B基金。母基金设在银行买卖，不过通过银行我们不叫买卖，叫申购赎回；买=申购，卖]]></description><category></category></item><item><title><![CDATA[事件驱动策略简介]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/54729314</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/54729314</guid><author>jxhgh</author><pubDate>Wed, 25 Jan 2017 13:20:19 +0800</pubDate><description><![CDATA[事件驱动交易策略是在提前挖掘和深入分析可能造成股价异常波动的事件基础上，通过充分把握交易时机获取超额投资回报的交易策略。采用一系列合理手段，提前分析出可能对股价产生影响的事件将要公布的内容和时间范围，采取事件明朗化前逢低买入，事件明朗化后逢高卖出为主要原则的中短线投资策略。
事件驱动交易策略的“事件”是指具有较为明确的时间和内容，能够对部分投资者的投资行为产生一定的影响，从而决定股价短期波动的因]]></description><category></category></item><item><title><![CDATA[阿尔法套利简介]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/54729292</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/54729292</guid><author>jxhgh</author><pubDate>Wed, 25 Jan 2017 13:11:14 +0800</pubDate><description><![CDATA[阿尔法套利是指指数期货与具有阿尔法值的证券产品之间进行反向对冲套利，也就是做多具有阿尔法值的证券产品，做空指数期货，实现回避系统性风险下的超越市场指数的阿尔法收益。
为实现阿尔法套利，选择或构建证券产品是关键。首先，兼具折价率与超额收益阿尔法的证券产品是进行阿尔法套利交易的首选，包括具有折价率，并能超越市场指数的认购权证，封闭式基金等。其次，具有超额收益阿尔法的证券产品是进行阿尔法套利交易的次选]]></description><category></category></item><item><title><![CDATA[套利策略简介]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/54729260</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/54729260</guid><author>jxhgh</author><pubDate>Wed, 25 Jan 2017 13:01:27 +0800</pubDate><description><![CDATA[套利也叫价差交易，套利指的是在买入或卖出某种电子交易合约的同时，卖出或买入相关的另一种合约。套利交易是指利用相关市场或相关电子合同之间的价差变化，在相关市场或相关电子合同上进行交易方向相反的交易，以期望价差发生变化而获利的交易行为。
套利，通常指在某种实物资产或金融资产（在同一市场或不同市场）拥有两个价格的情况下，以较低的价格买进，较高的价格卖出，从而获取无风险收益。
套利指从纠正市场价格或收]]></description><category></category></item><item><title><![CDATA[CTA策略简介]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/54729250</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/54729250</guid><author>jxhgh</author><pubDate>Wed, 25 Jan 2017 12:51:40 +0800</pubDate><description><![CDATA[所有CTA运用的交易策略基本上又可分为两类：趋势交易策略和反趋势交易策略。趋势交易策略是目前CTA运用最广泛的一种交易策略。趋势交易CTA通过运用大量不同的指标去除市场噪音并寻找当前的市场趋势，然后建立头寸，他们从市场趋势的持续发展中渔利。移动平均线、交易量、周期理论等都是趋势交易CTA运用较多的指标。趋势交易CTA根据时间周期的不同，又可分为短线交易者、中线交易者和长线交易者。反趋势交易CTA通]]></description><category></category></item><item><title><![CDATA[winbug分析dmp文件]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/53506907</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/53506907</guid><author>jxhgh</author><pubDate>Wed, 07 Dec 2016 15:51:54 +0800</pubDate><description><![CDATA[前言：WinDbg是微软开发的免费源代码级的调试工具。WinDbg可以用于Kernel模式调试和用户模式调试，还可以调试Dump文件。本文的讨论是在安装了Debugging Tools for Windows 的前提下进行的，下载地址。WinDbg对于dump文件的调试可以通过菜单设置Symbol File Path、Source File Path ，并可设置多个路径。

1、  打开Dum]]></description><category></category></item><item><title><![CDATA[vc6 远程调试]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/52669135</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/52669135</guid><author>jxhgh</author><pubDate>Mon, 26 Sep 2016 12:38:00 +0800</pubDate><description><![CDATA[调试步骤如下：
1）把EXE程序安装到远程机器上
2）在远程机器上启动remotedebugfile.exe
3)如下图步骤]]></description><category></category></item><item><title><![CDATA[sizeof]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/52504384</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/52504384</guid><author>jxhgh</author><pubDate>Sun, 11 Sep 2016 16:09:52 +0800</pubDate><description><![CDATA[1、什么是sizeof
　　首先看一下sizeof在msdn上的定义：
　　The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (including aggregate types). This keyword returns a value of type]]></description><category></category></item><item><title><![CDATA[C语言指针的长度和类型]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/52504354</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/52504354</guid><author>jxhgh</author><pubDate>Sun, 11 Sep 2016 16:05:53 +0800</pubDate><description><![CDATA[如果考虑应用程序的兼容性和可移植性，指针的长度就是一个问题，在大部分现代平台上，数据指针的长度通常是一样的，与指针类型无关，尽管C标准没有规定所有类型指针的长度相同，但是通常实际情况就是这样。但是函数指针长度可能与数据指针的长度不同。

指针的长度取决于使用的机器和编译器，例如：在现代windows上，指针是32位或是64位长

测试代码：

#include
#include
#in]]></description><category></category></item><item><title><![CDATA[HeapAlloc、VirtualAlloc、GlobalAlloc和LocalAlloc、 alloc、new]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/51754505</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/51754505</guid><author>jxhgh</author><pubDate>Fri, 24 Jun 2016 17:15:25 +0800</pubDate><description><![CDATA[1. HeapAlloc：
MSDN上的解释为：HeapALloc是从堆上分配一块内存，且分配的内存是不可移动的（即如果没有连续的空间能满足分配的大小，程序不能将其他零散的空间利用起来，从而导致分配失败），该分配方法是从一指定地址开始分配，而不像GloabalAlloc是从全局堆上分配，这个有可能是全局，也有可能是局部。
函数原型为：
LPVOID
HeapAlloc(
    HAND]]></description><category></category></item><item><title><![CDATA[HTTP Download]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/51669037</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/51669037</guid><author>jxhgh</author><pubDate>Tue, 14 Jun 2016 10:03:53 +0800</pubDate><description><![CDATA[internal class DownloadUnit
    {
        public void DownloadFile(string strURL, string strFileName, System.Windows.Forms.ProgressBar pbHandle, System.Windows.Forms.Label labErrorHandle)
        {]]></description><category></category></item><item><title><![CDATA[C# 调用 C++ dll出错]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/49530379</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/49530379</guid><author>jxhgh</author><pubDate>Sat, 31 Oct 2015 09:13:35 +0800</pubDate><description><![CDATA[由于各自使用的调用规则不同，导致DLL回调或C#调用返回时系统直接calldown，可能原因如下：
并不是所有的语言都支持_cdcel调用规则，但是都支持_sdtcall调用规则, 假如你用VC做了一个DLL,导出了某些函数,如果你想这个DLL被其他语言也能调用的话,VB.DEPHI.PB..你的把他的调用约定声明为__stdcallwindows   api都是_stdcall调用规则，函数调]]></description><category></category></item><item><title><![CDATA[关于异常的疑难解答：System.BadImageFormatException]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/49275751</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/49275751</guid><author>jxhgh</author><pubDate>Tue, 20 Oct 2015 12:42:34 +0800</pubDate><description><![CDATA[编译正常，但在运行时候出现，异常信息：
在 System.BadImageFormatException 中第一次偶然出现的“***.dll”类型的异常未处理的“System.BadImageFormatException”类型的异常出现在 ***.dll 中。

官方解释：
如果您的应用程序使用了 32 位组件，请确保该应用程序始终采用 32 位应用程序的运行方式。
如果应用程序项目的]]></description><category></category></item><item><title><![CDATA[qt4.8.1 + vs2010]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/48262845</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/48262845</guid><author>jxhgh</author><pubDate>Mon, 07 Sep 2015 11:09:42 +0800</pubDate><description><![CDATA[1）安装VS2010
2）登录“http://download.qt.io/archive/qt/4.8/4.8.1/”下载qt-win-opensource-4.8.1-vs2010.exe成功后直接安装。
3）环境变量设置
    a)QTDIR=C:\Qt\4.8.1
    b)QMAKESPEC=win32-msvc2010
    c)在Path上追加“;C:\Qt\4.8.]]></description><category></category></item><item><title><![CDATA[数据库比对]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/47168231</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/47168231</guid><author>jxhgh</author><pubDate>Fri, 31 Jul 2015 12:14:57 +0800</pubDate><description><![CDATA[如何快速进行两个数据库结构的比对，以下三步可以轻松完成：
一、 建立数据库连接
create public
database link DL_SYSTEM
   connect
to system
identified by
oracle
  using'(DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS =(PROTOCOL =]]></description><category></category></item><item><title><![CDATA[Placement new、operator new、new operator 完全释疑]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/46914761</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/46914761</guid><author>jxhgh</author><pubDate>Thu, 16 Jul 2015 17:14:47 +0800</pubDate><description><![CDATA[首先我们区分下几个容易混淆的关键词：


      new（也称作new operator）、operator new、placement new。看如下代码： 


   1: class MyClass {...}; 
   2: MyClass *p = new MyClass; 



这里的new是上述三个关键字中的第一个，成为new操作符。实际上它执行如下3个过]]></description><category></category></item><item><title><![CDATA[如何在delete一个void *对象后有效执行析构函数]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/46914235</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/46914235</guid><author>jxhgh</author><pubDate>Thu, 16 Jul 2015 17:07:39 +0800</pubDate><description><![CDATA[正常情况下：
classT *pA = new classT();
delete pA;
很容易实现完成。
如下代码就会有些需要注意的地方：
classT *pA= new classT();
void *pHandle = pA;
delete pHandle;  //这里就不能有效的执行析构函数，可能会造成内存泄漏。
怎么办呢？
其实和很简单，如下就可以。
delete (]]></description><category></category></item><item><title><![CDATA[memcopy和memmove的区别]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/46859607</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/46859607</guid><author>jxhgh</author><pubDate>Mon, 13 Jul 2015 10:51:43 +0800</pubDate><description><![CDATA[memcpy:
c和c++使用的内存拷贝函数，memcpy函数的功能是从源src所指的内存地址的起始位置开始拷贝n个字节到目标dest所指的内存地址的起始位置中。
memmove:
memmove用于从src拷贝count个字符到dest，如果目标区域和源区域有重叠的话，memmove能够保证源串在被覆盖之前将重叠区域的字节拷贝到目标区域中。但复制后src内容会被更改。但是当目标区域与源区域]]></description><category></category></item><item><title><![CDATA[解决PLSQL与数据库断开卡死的问题]]></title><link>https://blog.youkuaiyun.com/jxhgh/article/details/46774965</link><guid>https://blog.youkuaiyun.com/jxhgh/article/details/46774965</guid><author>jxhgh</author><pubDate>Mon, 06 Jul 2015 15:20:58 +0800</pubDate><description><![CDATA[1）确保 select * from dba_profiles t where t.resource_name = 'CONNECT_TIME'中的limit列的值为UNLIMITED
2)   执行 alter system set resource_limit=true;
3）重新打开PLSQL工具登录即可。]]></description><category></category></item></channel></rss>