• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
梦想的天空分外蓝!
展望未来 超越梦想
博客园    首页       联系   管理    订阅  订阅
10 2012 档案
asp.net页面刷新后样式就发生了改变

摘要:using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.UI;/// <summary>/// 一些常用的Js调用/// 添加新版说明:由于旧版普遍采用Response.Write(string msg)的方式输出js脚本,这种/// 方式输出的js脚本会在html元素的<html></html>标签之外,破坏了整个xhtml的结构,/// 而新版本则采用ClientScript.RegisterStartupScrip 阅读全文
posted @ 2012-10-22 22:29 Kiven 阅读(2031) 评论(0) 推荐(0)
System::String^ / std::string / char * 间的转换(部分)

摘要:System::String^ to std::string void MarshalString ( System::String^ s, std::string& os ) { using namespace System::Runtime::InteropServices; const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer(); os = chars; Marshal::FreeHGloba... 阅读全文
posted @ 2012-10-05 01:20 Kiven 阅读(1163) 评论(0) 推荐(0)
[摘]C/C++实现js的split函数功能

摘要:今天在网上找了一下,发觉有比较多的方法,现在列出来,需要的朋友可以参考一下。功能最丰富的就是第一种方法了:1 vector<string> Split(const string& s,const string& match,bool removeEmpty=false,bool fullMatch=false) 2 //参数s为需要肢解的字符串 3 //参数match为肢解匹配字符串 4 //参数removeEmpty为是否删除空字符 5 //参数fullMatch为是否只保留全匹配的字符串 6 7 下面为代码区: 8 #include <string> 阅读全文
posted @ 2012-10-04 23:28 Kiven 阅读(402) 评论(0) 推荐(0)
char*与System::String^的相互转换

摘要:#include "stdafx.h" using namespace System; //这个命名空间如果缺的话,IntPtr这个无法识别int main(array<System::String ^> ^args) { char* ch1 = "this is chars "; //将char*转换为System::String^ String^ str1= System::Runtime::InteropServices::Marshal::PtrToStringAnsi((IntPtr)ch1); //System::String^转 阅读全文
posted @ 2012-10-04 16:48 Kiven 阅读(16701) 评论(0) 推荐(2)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3