Answer Questions
odeddror 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 If the Platform SDK is too large to download you can order it on a CD. Here is the link: http://www.qmedia.ca/launch/psdk.htm All you pay is for the shipping It is possible to use Visual C++ Express to develop applications that use DirectX: but you will have to separat ...Show All
NeuroWinterMute GDI Logical Mapping Modes in MFC
Hello there, I am developing an MFC application that requires drawing a graph. I am using the MM_LOMETRIC logical mapping mode because the positive X axis is to the right and the positive Y axis is up. The problem is that the size of the graph will not stay consistent on all PC's due to variations in pixel size, and display resolution. The problem seems to be worse on laptops due to the many display types. How do I get a consistent graph s ...Show All
Daniel_R Dependencies being ignored under VS 2005 IDE
We have a project that is structured like this: Program depends on Library 1a which depends on Library 2a, Library 2b, etc. The dependencties for the above are set by right clicking each project and selecting Project Dependencies... and selecting the projects immediately below the projects in the dependency tree. If I modify a source file in Library 2a and then right-click on Library2a and select Build, it builds the library. I ...Show All
Ivan Penkov Troubles when using managed c++ dll's in other managed c++ dll
Hi, I am using Visual C++.Net 1.1 2003 and I have the following problem: I create managed c++ dll class library (default settings). Inside of that library, I create simple managed class, like this: // FirstDll.h #pragma once #include <string> using namespace System; namespace FirstDll { public __gc class CFirstDll { private : protected : public : static void MarshalString(Str ...Show All
Anthony DeSouza malloc error in C
>c:\s.t>cl /MD /GS- a.c >Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40310.41 for AMD64 >Copyright (C) Microsoft Corporation. All rights reserved. > > x.c > Microsoft (R) Incremental Linker Version 8.00.40310.39 > Copyright (C) Microsoft Corporation. All rights reserved. > > /out:x.exe > a.obj > > T:\s.t>x > 3000000000 0 > > c:\second.try>type a.c > // cl /MD /GS- > #include&l ...Show All
Riya Mehra MFC: Progress Bar's new RGB value isn't updating on execution
For my progress bar, I wish to change the RGB color from the default green to red. The docs say the following code would work: // Set the background color to red. myCtrl.SetBkColor(RGB(255, 0, 0)); So, I tried this with my code in CProgressDlg::OnInitDialog(). This should give it a dark red color. m_MyProgress.SetRange(0, 10); m_MyProgress.SetBkColor(RGB(100, 0, 0)); m_MyProgress.SetStep(1); However, it is still green on ex ...Show All
dida How is Arc Created
I want to understand the mathematics of Arc Method. I read documentation but still have not got it :( ... Can some one explain me the how arc is created from the Ellipse and rectangles . I shall be very thankful to you. The below topic might help: http://msdn.microsoft.com/library/default.asp url=/library/en-us/gdicpp/GDIPlus/aboutGDIPlus/linescurvesandshapes/ellipsesandarcs.asp It has some graphical explanati ...Show All
pavway Overriding System::Generics::Collections::IEnumerable
I've been banging my head all day trying to figure out how to return an enumerator using generics. I would greatly appreciate if anyone can help save my last few remaining brain cells I have 2 C++ managed classes, Parent and Child. Parent is derived from System::Generics::Collections::IEnumerable and has a member that is a Dictionary of type Child (ie. Dictionary<String^, Child^>^). I want to return an enumerator to this Dictionary whe ...Show All
Roel van Lisdonk Loop unroll optimization
Hi, I was playing around with different systems/compilers in aspect of code optimization. I found and that was surprizenly enough, VC 2005 does not unroll loops, it seems like. So then looking only at loop optimization for different compilers I found that for instance Sun Java ( does loop unroll ) perform sometimes 2-3 times better then simular C++ code. So my question is, is ther any reasons for not doing loop unroll or may be it's hidde ...Show All
Fred Farquar statically link msvc*.dll's
every time i want to distribute an exe, i have to distribute a bunch of msvc*.dll's also, which is annoying as hell. Is there a way to statically link against these so they are included in my exe But take care! This has drawbacks. - The CRT code is including more than once. Increasing the memory footprint of your application. - Sharing the MFC in a DLL reduces the overall consumption of memory in the system - ...Show All
Marcin Wojas Problem with templates
I am trying to write a template class for a simple double linked list. Posted below are the definitions. In the .cpp file I have the implementation. I know for certain that I am including the .h and .cpp files in the project, but I get an error when I try to build: error LNK2019: unresolved external symbol "public: __thiscall wcLinkedList<int>::~wcLinkedList<int>(void)" ( 1 $wcLinkedList@H@@QAE@XZ) referenced ...Show All
JayUrb i'm really new.
i'm sorry to take your time with such a noob'ish question, but i can't even find where to start coding...can someone just help me get started here thanks man, that's the kind of answer i was looking for ;) yea, i already have a book, the trouble is, that i can't find where to start...it says type the command to start my compiler, and it says it depends on which compiler i have ...Show All
Sonnemaf Char ipv. LPCWSTR
Hi, i'm not really experianced in C++... well in my sight :) i never used the VS compiler before. but now i'm cant work without it anymore. My problem is that i had a lot of code, who all worked with the char parameters, like: MessageBox(NULL, "test" , "test" , 1); This is under a Win32 empty project. Now he keeps saying, "cost char[5] cant convert to LPCWSTR" My question is, if there is a option for still using the char parameters, or else a ...Show All
shubn I have a problem with AfxBeginThread()
I want to create a worker thread but i recive an error like this: my code: UINT ReadCD(LPVOID lp) { .//Some Code// . . return0; } . . . AfxBeginThread(ReadCD,NULL); Error:"error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)" Could you provide a small example that shows the exact error message that you are seeing Its Work! ...Show All
Mubashir Ali Want to read a txt file
Hi, I want to read a txt file, but I want to read word by word. So can you please show what function would be best to read word by word from the txt file Thanks. vcboy You could use the TextReader and the ReadLine method to read a line. For each line read you can split it on the space character to get an array of words. Yeah, I used CStdioFile object and ReadString() as follow: CStri ...Show All
