-
- DirectShow Problem: VFW_S_PARTIAL_RENDER
by ONeill
- 4 Replies
- Last post
by ONeill
- Hello together, i want to build a very simple FilterGraph in my program. I want to get the Stream from a camcorder, put it through a SampleGrabber and then into a NullRenderer. I wrote the following code: http://rafb.net/p/S69MYe51.html It has a few lines but the code is very simple. I am getting the Device Filter, Querying a SampleGrabber and Null Renderer Filter and at these tree filters to t
-
- /O2 causing "index out of array bounds" exceptions
by bmw2012
- 11 Replies
- Last post
by bmw2012
- This problem is driving me nuts. I have a Windows Form application in C++ using entirely managed code.
At a particular point in the execution of the program (near the end.) one of my class methods generates an "index out of array bounds" exception. This occurs at the start of the method, where I re-initialize an array of integer counters to 0. I've even gone to initializing all e
-
- Cannot Deduce Argument for Type 'T'?
by Sweeps78
- 2 Replies
- Last post
by Sweeps78
- Could anyone tell me why: List<RobotPart^>^ test = s->FlatPartList(); results in the following error: Error 1 error C2783: 'System::Collections::Generic::List<T> ^TrossenRoboticsSystem::TROM::RobotPart::FlatPartList(void)' : could not deduce generic argument for 'T' c:\alex\flashdrive\projects\trossen robotics system\projects\demo navigation\demo navigation cpp\Form1.h 328 Fla
-
- Converting A Decimal Value To The Character Equivilant
by michaeln31
- 6 Replies
- Last post
by Simple Samples
- Hey,
Well the title says it all! Im trying to figure out how can i take a decimal value and get the character equivilant eg the decimal value for 'A' is 65.
Thanks for any help
Mike
-
- Read text file to variable, write this variable to another file
by dlw10023
- 7 Replies
- Last post
by Marius Bancila
- Hello, I am new to Visual Studio and c++. I am using native., rather than managed c++ (I think and hope). I am able to read data from a file, but when I then try to turn around and write the string variable into a text file, the written-to file appears to be empty. Here is an excerpt of what I'm doing: std::ifstream fileInput; fileInput.open("SymbolList.txt",ios::in); std::ofstream fileO
-
- MFC List Control - adding a spin button to a list control cell
by grycuk
- 1 Replies
- Last post
by Simple Samples
- Can someone please tell me if it is possible to add a spin button control to a cell in a list control Any code snippet would be much appreciated!
Thankyou
-
- Getting file properties in VC++ 2003
by akhin
- 1 Replies
- Last post
by Naveen R
- How can i get sharing properties of a file/folder
There are inodes in unix fs , what matches inodes in NTFS , and which system calls should i use to get inode number of a file/folder
How can i get flags of a file/folder I mean :
NTFS Compressed Flag Archive Flag Directory Flag Read Only Flag Hidden Flag System Flag Offline Flag Temporary Flag
Thank you very much.
-
- R6031 - Attempt to initialize the CRT more than once
by skeil
- 11 Replies
- Last post
by ron2464
- Hi, when starting my application (built with VS2005), I get the error message "R6031 - Attempt to initialize the CRT more than once. This indicates a bug in your application." The application is native C++, but it links some native and some mixed DLLs. Some mixed DLLs again link native DLLs, see protocol below. The strange thing is that it works on other computers. Also strange is, that
-
- Inheritence.
by David S. Anderson
- 7 Replies
- Last post
by Ðãv? S. Â??????
- Language: C++/CLI --------------------------------------- Is there any way we can make a class that inherits from sealed classes such as the String class, or is this just not possible
-
- Problem with GetTextMetrics and Unicode (with some helpful link).
by smart pig
- 4 Replies
- Last post
by Simple Samples
- In a member function of a CView subclass, I have some code like this:
Code Block
TEXTMETRIC tm; pDC = GetDC(); pDC->GetTextMetrics(&tm); When this code is built with unicode option (i.e. UNICODE and _UNICODE), it has the following error when it runs in debugging mode: Run-Time Check Failure #2 - Stack around the variable 'tm' was corrupted. A useful tip is in http://grou
-
- why this does not work in VS 2005
by DamonPeng
- 4 Replies
- Last post
by Jonathan Caves - MSFT
- class TestC { public: ifstream input; TestC(){ input.clear();} }; int _tmain(int argc, _TCHAR* argv[]) { std::vector<TestC > vecC; vecC.push_back(TestC()); } sorry for lacking the error information: here it it: 1>c:\program files\microsoft visual studio 8\vc\include\fstream(675) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in
-
- get , set native
by CyberLord_Dan
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi!
Using .net framework, you can create sth like this:
public bool variab
{
get{return _vari;}
set{_vari=value;}
}
I need to do this within a native project (Win32). How do I do this
-
- VC++
by wasim786nasir
- 5 Replies
- Last post
by Simple Samples
- Hello, I am trying to build a dialog based program to communicate via lan. i am using MFC files ( .exe as statistical link libraries ) i don't know where to put the code of initialization, as my in myprogram i have kept it in app.cpp file but i am not able use the send - recv function from other dialog boxes. I tried to implement it by as global variable, but invain, and also how to pass any varai
-
- compiler error
by Situ
- 2 Replies
- Last post
by Situ
- I didn't understand why this error is coming...I'm using visual C++ 2005 edition
error LNK2001: unresolved external symbol "public: void __thiscall CAboutDlg: nBnClickedOk(void)" ( OnBnClickedOk@CAboutDlg@@QAEXXZ)
-
- Converting an existing solutions from Microsoft visual c++ 6.0/.Net 2003 to Microsoft visual studio 2005 c++ solution
by rosraj
- 1 Replies
- Last post
by Bruno van Dooren
- Hello all.
I would like to know, is it possible to convert all my Microsoft visual c++ 6.0 projects
and Microsoft visual studio .net 2003 solutions to Microsoft Visual Studio 2005 solutions
Thanks,
Roshan
Software Engineer
-
- Resources & Dialogs
by Dead6re
- 6 Replies
- Last post
by Dead6re
- I've created a very simple dialog that contains 3 text controls, 2 edit controls and a button.
It looks very much like this:
Username: [Username text box]
Password: [Password text box]
Server Status: Connecting...
[Connect]
Now, I have this program running on my Windows Vista machine fine, (Note: This is the platform used to compile the project). Now on the ot
-
- listing Dir, will not read C:\System Volume Information
by Guy DeStefano
- 22 Replies
- Last post
by Guy DeStefano
- Using VS 2005, with C++ coding, I am trying to list the entire directory. All is good except, I cannot bypass the directory folder ( C:\System Volume Information ). The XP/2 Op sys lists
1. C:\Support
2. C:\Support\Tools
3. C:\System Volume Information
4. .....
I list all files from C:\ ( want to list until the end of all )
I get:
1. C:\Support
2. C:\Support\Tools
-
- OpenMP problem
by mhait
- 2 Replies
- Last post
by mhait
- Hi everyone! A am using OpenMP with VS 2005 for about a year with my project and all works fine. Recenly I`ve joined another project (originally it was VS 6 project) and tried to enable OpenMP on it. I checked out that in a paralle region (when Threads window shows me 2 threads) each thread have the same result from omp_get_thread_num function (it is 0) and omp_get_num_threads returns 1. Also I no
-
- implementing quicktime 7.1 SDK functions in VC++.NET
by sans581763
- 1 Replies
- Last post
by Bite Qiu - MSFT
- hi, I am new in using quicktime SDK and also VC++.NET 2005. Now i need to use quicktime 7.1 SDK functions in my VC++.NET application.Im working on a Windows XP machine. I have created a new win32 project in VC++.NET 2005 and also imported the dlls needed to access quicktime SDK functions in my application. This is done by the following lines :- #using<Interop.QTOControlLib.dll> #using<AxI
-
- cant check to see if a string contains certain data
by regthesk8r
- 11 Replies
- Last post
by regthesk8r
- erm got a slight problem with my program and i cant see the problem...any help please here is my code:
private : Void NextQuestion( Void ){
// Seed random number generator with date and time
DateTime moment = DateTime::Now;
Random^ randNumGen = gcnew Random( moment.Millisecond );
// Create variable for random number
Int32 intQuestNo = 0;
// Get a number between 0 and th
-
- Any DLL needed for MFC DAO database classes ?
by wc_ong
- 1 Replies
- Last post
by Ramkrishna Pawar
- Hi, I'm using "CDao" prefix classes to write my data into mdb file. My application runs well in my PC with VC++ installed. But when I run the exe file in other PC which doesn't install with VC++, error occured. It prompts a Windows error message with Send Error Report/Don't Sent button when I trigger the function to write data into mdb file. I've discovered that the error occured when it
-
- Drop-In replacement for the stock C/C++ preprocessor
by Andreas Ames
- 3 Replies
- Last post
by Brian Kramer
- Hi all, is there a way to 'seamlessly' replace the built-in preprocessor for cl.exe I know of other compilers which feature something like a seperately configurable complier driver. Is there sth. comparable for cl.exe cheers, aa
-
- How to use Lib file(C++) in .NET
by Umeshnath
- 3 Replies
- Last post
by Alex Farber
- I have a library file (.lib) which was developed in c++, I need to use this lib file into .net
Can I convert the lib file into dll or is there any way to use this lib in .net
-
- application configuration is incorrect - VS2003
by Cari Begle
- 0 Replies
- Last post
by Cari Begle
- I am trying to update our map editor which uses C++, Direct3D and WTL. It compiles and links fine, but I get this error when I try to run it in either debug or release mode, whether or not I'm using the debugger:
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
The project is compiled using th
-
- Without m_pMainWnd
by sawer
- 8 Replies
- Last post
by Simple Samples
- Hi I am trying to understand the function of m_pMainWnd. But i have a problem. For example
Code Snippet
BOOL CMyApp::InitInstance() { CMyWindow *MyWindow = new CMyWindow();//derived from CFrameWnd m_pMainWnd = MyWindow; //If i remove here, it shows and closes window MyWindow->Create(NULL, L"window");
// m_pMainWnd->Create(...) calls Cwnd::Create not CFram