all groups > visual c > march 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 >>
Location of template instantiation when I get a template compile error?
Posted by Frank Vanris at 3/28/2005 11:13:56 PM
Hi,
I am using boost which uses templates heavily. When I make a typo the
compiler complains, but it complains in the boost headerfile (I attached an
example at the end where I forgot to pass in a parameter). But what I
actually need to know is where this template was instantiated so that I... more >>
Problem in COleObjectFactory::UpdateRegistryAll in VC.Net
Posted by Devender Khari at 3/28/2005 10:13:08 PM
Hi Friends,
In our Automation server on VC++ 6.0, we are calling a static function,
UpdateRegistryAll(), of COleObjectFactory class
to register a list of factory objects of the server. In addition to the
interfaces, these factory objects includes a COleTemplateServer object as a
member object... more >>
.net beginner help
Posted by Curt Lashley via .NET 247 at 3/28/2005 5:18:28 PM
I am totally new to .net
So far, I hate it. I been programming vb since vb3 and .net took a 1 line program and made it a 47 lines program filled with stuf that appears meaningless...
ok, I know it's not, but it seams that way.
Forgive me, I'm old and stuck in my ways. I did not want to re-lea... more >>
Dumb String Conversion Problem?
Posted by Fred Hebert at 3/28/2005 3:10:53 PM
I have a function that requires a LPCTSTR parameter. I have the value I
want to pass to it in a TextBox->Text field. Is there any way to do it in
a single assignment.
e.g.
DWORD Xyz::TheFunc(LPCTSTR lpVal)
....
TheFunc(Junk->Text->Something());
... more >>
C++ .NET basic questions
Posted by Jim H at 3/28/2005 1:41:03 PM
If there is a site someone can point me to that answers such basic
questions, rather than taking up support's time posting answers, please let
me know.
I've developed C# .NET, unmanaged C++, and MFC applications. I have not
written any C++.NET apps yet and have some very basic questions.
... more >>
Xstream Class
Posted by tomakali at 3/28/2005 9:26:57 AM
i want to read all the records of a file *( first till last )* using
xstream, please help me with VC++ codes.iam a begginer to VC++.
thanks in advance!
+----------------------------------------------------------------+
| Attachment filename: tomakali.jpg ... more >>
GroupBox border
Posted by Peteroid at 3/28/2005 8:41:24 AM
In a standard GroupBox, how do I make the visible 'border line' not show (it
looks like an etched in line about 5 pixels shy of each border of the group
box)?
Thanks in advance!
[==Peteroid==]
... more >>
File::GetAttributes Is a file read only
Posted by xenny at 3/28/2005 6:49:49 AM
Hi,
I'm trying to see if a file (exportfile) is set to read only using
File::GetAttributes:
if ((File::GetAttributes(exportfile.c_str()) &
FileAttributes::ReadOnly) != 0);
{
MessageBox::Show("The File is Read Only","Warning");
}
I've tried that and a few variations but it always retur... more >>
displaying decimal number in edit box
Posted by wayne at 3/28/2005 4:10:26 AM
Understand that SetDlgItemInt is to show the number in edit box
SetDlgItemText is to show text...
How abt displaying a decimal number, like 187.542??
thanks alot
--
wayne
------------------------------------------------------------------------
Posted via http://www.codecomments.... more >>
graph plotting
Posted by wayne at 3/27/2005 9:14:27 PM
Dear all,
May i know how can i plot a column of values?? pls. Apparently i have a
column of values generated. how can i plot it using vc++? wat are the
command use and necessary header files that are needed?
thanks...
--
wayne
------------------------------------------------------... more >>
Memory Streams and Struct Pointers Revisited
Posted by _TR at 3/27/2005 12:04:49 PM
I love C# and I've been porting a lot of my older C++ code, but there
is one app that I haven't quite figured out yet. I suppose I could
re-engineer the app from the ground up, but I've already accumulated a
lot of data files, so the format is set for now.
Basically, the data format consists ... more >>
What is Windows XP SP2 Platform SDK
Posted by Ioannis Vranos at 3/27/2005 12:00:00 AM
At URL http://www.microsoft.com/msdownload/platformsdk/sdkupdate there
is the Windows XP SP2 Platform SDK.
What does this provide in addition to the stuff installed by VS 2003?
Does it come with a C++ compiler?... more >>
ArrayList class in Visual C++ .NET 2003
Posted by ethoasso NO[at]SPAM poste.isima-dot-fr.no-spam.invalid at 3/26/2005 9:36:37 AM
Hi,
I'm using Visual C++ .NET 2003 and I want to use the ArrayList class
in order to put managed classes in it.
For instance , i wrote :
(I created an empty .NET project)
#using namespace System::Collections;
__gc class point
{
protected :
int x; inty;
public :
poi... more >>
Best language for music apps
Posted by _R at 3/26/2005 4:53:17 AM
I know VC++ and C# fairly well, but I'm trying to weigh pros and cons
for use of each on a music project. It will entail MIDI and sample
playback, use of fairly high-res timers (if available) and quick
(realtime) update of screen graphics.
I've written similar programs, but not under .NET. I... more >>
New versions of VC++ still stuck with function prototypes?
Posted by _R at 3/26/2005 4:31:46 AM
Given that VS2005 has made an effort to clean up the syntax of VC++
(in C++/CLI), is there any future plans to do away with function
protos, ala C#/VB? What are they needed for these days?
... more >>
how to work with 3rd party SDK
Posted by Sam Carleton at 3/26/2005 12:00:00 AM
The 3rd party SDK that I would like to use in C# (I am an C/C++
programmer) is designed to be used from C/C++. This is how it
works:
The vendor is abstracting things a bit. The real DLL has only one
actual exported method, one of the parameters on the DLL takes an
enum which determines whic... more >>
How to create a C++ class to have a .NET interface
Posted by Sam Carleton at 3/25/2005 6:50:02 PM
There is a 3rd party library that is a bit complex, has a number
of functions and structs and variable length data, the whole bit.
I saw Eric Gunnerson's July 14, 2002, article "Using Existing Code
in C#". He talks about four different ways to wrap the code in
C++, the last one is: "Modifying a... more >>
stupid name mangling problem
Posted by Bruno van Dooren at 3/25/2005 6:41:13 PM
Hi all,
i have developed a class that has a member called 'PostMessage'
if i only reference this member from within the class context, there is no
problem, but if i trie to execute it as a method, i get the error
error LNK2019: unresolved external symbol "public: void __thiscall
Message... more >>
Does VC.NET have an INI file class?
Posted by Fred Hebert at 3/25/2005 12:50:40 PM
In order to maintain compatibility with some older software I need to be
able to read and write a classic ini type file. I don't see anything like
that in VC.NET. The old code looks something like this:
TIniFile *INI;
INI = new TIniFile("MyApp.ini");
Timeout = INI->ReadString("DEFAULTS","... more >>
Method calls in .NET multithreading
Posted by Ioannis Vranos at 3/25/2005 12:00:00 AM
In .NET multithreading we have to assign a thread to a method of a
separate object each time (and not two methods of the same object)?
In other words, why does this hung?
#using <mscorlib.dll>
using namespace System;
using namespace System::Threading;
class SomeException
{};
... more >>
Are there any command like Unix "tail -f " ?
Posted by cyshao at 3/25/2005 12:00:00 AM
Are there any command like Unix "tail -f " ?
I'm developing a service program who writes log file in each 5 second.
Now, I want to watch changes of the contaxt of the file.
I know Unix porvides such program ,"tail -f ".
Does Windows has similar command?
Thanks
Charles Shao
... more >>
|