问题标签 [visual-c++-2005]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1479 浏览

c++ - Visual C++ 2005 的探查器

对可以与 Visual C++ 2005 集成的免费(即像免费啤酒一样免费)分析器有什么建议吗?我现在正在使用Very Sleepy(这真的很好),但如果有更好的选择,我不介意改变。

0 投票
4 回答
2964 浏览

c++ - 最大化 CPU 使用率

如何最大化应用程序的 CPU 使用率?我尝试在任务管理器中将其设置为“实时”,但没有明显改善——它停留在 50%。

我正在使用 Visual C++ 2005 在 Windows XP 中工作。

0 投票
3 回答
2594 浏览

c++ - OpenMP:堆损坏的原因,有人吗?

编辑:我可以同时运行同一个程序两次,没有任何问题 - 我如何使用 OpenMP 或其他方法复制它?

这是问题的基本框架。

我已经验证,当尝试通过 释放一些内存时MemDeallocFunctionInDLL()_CrtIsValidHeapPointer()断言失败。

这是因为两个线程都在写入同一个内存吗?

所以为了解决这个问题,我想我会SomeClass保密(这对我来说完全陌生,所以感谢任何帮助)。

现在,当尝试在开始时为Data.

注意:如果需要,我可以更改 DLL

注意:它可以完美运行,无需#pragma omp parallel for

编辑:现在Bar看起来像这样:

仍然没有运气。

0 投票
3 回答
565 浏览

c++ - 我应该在 c++ visual-studio-2005 中使用哪个版本的 boost?

有谁知道在 Visual Studio 2005 中使用哪个版本的 Boost 库?

0 投票
1 回答
1085 浏览

c++ - SSE2 编译器错误

我试图闯入 SSE2 并尝试了以下示例程序

并得到以下警告和错误:

警告 C4405:“xmm0”:标识符是保留字

错误 C2400:“操作码”中的内联汇编语法错误;找到'xmm0'

我尝试寻找可能的原因,但大多数分享我的问题的人使用 Visual C++ 6.0,而我使用 Visual C++ 8.0。

有什么建议么?

0 投票
3 回答
3128 浏览

c++ - SSE2 - 16 字节对齐的动态内存分配

编辑:

这是SSE2 编译器错误的后续

这是我之前遇到的真正错误,并通过更改Michael Burr建议的_mm_malloc语句在下面复制:

SO.exe 中 0x00415116 处的未处理异常:0xC0000005:访问冲突读取位置 0xffffffff。

在线label: movdqa xmm0, xmmword ptr [t1+eax]

我正在尝试动态分配t1t2并且根据本教程,我使用过_mm_malloc

0 投票
1 回答
1149 浏览

c++ - 128位xmm寄存器的高低64位相加

我有两个压缩的四字整数xmm0,我需要将它们加在一起并将结果存储在内存位置。我可以保证每个整数的值小于2^15。现在,我正在执行以下操作:

有一个更好的方法吗?

0 投票
1 回答
2806 浏览

command-line - How to ensure vsvars32.bat has run

I have a build process using MSVC 2005. It only works correctly if run from a Visual Studio command prompt, not from a regular command prompt, because of the additional variables that get set. It's far too easy to run the wrong type of prompt and then get obscure error messages, so I'm trying to avoid this. I don't want to change my regular command prompt to always call vsvars32.bat, since I don't always want this, but I wanted to add a message to suggest using the Visual Studio Command Prompt. To do this, I wrote a BAT file

if "%VSINSTALLDIR%" == "" echo Did you want a Visual Studio Command Prompt?

However, this also shows up in the Visual Studio Command Prompt because it gets called before vsvars32.bat does.

Does any one have any idea how I could get a message added to a normal command prompt but not the Visual Studio 2005 Command Prompt? I suspect from how the Visual Studio Command Prompt is set up this isn't possible.

Thanks.

0 投票
2 回答
1711 浏览

c++ - SSE2 - “系统无法执行指定的程序”

我最近开发了一个使用内联 SSE2 指令的 Visual C++ 控制台应用程序。它在我的计算机上运行良好,但是当我在另一台计算机上尝试时,它返回以下错误:

系统无法执行指定程序

请注意,该程序在引入 SSE2 代码之前在另一台计算机上运行。

有什么建议么?

PS:当我在另一台计算机上编译代码并运行它时它可以工作。我认为这与我从网上搜到的清单有关。

0 投票
3 回答
266 浏览

c++ - 如何让程序 D 读取分配给程序 A 的内存中的内存位置?

所以我想让 read D 读取这个内存位置并做一些工作。有什么想法吗?编写调试器扩展是唯一的方法 - 如果是这样,有什么建议吗?

我考虑对文件执行内存转储(仍然不知道如何,AFAIK 我只能在窗口中查看内存)并让 D 处理文件,但有更好的方法吗?