| Thread | Last Post | Replies |
|
| VS2008 b2: "error C2813: #import is not supported with /MP" | 22 Sep 2007 20:16 GMT | 3 |
Why? I mean, why #import is not supported with /MP? Or how do I get round this? Beside from removing /MP, of course =) Kind regards, Nikolay
|
| Initializing Arrays | 20 Sep 2007 15:15 GMT | 2 |
I'm using VC++ 2005 Express in /cli mode, and I'm trying to initialize an array of integers. Something like: array<int> int_array ; int_array = gcnew array<int>(3) ;
|
| "union" syntax | 20 Sep 2007 04:29 GMT | 6 |
I'm struggling to do something really basic. How do I declare a structure that has a union that maps an array of 3 chars with 3 distinct char variables. In other words, I want the following two statements to put the same value into the same byte in the structure:
|
| String^ | 19 Sep 2007 18:28 GMT | 3 |
I need to expose a String property, so I have: property String^ Filename; in my ref class. Now, in a member function, I need to call a native function that takes a std::wstring parameter. Of course, the compiler
|
| Breakpoints and Visual Studio 2005 | 19 Sep 2007 09:06 GMT | 2 |
One Visual Studio 2005 solution contains a C# project and C++ ATL DLL project. The DLL compiles fine, gets registered automatically, gets referenced correctly when the C# program compiles, and gets called correctly during execution. So far, so good.
|
| MouseButtons | 19 Sep 2007 07:18 GMT | 1 |
Petzolds C# book has code like this: (mea.Button & MouseButtons.Right != 0) I try the C++/CLI analog: if( (e->Button & ::MouseButtons::Left) != 0 )
|
| Expression evaluation using __int64 | 19 Sep 2007 01:33 GMT | 5 |
I need to compute a 64 bit file offset which will get passed to the _lseeki64 function. The inputs to the offset calculation are all unsigned shorts or unsigned longs. For example: unsigned short page_size; unsigned long page_index;
|
| C++/CLI control null exceptions | 18 Sep 2007 07:08 GMT | 2 |
Hello group, I'm making a custom control in C++/CLI. The control builds fine. To test the control, I made a C# Forms application. On the Toolbox, I right clicked and chose "Choose Items". I then browsed for my control
|
| Linking a .Net Dll that uses .net framework in VS6 | 18 Sep 2007 04:52 GMT | 1 |
Is there a problem linking a .net C++ dll that relies on .net framework with an application that is developed and compiled in VS6 C?
|
| Does this mean .dll is "loaded"? | 17 Sep 2007 20:18 GMT | 2 |
If I see a certain .dll path as shown in the example below: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls\C:\WINDOWS\system32\mydll.dll Does it mean that the presence of hte registry key above makes such mydll.dll is "loaded", registered or running?
|
| native/managed | 17 Sep 2007 20:12 GMT | 3 |
I recently added some new code files to a C++/CLI project. The added code is all native. I simply added the code to the project and built it. It compiled fine but I am getting the linker error: LNK2022: metadata operation failed (8013118D) : Inconsistent layout
|
| Win32 API functions? | 17 Sep 2007 18:39 GMT | 2 |
I moved some unmanaged C++ code into a C++/CLI project. The unmanaged code makes some Win32 API calls. I thought as long as I kept the API calls in a native class, it would integrate seamlessly. However, I am getting a whole bunch of linker errors with regards to the API calls:
|
| Newbie looking for Knowledge Base Example | 17 Sep 2007 12:49 GMT | 1 |
Hope your all well? I just wonder if anybody knows where I can find a downloadable Knowledge Base or Helpdesk using Winforms with Code for either C++, C#, or even VB? Needs to either have a Access Database or use XML. I`ve search on Google but to no avail.
|
| exceptions | 17 Sep 2007 03:42 GMT | 1 |
I read in a C++/CLI book that: "In C++/CLI, exceptions are always thrown on the managed heap, never the stack." So I'm wondering if this will be a problem for me. Here is my
|
| tracking down random memory clobbering, any tools/tips? | 17 Sep 2007 01:12 GMT | 1 |
I have a closed source app. I have a .dll plugin for this app (which I am writing). This plugin contains a bug somewhere which seems to clobber memory in a "random" fashion (as in, its not clobbering any specific identifiable piece of memory that I can breakpoint on or anything). ...
|