小编BIB*_*IBD的帖子

如何在Visual C++中创建非托管Windows GUI?

当我创建一个"Windows窗体应用程序"时,生成的程序是一个托管程序.创建"Win32应用程序"会产生本机,但是当我尝试添加表单时,如果我继续,我会通知项目将转换为CLI.如何使用Visual C++ 2008 Express Edition设计本机Windows GUI?我可能在这里很傻,但我无法理解.

c++ user-interface native managed visual-c++

3
推荐指数
1
解决办法
1万
查看次数

如何在Visual Studio 2008中取消隐藏调试 - >附加到进程?

我正在使用Visual Studio 2008 Professional.最近,我有了一个新的工作站.别人为我安装了所有软件.

出于某种原因,我没有在调试菜单上看到"附加到进程"选项.我查看了选项,但我没有看到一个似乎应该隐藏它的选项.

如何在调试菜单上显示"附加到进程"选项?

debugging visual-studio-2008 visual-studio

3
推荐指数
1
解决办法
5232
查看次数

wglCreateContext()每次在OpenGL和Visual C ++中返回NULL

我是OpenGL的新手。

我想在Windows窗体中使用OpenGL进行一些思考。如果我将Win32应用程序与WinMain方法一起使用,则该应用程序将正常工作。在WinMain方法中,我HWNDCreateWindow()函数和?填充。将WinMain参数提供给CreateWindows

但我想从Windows窗体中获取Handle,我无法获取此信息。每次 wglCreateContext(hdc)NULL 一个例子是我拿

public:
  COpenGL(System::Windows::Forms::Form ^ parentForm, GLsizei iWidth, GLsizei iHeight)
  {
   CreateParams^ cp = gcnew CreateParams;

   // Set the position on the form
   cp->X = 0;
   cp->Y = 0;
   cp->Height = iHeight;
   cp->Width = iWidth;

   // Specify the form as the parent.
   cp->Parent = parentForm->Handle;

   // Create as a child of the specified parent and make OpenGL compliant (no clipping)
   cp->Style = WS_CHILD | …
Run Code Online (Sandbox Code Playgroud)

opengl visual-c++

3
推荐指数
1
解决办法
4843
查看次数

我可以从命令行编码和编译所有类型的Visual Studio应用程序吗?

我是使用Emacs作为编程环境的第一步.我在DOS Prompt中运行它emacs -nw并在那里进行开发.令人难以置信的是,我可以使用Emacs及其Eshell/Shell对J2EE和J2ME进行编码.

现在关于将它用于Visual Studio开发.目前,我正在使用Visual C++ .NET 2008在一个简单的OpenGL应用程序中工作.我没有尝试从命令行构建该应用程序,是否可能?

如果在J2EE和J2ME中,我们有build.xml(这是一个ant构建文件),但是Visual Studio.NET解决方案中的类似物是什么?

我已经使用命令行编译了一个简单的Visual Studio Console程序.它有效,但是一整套项目怎么样?

谢谢!

c++ emacs visual-studio-2008 visual-studio

3
推荐指数
1
解决办法
1208
查看次数

VisualStudio在哪里存储区域状态?

有没有人想知道VisualStudio在源代码中存储区域的状态(展开或折叠?).据我所知,他们没有存储在解决方案,项目或源文件中......

visual-studio

3
推荐指数
1
解决办法
172
查看次数

如何将库路径添加到 delphi 项目?

我有几个预编译(第 3 方)库需要在我的项目中使用。

我可以得到它来建立,如果我把foo.a在我的项目文件夹的根,但是,我有一个32位版本和库的64位版本,我不希望有换出foo.afoo.32.afoo.64.a每我构建应用程序的每个版本的时间。

在这种特殊情况下,我将它们放入:

[myroot]\iOSDevice32\Debug\foo.a
[myroot]\iOSDevice32\Release\foo.a
Run Code Online (Sandbox Code Playgroud)

[myroot]\iOSDevice64\Debug\foo.a
[myroot]\iOSDevice64\Release\foo.a
Run Code Online (Sandbox Code Playgroud)

我可以把它放在库路径中(工具 -> 选项 -> Delphi 选项 -> 库 -> 库路径);但是,我希望它特定于项目并相对于项目文件夹的根目录(而不是硬编码到所有项目的一个位置)。

我如何告诉 Delphi/Embarcadero RAD Studio 在哪里可以找到这些库?

delphi delphi-xe8

3
推荐指数
1
解决办法
1万
查看次数

如何使禁用的控件保持不透明?

我注意到,当我禁用控件 ( controlName.enabled := false;) 时,它们会自动变为半透明。

有什么办法可以迫使他们保持不透明吗?

我已经尝试过了controlName.Opacity := 1;,但这似乎没有任何作用。

我还尝试将控件嵌入到 TLayout 中,然后禁用 TLayout,但半透明似乎是由嵌入式控件拾取的。

[编辑]

这是我所看到的一个示例,在本例中,它覆盖了包含大国会大厦 F 的 TLabel。

在此输入图像描述

delphi firemonkey delphi-xe8

3
推荐指数
2
解决办法
551
查看次数

如何在Delphi中使用值(而不是对)填充JSON数组?

我正在尝试创建如下所示的JSON:

{ "guestlist": ["alice","bob","charlie"] }
Run Code Online (Sandbox Code Playgroud)

我看到用于填充JSON数组的典型示例如下所示:

var 
  jsobj: TJsonObject;      
  jso : TJsonObject;      
  jsa : TJsonArray;
  jsp : TJsonPair;

begin
    jsObj := TJsonObject.Create();
    jsa := TJsonArray.Create();
    jsp := TJSONPair.Create('guestlist', jsa);
    jsObj.AddPair(jsp);

    jso := TJsonObject.Create();
    jso.AddPair(TJSONPair.Create('person', 'alice'));
    jsa.AddElement(jso);

    jso := TJsonObject.Create();
    jso.AddPair(TJSONPair.Create('person', 'bob'));
    jsa.AddElement(jso);

    jso := TJsonObject.Create();
    jso.AddPair(TJSONPair.Create('person', 'charlie'));
    jsa.AddElement(jso);
end;
Run Code Online (Sandbox Code Playgroud)

但这会导致类似这样的事情:

{ "guestlist": [{"person":"alice"},{"person":"bob"},{"person":"charlie"}] }
Run Code Online (Sandbox Code Playgroud)

如何将单个值添加到数组而不是一对?我在文档中没有看到TJsonObject如何做到这一点,

delphi json delphi-10-seattle

3
推荐指数
1
解决办法
1358
查看次数

搜索VB6代码

我继承了一个ASP/VB6代码库(不是我的强项......)我正试着将它分开以找出运行应用程序时收到的错误消息的原因.

我已经通过我的课程中提出的一个事件来追溯它.在Windows中我是否可以在大部分代码库中搜索它的消耗位置?Ctrl-F(并选择当前项目)还不够用.

我的linux极客说是将它转储到插入发行版盒子而只是为了吸盘而来.但是在IDE中必须有一些方法才能做到这一点......对吗?

vb6 events asp-classic

2
推荐指数
1
解决办法
597
查看次数

在IIS中配置ASP.NET应用程序

我继承了一些aspx(包括web.config文件),并收到以下错误.我为它创建了一个虚拟目录,但我不确定如何"将其配置为应用程序"?

Configuration Error 
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details 
below and modify your configuration file appropriately. 

Parser Error Message: It is an error to use a section registered as 
allowDefinition='MachineToApplication' beyond application level.  This error 
can be caused by a virtual directory not being configured as an application 
in IIS.

Source Error: 


Line 49:             ASP.NET to identify an incoming user. 
Line 50:         -->
Line …
Run Code Online (Sandbox Code Playgroud)

asp.net iis iis-6 web-config

2
推荐指数
1
解决办法
1万
查看次数