Answer Questions
Arnold Schrijver EnumPrinters in Service doesn't work
Hi All, I read in one of the forums that an EnumPrinters() for Network printers when used in a service , does not work because the service is running under SYSTEM account. This is the problem. can any of u give me some inputs on how to solve this.I need to use EnumPrinters() from the service. are there any access rights that need to be given to the SYSTEM Account If yes, how do we set them Any solutions Thanks for the help. ...Show All
Videojumper WM_SIZE message problem
Hi: i just begin to learn MFC,and i got a problem about WM_SIZE message.i start a new VC6 MFC Wizard project ,use all the defaul setting of the App wizard,except it is a single doc project,and the base class of the CTestView class is CFormView instead of CView.after the frame work is constructed ,i add a control to the form view,whatever control,say a button,whose id is IDC_BTN_TEST.i'd like to keep the size of the button the same wi ...Show All
Chrisky Any way to get a list of QFEs available?
Is there any way to get a full list of QFEs (quick fix engineering patches) for Visual C++ 2005 It would be nice to browse through them to see if any are applicable to my situation. If you think this is a good idea, please vote http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx feedbackid=244c0587-f75d-4684-9783-8e959b39275f That's great - I'm glad another thread already exists, and there' ...Show All
Mariano Iglesias RC2147 : SUBLANGUAGE ID not a number error in VS 2005 Pro
I have found a serious problem with the Visual Studio 2005 Professional resource editor. I am based in the UK (this is crucial), and when I add a new resource to an MFC project, it is assigned the English (United Kingdom) language by default. Unfortunately, the following line is added to the .rc file, which will not compile: LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_NEUTRAL The resource compiler will produce the following: error RC2147 : SUBLANG ...Show All
MylesR setting compiler options programmatically.
I am trying to simplify my life and set up all compiler options programmatically in a single file where I will see what is going on. I created a .cpp file and copied an MSDN function in there that is supposed to do it. My intention is to call this function eventually from the main routine. So far all attempts to compile the file failed with the errors described below. First the code: using namespace System; using namespace System::Object; using ...Show All
Mike Stall about MFC
I begin start to learn MFC programming. I feel the MFC message mechanism a litter different from the win32 message mechanism. I feel very confused. now , who may tell me some webs about MFC message mechanism. I want to know what message is sent when start running a window program. what is order thanks. I would suggest reading books about MFC. Also, the samples at http://msdn2.microsoft.com/en-us/library/482ck6x8.aspx are extremely bene ...Show All
Maddytk Platform SDK help files
I downloaded and install the latest Platform SDK, and compiled a sample, it works fine. (under Visual C++ 6) Now I'd like to visit the Help files to get more information about the APIs and other useful information. However I don't know have how to view / open these help files (Help 2). After a desperate huge search over the Internet, I rely on this forum to get some help. Thank you. Ok thanks ...Show All
JD3 inline function
I have a set of functions that I'd like to make inline using VC++ 2003. The functions are compiled sparately from the calling function. I've attempted by placing inline before the function name and in the prototype statement but the function is not found. Do I need to use IMPORT, extern or something like that I can't seem to find an example anywhere to emulate. Thanks, RON C FUNCTION: inline int index_4 ( int jstr, int ks ...Show All
Paul Chin saving configuration
can anybody give me a trick about how to save a configuration of a program for example: i've typed something in a text box and closed my program. i want that my typed text appear when a load my program again. i've thought in log files, but i don't know if this is a good way. thanks. Using the outdated INI File apis. If you are using VC++.NET 2005 then you should have User and App configruations XML files. Certain technologies such ...Show All
besserer Question About Headers
I want to use VSC++ for programming C. I know C isn't fully support cause the lack of MS deciding not to add the c99 which i believe is stupid. But I was wondering is there a way I can use my own C headers and libraries to build that are c99 and use it with VSC++. I have the Visual Studios Professional version. And change the compiler cause i don't wanna think i spent so much money for this and I can't use it. Cause of this problem. ...Show All
Steven Barden output format......
Hi all, I dont know if I am in the right section or not....any way, let's try my lock .. I wanna write a program that compute a formula which depent at the value I will enter..... this is too easy but I want the output be as vector on the x-axis & y-axis ... how I can do this format . Thanks alot Reta I just hope thai I can help you. OK......I will try to drew what&n ...Show All
Yabby How to call managed dll from the unmanaged c++
Hi I just started working C++ and microsoft window environment. I have read article like "Managed/Unmanaged Code Interoperability", but I don't understand. Is there someone can help me Condition: I can't use .NET feature like CLR in the c++. I have a managed C# dll declared as public class RendererObject { public RendererObject(RendererType rendererType) {...} public void RenderReportLib(string xml, string templa ...Show All
NeedsHelp Visual C++ Express And DirectX
I want know if is possible to develop DirectX applications using Visual C++ Express ... How I can use the DirectShow utilities inside Visual C++ Express Thanks It is possible to use Visual C++ Express to develop applications that use DirectX: but you will have to separately download and install the DirectX SDK: http://msdn.microsoft.com/directx/directxdownloads/ And probably also the Platform SDK: http://msdn.microsoft.com/library/defa ...Show All
rohan_har upper_bound()
I'm using Visual C++ Express edition at the moment. I'm using the STL function upper_bound but under debug release version I'm having issues with the function. In xutility the following block of code is defined: template<class _Pr, class _Ty1, class _Ty2> inline bool __CLRCALL_OR_CDECL _Debug_lt_pred(_Pr _Pred, const _Ty1& _Left, const _Ty2& _Right, const wchar_t *_Where, uns ...Show All
Umesh Sinha C1083: Cannot open include file: 'resource.h'
Project converted from VS.NET 2k3 to VS2k5. Receive the following error in several projects (6/21) that build fine in VS2k3. The include file exists, is part of the project (auto generated by VS2k3). Anyone see this Thanks. Harrier It's in the project folder. I do believe it is a bug. There are also other bugs on the C++ side of IDE that ...Show All
