-
- Good C++ Books
by David Lemcoe Jr.
- 5 Replies
- Last post
by David Lemcoe Jr.
- Hello there,
I am 12 years old, and I am new to the C++ world. I was wondering if anyone could reccomend good C++ books that cover a lot of ground but aren't written for younger people. I can't wait to get into hard-core writing.
Hope to see you on the forums!
David Lemcoe Jr.
-
- Mouse Coordinates
by pj_bennett
- 1 Replies
- Last post
by Simple Samples
- Hi, I'm trying to write a simple app that just show the mouse coordinate in a Static control when the mouse is moved over picture box, I have a dialog app with a PictureBox and a Static Label (It has an OK and Cancel too) - I've created a control variable and a class to deal with the MouseMove event on the picture, but when I come to access the Static control in the MouseMove event I run into prob
-
- Array declaration in a value structure? (Managed C++)
by snowynight
- 1 Replies
- Last post
by Jonathan Caves - MSFT
- I¡¯m a new starter of managed C++ programming. I experienced problems when declaring an (value) array in a managed type ¨C a value structure. Two ways have been tried:
a. The array is declared in the value structure ¡®para¡¯:
¡¡
#define max_threads 2
class Parameters
{
public :
value struct para
{
int st
-
- C++/CLI generic delegate will not accept 'void' as a return type
by eldiener
- 8 Replies
- Last post
by eldiener
- If I have a generic delegate such as:
Code Snippet
namespace ns { generic <typename Result,typename Arg> public delegate Result ADel(Arg arg); } and I have a static function ( or member function ) with a signature such as:
Code Snippet
namespace ns { ref struct AStr { static void AFun(int x); }; } I can not create an ADelegate passing the static function as such:
-
- fstream private member problem
by Draznar
- 2 Replies
- Last post
by Draznar
- Once again, while doing conversion work for code that was not written for me, I come across more odd errors. In this case something is trying to access ofsteam's private members, I think.
Error 927 error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>' c:\program files\microsoft visual studio 8\vc
-
- CAxWindow with Embedded webbrowser user input problems
by omnimagus
- 1 Replies
- Last post
by VikasKumar
- Ok i have an embedded browser in win32 dialog, however if the user wants to tab to a different control in the browser the focus goes away from the embedded browser to one of the controls of the dialog. Is there a way that I can tell my dialog and my CAxWindow that it should be handling those messages if the current focus is the CAxWindow
-
- 16 Bit app and only standard library during compile
by Flaxen
- 6 Replies
- Last post
by Robert C. Bennett
- I am
running into a problem getting a console app I build with VS Studio
2005 to work in Windows 95. It works fine in all other version but when
I run it on Windows 95 i receive the error: linked to missing export KERNEL32.DLL:IsDebuggerPresent Now
when I compile this same program in VC 6.0 ...it works fine. So I am
not sure what it could be Is it because .Net headers are being added Is
th
-
- Should this sample run without a crash?
by n0n4m3
- 13 Replies
- Last post
by n0n4m3
- Hi, today I was testing some things and came across with something like this: #include <iostream> using namespace std; class A { public: void print() { cout << "test"; } }; int main() { A* a = 0; a->print(); return 0; } And I was a bit surprised when it ran without any problems both in debug and release in VS 2005. Well, I realize that since the code doe
-
- value of ESP register after returning from call
by Joe Doyle
- 2 Replies
- Last post
by Joe Doyle
- After returning from a call instruction for a function using the __thiscall calling convention, should the esp register have the same value as it did before the call instruction was executed
-
- Combobox element not diplayed
by alkatal
- 8 Replies
- Last post
by TilakGopi
- Hi i m adding elements to a Combobox. Prob is there are not displayed. Any idea mny thnks class CPlot : public CAxDialogImpl<CPloting > { public: CComboBox combo; CPloting () { } ~CPloting () { } enum { IDD = IDD_PLOTING }; LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { combo.Attach(GetDlgItem(IDC_COMBOBUS)); combo.AddString(_T("test1&q
-
- Colors keep changing back and forth from colors to UIntegers
by NameLess_301
- 1 Replies
- Last post
by Bite Qiu - MSFT
- I am trying to use a VC++ control in a vb form. The problem I have is that the color variables keep changing back to UIntegers. in my C++ dispatch map I have a line like this
Code Block
DISP_PROPERTY_EX(CEvrucCtrl, "MaterialColor", GetMaterialColor, SetMaterialColor, VT_COLOR) the colors in C++ are COLOREF data types When I go to my VB form it wants me to put a UIntege
-
- Cannot Find Windows.h!!!
by Sniper167
- 11 Replies
- Last post
by PhoenixIgnis
- I have several projects from Visual Studio C++ 2003 Edition which require Windows.h to debug but cannot find that file anywhere. Can someone tell me where to get it...
-
- read excel cell
by onkel elton
- 5 Replies
- Last post
by Brian Kramer
- hi there, i try to read a excel cell value. and i don't know how. i can open the excel file but after that.... maybe you can help me. i try to read the value and show it in an edit field. i am using visual studio c++ 6.0 ; excel 2003 i included all excel.h classes. here is what i tried so far. greetings daniel void CAutoProjektDlg::OnGetvalue() { // Commonly used OLE variants. COleVari
-
- Need some help storing data...
by AridTag
- 4 Replies
- Last post
by AridTag
- I have a list of item names in a txt file each item is on a seperate line. This is the code for loading the data along with a couple of debugging lines. The output of those lines is shown below to demonstrate my problem.
Code Block
char line[500];
int itemidcounter = 0;
while (!feof(fh))
{
memset( &line, NULL, 500 );
fgets( line, 500, fh );
itemidcount
-
- VC++ 2005 redistributable
by Jay K
- 14 Replies
- Last post
by Nelson B
- Hi, I'm trying to get an MFC application compiled with VC++ 2005 to run on a machine with VC++ 2005 express. There seems to be a problem with the manifest (which I don't fully understand despite reading the info on msdn). The original error in the event log when I tried to run it said Microsoft.VC80.CRT not installed so I installed the platform SDK and also copied over the atlmfc directory from th
-
- dynamic_cast behavior changed between vc2003 and vc2005
by Jim McHugh
- 3 Replies
- Last post
by einaros
- I'm in the process of updating an application from vc2003 to 2005. I've fixed all of the warnings that popped up, but this last thing seems to be a show stopper. The dynamic_cast operation now returns NULL under vc2005. Is there a config option or compiler switch that I can set in studio 2005 that will the pointer pDerivedFromCaster valid after the dynamic_cast
CBase* pBase = new CDerived();
-
- Microsoft Visual C++ Runtime Library error question
by Jonn565343
- 14 Replies
- Last post
by Geek UK
- Everytime i try to play a game on my computer, the Microsoft Visual C++ Runtime Library error pops up, i installed the game fable on my computer and my computer has more then the requirements needed to play it, but after i install it and try to play the error pops up and i can't play it. this has happened for several games.. what can i do to stop it
-
- call class in mfc dll from vb.net
by farsad ghaffarian
- 3 Replies
- Last post
by Simple Samples
- Hi
I have a mfc c++ program. and wish convert this to dll and run it in vb.net 2005.
how can I call main class of this program in vb.net.
my first class is:
in myfile.h
public class __declspec(dllexport) CRelCtrlApp : public CWinApp
{
public :
CRelCtrlApp();
public :
virtual BOOL InitInstance();
DECLARE_MESSAGE_MAP()
};
-
- HAL/SDK or API
by Bobkirkp
- 4 Replies
- Last post
by Bobkirkp
- I've searched around the website for a while now for a HAL SDK/API for Win XP 2002. I know I saw a refernce for it a while back but can't seem to find it. If anybody could point in the right direction I would be a happy camper. Tia Bob
-
- Upgrade package from Express to VS 2005 w error C2512
by This&#33;U
- 5 Replies
- Last post
by This!U
- Ok, this is a strange one. When I upgrade my C++ packages from C++ Express, I can't compile them in Visual Studio 2005. I have all the latest releases, and it will still compile in the Express edition without any errors. However, when I try I get an Error # C2512 No Appropriate Default Constructor Available. No code changes, no nothing. Now here is the real kicker: I add a new configuration called
-
- VS2005 renaming header files
by OriginalBoyle
- 10 Replies
- Last post
by OriginalBoyle
- We recently made the switch from VS2003 .NET to VS2005. While making an edit, I noticed that VS2005 was renaming (lowercasing) header files (OBJECT.H becomes object.h.) I believe this happens after opening a header file from the call stack when debugging. The renaming causes issues with source control. I couldn't find anything in the options, in the Knowledge Base, or on the internet. I am not loo
-
- Double buffering
by PhantomDoge
- 7 Replies
- Last post
by Tomay
- hi, im using this example from catch22.net to produce double buggering. so far so good but the background comes out black, how do i fix this Code Snippet HDC hdcMem; HBITMAP hbmMem; HANDLE hOld; PAINTSTRUCT ps; HDC hdc; .... case WM_PAINT: // Get DC for window hdc = BeginPaint(hwnd, &ps); // Create an off-screen DC for double-buffering hdcMem = CreateCompatibleDC(hdc); hbmMem
-
- To enable text editing
by divya v
- 1 Replies
- Last post
by Nishant Sivakumar
- I am developing a software which acts as a Skill anayser. Provided
with a set of programs with bugs, the user is required to debug the
program and set the correct results. The software includes options to
compile, run and test the program. The number of compilations and runs
are also counted to anlayse the skill level. Now, I need an editor embedded in the software to
present the user with th
-
- msvcr80.dll not found
by Intelligence
- 14 Replies
- Last post
by Ted.
- I've created a simple Win32 console application. When I try to debug it, I get the message: "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny
-
- Intellisense not working
by Tzal
- 7 Replies
- Last post
by Ben Voigt
- I've recently installed from scratch XP Pro SP2 (English), Visual Studio 2005 (C++ & C#, which I want to start learning), and SP1 for Visual Studio 2005.
Somewhere in the process, intellisense stopped working, as example if I define a variable ' CBitmap X ;' and then 'X.' hoping to get the list of available functions, the following message appears in the status line:
Intellisense: 'No ad