-
- problem debugging
by Big Bill
- 7 Replies
- Last post
by Bite Qiu - MSFT
- I got a slight problem
whenever i add somthing new to my form it returns about 16 errors but when i rebuild it , it works fine i know it is not a big deal but can someone please tell me how to fix it becasue it is getting anoying
-
- Coinitialize doesn't work the first time called
by Darrell Bennington
- 8 Replies
- Last post
by Darrell Bennington
- I had to add a call to an Oracle stored procedure to a VC++ 6.0 project in a library I created, and did it using ADO so it needed to make sure COM was initialized. I put the COM requirement back onto the client code (since I can't handle the context of the call - and the method will be called from several different thread contexts).
On the client, the call happens on an event thread that gets s
-
- How can I set the Application Icon in Visual Studio 2005
by BlinkenLights
- 6 Replies
- Last post
by Robin Brooks
- I am using Visual Studio 2005 Pro. I want to set the application icon for my Win32 exe. This is the icon that appears in the windows explorer next to the name of the application when it is viewed as a file. The logical place for this setting would seem to me to be to select the "solution" and then project properties and then look under Common Properties, but when I do this I see only a s
-
- how do I install missing file msvcr80.dll
by sal p
- 5 Replies
- Last post
by Ted.
-
Please, if someone knows how to install file msvcr80.dll, if you
don't mind let me know.
-
- operator new override
by bob_monkhouse_book_of_gags
- 4 Replies
- Last post
by bob_monkhouse_book_of_gags
- hi,
I've overriden operator new and delete in some of my classes. These classes are implemented in a DLL used by the application. Now when I run my app, MY versions of operator new and delete are not called. In a very simple app (i.e. there's just an exe and no secondary dll's , my operators new and delete are called correctly. My declaration is as follows;
class DECL toto
{
-
- configure questions when using console with MFC
by DamonPeng
- 3 Replies
- Last post
by Bite Qiu - MSFT
- There are some previous console source code with MFC. Can anyone explain the difference between /MD and /MT From the documents, I get that /MT is for static lib and /MD is for dynamic lib, is that right If we choose "Use MFC in a static Library", then we must config using /MT; if we choose "Use MFC in a dynamic Library", then we must config using /MD, am I right For dll, lib or
-
- Getting HANDLE using CreateFile for network adapter
by hengshi
- 4 Replies
- Last post
by hengshi
- Hi all, Below is my code, but i am not able to retrieve the HANDLE for the desired network adapter. Any idea #include <windows.h> #include <ntddndis.h> #include <iostream> using namespace std; int main(){ /* HANDLE CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition,
-
- C Code Display Incorrect
by AndrewAustern
- 12 Replies
- Last post
by einaros
- Create a 'C' program in Dev Studio 2005 - Not a C++ program, and watch the display look like this:
// CTest.c
#ifdef __cplusplus
# error This message should be greyed out.
#else
# error This message should be colored.
#endif
-
- VC++ 6.0 porting to Vista x64
by Neerajp
- 7 Replies
- Last post
by Neeraj Pandey
- Can any one help me out , how can I start with Porting VC++ 6.0 to Vista x64. I am getting very wierd errors.
-
- Getting an error with ATLCOM.h in VS 2005 in a C++ project originally developed in VS 2003.
by RohitAtKA
- 0 Replies
- Last post
by RohitAtKA
- /// ***********ERROR TEXT*************************** error C2664: 'ATL::_CopyInterface<T>::copy' : cannot convert parameter 2 from 'const STComPtr<T> *' to 'ISTEventSubInfo *const *' C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlcom.h
//*******QUESTION************ Given the context outlined below: If method get_item in ATLCOM.H with VS 2005 is expected to invoke Co
-
- Problem that ends the program (Vector.h from STD)
by Jerry584894
- 14 Replies
- Last post
by Jerry
- From this code:
Code Snippet
for (siSprite = m_vSprites.begin(); siSprite != m_vSprites.end(); siSprite++)
{
delete (*siSprite);
siSprite = m_vSprites.erase(siSprite);
siSprite = m_vSprites.begin();
}
where m_vSprites is a vector. I think it happens when only one item exists in the vector.
-
- Get the ProcessID of a Process by its name
by EA512
- 4 Replies
- Last post
by einaros
- Can someone tell me the function to retrive the PID of a process. I only have the name of the process.
-
- UpdateDate Debug Assertion Failed. dlgdata.cpp line 308
by transistor47
- 3 Replies
- Last post
by Simple Samples
- Hello everybody,
I try to execute a program which is developed in Microsoft Visual C++ 6.0 and appears the following error:
"Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found."
Besides I use the debug tool and it appears "Debug assertion file. dlgdata.cpp, line 308". When I use Call Stack Window and the error is produced for the
-
- dual channel Memory !!!!
by anisk
- 1 Replies
- Last post
by Sdi
- hi,
what implementation in Windwos Vista is done regarding dual channel Memory
Because here i'm using dual channel Memory in my VC++ Application, but i'm not getting that speed for
Memory management functionality.
If i'm posting my query on wrong forum, please let me know where shud i post
-
- How to modified combobox item in other form
by y3ss
- 2 Replies
- Last post
by y3ss
- Hi Guys,
Need help since i can't find any in MSDN. I'm currently doing a windows application using C++ CLR. Currently my program has two form, A where my application starts, and B where i store all the configuration. What i wanna do is that i want to load the combobox items in form B when form A is start. So whenever i open the form B, all the selected items in combobox will remain the same
-
- Exception handling
by Harpreet Singh
- 4 Replies
- Last post
by Ben42
- I have following observations:
1) Using VC++ 2005, write a C++ code that divides a value by zero. Put this code in try catch block. The catch block is unable to catch the exception. On the other hand, if the same code is written in C#, the exception is caught in the catch block.
2) To futher add to it, VC++ 6.0 is able to catch the same exception which VC++ 2005 cannot, although in the catch
-
- Assertion Failed in daocore.cpp in VC++
by aaaa102
- 8 Replies
- Last post
by aaaa102
- Hi,
I am getting error like Assertion failed in daocore.cpp.
Here i am using CDAODatabase and i am opening and closing Database properly
still i am geting error while opening the database and its says
void CDaoDatabase::Open(LPCTSTR lpszName, BOOL bExclusive, BOOL bReadOnly, LPCTSTR lpszConnect) { ASSERT_VALID(this); // Re-Opening is invalid. if (IsOpen()) { ASSERT(FALSE); return; } wh
-
- Linker Error LNK2001 When Calling a Function from a DLL
by Pete K
- 6 Replies
- Last post
by Pete K
- Hi,
I am using VC++ 6.0 Standard Edition, trying to call a function from a DLL using the Load Time method. The .exe compiles fine, but it seems that the linker does not see the .lib and gives me the 2001 error. I'm guessing it could be an IDE parameter that I have missed. Here's a simplified version of the code:
============ DLL ===================
#include "stdafx.h"
#define
-
- Setting a Nullable type to null in C++
by gi-m
- 3 Replies
- Last post
by crescens2k
- If I declare, for example, a Nullable Boolean type and assign it to a value, let's say true, how do I set it back to null if I want to . I tried NULL, nullptr, and I searched around the documentation a little bit and didn't find the answer. The best I could come up with that works is the following:
Code Snippet
Nullable<Boolean> nullbool;
Nullable<Boolean> nb =
-
- Using OpenGL with Visual C++ .NET 2003 Standard
by Tal-Guard
- 2 Replies
- Last post
by renxu350
- This is a two part question. 1) How do I link to the OpenGL libraries (or any library) in VC++ 2003 2) What are the #include directives that I'd need to make a basic Win32 Console Project in OpenGL
-
- Cannot turn off Statement Completion in VS2005 after installing SP1
by CoreStar2000
- 2 Replies
- Last post
by CoreStar2000
- I recently installed VS2005 SP1 and now I cannot turn off parameter information. It is not checked in Text Editor | C/C++ | General tab under "Parameter information", but it pops up anyway. If I'm typing in a function, it will popup an annoying list of parameters for the function.
-
- possible bug in std::map::find?
by electrikAdic
- 3 Replies
- Last post
by einaros
- Hi, I have an object X in which I've overloaded operator== and operator<. I am using X as the key into a map. The implementation for Visual Studio's stl find looks like this: iterator find(const key_type& _Keyval)
{ // find an element in mutable sequence that matches _Keyval
iterator _Where = lower_bound(_Keyval);
return (_Where == end()
|| _DEBUG_LT_PRED(this->com
-
- Convert integer to time/date
by HNelson
- 3 Replies
- Last post
by HNelson
- I have a card that outputs the date (starting Jan. 1, 1970) in seconds. I was wondering if there is a way to convert this number into the current date/time.
-
- Displaying PopUp Windows
by maverick786us
- 2 Replies
- Last post
by maverick786us
- I have to create a word plugin through shared addins where I can trap the events to generate pop-up tool-tips on MS Word. Can some help me out
Thanks in Advance
-
- How to get handle of another application window
by LoSko
- 4 Replies
- Last post
by Damien Watkins - MSFT
- I'm writing a C++ Windows Form application. What I need is to retrieve the handle of an external window when user select it with the mouse. I searched the Internet for Mouse Hook examples but I was able to find only C# ones and this doesn't helped me much. I found some example using win32 API too, but I don't have any idea of how use them into a Windows Form project. Could someone help me with som