all groups > visual c > march 2005 > threads for march 29 - 31, 2005
Filter by week: 1 2 3 4 5
PRB: System.NullReferenceException
Posted by ishekara at 3/31/2005 7:36:51 PM
Hi,
Strange, I am having a .Net C++ managed dll project, where in i call a new
on a non managed code. This however is giving a problem,
I get an exception saying "An unhandled exception of type
'System.NullReferenceException' occured in Mydll.dll" "Additional
information: Object reference not... more >>
Profiling tool for Vis C++?
Posted by noleander at 3/31/2005 5:59:03 PM
I've got Visual C++ 2003. I'm looking for a profiling tool. I'm from the
Unix world where a good profiler comes free and built into the compiler and
linker.
I tried the Help utility in Visual C++ and got 500 hits for "profile" .. but
none of them indicated that a profiler is built-into ... more >>
menus and MDI
Posted by ouech at 3/31/2005 5:04:22 PM
hi,
i'm still having troubles with my menus
the EnableMenuItem function doesn't seem to work at all
in a MDI. i'm doing exactly the same thing as i did when
i coded a dialog based App with a menu, but it worked.
i just want to disable and gray commands in the menu.
And even when i disa... more >>
How to attach to a process from a workspace and not lost the works
Posted by Sebastien Tardif at 3/31/2005 1:43:04 PM
After I open a workspace I have access to all C++ files of the workspace.
I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!
I don't see the goal of closing the workspace...
How can I fix this strange behavior/bug?... more >>
MSVCRT Heap?
Posted by Ben R. at 3/31/2005 1:23:02 PM
I recently read that the heap that you access when you use malloc and free is
created by MSVCRT. Is the "default" or process heap ever used then if you're
not explicitly calling heapalloc with that heap? Why does MSVCRT not just use
this default process heap?... more >>
How to wrap a win32 class?
Posted by kathy at 3/31/2005 12:57:48 PM
I have posted my problem before and still not feel confused. Anyone
know what is the problem?
In my Win32 dll, I defined:
#ifdef DllExport
#define UNMANAGED_API __declspec(dllexport)
#else
#define UNMANAGED_API __declspec(dllimport)
#endif
#ifdef __cplusplus
extern "C" {
#endif... more >>
Using 2003 Toolkit to optimize - but file sizes same?
Posted by noleander at 3/31/2005 12:11:06 PM
I'm trying to get Vis C++ std to compile using /O2 optimizing flag. Many
people have suggested downloading the MS C++ 2003 Toolkit ... it supposedly
has C++ compiler bins that one could use.
I downloaded the 2003 Toolkit ... but the bin files are identical (size,
date, contents) as my ... more >>
Migration
Posted by Ken at 3/31/2005 11:49:20 AM
Hi all,
I got a *.lib files and some header files from a thrid party which is
developed using ANSI C. I am now trying to create a managed C++ application
and import those libraries. I added the lib file in the linker option and
include those header files inside the program. Everything is o... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
popup menu
Posted by ouech at 3/31/2005 11:26:49 AM
hi,
i finally tryied with a popup menu but i have a problem.
i popup it with TrackMenuPopup and i create it from a ressource.
but it doesn't look as it should. i d'ont have the names of
the menu categories, only a small rect appears but with nothing
wrote in. when i pass on with the curso... more >>
Optimization in Vis C++ Standard edition? Or must buy Professiona
Posted by noleander at 3/31/2005 11:13:01 AM
Ive got Vis C++ 2003 standard edition. I want to optimize my application
for speed (use the /O2 directive).
The "optimization" field in my Project Properties window shows /O2 (in my
Release build) but it is dimmed out. I cannot change it.
My BuildLog.htm file says "Optimization not av... more >>
windows service
Posted by aditya desai via .NET 247 at 3/31/2005 9:58:29 AM
i tried to build a windows service in .net.however when i gave the commmand "installutil" at dos prompt in the right directory,it gives the error "installutil" is not internal or external command,operable or batch file.please help me out
--------------------------------
From: aditya desai
-----... more >>
_CrtIsValidHeapPointer exception
Posted by coser NO[at]SPAM altoqi.com.br at 3/31/2005 5:52:59 AM
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
that the others that form my a... more >>
pass values to a Dll
Posted by skr at 3/31/2005 3:15:02 AM
Hello,
I am new to VC++. I want to use the values in a Dll (values are
assigned to variables in the program and this vaule should be made use
in the dll). Is it possible? I have already tried declaring the
variables as extern _declspec (dllimport) in the dll. This doesn't
work. Can anyone h... more >>
Windows Forms> How to Control Main_Form from Sub_Form
Posted by Alper AKCAYOZ at 3/31/2005 1:01:06 AM
Hello,
I am developing a project using Windows Forms .NET by using Visual C++ .NET
v2003.
I open a Sub_Form by clicking a button on the Main_Form. Some operations are
working at Main_Form and results of those works are updating the texts and
enable statuses of controls (LabelBox, Buttons, ... more >>
how does one post to this group?
Posted by Robert A. Macy at 3/30/2005 11:55:20 PM
None of those words in the message.
Been nice if the editor would have highlighted anything "offensive"
so how did you get yours through?
- Robert -
PS I agree with the other poster that suggested going straight to the
newsgroup. I don't have any messaging system installed on my mac... more >>
stream manipulator for set precision closing zeroes?
Posted by Peteroid at 3/30/2005 10:05:13 PM
In the same spirit as setw( ) and setprecision( ), is there a stream
manipulator that will fill in closing-zeroes on those fractions with a given
setprecision( )?
For example, if setprecision(3) is used, I want '1' to be displayed as
"1.000", '1.2' to be displayed as "1.200", '1.23' to be d... more >>
TrackBar 'Validating' Event Hander doesn't match Delegate?
Posted by Steve N. at 3/30/2005 10:55:10 AM
I am trying to add a 'Validating' event handler to a TrackBar.
Code:
...
this->tbKeyboards->Validating += new System::EventHandler(this,
tbKeyboards_Validating);
...
System::Void tbKeyboards_Validating(Object* sender,
System::ComponentModel::CancelEventArgs* e)
...
Compiling this code... more >>
what this means?
Posted by kathy at 3/30/2005 10:42:32 AM
In my C++.NET Class library project, I called a dll by using:
#using "My_Win32_Dll.dll"
But when I build the project, I got:
"c:\DotNET\C++\C++_Solution\MyClassLib\MyClassLib.h(5): fatal error
C1192: #using failed on
'c:\dotnet\c++\c++_solution\myclasslib\my_win32_dll.dll'
"
What is t... more >>
passing class instance to a function in c++ - performance
Posted by the_real_remi at 3/30/2005 1:35:05 AM
Hi,
I'm writing a code that has to be as efficient as possible both in terms of
memory use and execution speed. I'll have to pass a class instance (which is
an 'intelligent' array) to a function (multiple times). Taking this into
consideration, should I pass it as a pointer or reference? Is t... more >>
how does one post to this group?
Posted by Robert A. Macy at 3/30/2005 12:50:56 AM
I wonder if a "reply" can get through?...
Well my serious request still won't even go through as a "reply"
but this simple reply did?!
- Robert -
--
Robert A. Macy
------------------------------------------------------------------------
Posted via http://www.codecomments.com
--... more >>
how does one post to this group?
Posted by Robert A. Macy at 3/30/2005 12:38:43 AM
I've tried to post a legitmate question 15 times with NO success, but my
simple single line "test" message went right through.
- Robert -
--
Robert A. Macy
------------------------------------------------------------------------
Posted via http://www.codecomments.com
-------------... more >>
VC++.NET compatibility with Windows 98
Posted by Jaime Stuardo at 3/29/2005 9:59:17 PM
Hi all..
I'm planning to translate an application I programmed in VC++ 6.0 to
VC++.NET platform becaun in VS.NET it's easier to develop. The question is:
if I compile an application under VS.NET, it will run under Windows 98 O.S.
without any problem?
Thanks in advance
Jaime
... more >>
how do I set compiler options???
Posted by glich via DotNetMonster.com at 3/29/2005 8:12:14 PM
How do I set compiler options in my IDE? My IDE is VC++ Standerd 6.0.
thx!
--
Message posted via http://www.dotnetmonster.com... more >>
getting handles from radio buttons
Posted by AK at 3/29/2005 6:37:16 PM
I've got a Windows Forms Application project where I'm using 2 radial buttons.
I want to poll whether the radial button has been pressed or not. Here's one
way I think it could work, using the Checked property :
bool r1=System::Windows::Forms::RadioButton::get_Checked;
but how do I specify ... more >>
Error C2327
Posted by kevin_g_frey NO[at]SPAM hotmail.com at 3/29/2005 6:17:28 PM
Hello All,
I have effectively the following (part of a much bigger header):
namespace X
{
namespace Y
{
__gc public class EnvironmentList
{
// rest of declaration
};
__gc public class AnotherClass
{
public:
__property EnvironmentList* get_EnvironmentList( ); // **!**
... more >>
help with file server app
Posted by bill at 3/29/2005 6:10:03 PM
I have been asked to design a file server application. Here are the
particulars:
The data that is to be served is on a 80Gbyte USB drive connected to a USB
2.0 port.
That disk needs to be used by 2 applications. One archives the disk data to
another drive, the other does timed seeks extr... more >>
EXE will not start
Posted by Zak at 3/29/2005 11:48:13 AM
I compiled a program using VC++ pro. I use "depends.exe" to determine
what DLLs the program is linking. Then I use the Install Shield that
comes with VC++ to create a setup file. I run the setup file on my
pc(XP) and it works great. My problem is that when I try to install it
on any* other s... more >>
Using C++ to 'get' files from SourceSafe
Posted by TC at 3/29/2005 5:19:01 AM
Can someone direct me to an example of how to call VSS to 'get' files from a
particular project/lable?
Thanks... more >>
graph plotting
Posted by wayne at 3/29/2005 2:15:59 AM
i want to plot a line graph. The values that I obtain are the RGB value
of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when
generated the RGB values, there will b a column of values for me t
plot the line graph
thanks alot
Peteroid wrote:
> [B]What kind of 'plot' of the da... more >>
|