all groups > visual c > november 2003
Filter by week: 1 2 3 4 5
[]How make two CaptionBar sincronized?
Posted by Marco at 11/29/2003 6:01:14 AM
I have an application and its ToolBar in another window.
When is focused the first is not the second and vice
versa.
I would make both focused if i focus one or both
unfocused if i click on whatever part on the Screen.
How?
P.S. for an example see Photoshop and its tool, or
Fireworks and... more >>
Re: Am I doing this correctly - exceptions!
Posted by Peter Strøiman at 11/28/2003 1:12:49 PM
Damn - I accidentally posted before completing the post :(
I have some code that is part of an unmanaged C++ project.
I have a class that represents an exception
class ResultmakerException
{
private:
std::wstring _errorMsg;
HRESULT _errorCode;
public:
ResultmakerExceptio... more >>
SHFileOpertion and FO_DELETE
Posted by Simon Jefferies at 11/28/2003 10:15:19 AM
Hello,
I am trying to delete a file using SHFileOperation, but get the error code
1026.
Code snippet:
SHFILEOPSTRUCT fo;
ZeroMemory(&fo, sizeof(fo));
fo.fFlags = FOF_ALLOWUNDO | FOF_FILESONLY;
fo.wFunc = FO_DELETE; // delete contents of this folder
fo.pFrom = szFilename;
int nSuccessC... more >>
how can i catch the packet
Posted by flywave at 11/27/2003 8:13:57 PM
hi,who can help me ?i came into a problem that how can i
get a packet which was send in the LAN.in a word ,how the
sniffer works.
I once used the rawsocket in win2000 or xp,and it do catch.
but the packet is IP packet,not including the MAC address.
then how can i catch a packet include the MA... more >>
terminate threads in managed c++
Posted by at 11/27/2003 4:43:03 PM
Hi I have thread that recives event notifications from a server.
the thread is created as a managed thread. But when using Thread Abort the
thread doesn't terminate.
the thread is in an waitable state using WSAWaitForMultipleEvents.
How can I kill this thread, i don't mind brute force.
... more >>
a simple gc question
Posted by Gideon at 11/27/2003 12:39:01 PM
i understand __gc[] work different that native arrays.
say i need a __gc[] member, and a get function, that returns a ref to it.
i cant seem to make it happen.
this code:
***********CODE***********
publc __gc class Foo{
public:
Int32* get(){
return array;
};
Int32 ... more >>
speed issues ...
Posted by Lloyd Dupont at 11/27/2003 11:20:38 AM
I have noticed that managed C++ is actually a very slow language.
Will it be improved with Whidbey ?
... more >>
GetNativeVariantForObject
Posted by Pratul at 11/27/2003 10:33:22 AM
Very recently I have written a custom interop in Managed
C++. We have a C# application that uses a COM DLL as a
data provider. The COM data provider talks to other
servers for retrieving real-time data.
First of all, we used TlbImp to generate the metadata for
the COM DLL and everything... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
why this wont compile?
Posted by Gabest at 11/26/2003 10:30:19 PM
---------
typedef struct {int i;} somestruct;
class A
{
public:
A() {}
bool read(char* ptr, int len);
// bool read2(char* ptr, int len); // 1.
};
class B : public A
{
public:
B() {}
bool read(somestruct* s) {return read((char*)s, (int)sizeof(*s));}
// bool read(so... more >>
VC compiler bug ?
Posted by Ares Lagae at 11/26/2003 6:34:27 PM
Consider this code fragment:
#include <iostream>
template <class T>
class Foo
{
public:
T m_f;
Foo(T f) : m_f(f) {}
//Foo(const Foo & foo) : m_f(foo.m_f) {}
static const Foo CONST;
};
template <class T>
const Foo<T> Foo<T>::CONST = Foo(T(1));
cl... more >>
dumb question about String
Posted by TGF at 11/26/2003 3:48:43 PM
How do you copy a String type into a native char buffer[256]? Dumb
question, but not sure how to do it :(
TGF
... more >>
peverify error
Posted by Gideon at 11/26/2003 11:13:34 AM
hi all,
i'm trying to make my mc++ code verifiable:
i'm getting this error when running peverify on my dll:
[IL]: Error: [HRESULT 0x80131417].
any ideas?
thanks,
g.
... more >>
Question: run time error using a native lib
Posted by Ladvánszky Károly at 11/26/2003 11:10:23 AM
I'm trying to use a statically linked C library. I've wrapped a .NET C++ DLL
around this lib and trying to drive the wrapper from a .NET VB testbed. The
whole build succeeds but I get the following error message at runtime:
An unhandled exception of type 'System.TypeLoadException' occurred in
... more >>
Redirecting Output
Posted by varkey at 11/26/2003 7:36:14 AM
Is there a way I acn simulate a command prompt window where i can execute any commands in my custom window?... more >>
*sigh* More missing ListView API
Posted by Steve at 11/26/2003 6:16:07 AM
Unlike the better-designed tree control, the listview doesn't seem to have any functionality for returning whether or not an item is actually visible. Does anyone know what hoops I must jump through in order to workaround this limitation in what is obviously a seriously lacking API? Was the listvi... more >>
Problems with MSFlexgrid control in vs.net 2003
Posted by John Petersen at 11/26/2003 4:39:18 AM
Hi there
I really hope someone had this problem before me.
I have moved all our c++ projects from VC6 to VS.NET2003
and i have problems with nearly all dialogs containing
either DateTimePicker or msflexgrid controls. In the case
of the DataTimePicker i just replaced the old control
with ... more >>
Where should I start?
Posted by Kachna at 11/26/2003 4:03:32 AM
I have the Visual C++ 6.0, and where should I start? Is
there any tutorial explaining Windows API functions, its'
arguments, and so on? So that I will gain some base
knowledge?... more >>
How to access digital camera
Posted by Kanaiya at 11/26/2003 2:39:01 AM
hello
i want to make one project which develop in
visual c++. for windows 2000 i have to develop one project
in that i need it. so how i can access it and what main
concept i have to take in mind because i have to provide
functionalitys for all types of digital camera and other
... more >>
How can I draw 1x1 pixel dot?
Posted by Hamster at 11/26/2003 1:49:39 AM
How can I draw 1x1 pixel dot?... more >>
cmd file inside my Setup solution (newbie queston)
Posted by JH at 11/25/2003 3:02:51 PM
I have this simple .cmd file which I want to run inside my other programs in
VS.net (setup file). It does not run.
Can somebody help me!!!!!!!!
IF "%ver%"=="Microsoft Windows 2000" GOTO Win2k
@REM IF "%ver%"=="Microsoft Windows XP" GOTO WinXP
@mkdir temp1
GOTO Common
:Win2K
@REM... more >>
Does vs.net support user_define_keyword?
Posted by news.microsoft.net at 11/25/2003 2:33:02 PM
error C2787: 'IQueryInfo' : no GUID has been associated with this object
Posted by Jeff F at 11/25/2003 2:10:38 PM
Any thoughts on correcting this error?
Here is the source:
// PrjFileInfo.h : Declaration of the CPrjFileInfo
#pragma once
#include "resource.h" // main symbols
#include "AdvShellX.h"
#include <comdef.h>
#include <shlobj.h>
// CPrjFileInfo
class ATL_NO_VTABLE CPrjFileInf... more >>
concatenating LPCTSTR
Posted by ebobnar74 NO[at]SPAM yahoo.com at 11/25/2003 1:43:18 PM
I need to call the function LoadImage which take a LPCTSTR argument to
specify the path to the image to load. However, I need to create this
path dynamically from user input by concatenating strings together.
I'm using visual c++.net 2003. I've tried using the String class to
put the image path ... more >>
Managed C++ Components
Posted by Edward Diener at 11/25/2003 10:40:36 AM
First, is this the correct NG for discussing Managed C++ .NET development,
or is some other NG more appropriate ?
Second, if yes to above, is there any good information on developing .NET
components and controls using Managed C++ anywhere ? The MSDN documentation
topic "Managed Extensions for ... more >>
calculation parallelization
Posted by Leonid at 11/25/2003 9:57:19 AM
Hello,
Please help me with calculation parallelization. I have 2
processors DELL PRECISION 530 computer and I'd like
parallelize cycles like
for(int i = 0; i < last; ++i)
{
a[i] = b[i] + c[i];
}
I've read about '#pragma omp parallel for' instruction for
the future version of VC++(V... more >>
Adding an mfc class
Posted by wildginger2003 NO[at]SPAM hotmail.com at 11/25/2003 6:52:26 AM
Hi all,
I have a project that was written in studio 6, and has now been
converted/rebuilt in .NET 2003. Everything was going fine until I went
to add a new dialog.
I created the dialog, went to project->add class, chose mfc class,
filled in the required fields, and pressed "Finish". All tha... more >>
Fail to register dll in VS .Net 2003
Posted by randomstr NO[at]SPAM yahoo.com at 11/25/2003 6:02:26 AM
Howdy,
I have recently converted my project from VC++6 to VS.Net 2003 VS7.1,
and now, It won't register.
when running regsvr32 I get:
LoadLibrary failed - the specified module could not be found
and when running directly from the IDE I get:
Project : error PRJ0019: A tool returned an err... more >>
/Tc:wchar_t cause C2371 in MAPIDefS.h & WinNT.h
Posted by Mark Fancy at 11/25/2003 5:48:11 AM
I have a project that I'm trying to get to compile. I
need to have the /Tc:wchar_t compile switch in order to
use some libraries. I have included the following header
files:
#include <mapix.h>
#include <mapiutil.h>
#include <imessage.h>
#include <mapitags.h>
When I try to compile my p... more >>
link step is very long with vc++7
Posted by steph at 11/25/2003 3:53:18 AM
Hi,
I have a vc++6 project I migrated to vc++7 .NET.
If I only migrate without using managed extension, link
step takes 8 seconds.
If I check "use manage extensions" in project properties,
link step takes 4 minutes.
I use incremental link.
Why such a difference?
Thanks
steph... more >>
Can U help Me
Posted by C-- at 11/25/2003 3:45:20 AM
for (expression1; expression2; expression3)
{statement}
can you explain it to me...
... more >>
.NET book recommendations ??
Posted by jtnim NO[at]SPAM hotmail.com at 11/25/2003 2:14:22 AM
What books would you recommend to a seasoned C/C++ programmer wanting
to venture into the .NET domain? And yes, I do want to stick to C++.
-- Rubio... more >>
Hello world disappearing console
Posted by tjawed123 NO[at]SPAM hotmail.com at 11/24/2003 4:22:26 PM
Alright - I've been using VS .NET for all of 3 hours now - so pardon
the stupidity of my question.
Can someone walk me through a simple hello world that outputs to
console, in terms of which project, what settings to change etc. Or
point me to a getting starting using VC++ guide that explains ... more >>
Defining template method specialization outside of template class definition
Posted by Michael Stembera at 11/24/2003 3:26:34 PM
I have a case of a very simple template class w/ a
template method. If I define a specialization of the
method outside the body of the template class it does not
compile. Here is a tiny example to illustrate.
template<typename T>
class C
{
public:
template<int N> bool foo(void);
... more >>
Compiler error after setting icon property
Posted by TGF at 11/24/2003 2:08:48 PM
Hello,
When I attempt to set the icon property on a Windows form (.NET), when I
go to compile, I get the following error....
e:\Projects\MyApp\AboutForm.h(108): error C2039: 'GetObjectA' : is not a
member of 'System::Resources::ResourceManager'
....Does anyone know why this happens, a... more >>
Function Prototype With Default Parameters
Posted by Wanderley Caloni Jr at 11/24/2003 11:19:07 AM
Hi,
I get a problem when ported my code from VS 2002 to VS 2003.
Aparently, a typedef of a function with default parameters doesn't work
anymore. I used to compile this code in VS 2002.
Anyone already has this problem?
Code:
typedef int (*GIMP_SCUAIMPORTOBJEC... more >>
Debug works, release not...
Posted by Christian Wallukat at 11/24/2003 11:15:42 AM
Hi NG,
I have a problem with a component written in VC6.0 SP5.
The componnet shares Data over pointer: (PVOID)pData = (PVOID)some data...
The debug version works fine...
But I have compiled the release version, and now it does not work ...
I do the following:
AddSomeData: pData =... more >>
Compiler bug w/ partial function template specialization w/ multiple parameters
Posted by Michael Stembera at 11/24/2003 10:29:34 AM
Here is a very simple piece of code to repro this bug.
template<typename T, int N> inline bool foo( void )
{
return true;
}
template<typename T> inline bool foo<T, 1>( void )
{
return false;
}
the partial specialization of foo fails to compile w/:
error C2768: 'foo' : illegal u... more >>
How to append a pdf file to the end of another pdf file in C++
Posted by Shane at 11/24/2003 9:26:16 AM
Please give me suggestions on how to append a pdf file to another pdf file in C++.
... more >>
Read the contents of open excel worksheet
Posted by ralph rueberg at 11/24/2003 4:31:13 AM
hello,
how would it be possible to read the contents of an open
excel worksheet in a C program. The worksheet consists of
several rows of numeric data and a text field in each row.
It has 500 rows with 8 columns each. There are ways how to
open a worksheet in a C program but how read the a... more >>
RAM used by a dotnet exe
Posted by steph at 11/24/2003 2:58:16 AM
Hi,
I have a VC++ 6 project I migrated to vc 7++ DOTNET.
* in a first step , I don't use Managed extension ->
memory used is 16 Mo.
* then I check "use managed extensions" in project
properties -> memory used is 58 Mo.
16 Mo for a win32 exe and 58 Mo if I just add /clr option.
Is it normal ... more >>
Restriction of Managed Types
Posted by Edward Diener at 11/24/2003 12:06:09 AM
In the MSDN topic for MC++ "Restriction of Managed Types", I read that GC
and value types "cannot contain pointers to other managed types ". That
can't be right. Does it really mean to say that a __gc class can not have a
pointer to an object of another __gc class ? I must be missing something in... more >>
TabControl and CView
Posted by Hai Ly Hoang [MT00KSTN] at 11/23/2003 5:18:35 PM
I want my application to have an TabControl, which each pane is a View
(CEditView for example). (ie. I want to attach views of CDocument into tabs
of TabControl).
Can any one help me ?
Thank in advance
... more >>
Visual C++ .NET Performance Analysis - how to?
Posted by finlaysonc NO[at]SPAM yahoo.com at 11/23/2003 4:43:27 PM
Hi all -
I'd like to do performance analysis of a non-distributed app written
in unmanaged C++ code in Visual Studio .NET 2003 Enterprise. The
advent of all the new .NET features has my head somewhat spinning, and
I'd like to confirm the following:
"There is no Visual Studio .NET 2003 perf... more >>
PN: Managed C++ and Unmanaged C++
Posted by peter NO[at]SPAM peternolan.com at 11/23/2003 4:39:38 AM
Hi All,
I'm interested in the opinion of an expert or two on managed C++.net.
I've been writing cross platform C++ (win/unix) for some ETL tools I
use with clients. All the code is 'unmanaged' as I originally wrote
it in VC++ 6.
I've just completed my first managed code program. I also bou... more >>
The __abstract managed C++ extension
Posted by Edward Diener at 11/22/2003 10:12:30 PM
In the Managed Extensions for C++ Reference, I read:
"Applying __abstract to a class or structure does not imply that the result
is a __gc class or __gc structure."
However in the Managed Extensions for C++ Specification I immediately read:
"The __abstract keyword can only be applied to a ... more >>
web reference question
Posted by Bruno van Dooren at 11/22/2003 9:20:07 PM
Hi,
i am trying to use a test web service to see how it works.
when i try to add a test web reference, i search for provider 'microsoft'
and i get a number of possible webservices, one of which is a HelloWorld
service.
Service Description:
This is a simple hello world service.
... more >>
[BUG] ICE when using templated user-specified cast operator
Posted by Dan Plimak at 11/22/2003 9:01:04 PM
Greetings,
I'm seeing an odd problem while implementing a template user-specified cast
operator for one of my objects which frequently gets static_cast<>ed around.
The following test case demonstrates the problem, producing an Internal
Compiler Error on the line marked. I'm fairly sure this ... more >>
vc++ on win 2003 (64 bit)
Posted by sarab at 11/22/2003 12:36:43 AM
Hi,
is there a version of vc++ available which runs on windows 2003 (Itanium
64 bit )?.
regards
-sarab
... more >>
Why don't IE become a thin .Net VM?
Posted by feng at 11/21/2003 10:46:02 PM
Assign bit offset in a struct
Posted by J at 11/21/2003 10:33:52 PM
I'm interfacing with a C api (via Interop) which uses the following
typedef struct...
typedef struct _columnflags
{
BYTE bNoUpdate : 1;
BYTE bSetToNull : 1;
BYTE bDefault : 1;
} columnflags;
FYI: For those unfamiliar with this C/C++ syntax, the ": 1" specifies a ... more >>
|