Answer Questions
Kindred2k6 "Correct" Workerthread Termination
Hello, I have used worker threads for a long while and yet always had and still have problems with the "correct" way such threads should be killed for premature termination. They may have files open, are in the process of allocating global memory or doing any number of other things. The closest I got to "correct" is to signal the worker thread through it's priority if it's services are not required anymore for terminati ...Show All
Soulhuntre Problem seeing my window
I just got Visual Studio 2005 and I tried to make a program using Win32. The program is just displaying a window. When I compile the code I get no errors at all, but nothing happens after that. My window doesn't pop up. I made sure that I had the functions: ShowWindow() and UpdateWindow, but apparently that wasn't the problem. Please help. nicksmaddog wrote: Not to try and argue, but I've never needed ...Show All
sed108 Active X not working from webpage without Studio installed
Hi all, This is my first Active X component, so I may have made some basic mistakes. But here is what I have done so far... 0. I am using Studio 2005. 1. Created a real basic (AboutBox) MFC Active X Contron using VC++. 2. Created a CAB file project. a. Included the OCX and and INF file to the cab. 3. Created a license file using LPK_tool.exe. 3. Created an HTML page that will access the Active X. And display the AboutBox when the button is pre ...Show All
Jyh-Cheng Chen MFC OnShowWindow issue
Hi I have some problems with my MFC application. Working on a small setup program using a wizard. Normally i use .NET but i must do this in c++ cause the setup should not be depending on the .NET framework. So what i did: create a dialog for each page in the wizard. The show the dialogs with CDialog::DoModal() .... this works pretty good, only looking for some kind of event to know the dialog is visible to the screen. Need this for 2 di ...Show All
PredragB Mixing ml64.exe and Win32 C++: is it possible?
I am currently running WinXP Pro on a dual AMD Opteron system. The development project I'm working on is a high-performance CAD/graphics program. The project is mostly Win32 C/C++, but we also have many specialized performance-critical subroutines hand written in assembler. These assembler files are part of the Visual C++ project and each has a custom build-step that uses ml.exe to compile. We would like to take advantage of the 64-bit registers ...Show All
ThisObject CString char/wchar_t conflict
I'm encountering a strange issue that I have not seen before. I recently built a new MFC app with VS .Net 2003. I am using the MBCS character set - e.g. UNICODE is not defined. The problem is that when I step into CString code down into the CSimpleStringT level, in atlsimpstr.h, it thinks it has wchar_t traits. However in the CStringT code (in cstringt.h), it thinks it has char traits. So, for example, I step into CStringT::Left() and see char t ...Show All
Marc Selis How to disable support for C99 extensions / force compatability with C89?
Hello, I'm working on a school project that requires use of C89 and does not allow use of any C99 or non-standard language extensions. I'm a C++ programmer that is just learning the differences in C, so I would like to just have this enforced by the compiler. As such, is it possible to disable support for the C99 extensions on the compiler I'm using whidbey beta 2. Thanks, Byron There are o ...Show All
myway C++.NET to C++ 2005 Beta2, don't work!
Hi i'm an italian developer and until now i used VisualC++.Net 2003 I 'm trying Visual Studio 2005 Beta 2 and converting my solution there are errors all around! How can i convert a Sln in VS 2005 what should i do Errors like : c:\programmi\microsoft visual studio 8\vc\include\atlcomcli.h(300) : error C2299: 'ATL::CComPtr<T>::operator =' : behavior change: an explicit specialization cannot be a copy constructor or copy assignment operator ...Show All
?everser Adding a property to a class, help please!...
Hello. Since Classwizard is gone from visual studio 2005, I cannot seem to figure out how to 'add a property'!...How can you do that Hope someone can help me out! thanks... wow..It has been a long time. Been busy and what not, just got around to coming back here...ok Brian, well as you know I'm using VS2005...I finally found teh "add property" option..in class view, but it was only for (in my project ...Show All
DarkGREY batch build over telnet and error PRJ0003 : Error spawning
Hello, I try to build my application with a batch build via telnet on another computer in our company network. But I get the following error messages when cl.exe tries to start: Microsoft (R) Visual Studio Version 8.0.50727.42. Copyright (C) Microsoft Corp 1984-2005. All rights reserved. ------ Build started: Project: SOFILIB, Configuration: Debug Win32 ------ Compiling... Project : error PRJ0003 : Error spawning 'E:\Programme\Microsoft Visual S ...Show All
netnav I am use visual c++ about 3 years. I found MFC is hard to learn. I want to return to pure c++. Is anybody likes as me?
I am use visual c++ about 3 years. I found MFC is hard to learn. I want to return to pure c++. Is anybody likes as me Use WinAPI and create C++ classes for working with this API... Doing so, (may be) you will understand principles of MFC. MFC is useful... Maybe for console apps, i can see your point, but for wrapping the windows api, MFC all the way! I'm kind ...Show All
Cristian Civera Chinese resources
Hi I have to create chinese resources for my application. To check a bit how all is working I created a chinese mfc application. If I run the application, all is shown correct in chinese. If I check the resources for example the menu in visualstudio I dont see chinese signes. Do I have to change any settings in visualstudio to see the correct chinese signes in the resource editor Thanks Peter I'm using Chinese ...Show All
dougzhoez Debugging applications problems
Hi. If I debug a very basic application compiled with .NET 2003 and I stop debugging instead of letting the program finish normally, I can't debug again. I can't start a dos prompt, calculator, etc. I have to manually reboot my PC, since the shutdown option doesn't work either. I tried to compile the same app under .NET 2003 and with .NET 2005 Beta 2 and the problem is the same. I have Windows XP with all the latest service packs and updates ins ...Show All
Bill_Gates Unicode error
when i move my code from VC6 to VC8, following code is error. WriteLogFile in Line 4367 Code: if(endcon .entry_type != VOC_ENTRY_ARRAY_END) { WriteLogFile(2, "Voc: !! 音板%d的通道%d播放 音失 , 束 件 有 置最 ", cardid, channelid); gChannelStruct[cardid][channelid].StateMutex.Unlock(); return -1; } Error: d:\work\voccard api\voccard.cpp(4367) : warning C4819: T ...Show All
Yashmak msvcr80d.dll not found
I've created a simple Win32 console application. When I try to debug it, I get the message: "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny I had the same problem when running a registry scan using Norton's Systemworks. Several file asso ...Show All
