Answer Questions
Dazzler executing windows commands from vc++(eg: net user)
hi, i want to execute the windows API command "net user" from vc++. i want to store the result in a text file and retreive the home directory value . thanks i would like to keep some files in the home directory of the user and i need them for some purposes, can u tell me how can i use%home%, thanks gbabu17 wrote: i want to execute the wi ...Show All
joeslide trackbar missing?
Hello, I have only just started to look at Visual C++ 2005 Express but cannot find a trackbar ! There is one with Visual C# 2005 Express so am I missing something Incidentally I cannot see a Visual C++ newsgroup at news.microsoft.com - will there be one Cheers Geoff Answering my own question! have found the trackbar and also microsoft.public.dotnet.languages.vc. Cheers Geoff ...Show All
Markus1972 Help w/ Code
//WaveIn.h #ifndef _WAVEIN_H #define _WAVEIN_H #include <windows.h> #include <mmsystem.h> typedef struct { WORD wFormatTag; WORD nChannels; DWORD nSamplesPerSec; DWORD nAvgBytesPerSec; WORD nBlockAlign; WORD wBitsPerSample; WORD cbSize; }WAVEFORMATEX; MMRESULT IsFormatSupported(LPWAVEFORMATEX pwfx, UINT uDeviceID) { return (waveOutOpen( NULL, // ptr can be NULL for query uDeviceID, ...Show All
Eric Kauffman Reference to C# form library causes entire C++ app to recompile
We are adding C# form support to our main application (MFC C++). Question A) I have created a new form library and added a reference to the library to the main application project. Now whenever there are any changes to the form library (any change to any form or user control), the entire C++ project must be re-complied. The recomple is killing us because currently only 1 of hundreds of source files even use the new C# forms. ...Show All
Charity_student09 How Can I Change The window color
Good Day. I Want to ask you for an easy way to change the window color on C++ ..IN MFC And Thank You(Donnot give me a Link to MSDN ) What library do you use ATL, MFC, plain Win32 Here are the links to the MSDN In the MFC you can use message refelection: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/_mfcnotes_tn062.asp In the case of Win32 API you have to react on WM_CTLCOLOR... messages. i.e. http://msdn. ...Show All
iknowstuff VCBuild task not detecting out of date project
I have a problem where a command line build of a *.vcproj file using the VCBuild task returns "BaseLib - up-to-date" when it really is not. BaseLib.vcproj produces the output library BaseLib.lib, and one of the *.cpp files in the project includes BaseLib.h. BaseLib.h has a last modified date of 5/30/2006, and BaseLib.lib has a modification date of 5/16/2006. The project is out-of-date right BaseLib.h *is* explicitly in the project. ...Show All
Paul Wheeler duplicate definitions on stl::queue
I'm wondering why I get this message when I try to use a stl queue in a managed class. I'm using .net 1.1, so i can't use the new 2.0 typed queue. error: error LNK4006: "class std::queue<short,class std::deque<short,class std::allocator<short> > > * (* ALDaps::que)[64]" ( que@ALDaps@@3PAY0EA@PAV $queue@FV $deque@FV $allocator@F@std@@@std@@@std@@A) already defined in main.obj; second definition ignored So, I added ...Show All
Spacetime Unverifiable Assembly Error
My application is a vb,net 2003 web service application. About 1.5 years ago, I got some help from MS support for adding autoproxy detection to my application. This consisted of 2 c++ projects called autproxy and GetIEProxy. These rountines helped my application to determine any proxy servers that needed to be addressed in my web calls from a client computer. This worked fine for a while but now I am starting to have problems such as "u ...Show All
Wiroj help Any assistant for VC 2005
I get used to the assistant X, but found it not avaliable for 2005 version What kind of assist software do you use to program Thx Thank you ,but the msdn says like following. I will try to find some latter. Code Snippet Inserter The Visual Studio 2005 Code Editor provides a Code Snippet Inserter that allows you, in a few mouse clicks, to insert ready-made blocks of code into the active document. The procedure to display t ...Show All
shama Creating views for static splitter
I have a working shell namespace extension with a listview in the shellview window in the windows explorer. Now, I want to make a static 2 row,1 col splitter in the shellview with the previous list in a top row and another CWnd derived class in the lower. The problem occurs later, read on. Here's what I have in the CreateViewWindow: STDMETHODIMP CIsdShellView::CreateViewWindow(LPSHELLVIEW pPrevView,   ...Show All
Ad Kalaf
. I am not sure if that is a bug. I just took a brief look at the standard (section 21) and it mentiones that string is the one containning the operators. I am not sure where in the standard does it say that iostream should import all string operators. I might be missing something so it would be great if you can provide me with more details. Thanks, Ayman Shoukry VC++ Team If you use strin ...Show All
JAMES ESPOSITO ATL80.DLL from VS2005 RTM won't start on NT4
If an attempt is made to load the RTM ATL80.DLL on NT4, an error message is shown complaining that the import GetLongPathNameW could not be found in KERNEL32.DLL and as such, the process cannot start. As the MSDN docs for GetLongPathName() show, it's very simple to work-around this problem in source-code (ie static library) by including NewAPIs.h. However when linking with ATL80.DLL this solution is not possible, since ATL80.DLL does not d ...Show All
Carles Garcia Another wrinkle....
I'm trying to recompile some old code that was formerly working under vs6, and I'm not having any luck in vs2003. Specifically, #include <strstrea.h> #include <fstream.h> However, the error I get is "Cannot open include file: 'strstrea.h': No such file or directory". I have other C library includes that work okay (e.g. <stdio.h>) so I'm not sure what else to try. Any Thoughts And, yes, it' ...Show All
dilsiam VS2005 Linker /ENTRY
We have a bunch of legacy DLL code which uses makefiles to build. The DLLs all use /ENTRY:SomeOtherName rather than the default and I've encountered a problem in VS2005. If I put the /ENTRY switch on the linker command line in the makefile, it doesn't seem to work - when I attempt to load the DLL via LoadLibraryEx(), I get an entry point not found error (0x7f). If, however, I put the /ENTRY switch in the LINK environment variable, the DLL loa ...Show All
NeedHelper error C4368: mixed types are not supported
I declared a member wchar_t sometext[05] inside my managed class. The code does not compile and I cannot figure out why because this error message is not explained in the online help. What is the difference between the implementation of wchar_t letter1, letter2, letter3, letter4, letter5 and wchar_t sometext[05] The former is allowed but the latter is not. Please help. Chris Correct. What you need is eit ...Show All
