all groups > visual c > june 2004
Filter by week: 1 2 3 4 5
CRITICAL:: DLLs from previous version of the compiler falis to redirect stderr:issue with CRT??
Posted by ndessai at 6/30/2004 7:39:24 PM
Hi All,
I discovered following issue with the VC 7.1 compiler regarding the
backword compatibility.
I created a dll (Redirect.dll) which exposes a function and simply
writes some text (say "Hello World") to stderr stream. I also created a
driver program (driver.exe) and used the exposed ... more >>
unmanaged WinSock V.S. System.Net.Sockets
Posted by Nadav at 6/30/2004 4:18:01 AM
Hi,
I am about to write a performance critical application and I wonder what is the best way to implement it... Should I use the standart Win32 winsock DLL or should I rather use the new managed System.Net.Sockets library... from bench-marking tests I have done I have reached to the following con... more >>
Debug vs Release Memory Allocation Performance Issue
Posted by spiff at 6/29/2004 10:13:01 PM
We are migrating from VC++ 6 to VC++ 2003. It is a plain, unmanaged application with both C and C++ source. When running the debug build, even outside the debugger, the memory allocation/deallocation performance appears to be orders of magnitude slower than in VC++ 6. The release build runs fine - n... more >>
Equalizers
Posted by Veera at 6/29/2004 9:48:01 PM
Dear Friends,
I am facing the problem with application graphical equalizers, the application how i should develop means it should be independent of all formats. Application should be like windows SoundEffectManager(AC97 Audio Configuration)(Equalizers) like this way i have to develop, any body pl... more >>
Data structure problem
Posted by Ubhay Kumar at 6/29/2004 8:14:52 PM
Hi All...
I dont know whether this is the right place to post a datastructure problem
or not (if not please some one redirect)
I am using hashmaps in vc++. i have one particular use of the map for which
the performance is very slow.
Say i have 100 items in the map. The required operation i... more >>
How can I get list of computers in a domain?
Posted by Peter Steele at 6/29/2004 3:27:55 PM
I've found some VB code to query a domain controller to return the list of
all computers in that domain. The VB code is reasonably straightforward (see
below). How do I do the equivalent in C++? I've done a lot of searches and
haven't come up with much useful information. Any pointers would be
a... more >>
Search order of DLLs
Posted by mphanke at 6/29/2004 1:54:25 PM
Hi,
I have a question concerning the search order of DLLs and whether I can
take influence on how they are loaded.
The following is my situation:
I have a plugin design for my application. It is stand alone if compiled
as exe, a plugin if compiled as dll.
If compuled as plugin I woul... more >>
_beginthreadex VS CreateThread in vc 7.1
Posted by vs_raghuvamshi NO[at]SPAM hotmail.com at 6/29/2004 1:53:25 PM
Threads created using the CreateThread API used to leak memory if you
accesed any crt methods within the thread proc. we used to use
_beginthread to work around this issue.
Does anyone know if this has been fixed ?
-Vinayak... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
old C++ called from C#
Posted by Daniel P. at 6/29/2004 8:51:26 AM
How can I do that?
Would it work if I added the C++ code to the current C# project/colution? Do
I have to create another assembly with a managed C++ wrapper to the old C++
code?
Thanks!
... more >>
Hidden interface
Posted by pmadr NO[at]SPAM seznam.cz at 6/29/2004 6:53:56 AM
Hi all,
I would like to ask you a question regarding inheritence in C#.
I have a class which inherits from COM object, but then I want to pass
this class to the function expecting interface which COM object is
inherited from, I can't do it.
See sample:
C++ ATL project with COM interfac... more >>
error with system::resources
Posted by Emmanouel at 6/29/2004 5:52:01 AM
Hello everyone
In a windows forms that i have compiled and includes code like this :
this->Icon = (__try_cast<System::Drawing::Icon * >(resources->GetObject(S"$this.Icon")));
i get an error like this:
error C2039: 'GetObjectA' : is not a member of 'System::Resources::ResourceMa... more >>
Preprocessor definition not "inherited" when converting from VC++6
Posted by Paolo at 6/29/2004 1:20:01 AM
I imported a VC++6.0 project into VC++7.1. The conversion operation makes a mess with Preprocessor Definitions, adding a "$(NoInherit)" for each file.
For example: I had a DLL project in VC++6.0 where the definitions were:
_UNICODE,_DEBUG,_WIN32_DCOM,WIN32,_WINDOWS,_WINDLL,_AFXDLL,_USRDLL
... more >>
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 >>
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 >>
Very big bug in .NET and Intellisense (VC++)!!!
Posted by Giuseppe at 6/21/2004 11:45:02 PM
Hello,
Try these lines of code, after create a new Win32 project, in a cpp module you choose.
Define a macro and two struct like this:
#define ParmEq(a,b) (fabs((double)(a-b)) <= 0.00001)
struct t_point
{
double x;
double y;
}
struct t_box
{
t_point min;
t_point max;
};
The... more >>
ref and out parameters
Posted by SamoK at 6/21/2004 6:38:44 PM
Hy!
I'd like to know how can I use ref and out parameters in c++.
I'd like to send (from C#) to my C++.net function a variable by reference,
so I could change it in my c++.net function.
And all I find about this topic is about C#.
thanks
- Samo
... more >>
File Build Problem
Posted by MVanriper at 6/21/2004 6:19:01 PM
Just getting started with Visual C++. Learning how classes work. When I select the icon to "RUN" my program to debug. The program compiles and I get an error due to syntax. I see my problem there, but when I click on "Stop Build" nothing happens. When I look at my Windows Task Manger is shows the a... more >>
Problem with app developed with XP and tested on NT, 2000
Posted by claire at 6/21/2004 3:21:02 PM
I have an application that I compiled on my Windows XP box. It runs just fine and does what I want. When I try to run it on the NT or 2000 test machines I get this message:
The procedure entry point IsWow64Process could not be located in the dynamic link library Kernel32.dll
Is this somethin... more >>
virtual-multiple inheritance. what an extra dword is for?
Posted by Vladimir_petter at 6/21/2004 10:49:40 AM
Hello All,
I've fount that if I compile the same program using gcc and vc 2003 =
the same class E (see complete source bellow) has different size (on vc =
it is 4 bytes bigger). Digging into this I've found that vc is reserving =
a dword in the E class right before storage for virtual bas... more >>
vc++ migration to c# help
Posted by Ben Terry at 6/21/2004 10:48:08 AM
Hello,
I have a VS 2003.NET solution which consists of four c++ unmanaged legacy
projects. I am adding a new project to the solution which will be in c#.
What do I need to do to my c++ projects in order to call my c# modules from
within c++? From what I understand, I need to convert my c++ c... more >>
Destructor and garbagecollector
Posted by Peter Hemmingsen at 6/21/2004 10:23:01 AM
Hi,
I have written a dotnet class that in its constructor consumes a license
from a central license pool. In the destructor it free the license again.
But since I don't know when the destructor is called (that is up to the
garbage collector) the object (and hence the application) consume a lic... more >>
Compiling Error in VS C++ .NET that works fine in VS 6.0
Posted by larsson_rob NO[at]SPAM hotmail-dot-com.no-spam.invalid at 6/21/2004 9:03:08 AM
I’m very new in C++ programming and am trying to make a decoder tool
just for the purpose of learning. I started my project in VC++ 6.0,
but after a change of PC, I continued my programming in VS .NET.
Now I get a lot of compiling error which I don’t understand. Here is
an extract from the cod... more >>
|