all groups > visual c > march 2007 > threads for march 22 - 28, 2007
Filter by week: 1 2 3 4 5
List View variable throwing NullException
Posted by Miesha.James NO[at]SPAM gmail.com at 3/28/2007 2:43:55 PM
Hello,
I've added a list view to a windows form and I want to add items and
subitems to the list at runtime. The problem that I have is that when
I try to use the list view control variable it throws the following
error
An unhandled exception of type 'System.NullReferenceException'
occurr... more >>
Managed Event Question - Static Event
Posted by NEW2.NET at 3/28/2007 2:28:10 PM
I have a static event declared in a C++ ref class, that can then be handled
in a VB app. I'm trying to expose the static event through the interface
that the C++ ref class implements so the VB app can use the interface as
preferred. How do you expose a static event through an interface?
... more >>
compile error: storage size of 'var' isn't known
Posted by George at 3/28/2007 8:52:04 AM
Hello everyone,
I get a strange compile error when compile such simple program. Any ideas?
foo.c: In function `main':
foo.c:5: error: storage size of 'var' isn't known
foo.c
[CODE]
#include "goo.h"
int main (int argc, char** argv)
{
t_st var;
var.member = 100;
retu... more >>
Easy question regarding console apps
Posted by Paul Hemans at 3/28/2007 12:00:00 AM
Hi newbie here. I am learning c++/cli I by writing console apps. When my
apps finished they used to display a message at the bottom of the screen,
something like "press any key to continue" so that you could see the results
before returning to the IDE. But now they don't. I must have turned a ... more >>
Good way to use native C++ callback as managed C++ delegates / events
Posted by lallous at 3/27/2007 5:28:40 PM
Hello
I don't have C++/CLI 2.0 reference handy and the code below was written
after long hours of research and shallow readings. From what I see, the code
works and looks logical to me. Can you please review it and tell me if I
overlooked something.
On the other hand, can you suggest a g... more >>
Best way to use unmanaged buffer as a Byte []? preferably w/o copying from native to managed memory
Posted by lallous at 3/27/2007 5:24:32 PM
Hello
I am writing managed c++/c++ native code.
We have soem buffer passed as char* from native, and we want to pass to a
managed MemoryStream object.
Is it possible to have a Byte [] reference that char* and then we set the
Byte[] size?
Or this:
http://msdn2.microsoft.com/en-us/lib... more >>
Data Transfers and IAsyncOperation
Posted by JDavide at 3/27/2007 5:04:37 PM
Hello again! :(
I'm trying to implement asynchronous DnD (and Copy/Paste) in a custom NSE:
despite the lack of documentation, I found that i need my DataObject
implement the optional interface IAsyncOperation. I want to always use
asynchronous operations, so I added the following lines to my ... more >>
MPR.DLL
Posted by Joachim at 3/27/2007 4:06:26 PM
When trying to deploy my C#/C++/CLI application on a Win XP Pro SP2 with .NET
FW 1.1 and 2.0 I get the following error when opening my C++/CLI application
with dependency walker:
Besides the MPR.DLL module in dependency walker there is a Delay-load module
warning. And when I run the applica... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
lock statement in C++?
Posted by Tao at 3/27/2007 2:24:29 PM
hi.. Group,
is there any lock statement like C# in managed C++?
thanks
... more >>
Marshal::StringToHGlobalAnsi and the corresponding overhead
Posted by DaTurk at 3/27/2007 8:22:46 AM
Hi,
I have a c# GUI that needs to untimately send its data down to
unmanaged c++. I've decided to do this by having a ref struct in the
CLI layer and have the c# populate this, and then pass it back to the
CLI layer. The CLI layer will then populate the unmanged struct where
the data needs ... more >>
VS2005 - Manually loading debug symbols
Posted by 2b|!2b==? at 3/27/2007 12:00:00 AM
I am attempting to manually load debug symbols for a module. I am doing
it by carrying out the ff steps:
i). Select the call stack window
ii). right click and select 'Load Symbols' from displayed menu
iii). The Find Symbols: MyModule.pdb dialog box is displayed
However, when I navigate ... more >>
_ATL_MIN_CRT VC8 release build?
Posted by Vincent Fatica at 3/26/2007 7:53:38 PM
How do I get it to work? I keep getting the likes of
LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in
atlmincrt.lib(atlinit.obj)
for the following (none of which I explicitly call).
__encode_pointer
__encoded_null
__decode_pointer
_osplatform
_get_osplatfo... more >>
basic_fstream and large files
Posted by Eric Twietmeyer at 3/26/2007 5:41:39 PM
Hello,
I have code written using the basic fstream object on a Win32 system. This
is of course simply a typedef for basic_fstream<char, char_traits<char> >.
This object can not be used to write or read files that are larger than 2Gb
in size, as it would appear (from looking at the iosfwd ... more >>
Conversion of unmanaged structure containing array to the managed one!
Posted by pkoniusz NO[at]SPAM gmail.com at 3/26/2007 1:28:54 AM
Hello everybody,
Been just thinking how actually one could convert the following
unmanaged code to the managed C++:
struct JustAnExample
{
char value1[100];
int value2[120];
// etc ....
}
There're numerous examples how to cope with unamnaged C++ to C#
conversions, but I don't f... more >>
Running a function in the background
Posted by ADT_CLONE at 3/25/2007 11:52:22 PM
Hello guys,
Right now I have run into a problem. In my windows application I wish
to run a function called waitForClient(), which waits for a clients
connection using WinSock. Anyway, within the button click event, I
have inserted this function. The only problem is that when you click
the but... more >>
VB ActiveX to VC 2005
Posted by Michael Tissington at 3/25/2007 6:55:44 PM
I have a Visual Basic 6.0 ActiveX Control.
It seems there is no way with VS 2005 to create a similar control for
containers that host ActiverX controls, is this correct ?
I'm thinking of converting the VB 6 project to VC in VS 2005.
This seems to be a very different process.
Where is a... more >>
stack depth problem
Posted by PJ6 at 3/25/2007 9:47:45 AM
I have an algorithm that processes data recursively. When I'm testing it
works fine, but when I feed it data from the actual application, I get
"stack overflow". What bothers me is that the data my recursive processor is
seeing in production is identical to the test data; the only difference i... more >>
DLL registration problem
Posted by Harish Kumar Dixit at 3/23/2007 6:02:30 AM
Hi friends,
i making a COM DLL in vc++ , this DLL is using a 3rd party dll
function. i m calling a function of this DLL.
But i m getting error
error PRJ0050: Failed to register output. Please ensure you have the
appropriate permissions to modify the registry.
when i m commenting t... more >>
VC++ 2005 SP1 : redistirbutable files
Posted by lfcdm at 3/22/2007 2:27:35 PM
Hi,
I'm facing an issue and your help could be very helpful.
In few words, I have a app build with VC++ 2005 SP1.
I want to deploy it on a target machine, because the CRT dependency
described in the manifest can't be resolved -> I have to deploy the CRT on my
traget computer.
No real issu... more >>
|