-
- GDI+: intersection with bezier curves?
by JsJ_Slim
- 4 Replies
- Last post
by JsJ_Slim
- Hi, Can anyone tell me/direct me to links on how to detect if a mouse click (or some coordinate) is within a drawn Bezier curve I'm currently drawing a bunch of them on a form, and would like to know if there's anyway at all to find out if a mouse-click event has occured, and which curve was selected. Thanks. using: Visual C++ 2003
-
- unmanaged app crashing at startup with IJW dlls
by Shenten
- 4 Replies
- Last post
by Shenten
- I'm trying to add a C++ managed dll to an existing unmanaged application. The dll is an MFC extension dll with CLR enabled. When this dll loads with my exe the application crashs with the following callstack (in debug !) . I tryed to load the dll in an other project and everything is fine. I did had the Loader lock issue at the beginning but a coucle #pragma managed solved the problem. Does anyone
-
- 'MSVCRTD.lib' Linker Error
by Draznar
- 1 Replies
- Last post
by Bite Qiu - MSFT
- I am not having a problem with, using old code into the new VS 2005. Nothing I have will compile suddenly. Not even a basic "Hello World" application. Every program I creat or run gives me the
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' Error. What can I do to fix this Would it be easier to just uninstall and reinstall
Code Snippet
// HelloWorld.cpp :
-
- Native Wifi
by Hendrawan Ashari
- 5 Replies
- Last post
by Hendrawan Ashari
- Some one can help me about native wifi I have Windows XP SP2 with Visual Basic 2005 and have update with WindowsXP-KB893357-v2-x86-ENU and WindowsXP-KB918997-v6-x86-ENU. I don't know how to code, please give me some sample project with native wifi, and all neede resource to apply them. Thanks for response
-
- can't connect to an access database from a thread
by jmcordoba
- 1 Replies
- Last post
by Aleksandr Tokarev
- Hello, I'm trying to connect to an access database just to read it. I'm creating a thread with afxbeginthread but i have problems. If I execute the same code without threading it works. Her is my code: void CAutomation::BBDD() { CMiDaoDatabase dbData; CDaoRecordset *rsData; CString sAux, sDest; int iRet; sDest=m_sPathAccess; sDest=sDest + "Comparaciones"; sAux.Fo
-
- Question about accepting strings of European format
by Lee3305
- 8 Replies
- Last post
by Lee3305
- A friend of mine from the UK was testing a program I wrote in which there are parts where the user needs to input a double, almost always a decimal. Since he is from the UK, he has his regional setting on Windows set to European, thus, our decimal points are commas for them. Since my program is looking for decimal points, it crashes when it sees a comma used in that manner. Of course, when he set
-
- C++ Express Compiler error
by Dennis Z
- 4 Replies
- Last post
by PaloMisik
- Hi, I am modding half life 2, to make it third person. So i've installed the direct x sdk, windows platform sdk and service pack 1, also i've added user32.lib to the field Additional Dependencies. ------ Build started: Project: client_hl2mp, Configuration: Debug HL2MP Win32 ------ Compiling... in_camera.cpp c:\program files\revelation studios\src\cl_dll\in_camera.cpp(9) : fatal error C1083: Cannot
-
- working with forms
by Anonymous1989
- 2 Replies
- Last post
by Anonymous1989
- I'm trying to get make the program check a textbox and see if the text in it matches a specific word. Here's the code:
// iostream_cin.cpp
// compile with: /EHsc
#pragma once
namespace hello {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
-
- Microsoft C++ x64 compiler very slow at floating point math
by Brad Robinson
- 12 Replies
- Last post
by Brad Robinson
- Hi,
I've been working on performance tuning some audio sample rate conversion routines and firstly I must say how impressed I've been with VS05's x86 optimizing compiler - it does some really amazing things, often matching and occasionally outperforming some hand written assembler I have. Today however I recompiled these routines with the x64 compiler and was shocked at the drop in perform
-
- memory problem
by Kumaraswamy
- 6 Replies
- Last post
by Simple Samples
- I am creating a form in MFC application and drawing dynamic controls like textboxes, buttons, labels and frame within it. I open the form and close the form. While closing the form I have taken care to delete the child controls first and then the parent control by issuing delete <controlname>
The amount of memory taken to draw the screen is the not amount of memory decreasing when I c
-
- stl set does not work in vs.net
by csheng
- 4 Replies
- Last post
by einaros
- I'm using STL in VS.NET 2005 with the following code:
Code Snippet
const int N = 10;
int a[N] = {4, 1, 1, 1, 1, 1, 0, 5, 1, 0};
int b[N] = {4, 4, 2, 4, 2, 4, 0, 1, 5, 5};
std::multiset< int > A(a, a + N);
std::multiset< int > B(b, b + N);
std::multiset< int > C;
cout << "Set A: " << endl;
std::set< int >
-
- How to convert unsigned char __gc[] to char[]
by Feng26
- 4 Replies
- Last post
by Feng26
- Hi,
I am new to C++ .Net and currently running into a problem of type conversion.
I have a unsigned char __gc[] and I need to convert it into a char[]. How do I do that
Thanks for your help!
Feng
-
- MFC ActiveX TLB File not found
by Eusebiu
- 1 Replies
- Last post
by Eusebiu
- Hello...
I am making a MFC ActiveX and when I try to register it with regsvr32 I get an error DllRegisterServer Failed. Return code was : 0x80020400. I've done some search and I found that I must call ::CoInitialize(NULL); I did this, but the result is the same. On a MSDN page I've read that When your control is registered, the AfxOleRegisterTypeLib function automatically looks for the specifie
-
- WIN32 problems
by Mr. Thunder_Tw
- 3 Replies
- Last post
by Simple Samples
- Hi,
My goal is to create a DLL that provides usefull functions wich give you a DialogWindow.
This has to be programmed in a way that only default DynamicLinkLibrarys(.DLL) files are used.
So I'm useing C++ and WIN32, working in Visual Studio 2005.
I have a few problems where I can't find the appropriate help for.
1st- Adding a "Button" and/or "Edit" t
-
- How to create libraries in VS2005
by Mike_in_NC
- 1 Replies
- Last post
by Simple Samples
- Sorry for this dumb question but I have just loaded VS2005 and am trying to convert old VC 6 projects. Most of the ole projects include MFC generated library projects in the build. VS2005 doesn't seem to have a project wizard to create a library. Can someone tell me how to convert the old MFC library project to VS2005 C++ Thanks
-
- Global access to managed class
by Paul Wheatley
- 3 Replies
- Last post
by Paul Wheatley
- The Visual Studio 2005 C++ compiler gives errors if I try to make a managed class global or staic.
Is there a way around this so that I can make a singleton design pattern for the glass where I have one instance that is globally accessible to all other classes
Thanks.
Paul
-
- Trapping the Start button click event
by dharmveersingh
- 2 Replies
- Last post
by dharmveersingh
- Is it possible to trap in a VC++ application the event generated when the Windows Start menu pops up. What is the message id that is generated for this event
Thanks in advance
-
- Managed Extensions for C++ to C++/CLI conversion tool
by madmac
- 4 Replies
- Last post
by madmac
- We have just finished and released our 1st software project using Visual Studio 2005 MC++, the source code for this has magically turned into a deprecated syntax during the products development lifecycle.
We are using /clr: oldsyntax to keep our existing code working but for how much longer I don¡¯t know.
For example we cant even add any new forms to our flagship software product with out
-
- Dialogs: modalities & etc.
by Vovka1960
- 4 Replies
- Last post
by Vovka1960
- Hi again! I have some problem with creating modeless dialog windows. To decribe situation I'm going to show you 2 examples: 1. I have 3 modeless dialog windows (the main and 2 additional). This time I'm opening all of them in WinApp::InitInstance procedure. And in this case all works as I want: if I click on any of all 3 windows - the window gets the focus, moving up over other two other dialogs
-
- File transfer using FTP
by Rinu
- 1 Replies
- Last post
by einaros
- HI all,
I want to write a program for transfering my "CSV" file into a server.Can any one help me to solve this using FTP .
It will be highly appreciated, if you provide code samples.
Thanks and Regards
Rinu
-
- Debugging an DLL build with /CLR compiler option
by alexander569898
- 0 Replies
- Last post
by alexander569898
- Hello, Normally, debugging an DLL written in unmanaged code is no problem, but when i build the DLL with the /CLR compiler option and calling mannaged code, the Microsoft Development Environment comes with the message: "Unable to start debugging" Changing "the type of debugger" from "Auto" to "Native Only" will get the application running, but i can't debug
-
- How can I Get an XP Look for CWebBrowser2?
by Questioner1201
- 12 Replies
- Last post
by Sahir Shah
- Hello, I am trying to use CWebBrowser2 to view pages and it is all working fine. The problem is that all the buttons look 'old school' I am currently using Windows XP and have modified my program which contains the IE component to have the Windows XP Look and feel; but for some reason, the internet explorer dialog within my program does not have the Windows XP Look. All the buttons are not rounded
-
- Unexpected namespace pollution in VC8 (bug?)
by limethief
- 4 Replies
- Last post
by einaros
- Running Visual Studio 2005 Professional, no service pack applied. Here is a code snippet distilled from some code that fails due to unexpected namespace conflicts: namespace ns1 { typedef unsigned long ns_t; struct base { ~base() {} }; } namespace ns2 { using namespace ns1; struct dummy : public base { }; } namespace ns3 { struct dummy2 { dummy2() {} ns2::dummy m_dummy
-
- CLR corrupts stack!
by Alexander Stoyan
- 12 Replies
- Last post
by Alexander Stoyan
- Hello World!
I`m very angry because I spent 2 days for nothing.
I have the next declaration:
typedef int ( __stdcall * File_Create)(LPCSTR FileName, DWORD Attribute);
File_Create pfnFileCreate = /* valid function pointer */
if(pfnFileCreate("file_name", 0)) { ... }
When pfnFileCreate I receive an exception:
Managed Debugging Assistant 'FatalExecutionEngineErro
-
- Autogenerated copy constructors and equals operators
by Lord Zoltan
- 2 Replies
- Last post
by Lord Zoltan
- Hi everyone,
Anyone know how to inhibit the compiler's autogeneration of copy constructors and equals operators for classes other than defining your own
I have a template queue class for which cloning is not really a valid operation, and as such some of it's nested types are not suitable for auto-generated copy constructors/operators.
Because of this, when I compile some code that uses t