Answer Questions
Lance199 DateTimePicker Format changes from Time to Short Date
I have a number of DateTimePicker controls, some set to dates, some set to a format of Time. The controls are all embedded in dialogs. I created the controls by dragging the DateTime picker from the Toolbox and then set the Format property appropriately. I have noticed that the Time format will reset spontaneously to Short Date. Is there a known problem with the format for the DateTimePicker or is there anything I can do to keep the format the ...Show All
VTDanoKim Viewing GIF Frames separately
Hello, I am looking for a way to load a multi-framed image such as a GIF animation and to display each frame when a certain button is clicked. What I mean is if I have a GIF file which contains 4 frames, I want to create a HScrollBar that'll control the frame currently showed. * (In Visual C++ 2005, of course) With Thanks, Gal Beniamini. ...Show All
Yogi Verite Round Library Function
Hello, Is there a 'round' library function in VC++ This function should be able to give results like the one below round(0.234,2) = 0.23 Thanks, Whizman If you are using .NET, you can use Math::Round If not, then there's no direct CRT function that'll do that for you. But it shouldn't be very hard to write your own. I implemented a simple round function. There could be accuracy differences depending on the nu ...Show All
Karol Rewera invoking cl.exe using CreateProcess
I have a program which uses the cpp to parse input files. It invokes cl.exe using CreateProcess. However, I get the errormsg about mspdb80.dll. I have run vvcvarsall.bat, and from the command line it works normally. I can sove the problem by copying all the necessary files of the C compiler into a different folder and adding that to the path. Is there perhaps a more elegant solution I think that simple solu ...Show All
bjun _strtime C3861 error
Hi guys, sorry to ask such a newbie question but when I try to build code which uses the _strtime() function I get a C3861 error. The time.h header is included and so I can't understand why the compiler would not recognise the function. What is even more confusing is that when I right on the offending function and select go to declaration it takes me straight there, so I'm thinking 'well. the IDE knows where the header is so what's the problem ' ...Show All
ronhawker Visual C++ lagggggggg
I am currently looking into which language I should stay with, I feel like C++ is being abandoned and C# is being moved in. What do you guys feel is the better language for game development and 3D tool design, ie CADs and etc. I meant, will c++ become less popular and c# take over the game industry i mean that which are the best languages/ frameworks for editing in 3d ...Show All
mister.manners Policy based implementation and multiple inheritance class size
While implementing a policy based class, I've noticed a strange behaviour on VC++ 8 concerning the size of a class inheriting from more than one class. Consider the following example where class CSize inherits from 4 empty classes : class A {}; class B {}; class C {}; class D {}; class CSize : public A, public B, public C, class D {}; In this sample, sizeof(CSize ) == 3, while I was expecting 1. As I could not explain it, I've ...Show All
Anutthara help with error C2872: 'IServiceProvider' : ambiguous symbol with C++ code
Hi, I am getting the error ......ServProv.h(93) : error C2872: 'IServiceProvider' : ambiguous symbol with the following code. file.cpp #include "stdafx.h" using namespace System; using namespace System::Runtime::Remoting; #import ".\RemotableObject.tlb" namespace mynamespace { class myclass { ... } int _tmain(int argc, _TCHAR* argv[]) { &n ...Show All
Speedy2000 Link Error /w VS05 b2 (managed C++)
. Here's what you need to do from the IDE. Take Project Settings - Linker - Input, and set "Ignore all default libraries" to "No". You might also need to remove $(NoInherit) from "Additional dependencies". Now, you should be able to link your projects properly. Alexandrei wrote: How do you change the options of the Linker I am using Visual Studio .NET 2005. I am having ...Show All
Shawn Twenter opening a window
im trying to make my main window open another window that i made (in the same project) by the press of a button.. and then i need the other window to give back all its info to the main window when done.. its a very simple app program im just trying to get the basics down.. anyhelp Hello. Just a question: how do i find the Form1 Constructor Also, what do you mean by "// vs stuff here" and "// other stuff here" im pretty ...Show All
Anr Can't override ToString().
I have the following class: #pragma once using namespace System; namespace AutoTickets { ref class Model : System::Object { public : Model( void ) : M_model( "" ) {} Model(String^ model) : M_model(model) {} property String^ model { String^ get() { return M_model; } void set(String^ p_model) { M_model = p_model; } } virtual String^ ToString() override { ...Show All
Rod_Kane How can I solve below template partial specialization problems?
I want to specialize template when return type is void. ========================================== template <char const*& T, class U, class X> class CSpecialize { public: CSpecialize(X (U::*pfunc)()) : m_pFunc(pfunc) { } X (U::*m_pFunc)(); }; template <char const*&T, class U> class CSpecialize<T, U, void> { public: CSpecialize(void (U::*pfunc)()) : m_pFunc(pfunc) { } private: void (U::*m_pFunc)(); }; ...Show All
Anthony Dewhirst winsxs load fail.
when i start to debug my app by VS2005 . tha app shows " The application failed to initialize properly (0xc0150004). Click on OK to terminate the application" then i saw output window. it shows SXS: Unable to resolve storage root for assembly directory x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c in 2 tries SXS: RtlGetAssemblyStorageRoot() unable to resolve storage map entry. Sta ...Show All
KttocS 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 I have already download the DirectX SDK, but, it needs to include the windows API using windows.h. Platform SDK is too large, i need know if this will provide me of all those include files to this work. I'm making an application for my degree project, using video capture. Thanks if ...Show All
sunarc Newbie Question
Hello, I have just recently started programming in VC++ and i am currently making my first project using this Software. I would likfe to ask if there is any syntax or function that converts a hexadecimal value to Decimal/Binary Value Thanks in advance! I presume that you have a string of hexadecimal characters for which you want the decimal representation Not too hard... const char *hexStr = "8D0F ...Show All
