Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > visual c > january 2007 > threads for january 8 - 14, 2007

Filter by week: 1 2 3 4 5

Function pointers and forward declaration
Posted by tobias_ebsen NO[at]SPAM hotmail.com at 1/14/2007 2:20:29 PM
hi !! i have i function pointer that i declared in unmanaged code: void (*func_ptr)(); and i have a managed class where i need to assign a pointer to this function pointer and then call it. check out this code: ref class MyClass; // forward declaration void Func() { MyClass::MyS...more >>


My program gets a WM_QUERYENDSESSION...
Posted by Frank at 1/14/2007 12:19:56 PM
My program gets a WM_QUERYENDSESSION message and asks the user if it is OK to shutdown. While he's thinking about it, Windows displays a box saying the program is not responding. If the user clicks Cancel the shutdown is canceled. My program receives a WM_ENDSESSION message and tells th...more >>

Converting VB DDE Client program to VC++
Posted by Cindy at 1/13/2007 11:29:00 AM
Hi all, I am trying to connect to a electromyograph machine for my thesis project, and I have a VB DDE client whose DDE functionality I want to convert to VC++. However I can't make my VC++ version connect to the DDE server somehow -- DdeConnect(idInst,hszService, hszTopic, NULL) is not wor...more >>

File Open dialog box
Posted by charles NO[at]SPAM home.com at 1/13/2007 11:11:47 AM
I have a question about the file Open dialog box. I would like to be able to make the dialog box bigger by selecting the bottom right-hand corner and dragging/expanding the box. I am told by my colleagues that this is not "standard" but find it hard to believe. Opening a file in MS word ...more >>

Find which dlls are being called by an exe
Posted by Abhishek at 1/12/2007 5:04:01 PM
Is there a method of finding out which dll's are being used by an exe if yes how? regards Abhi ...more >>

"The system cannot execute the specified program"
Posted by Chris at 1/12/2007 3:33:23 PM
Hi, I installed Visual Studio 2005 SP1, my application does not start on machines without Visual Studio installed any more. It was working without SP1. After searching the web, it seems caused by manifest file, I changed link option to generate external manifest file. The manifest lists...more >>

WCF callbacks under C++/CLI
Posted by Jim at 1/12/2007 1:24:16 PM
I am trying to figure out how to implement WCF under C++/CLI. Most examples involve C# code. For instance, an interface is defined like this: interface IMyContractCallback { [OperationContract] void OnCallback(); } [ServiceContract(CallbackContract = typeof(IMyContractCallback))]...more >>

overloading operators for STL operations
Posted by PaulH at 1/12/2007 9:48:33 AM
I have a std::vector< ICMP_ECHO_REPLY > container that I'd like to be able to do such wonderful STL operations as max_element(), accumulate(), greater_equal(), etc... So, I decided I would create a class to contain that information and overload the necessary operators. The idea is that I shoul...more >>



Parameter passing from C# to C++
Posted by Rich at 1/11/2007 8:47:42 AM
I need to build a managed DLL in C++ and call it from C#. I need this to work with remoting as well. In C#, class objects are reference types, so if an object is passed directly to a C++ method it is considered a reference to the object. C# call: i = some_method( some_object ); C++ m...more >>

NULL in managed C++
Posted by Bumbala at 1/11/2007 8:07:51 AM
Hello, I am working on a Windows Forms Control Library which has some unmanaged code in it. What is the equivalent of "C# null" in managed C++? CUnmanagedClass *pClass = NULL; ManagedClass^ aClass = ?; I want to check if aClass has been set. Thank you! ...more >>

calling cunstroctor from CString object
Posted by muley.rahul NO[at]SPAM gmail.com at 1/11/2007 2:10:38 AM
Hi can i call a constructor of a class, if the name is stored in a CString Object e.g. class CBaseClass { int x; }; class CDerClass1: public CBaseClass { int y; }; class CDerClass2: public CBaseClass { int z; }; CString strClassName; // = L"CMyClass";//using unicode chars...more >>

Best way of implementing a multi-node tree in C++? (or C#, a close cousin)
Posted by raylopez99 at 1/11/2007 1:21:25 AM
What's the best way of implementing a multi-node tree in C++? What I'm trying to do is traverse a tree of possible chess moves given an intial position (at the root of the tree). Since every chess position has around 30 moves, it would mean every node of the tree would have 30 branches (on ave...more >>

Error C2385 on (ctor)
Posted by PLS at 1/10/2007 6:37:26 PM
I'm converting some C++ code to VC++ 2005 in native (non-managed) mode. This code doesn't use ATL, but codes the COM mechanisms directly. It has a class which is the equivalent of ATL's IDispatchImpl: template<class T> class CDispatch : virtual public IDispatch, virtual public CUnknown, ...more >>

How do I include a double quote in a string displayed on the screen?
Posted by Frank at 1/10/2007 12:25:26 PM
How do I include a double quote in a string displayed on the screen? I tried: wsprintf(szBuffer, "%s's ""%s"" preferences retrieved" But no quotes showed. Thanks ...more >>

Calling from default AppDomain (native code) into another AppDomain (managed code), hosted by ASP.NET
Posted by Dave Burns at 1/10/2007 10:41:30 AM
Hello, We have a situation where a managed C++ assembly links with native C++ dll. There is a callback mechanism which calls back into the managed code asynchronously. Since native classes cannot hold onto a managed reference, we need to have a managed static member which we access during the ...more >>

Insufficient privilage when call RegLoadKey
Posted by CAIBird at 1/9/2007 10:20:02 PM
Hi, I log in as a administrator, then compile and run the following code on a computer: #include "stdafx.h" #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { long l = ::RegLoadKey(HKEY_USERS,L"XXXX",L"D:\\NTUSER.DAT"); return 0; } I get a 1314(A required privilege is ...more >>

MFC42D.LIB Linker Error
Posted by marathoner at 1/9/2007 11:55:30 AM
I am in the process of converting a Visual C++ 6.0 project to Visual Studio 2005. The conversion is almost complete, but in the linking phase, I get the error: LINK : fatal error LNK1104: cannot open file 'mfc42d.lib' It seems to be looking for a file from Visual C++ 6.0. I have checked ...more >>

Testing for a null managed pointer
Posted by Robin Imrie at 1/9/2007 11:48:20 AM
Hi, I have some code like this.... MyObject ^o = gcnew MyObject(); My2ndObject ^obj2 = o->GetObject(); if( obj2 != NULL ) { //... do stuff } when i compile this I get an error(C2446) no conversion from 'int' to 'My2ndObject ^' no user-defined-conversion operator availabl...more >>

Avoid document explorer in VS8 (dock help in the VS)?
Posted by Vincent Fatica at 1/8/2007 8:53:01 PM
In my old .NET (2002), I have the help's index and search as tabs along with the solution explorer docked inside the visual studio (and help docs selected therein show in the same interface as my program sources). Is there a way to do that (and avoid the "document explorer") with VS8? Thanks. ...more >>

Preprocessor directive for program files folder
Posted by 2112 at 1/8/2007 4:06:28 AM
I'm compiling a dll that imports msado15.dll. When I'm using Windows in English, the msado15.dll is located at <drive>:\Program Files\Common Files\System\ADO\msado15.dll". When using Windows in Portuguese, the msado15.dll is located at <drive>:\Arquivos de programas\Arquivos comuns\System\ADO\...more >>

vc++ 2005 unhandled exception error: settings
Posted by farshid.roumi NO[at]SPAM gmail.com at 1/8/2007 12:59:08 AM
I was able to solve the problem in vc++5 by changing the vc++ settings. ButI can't find the same options in vc++ 2005. I have a lot of big arrays! "Unhandled exception at 0x0040c247 in jan7.exe: 0xC0000005: Access violation reading location 0x00030000." ...more >>


DevelopmentNow Blog