-
- Visual C++ New Project Wizard and Custom Build Rules File
by tprice
- 5 Replies
- Last post
by Simple Samples
- Hey Everybody, I've got a bunch of projects that are soon to be created containing files that require custom tools to build. I have already created a build rules file that contains the necessary build steps for these files and have found that it works. Because there are lot of projects that will be created, I am setting up a new project wizard to handle specific settings (include dirs, preprocesso
-
- The concept behind a custom view object.
by travkliewer
- 1 Replies
- Last post
by Bite Qiu - MSFT
- I've tried before with specific questions. The idea was I'd
try down a path and when I get blocked, I'd ask for a suggestion of a solution
to the problem, but that didn¡¯t work. So let¡¯s try a different approach. Maybe
I just need to be pointed down the right direction. The very basic view in a Doc/View
architecture is the class CView. Then when more distinct functionality is
required, one wou
-
- CRT assembly versions confusion :8.0.50608.0 vs 8.0.50727.42
by zoom maxed
- 6 Replies
- Last post
by zoom maxed
- I'm totally confused about the CRT versions.
I have a RTM version of VC8, which automatically created an embedded manifest for my app. The manifest has a dependency on version 8.0.50608.0 of the CRT.
According to Ayman Shoukry's Visual C++ Libraries DLL deployment method #2, http://blogs.msdn.com/aymans /archive/2006/04/04/568466.aspx
I planned to copy the CRT and its manifest
-
- Handle Esvape key in ATL dialog
by nimm
- 2 Replies
- Last post
by nimm
- Hi, How to handle escape key in an ATL dialog Is there any equivalant method to PreTranslateMessage in MFC I want to close my popup dialog on escape. plz help
-
- strange runtime crash
by Jesse Beder
- 2 Replies
- Last post
by Bite Qiu - MSFT
- I have a fairly large project which stops functioning when I remove what appears to be an irrelevant .cpp file. I'm using Visual Studio 2003; and I'm linking with SDL, so it's fairly messy what the entry point is. I set the linker subsystem to Windows, but I still have int main(int argc, char* argv[]) as the entry point. In my original project, this works fine, and the program enters where it's su
-
- How to add Row wise jpeg images in ListBox control
by Atool
- 0 Replies
- Last post
by Atool
- Hi I am using VC++ 6.0 for my projects. I am using ListBox control on dialog box in which i am displaying JPEG images. My requirement is that I want to display images in row wise pattern( like Thumbnail) in ListBox. So how can I do it using VC++/MFC. Thanks and Regards Atul Mahajan
-
- ReadFile method for serial port communication
by MoSin
- 2 Replies
- Last post
by MoSin
- Hi, I'm doing communication over a serial port and I took a library on the internet handling everything. Sadly, I ran into problems when I began to Read from the port. What I do is I send commands to a motor and read on the port to get his answer. The motor responds instantly (almost). The thing is the ReadFile instruction takes about 100ms to execute. If I just write on the port, I got no problem
-
- From C#, how to call a C++ object's destructor?
by Feng26
- 14 Replies
- Last post
by Jonathan Caves - MSFT
- I have a C# program instanciating a managed C++ object. When I am done with it, I want to call the C++ class' destructor. I have the destructor defind like the following:
...
public:
~MyMCClass()
{
...
}
...
Now my question is, how do I invode this destructor from my C# code I tried both:
...
MyCObj.~MyMCClass();
...
and
...
MyCObj.dele
-
- beginning visual c++
by michaelrobert
- 2 Replies
- Last post
by michaelrobert
- how do you erase your original project title and start over from scratch. and how do you get the properties window to come up
-
- Class Interrelationship
by petpan24
- 6 Replies
- Last post
by einaros
- I have the following problem in an application I'm writing
I have two classes, WGMenu and WGSubMenu, where WGSubMenu has as baseclass WGMenu. WGMenu defines a member, hThis.
WGMenu has a function which requires a WGSubMenu as argument, and inside the function it uses the hThis member of this class (which it got through the relationship with WGMenu). However, I have no idea how to get
-
- Exporting a class but can't use the public functions
by Gloria123
- 14 Replies
- Last post
by Gloria123
- Hi All,
I am upgrading a software package from VC++ 6.0 to Visual Studio 2005 and I am having trouble with a DLL that exports a class to be used by an EXE.
The DLL compiles fine and the EXE links to it without problem.
I can create an instance of the class but when I try to use the public functions it crashes.
If anyone can explain where I am going wrong, I would greatly appreciate
-
- Button drawing issue
by nimm
- 2 Replies
- Last post
by nimm
- Hi i have a win32 application. I am creating a few buttons programmatically. The problem is when i click a button a black border will be shown around the button since it is focussed; But the border remains there forever, even if I click any other button or the window is invalidated again. I used the foll style for the button WS_CHILD|WS_VISIBLE|BS_BITMAP If i set the foll style then its working fi
-
- From C++ Multiple Inheritance to Interfaces.
by ARehman
- 5 Replies
- Last post
by Ramesh Kumar.S
- Hi,
I want to understand what was/were the problem(s) with c++ mutliple inheritance model except Diamond Problem . If we can solve the diamond problem with Scope Resolution operator and we can achieve inheritance and polymorphism, then why we need to introduce a new concept of Interface.
I'm not against the interface concept, it is just that I truly want to
-
- help me plzzz
by simpatico
- 7 Replies
- Last post
by einaros
- hi
i have a problem in c language
plz help
its a loop draw a star in a position input by a user like this
- - -
- * -
- - -
then the user must provide another position so the fig. must be redrawn
and the previous star must be taken from the fig above
and draw the old and the new star like this :
- - -
- * -
- - *
plz hlp me as soon as
-
- CAM graphics
by Schwarzschild
- 14 Replies
- Last post
by Schwarzschild
- I am trying to install the CAM graphics package available at http://www.math.ucla.edu/~anderson/CAMclass/CAMClass.html. I tried just dumping everything in my solution but that did work because I got linker errors. Could someone give me the exact steps I need to take to use this package (I am somewhat new to Visual C++) if that is not asking too much
-
- How to add an ATL method ?
by .NetProgrammer
- 2 Replies
- Last post
by .NetProgrammer
- Hi,
I need to make an ATL project in VC++ on Visual Studio 2005.
A method needs to be added with ¡°out ¡°parameter.
But when I go to the Add Method wizard, the parameter attributes check boxes ¡° out and retval ¡± are disabled.
How can a method with out parameter be added
Example:
Add([in] short num1, [in] short num2, [out] short sum)
Thanks,
-
- beep continously
by Randy Seedle
- 3 Replies
- Last post
by Viorel.
- Is there a function that will beep continously that is non blocking It would also need to be able to be shut off at a later time (unspecified on creation).
Randy Seedle
-
- address of function template instance is passed as NULL under certain conditions.
by sielenk
- 1 Replies
- Last post
by einaros
- The following code compiles without warnings with Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) but behaves unexpectedly - at least for me - and different from VC7. --- snip --- #include <cassert> template <typename F> void f() { } class C { public: template <typename F> C(F f) { assert(f); } }; void g(const C&) { } int wmain(int /*argc*/, w
-
- Help with exceptions during program startup(loading DLLs, before WinMain)
by mgouw
- 1 Replies
- Last post
by mgouw
- Hi,
I've been having difficulties with my program. On some machines, after a while, it starts crashing the machine via the blue screen of death. I have not been able to trace that error to a specific location, but I have had this one lingering error that I cannot get rid of and would like to approach this problem one step at a time.
Basically during a loading of DLLs, before it eve
-
- The exception unknown software exception (0xc0000409)
by D.Pradeep kumar
- 2 Replies
- Last post
by nobugz
- Hi..
I get error msg
The exception unknown software exception (0xc0000409) occurred in the application at location 0x71c44a446..
Remote and routing service , Computer browser service and their dependencies services stop working ....
Please hel me resolve this problem.
-
- Modal Dialog not in foreground at start
by Pellaeon
- 3 Replies
- Last post
by Damien Watkins - MSFT
- Hello, i have a problem with my modal dialogs. When I open a new dialog with DoModal() out of button method from my main dialog, the new dialog istn't in the foreground of my main dialog. You can't see that there is a new dialog. I have to press the <alt> key to switch to the new dialog. Yesterday all worked fine without this problem. I don't know what I've changed to create this bizarre beh
-
- Error C2090
by Asif110
- 3 Replies
- Last post
by Bite Qiu - MSFT
- It's again a port issue from VC 6 to 2005. Here is the problem code
Code Snippet
# ifndef __WATCOMC__
extern char *sys_errlist[];
extern int errno;
# endif
It is giving error code C2090: function returns array
I am not using Watcom C so I could just comment out the directive, but I still want to keep it for backward compatibility.
-
- Runtime Error during execution of C# Application
by Pravin Prabhu
- 4 Replies
- Last post
by Marius Bancila
- Hi, I Have an Application developed in VC# ( visual Studio 2005) .Net runtime 2.0
Sometimes ( not always ) i get an error message in a message box saying that
" <application_name> has encountered a problem and needs to close. We are sorry for the inconvienience"
"if you were in the middle of something, the information you were working on might be lost"
-
- Error C2090
by Asif110
- 3 Replies
- Last post
by Bite Qiu - MSFT
- It's again a port issue from VC 6 to 2005. Here is the problem code
Code Snippet
# ifndef __WATCOMC__
extern char *sys_errlist[];
extern int errno;
# endif
It is giving error code C2090: function returns array
I am not using Watcom C so I could just comment out the directive, but I still want to keep it for backward compatibility.
-
- MFC message handling
by sawer
- 3 Replies
- Last post
by Simple Samples
- Hi I want to ask a basic question about MFC. This is simple code
Code Snippet
#include <afxwin.h> class MFC_Tutorial_Window :public CFrameWnd { public: MFC_Tutorial_Window() { Create(NULL,"MFC Tutorial Part 2 CoderSource Window"); } void OnLButtonDown(UINT nFlags, CPoint point); DECLARE_MESSAGE_MAP() }; BEGIN_MESSAGE_MAP( MFC_Tutorial_Window, CFrameWnd)