Answer Questions
rajeshbhavsar can i use cl.exe in command prompt
when using cl.exe in command prompt, a message that indicates that a file named "msdbp80.dll" is missing is alerting. is it not supported or i need a re-installation Something is wrong with your install. What did you install exactly (including which version of which SKU). Ronald Laeremans Visual C++ team Hi, You will get this message when you run cl.exe not from correctly set environment ...Show All
sadaniel About convert CString to char*
When I Search the forum with this tilte,I found there is a way to convert CString to char*.but I get a error when I compile it in vc 2005 CString hello("CString"); char* hello1=new char[hello.GetLength()+1]; _tcscpy(hello1, hello); Error 1 error C2664: 'wcscpy' : cannot convert parameter 1 from 'char *' to 'wchar_t *' d:\projects\c++.net\test3\test3\test3.cpp 20 why thanks. ...Show All
viliescu Link Error /w VS05 b2 (managed C++)
. Thank you. Thanks dotnetrob, We had the exact same problem and that fix worked perfectly! - HeloiseD This is the error that I keep getting, I tried changing the setting and it turns out that in Linker -> Input, it appears that there are no options set within "Additional Dependencies". Also the "Ignore all default libraries" option was alre ...Show All
mavrick Managed vc++ 2003 compile problem
Hello, i've got a really anoying bug that i cant seem to figure out.. The code comes from a 2005 project which needs to be compiled in a 2003 project. The code is as follows: // CitectAPIManagedDll.h #pragma once using namespace System; using namespace System::Runtime::InteropServices; namespace CitectAPIManagedDll { /// Create a unmanaged wrapper structure as the placeholder for unmanaged class /// members as exported by the DLL. T ...Show All
nishanth Has casting to int from double changed completely in VS2005?
Has casting to int from double changed completely in VS2005 Numbers that are too big are always -1 now. Which has caused me much pain to track down and is not compatible with code we currently use. Here is an example, it used to be that if you cast a big number to an int, you would some value that was related to it in some way: (int)1.0957837e+011 => -2090779696 But now it is always -1 if the value is out of the range of the int: (int)1. ...Show All
RiteshGpt C++ Error:Common Language Runtime Not Loaded
Hi anonymous! I have just installed C++ Beta Express 2005. All instructions for installation were followed, I removed all previous versions of .NET betas, SQL server, etc before installing this new beta product. Have you done the correct order of uninstall See: Uninstalling Previous Versions of Visual Studio 2005 http://lab.msdn.microsoft.com/vs2005/uninstall/ You also can use the unofficial remo ...Show All
Steven13 convert MFC to activex control
I have an application written using MFC and would like to convert it to an activex control that user can trigger from browser. I don't have any experience in dealing with activeX before, is there any example how can I do this How do I embedded the control into php web page thanks a lot! thanks for the info! couple more quick questions: where can I find more informatioin specifically regarding to how ...Show All
Regie W redirecting stdin/stdout/stderr for windows console
Hello I want to redirect stdin/stdout/stderr of any console app to a pipe. the technique given in the relevant MSDN sample( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp ) does not output to the pipe in case the child process uses printf() statements.. although if the child uses _write(), the output is redirected to the pipe correctly. I ...Show All
matthew1564 problem reading uuid generated by VS 6 (C++)
We are porting our project from VS6 to VS 2005. Here are issues we are facing. Our software creates objects. These objects contain unique identifiers (UIDs)_ generated by VS 6. We write those objects to a binary File using Microsoft's serialization in VS6. When loading those files in VS 6, everything worked fine. Running our project with V S 2005: -When ...Show All
BG77 How to initialize an independent display using CreateDC
I am trying to initialise a second display as an independent display on my machine using: CreateDC("\\\\.\\DISPLAY2", NULL, NULL, &demode); but I keep getting error code 0x709. The "\\\\.\\DISPLAY2" is the string returned from EnumDisplayDevices The devmode structure has been initiailised with basic information about the display (height, width, freq, color depth) which I know works with ChangeDisplaySettings if I extend ...Show All
Philipp Henkel dont understand forloop
#include <iostream> using namespace std; // So the program can see cout and endl int main() { // The loop goes while x < 10, and x increases by one every loop for ( int x = 0; x < 10; x++ ) { // Keep in mind that the loop condition checks // the conditional statement before it loops again. // consequently, when x equals 10 the loop breaks. // x is updated before the condition is checked. cout<< x <<endl; } ...Show All
k_karavadi 'exception' : base class undefined
#pragma once #include <exception> class CBaseException : public exception { public : CBaseException( void ); ~CBaseException( void ); }; This class compiles fine usinfg .net2003 but fails with this message in .net2005 d:\projects\atest_2005_p\atest_2005_p\baseexception.h(6) : error C2504: 'exception' : base class undefined Is there a solution thanks , this will work and I ca ...Show All
RonDesta C++ Support Library in Visual C++ 2005 Beta 2 (Express edition)
I have Visual C++ 2005 Beta 2 (Express edition) installed. In the help for VC++ I found a topic about the “C++ Support Library”. It requires some header files ( <msclr\lock.h> for example) from a folder named “msclr”. Unfortunately I cannot find those headers anywhere. My question is: Is the “C++ Support Library” part of Express edition of VC++ 2005 Beta 2 That is correct. I just took a loo ...Show All
AJerman Multithreading
Is it possible for a master thread to force abortion of pending IO in a slave thread, as with signals on Posix. Win32 only, no .net bullshit please. Thanks, - NK I figured it was an API that narechk was creating thats why I suggested hooking. That way the user won't need to use your wrappers for all I/O operations. But if you are already wrapping the I/O then you don't need to hook. Your API shouldn't su ...Show All
pmquan Problem when i compile a simple program
I type the following code: #include <stdio.h> #include <conio.h> void main() { printf( "hello" ); getch(); } and this is the error message after i compile it: ------ Build started: Project: c++, Configuration: Debug Win32 ------ Compiling... Inthu.c d:\documents and settings\bui huy hoang\my documents\visual studio 2005\projects\c++\c++\inthu.c(7) : warning C4996: 'getch' was declared deprecated d:\program files ...Show All
