Answer Questions
Blood std::vector::resize bug
This is the declaration for the second form of std::vector::resize (in VC 2005): void resize( size_type _Newsize , Type _Val ); Note it passes by value, not by const reference. This is different to every other function in std::vector, and means you cannot construct a vector of items marked with __declspec( align( n ) ). I modified the vector header to use a const reference instead and it seems to work fine now. The Intel C Compiler does not seem to have this problem, and I've just checked the GCC header and it passes by const reference. I can't really see any reason why you'd want to pass by value, so I'm presuming this really is a bug. Does anyone in MS read these forums cfp c_f_p: Are ...Show All
ss0979 Does VS2005 include Windows Installer?
Does VS2005 include Windows Installer If so, how do I run it to create an installation package for users to install or upgrade my products Using your clues, I found some of what I wanted in only 15 minutes; I do not consider this "easy". And I found it on MSDN, as you suggested, but not in the VS2005 local docs. The latter, by the way, has hundreds of pages describing the syntax of Windows Installer, which I had read before I posted, but nothing on how to use it. I have several problems with the current doc system: 1) It is syntax-oriented. Unless you know the product/function/protocol name, etc. in Microsoft-ese, you won't be able to find it without extensive searching. 2) The indexin ...Show All
Pure Krome Problem with WinINET HTTPS Post
Hi, I have a problem with simulation of HTTPS post using WinINET. I use the following code to post data: instance->m_hInternet = InternetOpen( agent, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); instance->m_hSession = InternetConnect( instance->m_hInternet, server, INTERNET_DEFAULT_HTTPS_PORT, L"", L"", INTERNET_SERVICE_HTTP, 0, 0); DWORD secureFlags = INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLA ...Show All
pixelord Reporting Visual C++ bugs to Microsoft
I have reported a number of Visual C++ 8.0 bugs to Microsoft at their bug reporting site at https://connect.microsoft.com/VisualStudio/Feedback . Currently, and for the last month and a half, I have two bugs which I have reported directly to Microsoft, after being ignored on the web address above, which still have not been resolved. Other bugs which I have reported to Microsoft at the web address above have gotten comments from Microsoft ranging from an arcane and onerous workaround, which no one can rightfully use, to "Thanks for reporting the issue! One of our team members is currently looking into it", and then the bugs are closed with evidently no acknowledgment that the bug actually exists or needs to be fixed or that anybod ...Show All
AndrewAPlus C++ activeX dll to be loaded on Web client
creating an axtiveX dll in VB6 for a web browser - which would run on the client's PC was very easy - use an activeX dll project and then use the setup and deploy tool which created the prototype html object to use. I would like to create in visual studio 2005 an activeX dll (not a control with displays) which just has write properties which is loaded to the client's pc. Using the ATL project I was able to create a simple dll - which I can reference it into a VB6 project and run it OK. Using the visual studio 2005 deploy I was able to create a CAB file for it. I have no idea how to get it into my web page as the classid etc. is gone. the dll is: testATL the class is: OutStuff Which have testATL.cpp // The mod ...Show All
Dea Cris Visual C++ engine is not properly installed
Hi, Can someone help me please, I was working with my Visual Studio 2005. And the next day, It cannot build any project, I am using C++, when press the build menu, I got this error: 1>------ Build started: Project: Gui3, Configuration: Debug Win32 ------ 1>Error: the Visual C++ Project Engine is not properly installed. The build cannot continue. Please repair the Visual Studio installation. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I have tried to uninstall and reinstall 3 times, but the problem remains. Please help me, My project dateline is very soon :( .... Thank you Please post this question on the Visual C++ forum: http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=8&SiteI ...Show All
Doug Stoltz fatal error LNK1181: cannot open input file ",.obj"
I compiled my program after doing all those settings in "Project Setting Menu" but i got an error : fatal error LNK1181: cannot open input file ",.obj" I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error. If anyone know about the settings in VC++ then plz reply any help will be of great use Thanks in advance Check you linker settings. Did you placed a comma into one of those fields Separate entries with a semicolon. hello i'am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it's very urgent for me : the message is ...Show All
Ron L vector of records of varying formats
I have a file with a variety of record formats and I need to create a vector of the records. The only field in common among all the formats is the record type code. I don't need detailed code but if someone could help remind me how to do this I expect to be able to figure out the details. I have created a sample program for myself in which I have a base class and derived classes. I create a vector of the base class and I can add instances of derived classes to the vector. I can't retrieve the items because they are not the correct type. Am I however headed in the correct direction I can of course do something relatively crude such as create an array of void pointers but I want to use a type-safe solution and such. I know this i ...Show All
sdj_dk Accessing USB with VC++
Hi! I m doing a college project and i have 2 access an analog signal via USB port! I have used C/C++ to access serial port but dont know how 2 do with USB. Can anyone give me a code snippet to access USB Accessing USB devices will require you to either write your own driver, or get a generic one such as http://www.thesycon.de/eng/usbio.shtml . It depencs on the device. Does the device have a driver for it Is there documentation of the device for programmers This may help you. Communicating with USB Devices Can I find some C/C++/VC++ code samples to access a USB HID class device As far as I know, it does not need to write ur own driver to access ...Show All
Alex Yakhnin - MSFT Resources Path String
I have embedded an AVI file into my project as a resource. I want it to play it in a Windows Media Player object using the <player>.URL property. How do I supply a url for my example.avi file when it is in my resources folder You can use the animation control to play the AVI! Access_Open can take a resource ID Martin Richter wrote: You can use the animation control to play the AVI! Access_Open can take a resource ID Newbie Q.: What is the animation control I can't see it in the .NET Framework or COM component toolbox items list. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/animationcontrol.asp Thanks. The ...Show All
ultra03 trying to _not_ return full paths not working
so the /FC compiler option is not set but I am still getting the full paths returned when using __FILE__, using vc++ 2005 express. is this a bug or is the /fc used somewhere else If so: Why isn't this documented You should also check that you are not compiling with /ZI (support edit-and-continue) as I believe that this requires /FC - if you don't need E'n'C you can use /Zi instead of /ZI. ...Show All
CharlieRussell Giving the user a language option in VC++??
Hello, Could any one please explain how it is possible to give the user the option to change the language of the status bar,main frame etc during runtime I create a dialog box in an SDI based MFC-application(using Visual Studio dot net 2003) and have a list box in the dialog box,with language options such as "English","French","German" etc.The default language is english,but if the user selects German,then on pressing ok the language should change to german. I heard it can be done by using "String resource".A little detailed explanation would be highly appreciated. Thank you Check the properties for the resources you can change the language there with a combo box. If you are using a german ...Show All
INTPnerd DLGINIT structure
I want to create the dialog dynamically in memory. The dialog contains some ActiveX controls. According to the description for CDialog::CreateIndirect, I have to provide a DLGINIT resource. But I can't find the details about this structure. Following is a sample of such structure in a .RC file: ///////////////////////////////////////////////////////////////////////////// // // Dialog Info // IDD_XXXDIALOG DLGINIT BEGIN IDC_YYCONTRO1 , 0x37a , 298, 0 init data 1 IDC_YYCONTROL2 , 0x37a, 186, 0 init data 2 0 END I could load the resource and create a dialog. But I can't generate the data on the fly since I don't know the structure, for example, what is the value 0x37a Thanks for any info. ...Show All
EvilOneSD Avoiding "Additional Include Directories" for a project within a solution
Using the following version: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) I have a C++ (unmanaged) solution with several projects within it. One (and only one) project is dependent on the rest of the projects within the solution. This project requires the header files for its dependencies. Is there a way to tell this project to look at its dependency folders to find the header files, rather than typing in each dependency folder into the "Additional Include Directories" configuration parameter for the project properties Thank you. BogdanZ wrote: I don't recommend sharing through source safe as this will lead to duplicate files all over the place which will g ...Show All
sharindenver Facing a problem with editing a text file using C++
Dear all, I am writing a network project that contains an error logging routine in a sequential text file. I am using native win32 C++ with Visual C++ 2005 express edition IDE on windows XP pro. My problem is that whenever I try to open my log file the second time to add more log data somewhere (not appending) in the file, all the contents of the file will be changed to rubbish and unreadable data. I tried with different opening modes (like ios::out, ios::ate ios::app) without getting successful. The program is: Thanks for your reply. I think I have made my request very complicated to be understandable by you guys. However, I will put it in this way: Simply, I have an html file that contains a some log data as f ...Show All
