-
- Windows Media Player - Visual C++ Runtime Library
by OneScrappyLady
- 14 Replies
- Last post
by trituss
- OK...I am not sure if this is where I need to post this, but it looked like the place.
I am running Windows XP
I have been trying to open my Windows Media Player 10 and this is the message that I get....
--------------------------- Microsoft Visual C++ Runtime Library --------------------------- Assertion failed!
Program: ...rogram Files\Windows Media Player\wmplayer.exe File: .\geiss.
-
- Need very basic help!
by ForeverYoung
- 2 Replies
- Last post
by Damien Watkins - MSFT
- Firstly, i'm very very sorry if i posted this in the wrong forum but i'm seriously desperate for help here. if i have done anything wrong please correct me
well ok, im pretty new to c++, i have -a lot- of exp in programming in VBA (visual basic for app) for excel to make macros. and i tried out some c++ programming in my school, isn't that much of a difference if you ask me
so i picked up
-
- Pointer not working
by NeederOfVBHelp
- 5 Replies
- Last post
by einaros
- When ever I try to compile the code below I get this error:
" error C2102: '&' requires l-value "
ICI is a pointer to an unmanaged class, this is being done with in a managed class. X is a double pointer, where as XPostion_Meters is just a double.
ICI->ICOList[Count].X = &IPObs[Count]->IPObj->XPostion_Meters;
Any help would be appreciated
-
- C++ table initializations
by AdamJ566757
- 5 Replies
- Last post
by Ghost (C/C++/VC++)
- I'm a bit of a newbie to C++ so I could use some help with something that should be simple (I'm feeling like an idiot right now). I'm trying to initialize a table of data stored as a class variable.
In my header file I have:
class class_name{
private:
double TABLE_NAME[4][5];
etc...
}
In my void (default) constructor I have:
class_name::class_name(){
-
- error compiling C2061: identifier _CountofType
by j_l_larson
- 7 Replies
- Last post
by j_l_larson
- I have a complex application that we are porting to Visual Studio 8 and have run into this error with no solution so far.
Note that the error producing code resides in the file:
"D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h
This simple unit test demonstrates the problem as succinctly as possible I think
// foo.cpp : Defines the entry point for the console applic
-
- CopyFileEx() not working
by mansid
- 4 Replies
- Last post
by mansid
- Hi,
I am trying to use a function CopyFileEx(from,to).
But it gives me - error C2065: 'CopyFileEx' : undeclared identifier
anything i need to declare
# define _WIN32_WINNT 0x500 is done. it is still giving an error.
Please help.
Thanks
manasi
-
- Design rationale for C++/CLI simple Properties?
by JDHill
- 2 Replies
- Last post
by JDHill
- Hi All,
I'm trying to grasp the purpose of simple Properties in C++/CLI.
Say you have a v1 class, which has a simple property, Data, which is automatically serialized as <backing_store>Data. Then say that in v2, you now have a need to put in validation for this property, so you implement Data::get and Data::set to operate on a private m_Data field. When you now deserialize a v1 object
-
- Splash
by nwongfeiying
- 4 Replies
- Last post
by nwongfeiying
- How do I get my program to have a splash image on startup This is in Visual C++ Express Edition 2005.
-
- template member variable error
by JimmyVarghese
- 9 Replies
- Last post
by einaros
- In our application, we have a templatized set class as below
//in templ.h
template <class T> class EXPORT CSet : public CFooSet
I wanted to create a list using this template class.So I did the coding as follows
//in A.h
typedef CSet <class Bar> BarSet;
class Dummy{
private:
BarSet m_list;
}
Now when I tried to build I got an error f
-
- How to display Bitmap in Modeless Dialog ?
by This_is_Nouman
- 2 Replies
- Last post
by Simple Samples
- Hi,
I tried to display bitmap in the modeless dialog but I was unable to do that.
I made modeless window and put a bitmap object with control variable as m_BMP. When i pass it in device context then the only error comes is somewhat like "access violation".
I do as: CClientDC(&m_BMP), this normally works in main dialog but not in modeless dialog.
Please help me, I am
-
- mfx exe to dll
by yog_23
- 2 Replies
- Last post
by yog_23
- Are there any guidelines on how to convert an MFC exe component to ActiveX dll in vc++.
Also any easy ways to convert DAO related code to ADO.
Thank you
-
- IntPtr using in VC++7.1
by krishnasamy
- 7 Replies
- Last post
by krishnasamy
- hi,
I have converting the project c# to vc++ in .net2003. I have a problem with using IntPtr for reading the dib image.
I want to know that how to use the IntPtr in VC++.
Please give the example.
thanking you
-
- vector::resize causes floating point exception
by Daniel_Smith
- 4 Replies
- Last post
by einaros
- Hello,
I'm hoping for a reality check here. The following program generates a floating point exception in the vector::resize call. I compiled it under VC 2005 using the command line in the comment below.
I've disassembled the executable and found that vector::resize creates a default Point object which is then copied to the new empty elements at the end of the vector.
-
- Controls of my dlg do not have XP style.
by Purusothaman A
- 5 Replies
- Last post
by Purusothaman A
- Hi all, Its dialog based MFC application. My problem is, controls in my dialog do not have XP style. But in VC++ IDE's design mode, all buttons, edit boxes have XP style. I hope you understood what I asked, otherwise send me your mail-id I can send dialog's appearance in BMP image format. Thanks. :) Purusothaman A
-
- Can't change or disable button bitmap of command bar??
by Air Dolphin
- 2 Replies
- Last post
by Air Dolphin
- Hi,
I am developing one AP one WINCE, using VC++ Win32 SDK.
I created a command band by using CommandBand_Create().
It contains two command bar--one for menu, one for toolbar.
I set the toolbar band's fStyle field to RBBS_BREAK | RBBS_NOGRIPPER.
This make the toolbar band start on a new line and without gripper.
But this cause another problem.
I want to modify the bitmap o
-
- Find a especific String inside a txt file
by JGLP
- 9 Replies
- Last post
by JGLP
- Hi I need to search a txt file and find a especific string, and then i need to return the rest of the line. For example , a have a text file like this: [example.txt] abc={a,b,c} def={d,e,f} ghi={g,h,i} [/example.txt] And now i need to search for "def", and i need to get in return the "{d,e,f}" Anyone know how can i do this and show a small example please thanks!
-
- Whole Program Optimization, mixed-mode and ATL_MIXED
by Alex Ivanoff
- 4 Replies
- Last post
by Alex Ivanoff
- We have a native static library project with Whole Program Optimization set to Use Link Time Code Generation . This library also uses ATL. Another project is a mixed-mode dll with Whole Program Optimization set to Use Link Time Code Generation and it uses the static library. When we build mixed-mode dll we get tons of "C4743: 'struct Define_the_symbol__ATL_MIXED::Thank_you Define_the_symbol__
-
- Can anybody please explain LVM_GETITEMTEXT in MFC? Why for loop is put like this in sample code?
by ketu0001
- 3 Replies
- Last post
by Viorel.
- Why this for loop is applied over here
//this function will returns the item text depending on the item and SubItem Index CString CMultipleColumnsDlg::GetItemText(HWND hWnd, int nItem, int nSubItem) const { LVITEM lvi; memset(&lvi, 0, sizeof(LVITEM)); lvi.iSubItem = nSubItem; CString str; int nLen = 128; int nRes; do { nLen *= 2; lvi.cchTextMax = nLen; lvi.pszText = str.GetBufferSet
-
- Start Debugging problem with SP1
by Nick Y
- 2 Replies
- Last post
by Simple Samples
- Since
applying the VS 2005 SP1 update, when compiling a C++ program under 'Start Debugging' the console window
comes up to accept data but then displays the
result (I assume) and closes instantly/ automatically. If I
then run the same program in 'Start Without Debugging' the console window does not
close until it has displayed the result and halts displaying 'press any key to
continue...&qu
-
- Global Handle in a DLL
by VFaul
- 1 Replies
- Last post
by nswrambo
- I am writing a DLL that talks to hardware. The hardware is similar to a serial port in that only one handle can be opened at a time. More than one app will be interfacing with the hardware (through the DLL). What I want to do is open the handle once when the DLL is loaded and use a mutex to synchronize who has control of the hardware. The handle would only be used by the DLL. However, I am not sur
-
- winnt.h
by ArjCoder
- 5 Replies
- Last post
by ArjCoder
- I am trying to build my code in MS Visual C++ with PSDK Server 2003 R2. I cant get past these errors, these are not even in my code! c:\program files\microsoft platform sdk\include\winnt.h(3858) : error C2146: syntax error : missing ';' before identifier 'ContextRecord' c:\program files\microsoft platform sdk\include\winnt.h(3858) : error C4430: missing type specifier - int assumed. Note: C++ does
-
- Help about simple operations as DELETE an stupid project, cpp archives and no longer needed solutions
by xisbert
- 4 Replies
- Last post
by xisbert
- Hi, I am trying to use Visual Studio 2005 with VC++ (8.xx) on a XP SP2 fine MS software actualized computer.
When I try to obtain either local or inline help about simple operations as above mentioned, despite in what of a lot of several ways I was asking, the help return is very far relationed with my real proposed question.
MS Visual Studio 2005 (Express by the moment but I need
-
- Wrapper
by Noobie and Newbie
- 14 Replies
- Last post
by Noobie and Newbie
- Hi guys, Can anyone guide me how to create a wrapper Basically I have a file Object library and a header file from the vendor which is written in eVC++. My application is written in C#.net and my objective/goal is to create a wrapper for the C++. Is there any guide or reference to refer to create a wrapper and call in my c# application Thanks..
-
- lnk2028 and lnk2019 Problem with Option /clr
by Aki999
- 1 Replies
- Last post
by Simple Samples
- I have Standard-MFC-DLL with an activated /clr option that uses several regular unmanaged DLLs.I get the following two errors when compiling and linking my MFC-DLL. error LNK2028: Nicht aufgelostes Token (0A00154F) ""public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall C_MessageComposer::GetMessage(unsigned lon
-
- Inexplicable bug using 'generics' in C++/CLI
by eldiener
- 14 Replies
- Last post
by eldiener
- I have run into a bug in the C++/CLI support for 'generics', which is inexplicable to me. The bug may also occur in C#, but I am writing in C++/CLI and have not tested it in C# so I will post it here. The bug involves creating generic delegates, generic classes, and generic static functions, all of which refer to each other using generics, without being instantiated with any types yet. In other wo