all groups > visual c > october 2007 > threads for october 15 - 21, 2007
Filter by week: 1 2 3 4 5
Vista vs XP
Posted by Alex at 10/21/2007 10:14:00 PM
Hi All,
What are the major features/advantages in vista over xp?
Any links are available by microsoft?
--
Thanks & Regards,
Alex.
... more >>
stl vector
Posted by Alex at 10/21/2007 9:28:04 PM
Hi all,
I am devloping an application in VC++ with Visual Studio 2005. In this
applicatin, Threadpool and stl classes are there. All threads will
use(sending by pointer to vector) stl vector simultaneously for reading and
writing purpose. Sometimes, application getting crash. I think, v... more >>
derived class can not access base class protected member?
Posted by George at 10/21/2007 8:45:00 AM
Hello everyone,
I met with a strange issue that derived class function can not access base
class's protected member. Do you know why?
Here is the error message and code.
[Code]
error C2248: 'base::~base' : cannot access protected member declared in
class 'base'
[/Code]
[Code]
cl... more >>
trim heading and trailing space
Posted by George at 10/21/2007 12:56:01 AM
Hello everyone,
I think in built-in C/C++ functions, there is no direct function call to
trim heading and trailing space characters, right? So, we have to implement
it manually by iterating the string to check character one by one.
Support not using MFC.
thanks in advance,
George... more >>
Which image file formats does Image/Bitmap support?
Posted by Peter Oliphant at 10/20/2007 7:29:17 PM
The Image class allows loading a bitmap from a graphic file. So far I've
gotten it to work with JPG and BMP files.
What other graphic file formats are supported in this way? Is this fixed
based on the .NET Framework used (e.g., the Image class defines which
formats can be used), or can diff... more >>
pin_ptr of delegate that spans scope of function
Posted by john conwell at 10/19/2007 11:27:01 AM
I have a C++/CLI library and I'm calling a function, RegisterTraceGuids()
that takes a function callback as a parm. I need the callback function to be
a managed delegate. In order to do this I create a pin_ptr of the delegate
and then pass it to RegisterTraceGuids.
The problem is that pin_... more >>
countdown clock
Posted by Mike at 10/19/2007 10:02:09 AM
I want to create a clock that will countdown the number of days left to =
a certain event. I want it to show, days, hours, minutes and seconds. If =
possible I woud like to make it a floating form or if possible to show =
in the task bar, is this possible to do and were could I find something =
... more >>
delete this
Posted by George at 10/19/2007 12:19:09 AM
Hello everyone,
Just interested to learn how C++ implements delete this statement
internally. From logical point of view, I can not imagine how to implement a
component which destroy itself.
What makes me confused is the component is relying on itself even in the
process of destroy, ho... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DllMain
Posted by George at 10/19/2007 12:01:39 AM
Hello everyone,
From MSDN,
http://msdn2.microsoft.com/en-us/library/ms682583.aspx
parameter fdwReason of DllMain has four values,
DLL_PROCESS_ATTACH
DLL_PROCESS_DETACH
DLL_THREAD_ATTACH
DLL_THREAD_DETACH
I think we could simply understand what MSDN described about the four values... more >>
AddRef and Release function of COM inteface
Posted by George at 10/18/2007 5:41:03 AM
Hello everyone,
I have noticed a lot of COM samples that the function AddRef and Release
function of COM inteface is not synchronized to make it thread safe when
dealing with adding/decreasing reference count.
Is it needed to synchronize AddRef and Release? Or the COM runtime
underlyin... more >>
virtual destructor
Posted by George at 10/18/2007 5:16:00 AM
Hello everyone,
What is the purpose of virtual destructor? If currently, no derived class?
thanks in advance,
George... more >>
How to build 64-bit application for 6-bit platform
Posted by Ed at 10/18/2007 3:47:09 AM
Hello, dear guys,
I am a little confused.
My host is 32-bit Windows XP, and my IDE is VS2005 Professional
Edition.
Also, there is a Win32 VC project.
Now, I want to rebuild this project in 64-bit mode for 64-bit
platform. From the MSDN, the Professional Edition support 64-bit
build. But I don... more >>
Using a C# component from within VB6 (none .net)
Posted by Dirk B at 10/18/2007 12:00:00 AM
I would like to know if the following is possible:
create a component using C# or VB.NET -> component will use the
..netframework v2
create a VB (NONE .net) COM object that uses the above created component
And if this is possible are their any pitfalls that we should be aware off?
... more >>
Inherit C++ interface
Posted by aleko at 10/18/2007 12:00:00 AM
Hi,
I am trying to wrap some std C++ code so it can be used from C#. The
problem I'm having is that I can't seem to derive a ref class from a C+
+ interface. Compilation fails with C2811: "...can only inherit from a
ref class or interface class". AFAIK an abstract struct constitutes a
valid i... more >>
VS2005 : Managed Wrapper for Unmanaged code : Ellipsis dilema
Posted by Olivier Matrot at 10/17/2007 12:00:00 AM
Hello,
I'm in the process of writing a managed wrapper on legacy C++ code.
I have to deal with methods that are using the ellipsis.
For instance,the legacy method is :
void CLog::Print (LPCSTR szMask, ...)
{
CHAR szText[512];
va_list arglist;
va_start (arglist, szMask);
wvsprintfA... more >>
MFC libraries - best route to upgrade?
Posted by Control Freq at 10/16/2007 11:48:15 AM
Hi,
I am a fairly experienced C++ (MFC) programmer, with alot of MFC code
still in use. Most of my projects are still using Visual Studio 6.0.
I want to modernise, but don't want the lengthy (costly) disruption of
porting my useful stuff to a more recent programming environment.
I now hav... more >>
Building a Unicode application.
Posted by Craig Johnston at 10/16/2007 9:33:00 AM
I am in the process of converting an application to Unicode that is built
with Visual C++ .NET 2003. On application startup in debug mode I get an
exception. The problem appears to be that code with #ifndef _UNICDODE is
executed in output.c, the library code for supporting printf functions. I ... more >>
Why can't a Dictionary be safe_cast to an Object
Posted by Dave at 10/16/2007 8:55:20 AM
Why can't I safe_cast a Dictionary to an Object?
Generic::Dictionary<String^, String^> Dict = gcnew
Generic::Dictionary<String^, String^>();
Object^ DictObject = safe_cast<Object ^>(Dict);
Anyone know why the compiler won't handle this syntax?
Dave
... more >>
Try / Catch and Async methods
Posted by Peter Oliphant at 10/16/2007 8:30:49 AM
In the System::Speech namespace there asychronous methods on both the SR and
TTS sides. For example, RecognizeAsync( ) and SpeakAsync( ). For the
purposes of this discussion, it isn't important what these methods do, but
how they do them. That is, upon executing these methods, they do not
ne... more >>
throw list in VS 2005
Posted by dk60 at 10/16/2007 12:27:58 AM
I am writing an application in C++ in VS 2005. I wrote a function with
a throw list, but the compiler and the runtime seem to ignore it. tha
function can still throw an exception that does not appear in the
throw list, and the handling environment catches it just fine.
Is it possible that VS doe... more >>
How to interop .Net client and COM DLL?
Posted by Norman Diamond at 10/16/2007 12:00:00 AM
Using VS2005 SP1, I have a C++ COM DLL and a C# client.
If the C++ and MIDL source use type INT_PTR and the C# client uses type
IntPtr, then the result works in x86 (32 bit) but doesn't compile in x64
(64-bit). The C# compiler gives error messages like
Error CS1503: Parameter '6': cannot ... more >>
'HANDLE *' Error
Posted by bhumithakker NO[at]SPAM gmail.com at 10/15/2007 12:00:53 PM
I am using a DLL function (complied in VC7), which takes a parameter
of 'HANDLE *' datatype.
The DLL developers recommend passing a HANDLE object using the
following syntax:
HANDLE obj =NULL;
func(&obj);
On successful execution of the code 'obj' is initialised to some
value.
This code ... more >>
|