all groups > visual c > june 2004 > threads for june 22 - 28, 2004
Filter by week: 1 2 3 4 5
How to initialize a static map member in a cpp file body
Posted by Bill Sun at 6/28/2004 6:10:22 PM
Hi,=20
I have a question about to initialize a static map member like this:
In the mapclass.h;
class mapclass
{
private:
static map<string, int> s_mapArray;
}
In the mapclass.cpp;
.....
s_mapArray["Item01"] =3D 0;
s_mapArray["Item02"] =3D 1;
.....
I don't want to initial... more >>
unable to debug
Posted by Sunil George at 6/28/2004 5:21:09 PM
Hello!
I had upgraded my old ATL COM project of VC++ 6.0 to VC++.NET.
Now I am getting a strange problem.
My project works fine under a VB 6.0 client, but the same client code when
ported to
VB7 , does not work properly. While debugging I found that one particular
virtual function is failin... more >>
Minimal rebuilds
Posted by Steve McLellan at 6/28/2004 4:41:43 PM
Hi,
We've got two developers working on the same mixed C++ project, using .SLN
and .CPROJ project file (i.e. with identical configurations) on two
different VS .NET 2003. The project files are in CVS. On one machine if you
don't change anything between builds, the compiler recognises this. If ... more >>
warning LNK4098
Posted by Bill Burris at 6/28/2004 4:32:15 PM
How do I find what is causing this warning from the Linker? If I use
/NODEFAULTLIB I get hundreds of undefined symbols.
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
Here is the compiler options:
/Od /I "C:\DriverX4\Include" /I ".... more >>
Error on Microsoft Visual C++ Runtime Library
Posted by Blake3201 at 6/28/2004 3:20:01 PM
I get this message everytime I start up my computer. It says missing file C:\Program Files\Common Files\updmgr/updmgr.exe . This is the error message I recieve "This application has requested the Runtime to terminate it in an unusual way. " I have no clue of what to do. Any help would be apprec... more >>
Resource in a dll
Posted by mphanke at 6/28/2004 11:29:47 AM
Hi,
I have an application that works fine when compiled as an executable.
But it is designed to be a plugin also at the same time, by compiling it
as a dll. I have a problem with resources when compiled as DLL. The
error always says there is no resource file named
"TESTNS.Toolbar.resourc... more >>
VC++ .NET Windows and interrupts / watchdogs question.
Posted by larsson_rob NO[at]SPAM hotmail-dot-com.no-spam.invalid at 6/28/2004 7:03:02 AM
I have developed a decoding tool by using MFC (Dialog based) in VS
.NET 2003. The program actually works, but it “hangs” during the
actual decoding. When finished the window comes back again. As the
actual decoding of my file could take up to 5 minutes, this is of
course quite annoying. During t... more >>
using Forms in a DLL
Posted by Fireangel at 6/28/2004 5:27:01 AM
I have a simple managed DLL that contains a basic cMap class. The root namespace is Map. Also in the DLL is a form for viewing it (frmViewMap), along with a toolbar, menu's and the like.
I've created a second project that will use this dll. I'm trying to inherit off of cMap (Basically addi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How does one set focus to an IP Address control on a Property Page
Posted by gotFun at 6/27/2004 11:42:01 PM
I am unable to set focus to an IP address control residing on a Property Page, following validation of the IP when the user hits the 'Finish' button on the Property Sheet.
I've unsuccessfully tried to use:
CWnd::SetFocus
CIPAddrCtrl::SetFieldFocus
WM_SETFOCUS sent via SendDlgItemMessage (this ... more >>
Internal Compiler Error mscl.cpp line 2701
Posted by Darren Martz at 6/27/2004 3:21:57 PM
Compiler: msvc 7.1
AppType: console
OS: WinXP Pro
I now get this "Internal Compiler Error mscl.cpp line 2701" message when I
build a specific project and cannot figure out why.
It was compiling fine, then I changed a resource text value and it started
complaining. I changed the code but it... more >>
Checking active solution configuration at compile time
Posted by Michael at 6/27/2004 12:26:01 PM
Hi!
Is it possible to check the active solution configuration (debug, release or some user defined) at compile time using for example preprocessor directives?
Best regards,
Michael... more >>
newb needs your help :)
Posted by asf41 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 6/26/2004 8:02:26 PM
hey guys just signed up and i hope to make this forum my second home
:)
anyways i want to go right into game programing so i installed DX9 SDK
and started reading but when it come to testing some of the samples
they wont compile. says:
cannot find "d3dx9.h" no such file or directory
the ... more >>
C++ Help!
Posted by whitedragon007 at 6/26/2004 1:58:22 PM
Hi I'm trying to print "Spiderman is amazing" twice but on the secon
line, it is giving me some weird symbols. Can someone please help m
fix this problem... Thanks...
#include <iostream.h>
main()
{
char mynameis[]="Spiderman is amazing";
char string[25];
char *ptr=mynameis;
char *p... more >>
HELP !!!!
Posted by news.microsoft.com at 6/25/2004 2:42:07 PM
Hi all.
I want to use in dotnet C# tabcontrol and tabpage as a wizard like
CpropertySheet and CPropertyPage in VS 6.0 MFC.
Is this possible ?????
Help please
... more >>
compiling a DLL
Posted by Luigi Puleio at 6/25/2004 1:44:47 PM
Hello everyone...
I am trying to make a simple and little DLL wrapper to MSXML4 libraries to
make it being called from an another-platform's application.
While creating the msxml4.tlh file, I figured this inside:
virtual HRESULT __stdcall get_output (
/*[out,retval]*/ VARIAN... more >>
Mixed code - "not registered"?
Posted by Phre2d NO[at]SPAM excite-dot-com.no-spam.invalid at 6/25/2004 11:08:28 AM
We are attempting to move a large development project into the .NET
age over time. We have a large number of ATL-based COM objects in
this project. Following the "Journal Poster" example provided by MS,
I have converted some of my COM projects into mixed code so that there
is both a .NET and C... more >>
Where is the Component Gallery
Posted by stann NO[at]SPAM pobox-dot-sk.no-spam.invalid at 6/25/2004 1:05:23 AM
Where can i find the Component Galery in Visual Studio .net? I just
cant find in anywhere.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------... more >>
How to load assembly from GAC using unmanaged C++?
Posted by Alex Sedow at 6/24/2004 8:41:53 PM
Hello group!
How to load assembly from GAC using unmanaged C++? I want load assembly into
memory or get path to file on disk.
Alex.
... more >>
Managed C++ control in Internet Explorer
Posted by paul NO[at]SPAM palmnospam.com at 6/24/2004 1:55:15 PM
I'm having difficulty embedding a managed C++ control in Internet Explorer.
I'm using the same object syntax in the html as I would for a c# control,
but IE doesn't seem to find the control in the dll. Is there a different
object syntax used to identify a control in a managed c++ dll?
Thanks,... more >>
Stderr redirection in VC 7 failed
Posted by ndessai at 6/24/2004 10:29:59 AM
Hi All,
I had a project which used to redirect stderr to a file in VC 6.
(working fine)
When I ported it to VC 7 it does not put messages in the file.
Any ideas???
Thanks,
Navanath
... more >>
Build.Net Release 0.6.2
Posted by juliansitke NO[at]SPAM hotmail.com at 6/23/2004 11:25:53 PM
Build.Net is a build tool that parses and builds VS.NET project files.
Build.Net is run from the command line. It recursively searches a
directory for VS.NET project files to build. This directory to be
searched is passed in via the '-find' parameter. Any *.csproj OR
*.vbproj that is found is ... more >>
How to use profiler in .NET 7.1
Posted by Maansi Gupta at 6/23/2004 7:37:32 PM
Platform - Windows 2000 Professional , VC .NET 7.1
Hello,
I have recently ported my source code from Visual Studio 6.0 to .NET 7.1
Previously with Visual Studio 6.0 I was using the profiler in the following
way
1) Build the project with link setting- Enable Profiling as checked.
2) I ha... more >>
Ref count problem when using managed extensions
Posted by Ben Terry at 6/23/2004 12:21:01 PM
I have imported a legacy C++ project into a VisualStudio.NET 2003 solution.
I have some new C# projects in the solution as well. I am using the managed
extensions in my C++ project so that I can use the managed C# objects within
my C++ project. Here's the problem: I am getting a debug assertio... more >>
Help with Dialog Resource Template
Posted by M at 6/23/2004 11:43:01 AM
Trying to create a File Preview Dialog. Have created a resource template with GroupBox (ID = stc32). File Open is displayed fine. when I add an activeX control to the dialog, I am getting this error: "The Dialog Box could not be created" error
How do I add an activeX (where my selected AVI/BMp fi... more >>
Problem with __declspec(dllexport)/__declspec(dllimport) in mixed assembly
Posted by Gawel at 6/23/2004 1:56:31 AM
Hajo,
I have two dlls, both of them are compiled with /clr switch.
In first dll project I have managed and unmanaged classes.
One of the unmanaged I would like to use outside therefore
I marked it as follows:
class __declspec(dllexport) Terrain
{
public:
void foo(){}
};
In sc... more >>
bool ./. Boolean
Posted by Carl at 6/23/2004 12:52:01 AM
Hi,
is there a difference in using int or System.Int32 in C++ .NET ?
Or more general using the .NET Framework type instead of the C++ types ?
Performance ?
What's the best practice ?
Thanks
Carl
... more >>
C++/CLI norms for calling functions that want String ^ when you have native char *
Posted by Bern McCarty at 6/22/2004 12:51:54 PM
In MEC++ I could just call a function that was expecting a String __gc* even
though I had a native char *. The char * automatically got marshaled to a
String __gc*.
In the May CTP of VS 2005 I just get a compile-time error: cannot convert
parameter 1 from 'char *' to 'System::String ^'
Wh... more >>
serialize managed pointers?
Posted by EP at 6/22/2004 11:54:58 AM
I have class that is serialized and passed over appdomain boundaries. It
also includes these members:
PHTTP_RESPONSE _phttpResponse;
PHTTP_UNKNOWN_HEADER _pHttpUnknownHeaders;
PVOID _pEntityBuffer;
When I try to serialize the class I get the exception complaining that
System.Reflection.Poi... more >>
Create a dir where all the users have the right to write
Posted by Viviana Vc at 6/22/2004 11:21:11 AM
How can I programatically do the equivalent of the following:
cacls "C:\Program Files\test" /T /G Everyone:f ?
Thanks,
Viv... more >>
How do I get system time in VC++ in the .net development environme
Posted by Kueishiong Tu at 6/22/2004 4:57:02 AM
How do I get system time in VC++ in the .net development environment?... more >>
|