| Thread | Last Post | Replies |
|
| _CrtIsValidHeapPointer exception | 31 Jul 2007 18:47 GMT | 4 |
I'm having a _CrtIsValidHeapPointer assertion at the _free_dbg_lk function. I'm calling a function from a DLL witch allocates (malloc) a char array and the exception occours freeing the array. The DLL that causes the problem is compiled and linked on the same way
|
| invoking C# function from C++ | 31 Jul 2007 07:52 GMT | 2 |
I have developed a COM component using C++. And I need to invoke some functions in another DLL which is implemented in C#. I am wondering whether there are any tutorials or samples of how to do this correctly and safely? I have this question because I noticed that the data types ...
|
| What's the difference of [DllImport ....] with _declspec(dllimport) | 31 Jul 2007 02:31 GMT | 2 |
Hello, dear all, I often see these two import usage in the code. Both are the interface to use the Dll library. I think they are the same. Normally P/Invoke means using the [DllImport ....] to import the
|
| TranslateCharsetInfo failing | 30 Jul 2007 13:44 GMT | 1 |
I hope someone can explain why this piece of code is failing: CHARSETINFO csi; BOOL brc = TranslateCharsetInfo(&cf.locale, &csi, TCI_SRCLOCALE); cf.locale is an LCID with value 0x00000409.
|
| i want to pass the part of the clipped image as parameter | 29 Jul 2007 06:46 GMT | 1 |
Hai I am new to C#. I am cutting a part of an image from the picturebox and i want to pass the part of the clipped image as a parameter to do image processing.The parameter is input image file.How to carry on
|
| Global variable in c++.net 2003 | 29 Jul 2007 04:41 GMT | 2 |
How to declare a global variable in c++.net 2003 ? There is no something like module in c++.net . Thanks
|
| LPCTSTR and HRESULT | 28 Jul 2007 07:26 GMT | 2 |
If I want to convert LPCTSTR and HRESULT to standard C/C++ data type (like char*, int, long, etc.), I am wondering what standard data types should I convert to be safe and do not lose and data precise? thanks in advance,
|
| two dimensional array initialization | 28 Jul 2007 07:14 GMT | 2 |
I find to initialize two dimentional array in Visual Studio, I have to specify the number of elements. For example, [code] const char foo[][] = {"hello", "world"}; // compile error
|
| ATL question | 27 Jul 2007 17:35 GMT | 2 |
might be slightly OT... I am writing a wrapper (ATL) COM class around a C++ class. The C++ class does not have a default ctor - The ctor requires various arguments to be passed to it - one of which is a C++ reference.
|
| HANDLE and FILE* | 27 Jul 2007 04:02 GMT | 4 |
I am using Windows API open (create) a new file by CreateFile, http://msdn2.microsoft.com/en-us/library/aa363858.aspx the return value is HANDLE, if I use fwrite to write content to the file, since fwrite requires FILE* as parameter. I think HANDLE is not the same as
|
| WriteFile issue | 27 Jul 2007 04:00 GMT | 6 |
The 3rd parameter of WriteFile is number of bytes to write, http://msdn2.microsoft.com/en-us/library/aa365747.aspx I am wondering if I want to write multi-byte character string or wide character string on Windows, how could I get the number of bytes?
|
| Listview DragDrop | 27 Jul 2007 00:00 GMT | 7 |
This may not be the right place, but it seems like a good starting point so here goes: I am trying to scroll the listview during a drag drop operation. I have the drag drop part working, but the scrolling is trouble. How can I set the
|
| Define a PUBLIC form variable | 26 Jul 2007 17:51 GMT | 1 |
In VB: Public x as new Form1 How to change the above code in VC++ it seems the following doesn't work in the winmain public x* = new Form1();
|
| Cant use std lib. | 25 Jul 2007 22:01 GMT | 9 |
I am using Microsoft Visual Studio 2005 Prof. I am (only) using the C++ part of it (or i think so). When i am compiling my code i get the error "error C2653: 'std' : is not a class or namespace name"
|
| How to add a VB ocx to a .NET VC++ project? | 25 Jul 2007 04:12 GMT | 3 |
Is it possible to add a VB ocx to a .NET VC++ project? If yes, how do I do it?
|