-
- Small style problem with a button
by Eric Fritzinger
- 8 Replies
- Last post
by Simple Samples
- I'm pretty new to MFC, and having problems with the group box object. Using the resource editor, I created a form with a group box and a button. The group box is used in the DoDataExchange (DDX_Control(pDX, IDC_MYPANEL, myPanel)) of the dialog in order to use it with a custom class I created, which contains a reference to the button placed within the group box. Ex. //The custom class class MyPane
-
- Runtime Error R6034
by Crni
- 7 Replies
- Last post
by Gerry_yk2
- Hi, I have a problem when i try installing a tax software that i bought. I install it and when i am about to run it I get this error "R6034". I am not very familiar with what this error means i tryied googling it but i don't understand the responces. Furthermore, i used previosu versions of this tax software 05 and 04, but this 06 version is a bit different, when i open the program files
-
- Press any key to disappear to console windows??
by Star World
- 2 Replies
- Last post
by Simple Samples
- Codes like the following, how can I disallow the console window from disappearing automatically Instead, just let user press any key to make it disappear. int main () { cout << abc; }
-
- unresolved symbol error
by jjrana
- 4 Replies
- Last post
by Simple Samples
- Hello, I'm new to this, so I hope this is an OK place to post this issue:
I'm trying to create a windows app that runs as a service. I include a header file to access a GPS device, but haven't made any calls to it yet. Using c++ .net 2003, if that helps. At link time I get this:
JJTestServiceWinService.obj : error LNK2001: unresolved external symbol "int __stdcall SetupDiGetDeviceInterf
-
- error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]'
by Rajith
- 14 Replies
- Last post
by HEBU
- When I try to compile the programe in VC7, I got some errors mensioned below, how to resolve them, suggest me.
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(34) : error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new.h(100): could be 'void *operator
-
- About Switch user
by _Shiva
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi ! I just want to display a comfirmation box when i click on switchuser saying "Do u really wanna switchuser Yes No",is yes.....itz done normally...if no..i do nothing...(like Esc button) can any one help me in this issue..using vc++ win32 API's..... Thnx in advance... SIVA
-
- VC++ 2005 Express deployment problem
by Sandiway Fong
- 3 Replies
- Last post
by Angshuman Chatterjee
- I've struggled with this unsuccessfully for 3 solid days. I've got a tbv.exe and a tbv.exe.manifest file produced by VC++ 2005 Express. Works fine on the computer I compiled on. Unfortunately, I'm unable to get it to work on anyone else's computer because it can't find the runtime system msvcr80.dll on their machine despite me having them download and run vcredist_x86.exe Sounds familiar So I st
-
- C++ DLL, dotNet, SP1, Microsoft Visual C++ 2005 Redistributable Package (x86)
by GaryMcC
- 3 Replies
- Last post
by GaryMcC
- Okay, I understand the dependancies issues... the Service Pack 1 release for Visual Studio... And rather than having to package it up and worry about deployment issues, I have my clients download the SP1 Redist directly from the MS site at http://www.microsoft.com/downloads/details.aspx familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
The issue I am having is I have a few c
-
- printf can use only two decimals?
by Pendar
- 10 Replies
- Last post
by Marius Bancila
- Is there any way with a VC6 to format exponents with printf to use only two decimals
-
- How do I display my timer in a MessageBox?
by snakeyes128
- 3 Replies
- Last post
by Marius Bancila
- Hello everyone,
I'm new here to the forums and I come with a question. I am making a 2-D game and I was wondering how to display my timer in a MessageBox. The structure of the MessageBox only allows 2 string variables.
Code Snippet
finish = clock();
MessageBox(hwnd, "YOU WIN!!!\nYour time was: ( i want to place finish here )" , "AWESOME!"
-
- Native code step through goes out of sync
by mrwhippyicecream
- 6 Replies
- Last post
by Bite Qiu - MSFT
- When in a native c++ class, in a /clr project, stepping through is getting out of sync of where it should be. e.g 1 if(fileSpec.GetLength()==0) 2 { 3 printf("You must specify a filename!\n"); 4 return 1; 5 } I put a breakpoint on line 1. Then F11 to step into. The if statement returns false and so it should step to 5 or beyond. Instead it stops on 4. Any ideas why
-
- Networking
by TTris
- 4 Replies
- Last post
by valikac
- I've been looking into some network programming and was wondering if somebody could help me out. Im looking to send information between networked computers, and I've heard of both sending it in individual packets and using sockets, so if somebody could explain this to me it would help a lot. I just need to figure out the syntax for sending packets or whatever the equivalent for socket programming
-
- User-interface language for Windows OS
by hi_its_me_007
- 6 Replies
- Last post
by Simrn
- Hi there,
I need to fetch the value of user-interface language selected for Windows OS on my PC. Can you help me with the name of system variable which stores this value, so i can just read this variable Or is there any other way out
-
- i cant find the mistake plz help
by simpatico
- 3 Replies
- Last post
by simpatico
- hi i have this code and i have a problem i cant find the logic error here
the problem is when i enter a value its work but sometimes there are values become exist without i try to enter them how would i fixed that like that
enter row then column 1 1
x - - - - - - x - here the one in the red i didnot input its value why its appear plz tell me
and help me
this is t
-
- assert
by George2
- 6 Replies
- Last post
by George2
- Hello everyone,
I saw a couple of form of assert in code on Windows,
1. ASSERT; 2. assert; 3. _ASSERT; 4. _assert.
Which one is the most correct to use I saw people always define this to that, and I want to find the root one which is defined by Windows.
I also saw people manually define assert to NULL if macro DEBUG or _DEBUG is not defined, is that necessary
I feel assert is in a m
-
- link error -- machine type conflict
by George2
- 5 Replies
- Last post
by George2
- Hello everyone,
I am building a DLL using embedded VC 4. When building a DLL (written in C) for platform MIPSFPU, there is a strange link error.
fatal error LNK1112: module machine type 'MIPS' conflicts with target machine type 'MIPSFPU'
Here is the link option I am using. I am wondering what is wrong with the settings
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stac
-
- Keyboard Hooks
by TTris
- 2 Replies
- Last post
by Simple Samples
- Hi, I'm creating a keylogger to test an antivirus program I am making, and from what I've heard, the best way to do this is with a Keyboard Hook. If somebody could not only post the code involved in creating a Keyboard Hook but possibly give some basic explanation of it. If anyone could do this for me I would greatly appreciate it because I've looked around this forum and the internet to figure ou
-
- Infinte wait in mswSubdocument::Open
by JimMcGill
- 2 Replies
- Last post
by JimMcGill
- Hi All -
I'm trying to write a piece of C++ code to process Word files. I've basically got it working (there are a lot of good tools available from the Word library to pull apart documents into their component pieces) but I've got a baffling infinite hang in the call to ATL::AtlIsValidAddress from AfxIsValidAddress that I've isolated but don't understand.
Technical - I'm running th
-
- Virtual Inheritance with a virutal function
by Syed Babu
- 8 Replies
- Last post
by Syed Babu
- Hi guys,
I'm a software developer from india working on C++ since 6 years. I have question regarding virtual inheritance.
Consider the following code
class A { public: A() { a = 0; } public: virtual void Print() { cout<<"a = "<<a<<endl; } private: int a; }; //************************************************************ class B : virtual
-
- CDialog based app is crashing on exit at AFX_MODULE_STATE::~AFX_MODULE_STATE()
by nick78
- 14 Replies
- Last post
by Simple Samples
- Hi,
I have a Cdialog based modal dialog application that is crashing on exit in release only. I do nothing with the dialog except open it and then close it by using the "x" of windows. it's an mfc project using dynamically linked dlls.
The app is a global object, and a modal dialog is created in its initInstance.
the app crashes at the line delete m_pDaoState;(in afxsta
-
- error C2668: 'pow' : ambiguous call to overloaded function in VC++ 2005 only
by -anthrax-
- 9 Replies
- Last post
by -anthrax-
- hi,
my program which was written in VC++ 6 worked perfectly fine untill i want to convert it in to VC++ 8 (2005). as i compile it in new compiler it gives me..
error C2660: 'ATL::CTime::GetGmtTm' : function does not take 0 arguments
: fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory
1>.\SampleGroupRecordView.cpp(4470) : e
-
- Debugging Problem
by Anonymous552447
- 6 Replies
- Last post
by Bite Qiu - MSFT
- Hi
I am facing debugging problem in visual c++ 2005 Express Edition.
I am not able to debug some part of code which will be loaded dynamically.
These functions we could able to debug in vc ++ 6.0
Any solutions for this issue
Plz help me out. Thanks in advance.
-
- _fcvt_s
by Asif110
- 3 Replies
- Last post
by Bite Qiu - MSFT
- I have replace the deprecate _fcvt with _fcvt_s but its now giving the following debug assertion, even though I have defined the buffer size.
sizeInChars >= (size_t)((digits > 0 digits : 0) + 2)
Any ideas why
-
- Why page pragma was removed from VC 8.0
by AmitC
- 1 Replies
- Last post
by Jonathan Caves - MSFT
- Hi, I am migrating large amount of C++ code to VC++ 8.0 , which was earlier written in VC++ 6 While compiling the code I get compiler warning C4068 - unknown pragma for the line which contains the statement : #pragma page () Could some body help me understand why page() pragma has been removed from VC++ 8.0 Any web reference would be usefull. Regards Amit
-
- Singleton syntax for managed code?
by LouArnold
- 4 Replies
- Last post
by LouArnold
- Is there an appropriate syntax for a singleton for managed code The classic, basic singleton is: -- [code] class Singleton { public: static Singleton* Instance(); protected: Singleton(); private: Singleton(const Singleton&); static Singleton* xinstance; }; //implementation: #include "Singleton.h" // Implementation Singleton* Singleton::xinstance = 0; Singleton::Singleton(){}