Answer Questions
Venugopal123 constructors help
Alright, i'm working on a new application, in wich i need my own TreeNode Variants, with his own information. I made a new struct called InfoStruct in wich i hold my own Information. Next, i create this new class, VCNode wich is a inferred class from TreeNode. public value class InfoStruct { //TODO: Put all the nessesary info here. String^ Name; }; public ref class VCNode : public TreeNode { public : VCNode( String^ na ...Show All
Peter Nimmo Open File Dialog
I need to know how to make an OpenFileDialog work correctly. Can someone tell me exactly how to do it Dim yourFile as String Dim newFile As New Windows.Forms.OpenFileDialog newFile.ShowDialog() yourfile = newFile.FileName That's too advanced I just tried that and had 54 errors. I just want to click the select button and then select a file and then I want it to appear inside th ...Show All
henn Need a little help. Take a look please
Hello! I'm a new to Visual Cpp, so please help me, if you can. I need to write to following sub-routine to count: x r y s =(x 1 a 1 +x 2 a 2 +x 3 a 3 ) r (y 1 a 1 +y 2 a 2 +y 3 a 3 ) s where x i ,y j =digits from another program module, S, R = should be entered by operator, a=unknown dogits. the program task is: to open brackets and make re-combine digits into next order: x r y s =(a j 1 a i 2 a k 3 ), where i,j,k=degree of the a x Thank you v ...Show All
hawkdriver WMP9 DSP Plugin: Modify CC Text
I'm trying to make a DSP plug-in for Windows Media Player 9 using the SDK provided by Microsoft (I also have DirectX SDK). WMP9 SDK included a wizard to set up a sample DSP Plugin that would adjust the audio volume. I'm trying to modify the code to read the Line21 closed caption data from a DVD and edit it before displaying it. Here is the spot that it writes the text: HRESULT CTest2::DoProcessOutput( &n ...Show All
SpankmeBandit Outputting to OnDraw after left mouse click
Hi All, i am trying to get text output to the screen in an MFC app. my code for the left click is void CFYPV15View::OnLButtonUp(UINT nFlags, CPoint point) { int xpoint = point.x; int ypoint = point.y; int xgrid = xpoint/118; int ygrid = ypoint/80; CClientDC ClientDC( this ); ClientDC.TextOut(30, 30, "why won't this work "); } the xpoints were originally going to determine the location of where ...Show All
Tom Krohn project file and debug location?
how can i have all of the junk that vc create when i compile/build all stuck into a diff folder than the one where my .c source code is In the project settings there is a setting for the intermediate files. Set a different directory there, or just define another directory fur your project target. ...Show All
Jgk23 Visual C++/CLI and DirectX
Trying to get DirectX working with Visual C++/CLI in Visual C++ 2005 Express Edition. I've installed the .NET 2.0 SDK and the latest DirectX SDK and have setup up the directories for DirectX in Visual C++ 2005 Express... Tried looking at the DirectX Tutorials but everything in there is for C# as far as .NET goes. Any ideas how to get DirectX working with C++/CLI The managed DirectX framework is written i ...Show All
DongL VC8 preprocessor problem
Hi, please look at the following code: #if defined (_MSC_VER) && defined (_WIN64) && !defined(USING_VC8) std::string fmt("%m/%d/%y %H:%M:%S"); std::use_facet(os.getloc(), (std::time_put<charT, std::ostreambuf_iterator<charT, Traits> >*)0, true) .put(os, os, &dat.tm_date, fmt.begin( ...Show All
DDvorak CRT heap in DLL
I used to believe that each process has a default heap shared by everybody in the process space including code in loaded DLL and heap manager works as described in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dngenlib/html/msdn_heapmm.asp Then I’ve found out that if DLLs are linked with CRT each has own heap manager http://msdn2.microsoft.com/en-US/library/ms235460.aspx My questions: how those individua ...Show All
Black Code Master vc++8.0 bug: access violation upon call of any CImageList methods
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked MFC6.0 statically and after I imported it to vc++ 8.0 I set the linkage of MFC8.0 to "shared". However when I try to compile and link the project in vc++ 8.0 in release mode (debugmode works fine) I get an acess violation in afxcomctl32.inl. This happnes w ...Show All
VFP Nameless namespaces in c++ 8.
I am recompiling a program with a nameless namespace using visual studio c++ 8. However, I get "error C2888: anonymous-namespace." Does anybody know if I have to set a switch on the compiler If so, which switch. If not, is this a bug If so, is there a fix for it Regards. PS - What I am trying to do is to declare internal linkage instead of external linkage. As per the standard: The new C++ Standard reads in "Section 7.3.1.1 Unname ...Show All
Innovasys All INVALID functions?
I'm struggling with this problem for this class. All my friends can't understand this one. Anyways here it goes. Write ALL invalid fuction calls to the following fuction prototype. Assume that the compiler will accept float and integer interchangeably. void testit (int x, int y = 1, float z = 3.1, int w = 5); Hint: 1. Skipping parameters such as (1, , 4.1, 16) is not an acceptable answer. &nbs ...Show All
Devo Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
pixelord CRT heap in DLL
I used to believe that each process has a default heap shared by everybody in the process space including code in loaded DLL and heap manager works as described in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dngenlib/html/msdn_heapmm.asp Then I’ve found out that if DLLs are linked with CRT each has own heap manager http://msdn2.microsoft.com/en-US/library/ms235460.aspx My questions: how those individua ...Show All
Yoel Grodentzik Why doesn't the following compile under VC2003?
Why does the following code snippet not compile in Visual C++ 2003 It compiles under GCC, so why not in VC2003. What is wrong with it // Outter class: class Outter { public: // First inner class: template class Inner1 {}; // Second Inner class: class Inner2 { public: // Method definition: Outter* Inner1() {} }; }; Mozilla did that to me too: nuke the linebreaks. Here it is again (over-compensation courtes ...Show All
