Answer Questions
kennm CWinThread derived Object and Menu trouble
Hello I can't find my previous question so i'll re-ask it; I created few WinThread derived objects With which i send and receive info by posting messages. When i click on the menu While my threads are runing they seems to crash or to terminate their message processing. The thread being terminated not in a clean manner it causes my program to randomly behave. I use these this thread with multiple Windows and in a various range of way but only the menu affects their stability. Does anybody can lead me on the right path to overcome this problem Thanks a lot. hello einaros I Derived my threads from CWinThread assuming the data exchange and the message procedure would be safely managed. As it is the first time ...Show All
Ofir Epstein QuickWatch Expression Type column hidden
Is there any way to see the Type of an Expression in the QuickWatch window without resizing the Type column with the mouse every time the window is opened I seems that the newfangled TREEGRID1 (ClassNN) control neither responds to a {Ctrl}{NumPad*} to automatically resize, nor does it remember its last settings always defaulting to show me the first 5 or 6 letters of the type name (usually std::v or boost:). As the new floating tooltips are also keyboard disabled I find that I'm stuck between a mouse and a hard place. Am I overlooking the obvious Many thanks, AS Hi again, Could anyone tell me where I could find out whether this was a registered bug in VS2005, or perhaps in the .NET framew ...Show All
sathish_indian error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
sctwest Vista and Native
Will Windows Vista run C++ native code How My apologies. I didn't notice the second question, "how" -- hence my short answer Sorry, its my fault. I added that later. Yes Vista is no different than XP in its ability to run both managed and unmanaged code. The core of the Vista operating system is based off of the Windows Server 2003 codebase--i.e. it is not a managed code rewrite. Much of the new Vista functionality on top of the OS, however, is written using managed code. Brian ...Show All
Newt.Net Build two configurations of the same project in the same solution
Here is a simplified version of what I am trying to do: solution.sln contains project1.vcproj which has two configurations Release|Win32 and Debug|Win32 and project2.vcproj When I build the solution I want three things built: project1 with the Release|Win32 configuration project1 with the Debug|Win32 configuration project2 with whatever my current configuration is. In a nutshell, how to I build two different configurations of the same project file in a single build step As a fist step just show me how to do that, for bonus points show me how to make configuration dependant dependances, ie project2 depends on project1 Release|Win32. Be advised that I have already ruled out nmake /make for other design reasons. Thanks in advance. Bat ...Show All
Bob Bedell Project : error PRJ0002 In a CLR Windows Forms Application
Hi, when i make a new CLR Windows Forms Application and try to compile it I get this: Project : error PRJ0002 : Error result -1073741819 returned from 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\resgen.exe'. Here is the Build log: Build Log Build started: Project: Ex1_05_1, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\Documents and Settings\Mito\My Documents\Visual Studio 2005\Projects\Ex1_05_1\Ex1_05_1\Debug\RSP00000135603528.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\Ex1_05_1.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" / ...Show All
Sam Williamson C++ output to excel
Please, someone sample code on how to send C++ output to excel Thank you I hope this helps. http://msdn2.microsoft.com/en-us/library/s5e903k3(vs.80).aspx You didn't say if you want to do it using MFC or C++/CLI. If it's MFC please see this article http://support.microsoft.com/kb/179706/EN-US/ If it's C++/CLI, r ight click the solution in the solution explorer, select "References" and in the "References" dialog click on "Add new Reference" and select Microsoft Excel Object Library from the resultant dialog. Once you have a reference to the Excel object library you can create and use objects from the Ex ...Show All
KristianSv Converting System::Byte to System::Char
In a C++/CLI app, what is the correct way to convert a System::Byte value into a System::Char For example: the System::Byte stores the number 65. How do I convert it into a System::Char of 'A'. You can simply Byte to Char Byte b = 65; Char c = b; //Simply assign Console::WriteLine(c); // Other way without using variables Console::WriteLine((Char)65); Sorry it came accidentally....I just went back to Native C++. It has been corrected... Thanks a lot for pointing it out Sarath. wrote: Both Byte and Char are having same size. No, a Byte is a single byte while Char is a 2-byte unicode character. ...Show All
Ron Liu how to hide cmd (command | dos) window...
. i am using system() function to run comands/apps and collect the return value. now, whenever i call system() function, a command(dos) window is being popped up and remains on screen untill the system() function returns. Any ideas / methods to hide this dos window while running system() u r rite!; but the problem is i shall have to run commands / applications one after another(in a sequence and not asynchronously); and more over i should be able to get the return values of applications that have been run... so ... H W Use ShellExecute ( http://msdn2.microsoft.com/en-us/ms647732.aspx) or CreateProcess instead of system. What gr8 da... Uncle Thotti is calling you Rak ...Show All
Patty C Link Step Always Generates Different .exe Checksum. Why? How to disable?
I'm using Visual Studio 2005. I created a simple helloWorld console application. Each time I link, helloWorld.exe has a different checksum. Only 1-3 bytes typically differ. If I set my clock back, and I can time it so that my link step occurs on the same second as it did last time, then the checksum remains constant. I'm not using any __TIME__ or __DATE__ directives. It's important for my company's revision control system that binaries with no changes in the source code always are the same, so that only "true" changes get checked in. Does anybody know why this is happening, or how to make the binaries not depend on the time of the link step, so they'll be consistent I can't - I don't have a VC ...Show All
Nickthegreek error LNK2019: unresolved external symbol
I am using visual studio 2005 express edition and am having trouble linking a tutorial code from a book that I use. I have directx SDK(August 2006) installed with the Microsoft platform SDK. All the lib files are linked properly and I have followed the step to enable win32 applications in visual studio 2005 express. However when I build the code I get 2 LNK2019 errors 1>D3DInit.obj : error LNK2019: unresolved external symbol "int __cdecl d3d::EnterMsgLoop(bool (__cdecl*)(float))" ( EnterMsgLoop@d3d@@YAHP6A_NM@Z@Z ) referenced in function _WinMain@16 1>D3DInit.obj : error LNK2019: unresolved external symbol "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)& ...Show All
adunak Debugging "View Designer" IDE action
When the programmer double-clicks a component header file in a CLR class library or Windows form designer project, the "View Designer" action is implemented and a design time view of the class is presented. I have had problems with this, such as error messages from the designer, which leads me strongly to believe that the class being designed is actually instantiated as an object using the constructor of the class, and code in the constructor is executed. Is there a way to debug this "View Designer" action so I step through the constructor code which is actually being executed as it is occurring I am not talking about actually instantiating my component class by dropping the component onto a Windows form at design time ...Show All
RayCan Taking a C++ class...
I'm partway through a class on C++, and, naturally, we have a project due for the term. I'm a DJ by trade, and have an extensive record collection. The project I've chosen is to build and maintain a program that can keep track of my collection (based from the professors example idea of a CD collection). I'm doing fine with the original interface, menu, classes, etc. The problem I'm having right now is, where do I store the data I'm considering using an Access Database (since a) I have Access 2003, and b) I don't really want to do anything too complicated since this is just a school project). I don't know, however, how to write code to interact with the database. I've used SQL before when doing Cold Fusion programming, but not for an ...Show All
MillBear Creating an Object
Hi All, I have class, which is used for synchronization purpose the class is declared as follows Lock(CriticalSection& crSection) : m_CriticalSection(crSectio) { crSection.Lock() } The code will unlock the critical section in it's destructor. I'm using the class as follows in another class which has an critical section object Lock(m_CriticalSection); // Note that I'm not specifying the object name But it's saying that no default constructor available It's working fine for a class like this class CBase { public: CBase(int i ){cout<<"Ctor";} ~CBase(){cout<<"dtor";} }; int main(int argc, char* argv[]) { CBase(10); return 0; } What would be the problem The reason for the error is that somethi ...Show All
B M E Text field question
Hi Folks; I have a text field that gets its contents from a SetDlgItemText call. The text goes beyond the length of my text field so I was wondering if anyone can point me to a list of flags so that I may allow the user to read to the end of the text field. Again I confess my ignorance. Is there a website that has the flags necessary to accomplish this I'm writing my resource file by hand. A text field, as in a label Consider replacing it with a read only edit box. That way the user can select the entire content. By hand Why You should consider downloading Visual Studio Express if you haven't got VS. Anyway, this is a sample resource string for a multiline textbox with horizontal and vertical scrollbars, as well as ...Show All
