-
- Exclude files from the build process depending on configuration
by GET@h
- 2 Replies
- Last post
by GET@h
- Hi All, I'm building an application using Visual Studio 2005 (unmanaged application in c++). I have some source files in my application that I need to include in the compilation/build process depending on the configuration I'm using (Debug/Release) Would this be possible Thanks,
-
- InvalidateRect and GetClipBox
by alunlee
- 4 Replies
- Last post
by alunlee
- I invalidate a rectangle of the client area in OnUpdate like this:
Code Snippet
CRect rect(10, 20, 30, 40);
ClientDC dc(this);
OnPrepareDC(&dc);
dc.LPToDP(&rect);
InvalidateRect(rect);
However, I can¡¯t get the rectangle in OnDraw like this:
Code Snippet
CRect rect;
pDC->GetClipBox(&rect);
-
- I need a socket example
by d_brandt
- 5 Replies
- Last post
by Simple Samples
- I've spent more hours than I care to remember trying to find a socket example worth a damn, so I could learn socket programming. However, not a single one will compile right. I always get errors, and I'm sick of trying to fix the errors. (and yes, I've linked my program to the ws2_32 library) I need an example that will compile correctly with Visual C++ 2005.
-
- Calling Microsoft Project from a C++ program
by Mrs Spike
- 2 Replies
- Last post
by Mrs Spike
- From within a C++ program, I want to run MS Project and open a schedule file. I have included all the classes from the Microsoft Project type library into my C++ project. I am trying to use the class CMSProject for a MS Project file.
When I try to #include CMSProject.h I find that it will not compile because there is no definition of class Application . It is not in any of the files b
-
- How to display char to a label?
by Kamwing
- 12 Replies
- Last post
by Kamwing
- The following is my code const unsigned char *pa; const unsigned char *pb; unsigned char pc; pa = ascBitmap8x15('l'); pc = *(pa+4); label3->set_Text("String Type"); I would like to ask how can I display the unsigned char pc to the label3 using the method set_Text
-
- QueryPerformanceCounter Resolution
by Ogan
- 8 Replies
- Last post
by Aleksandr Tokarev
- Hello. Sry if i choose wrong subforum.
Im really need to know which resolution QueryPerformanceCounter(and QueryPerformanceFrequnce) Functions have Im read few different numbers - 1 nanosec, 2 mcsec, and 1 millisec. May be someone on this forum can help me...
P.S.
Sry my bad English...
-
- problem about the function WaitForSingleObject
by sky2008
- 6 Replies
- Last post
by scor7910
- I wrote a program about monitoring a printer. the main code likes these:
if((: penPrinter((char*)pPrinterName,&hPrinter,NULL)) == 0) {... } if((hPrinterNotification=FindFirstPrinterChangeNotification(hPrinter,PRINTER_CHANGE_ADD_JOB,NULL,NULL))==INVALID_HANDLE_VALUE) {..... } while(true) { return_value = WaitForSingleObject(hPrinterNotification,INFINITE);
if(return_value==(WAIT_OBJ
-
- Convert managed type to unmanaged
by Nikhil_Ribeiro_c7f6bf
- 1 Replies
- Last post
by Mike Danes
- I'm using a copy of Visual Studio 2005 EE.
I need to use a String^ value returned by Directory::GetDirectoryRoot() with a third-party unmanaged library that accepts char *.
The compiler says that converting managed types to unmanaged type is not possible.
Any suggestions would be appreciated.
-
- To read time and date of the system
by Suman#SS
- 5 Replies
- Last post
by John Sudds - MSFT
- I am writing a program for digitising the bank accounts.i need to read date and time of the system and calculate the difference with the date of account opening(which will be taken from the user).To calculate the interest and so-on.how to read date and time of the user.i came to know that there is a header file "time.h" and "date.h" !....... is it true ... if so how to get the
-
- Can't catch correct exception type
by RoryD
- 3 Replies
- Last post
by RoryD
- Hi, I'm having a weird problem where I can't catch a really simple std::exception. The output of the code below for me is "unknown exception"
#include <exception> #include <cstdio>
#include <exception> #include <cstdio>
int main(void) { try { throw new std::exception("bork"); } catch (std::exception const&) { pri
-
- CHtmlView
by Sudhakar.hcitek
- 1 Replies
- Last post
by Sahir Shah
- Hi, How can i block images in CHtmlView.Thnx in advanceSudhakar
-
- How to creae a file on special sector (address) ???
by JamesChu
- 3 Replies
- Last post
by Simple Samples
- Dear All,
I am wondering if I can create a file on special sector
Means that the file should put on special secotr ( or address) ,such as an offset number from boot sector!!
Thank you in advance..
JC
-
- Security restrictions on buttons
by MasterTraveler
- 2 Replies
- Last post
by MasterTraveler
- Hello, everyone! Please excuse me if I've posted in the wrong area, but this seemed like the best place to pose the question. I've just developed an application at work (using Visual C++ Forms in Visual Studio 2003 -- they haven't upgraded to '05 yet), which allows users to input data and view data in SQL database. I'm pretty proud of it, but it's really nothing overly advanced. The first screen d
-
- Is that the rint() no longer support in Visual Studio 2005 in math.h ???
by christopher kok
- 3 Replies
- Last post
by Andreas Masur
- Hi,
I wonder is that the "rint()" doesn't support by Visual studio 2005
What is right function call provided in Visual Studio 2005 with the same intention of "rint()" instead of using "rint()"
Thanks !!
-
- Startup ASSERT Problem
by MacKenrick
- 2 Replies
- Last post
by Damien Watkins - MSFT
- When Windows starts to load I get a Debug Error with a message to see Visual C++ documentation on Asserts. The error line reads:
C:\WORK\nc2_20020220\cyir\naturalcolor\systemtray.cpp Line:124
("Naturalcolor" is a program that came with my Samsung SyncMaster 930b monitor).
When this happens Windows stops loading the other programs in my systems tray. Sometimes I have to reboot se
-
- fatal error C1083: it's impossible to open include file: 'GL/glut.h' OR 'fatal error LNK1104'
by campanilla
- 1 Replies
- Last post
by Bite Qiu - MSFT
- hello!! I have install 4 or 5 times the Visual C++ 2005 Express Edition and PSDK-x86 and I cann't debug my program for this error" fatal error C1083: it's impossible to open include file: 'GL/glut.h' " or the next " fatal error LNK1104: no se puede abrir el archivo 'user32.lib' "!! I copied the file " glut32.h " to "C:\Archivos de programa\Microsoft Platform SDK\
-
- Disapearing Colour window
by Robin Imrie
- 2 Replies
- Last post
by Robin Imrie
- I am using VS8 with SP1 and when i try and edit an icon or bitmap resource the colour window/toolbox disapears after it has been clicked on e.g. selecting a colour. Once it has gone it is very dificult to get it to reapear.
I have the window to normally dock and when I have managed to get it to float it still disapears.
Any suggestions
Reagards
Robin
-
- Miggrating project - fatal error LNK1104
by Nidolap
- 3 Replies
- Last post
by Bite Qiu - MSFT
- Hi all! I am miggrating some code from old version of visual studio to the new 2005 version and I keep geeting this message when I build : LINK : fatal error LNK1104: cannot open file 'LIBCD.lib' I've already did some research and I'm aware that this lib is no longer needed in this new version, am I right But how do I solve this Thank you very much!
-
- Using an __stdcall LIB function within a managed method
by Emma Oges
- 6 Replies
- Last post
by Emma Oges
- Hello,
I bought a utility LIB functions to be linked with my new managed code. The code linked properly with my previous native code but will not link with my managed code. I used the same runtime library setting (i.e., /MDd) for both codes, but the managed code was compiled with \clr.
I have been researching on how to resolve the reported calling convention compactibility problem fo
-
- Shortcut Key for Dialog Button
by davidlks83
- 6 Replies
- Last post
by Nishant Sivakumar
- Hi all,
I am doing a shortcut key in MFC version 6. I create a accelerator in my resource view. Then i add few shortcut key i want. Then i use the PreTranslateMessage(MSG* pMsg) to do the task i want. Everything seem to be OK but when i assign 1 of my shortcut key to space bar (VK_SPACE) at the accelerator. The shortcut key work abnormal, it works only once then i need to click other things
-
- Mixed DLL ; Breakpoint not hit
by arul_kumar
- 5 Replies
- Last post
by arul_kumar
- Hi,
The environment is VS 2003.
I have a Mixed DLL with "C" exported functions. This DLL is loaded from a PowerBuilder application. My Breakpoints on this Mixed DLL Source code dont work. I tried DebugBreak(), It breaks at Native code and its of no use for my debugging.
I see my DLL sysmbols are loaded when i Debug->AttachProcess.
How to i solve this . Thanks i
-
- Disappearing scrollbars...
by &#193;sgar&#24
- 3 Replies
- Last post
by Damien Watkins - MSFT
- Hello, I have a problem regarding scrollbars that disappear when trying to display a CMetaFile object. I'm using VC++ 6.0 Enterprise Edition, and here's some code from the situation:
Please take in count two facts: First, the working code was already done, I'm just trying to extend it in the way you'll see below. Second, I'm also clumsy regarding VC++. **blush** That's why I badly need your hel
-
- Non unicode app with unicode dll
by Ladislav Dud&#38;&
- 12 Replies
- Last post
by Ladislav Dudá?
- I have application compiled with MultiByte character set. This application load dll compiled with unicode character set. DLL create new class derived from MFC CTreeCtrl. All works ok, except notification and messages didn't get to my control.
I think this is problem that dll is compiled with unicode support and application not. If i compile dll with no unicode support notification and messa
-
- problems with debugging in Visual studio 6
by ariel_ro
- 5 Replies
- Last post
by ariel_ro
- I need some help regarding an issue that i have in VS 6. In visual C++ I get an error when i try to attach the debugger to a program. It says DM0025:Error attaching to process. I read the documentation on support.microsoft and that problem occurs only when u have windows 95 and i'm using xp with sp2. Tell what should i do..if this problem sounds you familiar. Should I reinstall my windows
-
- Debugger uses wrong addresses to display complex types (classes) within classes
by Fabrice Hoffmann
- 4 Replies
- Last post
by Fabrice Hoffmann
- Hi,
i use VS2005 SP1 with remote debuging. The target OS is RTOS32 (onTime).
My problem : After the constructor of a class was called i found out (the debuger tell me), that not all members are initialized properly. When i get deeper into this i saw, that the debugger use different addresse for complex type members (classes) than i can see in the disassembled code. (e.g. Offset of 8