Answer Questions
jaslegume system call to an exe from an mfc application
hi . i have an mfc app , which calls an exe. this exe is nothing but a c++ console app . the mfc calls this exe using : CString CommandString = "abc"; system(CommandString); where 'abc.exe' is placed in the mfc application folder . now , this results in a dos window being shown momentarily on the screen . i dont want this dos window to show up, and i dont want to change my original c++ app from a console a ...Show All
Flea# Problem seeing my code
I installed Visual C++ .net 2003 on my computer. Took forever to do and when I finally try to open my code to look at it and make changes, it shows my code as nothing but 0000000's. What is causing this Any ideas I say that I need to install Microsoft Internet Information Services on my computer. How would I know if I have this or not I met all the other minimum requirements. I unistalled Microsoft Visual C++ ...Show All
Miss Peach Needed information on size_t datatype
Hi all, Can someone explain me: - The use of type size_t - Why do we use size_t , if other datatypes are available size_t is a platform dependent type. size_t is 32-bit on a 32-bit platform and 64-bit on a 64-bit platform while this is not the case with our traditional datatypes such as int, float. If we are porting a 32-bit application to 64-bit platform. This type causes a lot of warnings. warnings of the type: y:/ ...Show All
LeonidVo altering variable name
Hi! I need to alter a variable name. The scenario is: i have a lot of text box, so i want to read the text of each box and load all in a same string. So, i think to use a for loop... but... if i work in this way, it's necessary alter the name of text box... Can anybody help me As Marc suggested, you can just put the textboxes into an array or any structure you desire and just loop on them. Thanks, Ayman Shoukry   ...Show All
Joe Courchaine Controlling project properties - templates?
How is it possible with VS 2005 to control the defaults for project builds Project templates For (trivial) example, suppose I want to set "Floating point exceptions" to yes for ALL projects in a solution (containing many unit test projects, for example). Or to control the properties folr ALL projects of a certain type, particularly console applications used for tests. In previous versions, the default was contained in a file common.j ...Show All
Rahul_It linker error with glut
Hi mate, I use c++ visual studio 2005 excpress,have a problem with linker,glut.lib and glu.lib...i copy glu32.lib and glut32.lib opengl32.lib in visualstudio2005/lib/ dir and the .h file in visualstudio2005/include/Gl/....now in visual studio in property page menu linker->input->"Additional Dependencies" item add :"opengl32.lib" "glu32.lib" "glut32.lib".....compile and: primitiv.obj : error LNK2019: unresolved external symbol _glutS ...Show All
Ollatek VCMAME: compiles with VC2003, fails with VC2005
I'm trying to build the MAME source using Visual C++ 2005. I'm using the VCMAME project files from http://www.vcmame.net/ . I first built the project in Visual Studio 2003, then opened the project in VC++ 2005 and rebuilt. I only had to make a few modifications to the project, like adding _CRT_SECURE_NO_DEPRECATE to silence a bunch of warnings. However, one of the source files (winalloc.c) implements their own memory handling functions so ...Show All
Dreifinger C++ DLL and File Not Found error
Hi all, I have a C++ DLL (not COM) that was intially developed with VS6. The solution was then upgraded to VS.NET 2005. Upgrade was successful, but building the DLL was not. A few warnings and errors resulted. These were fixed. One particular error was the the following functions in the .def needed to be set as Private: DllRegisterServer, DllUnregisterServer, DllCanUnloadNow, DllGetClassObject Anyways, the build succeeded. This D ...Show All
Herwin Grauel DCOM - problem in calling function from remote machine
Hi, I have four parts in my application. 1. A simple test.exe(Unmanaged Code) that calls the dcom Server through a simple MFC dll (TestDll.dll -Unmanaged Code). 2. DCom Server (DcomTest.exe- Unmanaged Code). 3. A .Net assembly(TestWeb.dll) which calls a web service's functions. TestWeb.dll is called from DComTest.exe and returns the result to it. 4. A .Net assembly(TestDB.dll) which interacts with the database. TestDB.dll is called from DComTest ...Show All
idrissbahhussein Looking for help - Deploying C++ Applications with VS2005
Hello guys I've been reading your advices on Microsoft forums about deploying C++ applications and hope you can help me with a problem I have: I want to write a service in C++ using VS2005 and deploy it on a target machine which doesn't have VS2005 installed. Both machines use AMD64 processor with Windows 2003. When I try to register/run the service on the target machine I get the following error events: ...Show All
Araki66 VC++ migration problems
I'm trying to bring a project from VC6 to VS2005 Pro. When I first imported the project there was, not unexpectedly, a long list of compiler errors and warnings, and I modified the source code to get rid of all of them, and am now left with 2 problems I'm not sure how to fix. 1) I get an error during the html help phase of compilation to the tune of "windows can't find hcw" - that's the executable for the help workshop. I see that ...Show All
Arshad Syed Structure deletion?
I got a dynamic structure array in a class. In that classes destructor I delete a pointer to the said array. That deletion causes an error! After that, I tried to free(pArray) but this also causes an error. Is it necessary to delete this pointer at all I heard that sometimes C# performance in DirectX is not good, but this is because incorrect usage of C# (something about GC in fact). If you get ...Show All
Vishva Reading and Writing Xml from unmanaged VC++
Hi, Unfortunately I cant move to managed at the moment. I need to read and write Xml Files from un managed VC++, what is the best way to do this are there any api's that i can use, if which is the best. Thanks in advance Will For general how to questions, please use the newsgroups at http://msdn.microsoft.com/newsgroups . Folks there might have reay algorithms for that. Thanks, Ayman Shouk ...Show All
Saran.T. Parameter incorrect - corrupt mixed mode image?
After almost two days of linking problems I've managed to make my application link and now when I try to execute it I get a message box with the error "The parameter is incorrect". It looks like Windows doesn't even try to load the exe. What could be causing this It is a mixer mode exe with a few cpp files compiled with /clr ldSyntax. I've linked it with msvcrt.lib, msvcmrt.lib, MSVCPRT.LIB and mscoree.lib. If I remove mscoree.lib I get an unres ...Show All
Capt. Mick _CRT_SECURE_NO_DEPRECATE has no effect
MSDN clearly states that if you define _CRT_SECURE_NO_DEPRECATE it "will disable deprecation warnings". I tried adding _CRT_SECURE_NO_DEPRECATE to the Preprocessor Definitions and #define _CRT_SECURE_NO_DEPRECATE to the code. In both cases I still get a C4996 warning from every single strcpy call. The only way to disable the warning, as far as I can tell, is to use #pragma warning (disable:4996) or add the warning to the C/C++ settings (Ad ...Show All
