I have created one MFC Dialog Based application.now if i am
running the application its working fine,instead of closing
the application i minimized the application,if i run the
application again,i am getting the Dialog.
I want to prevent the calling of application multiple times.
please give me the code
...
Hi,
I am trying to modify the amcap, an application from Windows SDK's example to capture video from UVC webcam having resolution 1600x1200px.
I am trying to hardcode some variables here like filename, default resolution, type of format etc.
WCHAR wszCaptureFile[260];
gcap.wszCaptureFile = (WCHAR)"Capture.avi\0" //modified
gettn...
Hi
i have create a simple vc++ console application and try to print "Hello World".i am using windows server2003 machine
when i try to build this proj i got the error as Error: spawning cmd.exe how to resolve this one
Thanks in advance.
...
I am trying to use the _MSC_VER macro in a Visual Studio 2005.NET C++ project, but am unable to use #ifdef _MSC_VER. Does anyone know how to setup a Visual Studio 2005 project to be able to use this macro?
...
I am new in OpenGL. I am using glut library in VC express edition on vista. I am getting runtime error of "access violation" on the following line
glClear(GL_COLOR_BUFFER_BIT);
Can I avoid this error somehow?
Shahab
...
Context: I have a handful of plug-ins (which are really just DLLs with a different extension) that need to be installed in a sub-folder of a 3rd party application. Usually it's enough to simply copy them to said folder, but occasionally there are other libraries that need to be installed as well. I'd like to make this process less error-...
Inside .vcproj files There is a list of all source files in your project.
How can we use a macro to specify the path to a source file?
If we do this:
<File
RelativePath="$(Lib3rdParty)\Qt\qtwinmigrate-2.5-commercial\src\qmfcapp.cpp">
</File>
The compiler cannot find the folder:
qmfcapp.cpp
c1xx : fatal error C1083: Cannot open so...
Hi,
AMcap is a app for capturing video or to preview from webcam. Its source code comes with Microsoft Windows SDK as sample.
I want to (bypass the following process of user interaction in amcap code or say want to) set it as default:
Ampcap menu
Options
Video Capture Pin ...
Color Space/Compression: YUY2
Out...
I am writing an application that required the development of an engine for handling data, but the engine had to be replaceable by another depending on the customers' need. Since each customer had very different needs, I wanted to make each engine separated from the others so we could only deliver the application with the engines the cust...
Hi all,
I have a simple question to ask. I have a UTF 16 text file to read wich starts with FFFE. What are the C++ tools to deal with this kind of file? I just want to read it, filter some lines, and display the result.
It looks simple, but I just have experience in work with plain ascci files and I'm in the hurry. I'm using VS C++, b...
I configured MinGW to Code::Blocks correctly.
I also checked that it works using the command line.
I for some reason can't compile with any compiler at all.
Not even with VC++.
Is this a known issue?
Does anyone knows how to solve it?
This is the error I'm getting:
"Static library - MinGW RELEASE" uses an invalid compiler. Skipping...
I'm trying to build code from the nVidia 9.5 SDK but I get the following linker errors:
>1>NV_D3DCommonDX9U.lib(NV_StringFuncs.obj) : error LNK2005: "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::getline<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_istream<char,struct st...
I'm new to Visual C++, .NET, and the Windows world of programming (coming from Objective-C/Cocoa), and I'm trying to use the CFLite (Open CoreFoundation Lite) library, which I compiled to a .lib file. It's written in pure, unmanaged C, and I'd like to use it in my managed CLR .NET app. When I try to link it and use the function CFSTR, wh...
How do you disable the Maximize button/capability in an SDI application?
...
Hi
i have created a vc++ console application i need to add .net assembly references.
but when i do the following as project right click->properties->Common
Properties->references->add references
then i am getting the window as
addrefernce(title)
tabbed window project name and project directory and have empty list
i am unable to fi...
How to populate List (string) items on console window in c++cli.
Thanks in Advance
...
I'm trying to detect memory leaks by globally overloading new and delete for debug builds and maintaining a list of allocated blocks. This works, but incorrectly reports leaks for some static objects. For example a static std::vector itself is not allocated using new and delete but its internal buffers are. Since my detection code runs b...
I have a function that is being called from different threads in the application.
I need to know whether the thread that executes the code is the main thread(ui thread) or a working thread.
Any suggestion?
Thanks.
...
There are various ways of exiting a process:
e.g.: ExitProcess, ExitThread (from the main thread), exit, abort, return from main, terminate.
I'd like to know the effects each method has on static/global/automatic object destruction.
For example, I have a project that crashes (probably due to some deallocation error) when ExitProcess i...
Hi
in my project i have enabled /clr (Common Language Runtime) support as well as /MTd (Multithreded Debug) option in code generation section.
But the compiler shows /clr and /MTd are incompatable types. I need to use both.
How to fix this?
Thanks in advance.
...