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 > march 2007 > threads for march 1 - 7, 2007

Filter by week: 1 2 3 4 5

How to identify DNS server?
Posted by su haiqing at 3/7/2007 9:06:10 PM
Hi all, How can I identify whether my local computer is a DNS server(using windows API + vc 2005)? Regards, Su ...more >>


Get Windows Version (C++.NET 2003 ONLY)
Posted by Newbie Coder at 3/7/2007 12:46:42 PM
C++.NET 2003 ONLY Hi all, I need to check to see that the user is using Windows 2000 or later on program startup. If not, to disable one radiobutton I have searched Google & all I get is C++ or earlier code, but nothing that compiles in my version of C++. There is a KBase article, whic...more >>

add version to resource only DLL
Posted by kaplane at 3/7/2007 11:52:31 AM
I have a resource only project/DLL, and I want to be able to add version information to it. There are make files (batch files) that create the rc file at build time and it overwrites whatever is already in there. I tried adding another resource file to store the version information, but it ...more >>

How to debug a mixed assembly
Posted by Jim Walsh at 3/7/2007 8:27:47 AM
I'm new to working with mixed assemblies. All of my previous experience has been with VC++/MFC in native, unmanaged applications. When I create a mixed assembly in which one or more of the files compiles with /clr the instructions say that I need to change the switch for Debug information f...more >>

Implement Empty Field
Posted by Bumbala at 3/7/2007 7:59:25 AM
Hello, How can I implement a field similar to "System::Drawing::Point::Empty" in my own managed class? I can't figure out the syntax. MSDN documents as "static initonly Point Empty". Thanks. ...more >>

Reach managed c++ Enum from C#
Posted by Joachim at 3/7/2007 12:48:05 AM
I'm trying to use an enum created in Managed c++ in a C# project. I can reach the enums name, i.e. namespace MyNS { public enum MyEnum { EOne, ETwo }; } in C++ makes me able to reach MyEnum, but not MyEnum.EOne. Why? ...more >>

Anybody can suggest a good C++ book?
Posted by Jianke at 3/6/2007 1:20:40 AM
What's the good C++ book you guys read? Please suggest. Thanks....more >>

2003 to 2005 upgrade - function pointer syntax issues
Posted by Todd R. Jacobs at 3/6/2007 12:00:00 AM
Hi group, I had this with VS2003 Managed C++ pro-to-types: =================================== TimeHandler.h class TimeHandler { public: TimeHandler(void); virtual ~TimeHandler(void); // Adjust time span static bool AdjTime(TimeSpan *tsLogSpan); }; ==========================...more >>



Automatic Initialisation of an Assembly
Posted by Kevin Frey at 3/6/2007 12:00:00 AM
I have an assembly written in C++/CLI that also links in non-clr Native C++ (the C++/CLI wraps the Native C++ functionality). This assembly has an in-built tracing system that needs to be initialised, amongst other things. At present the user of the assembly needs to do this prior to invoki...more >>

error C2440: '<function-style-cast>' : cannot convert from 'const TCHAR *' to 'std::string'
Posted by Bit Byte at 3/6/2007 12:00:00 AM
Are there any macros for converting between these two string types ?...more >>

LockWorkStation Function
Posted by Newbie Coder at 3/5/2007 10:18:48 PM
How do I lock a Windows 2000 machine in Visual C++.NET 7.1? #include <windows.h> bool LockWorkStation() If I do it fails: bool LockWorkStation() { return true; } if doesn't work. Plus, I'd like to add an IF statement to check if Windows version is Windows 2000 or la...more >>

question about variable-argument lists
Posted by Tao at 3/5/2007 11:50:32 AM
wstring StringFormat(wstring str0, ...) { wstring result = str0; va_list list; va_start(list, str0); int i=0; for(;;) { wchar_t* p=va_arg(list, wchar_t*); if(p==0) break; wstring pattern; pattern ...more >>

cannot marshall parameter error on call to win32 api - FormatMessage
Posted by Steve Richter at 3/5/2007 7:40:40 AM
I have a C++ forms project that I am adding some unmanaged code to. I have a member function of the Form1 class that returns a String^ holding the text of the last win32 error. The code is failing on the call to FormatMessage. Cannot marshal 'parameter #7': Pointers cannot reference marshale...more >>

Mixing managed and unmanaged code
Posted by Paul.Lee.1971 at 3/5/2007 7:06:55 AM
If I had two C++ classes, identical in just about every way, except that one was managed and the other wasn't, what speed benefits, or pitfalls would occur if they called native unmanaged C++ code? TIA Paul -- http://www.paullee.com ...more >>

String^ to LPCTSTR
Posted by Joachim at 3/5/2007 7:02:13 AM
How to convert String^ (managed) to LPCTSTR (unmanaged)?...more >>

Strings between C# and managed C++
Posted by Joachim at 3/5/2007 5:53:00 AM
How can I send a string between C# to managed C++ and vice versa?...more >>

adding CLR support to win32 project
Posted by Steve Richter at 3/4/2007 8:15:57 PM
using VS2005 I create a classic WIN32 project. Of course it creates without error, but when I change the project from "no CLR support" to "pure MSIL CLR support" I get tons of create errors. Is there a KB article that explains how to add CLR support to a WIN32 C ++ project? thanks, -Stev...more >>

calling win32 api from C++ forms project
Posted by Steve Richter at 3/4/2007 7:41:22 PM
using vs2005, the wizard created a c++ forms project for me. Now in the form1.h file I have a menu item click handler that I would like to add some win32 api code to: private: System::Void tapeToolStripMenuItem_Click( System::Object^ sender, System::EventArgs^ e) { HANDLE hTape ...more >>

RunningObjectTable problem
Posted by Nadav at 3/4/2007 10:05:31 AM
Hi, I am using COM with RunningObjectTable, take in mind the following points: 1. I have a server that runs as a service this service register an object in ROT, the object should be accesible to usermode applications 2. I have a user mode application trying to get the interface pointer to t...more >>

Help: How to pass pointers?
Posted by Bill at 3/4/2007 5:49:13 AM
Hi -- I'm just starting to learn about pointers and I'm stuck on something. The code that I pasted below passes a widget object to a function that changes it to a new widget object. It changes it successfully within the changer() function but once execution returns to main(), the "w" variabl...more >>

Component Ion
Posted by Tomas at 3/4/2007 1:36:03 AM
Hello, I have made a component to use in a form. I have add the component to the tools bar in Visual Studio 2005 to use in more than one project. I want to change the Icon asigned automatically by VS2005 to the component. It seems like a flower. How I can assign my own icon to the c...more >>

Developer's Meeting Place for Exchanging Ideas - www.developersplace.com
Posted by Webmaster - Developer's Place at 3/4/2007 12:00:00 AM
Hi, I would like to invite you to visit this new website dedicated to all developers for all languages. Come and participate on this project that is build to contribute to this great community of developers. Come and visit: http://www.developersplace.com Thank you....more >>

VS2005 breaking my builds !
Posted by Bit Byte at 3/3/2007 7:39:18 PM
I'm having problem compiling one of my projects with VS2005. The problems arise with VS2005 (apparent?) inability to compile log4cpp. Has anyone succesfully compiled log4cpp using VS2005? Here are the errors I get: Error 1 error C2039: 'iterator_category' : is not a member of 'log4cplus...more >>

Correct use of _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES?
Posted by Mark Findlay at 3/3/2007 6:28:07 PM
I am using the #define for _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES in my Windows MFC App, (Visual Studio 2005) and yet continue to receive compiler warnings about various CRT functions. It was my impression that setting the #define of _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES to 1 would autom...more >>

Pasting from Clipboard into Windwos Explorer
Posted by JDavide at 3/3/2007 6:15:00 PM
Hello! I'm writing an namespace extension in C++ using ATL. I'm dealing with files which are not on the machine where the NSE is running. I want to provide a way to copy the remote files into the local machine. I provide a DnD mechanism, by which I record the names of the files when the user s...more >>

atoi() equivilent without exceptions?
Posted by David Ching at 3/3/2007 5:46:49 PM
Hello, I'm a .NET newbie but have 12 years of C++/MFC. In C++, atoi() stops converting at the first non-digit, so in this code, octet will be 192: int octet = atoi("192."); // <-- note '.' at end of this string This is great, exactly what I want. But to achieve it in C++/CLI,...more >>

I am Shocked
Posted by Bas at 3/3/2007 12:00:00 AM
Hello, Until 6 years ago I was a C++ programmer. The last 6 years I've done something else than computerprogramming, but now I'm a bit back, learning myself C#. I cannot resist sometimes to compare these two languages (as far as I can, not programming for 6 years is quitte a time), so I had ...more >>

program.exe.mem.xml
Posted by PLS at 3/2/2007 6:00:40 PM
I'm developing with VS2005 in C++, currently compiling and running in debug mode. I also have memory leak detection turned on in the run time. When I run the program, I get memory leak info in the VS Output window. I also get a file named program.exe.mem.xml created with what looks like a d...more >>

Vista / XP msvcrt.dll error
Posted by David at 3/2/2007 2:47:58 PM
I have a VC++ / .NET 2.0 solution built using VS 2005 SP1 under XP. Everything has been working well there over the past year. I have recently starting porting the app to Windows Vista (since it currently will not execute properly there). I installed VS 2005 SP1 and the hot fix SP for V...more >>

DLL Loading errors after installing Service Pack 1 of Visual Studio.
Posted by cpasmwalolo NO[at]SPAM hotmail.com at 3/2/2007 12:00:00 AM
Hello thezre, I recently installed the SP1 of visual studio, just before releasing a new version of my application. And I never though that this SP1 could change something fondamental in the final executables and DLLS, but it happened. All my C++ Dlls can not be loaded anymore on other machi...more >>

PreserveSig in VS 2005
Posted by racerX at 3/1/2007 2:03:40 PM
I have been trying to migrate a VS 2003 project (dll) to VS 2005. I currently use PreserveSig attribute on all COM visible properties and functions. When compiling against the 1.1 framework all is well, but against the 2.0 framework I get “fatal error C1093: API call 'DefineCustomAttribute' ...more >>

build dll from windows application.
Posted by Farsad at 3/1/2007 5:33:43 AM
Hi I have a C++ windows program for control camera by computer(canon camera wrapper). this including some of windows and dialog. I wish summerize this code to requirement functions and build it into a dll file. some of my original code is: class CRelCtrlDlg : public CDialog { // Const...more >>

Can not access mapped drive
Posted by Jack at 3/1/2007 1:00:38 AM
Hi, My OS is Windows XP. I mapped a drive on another machine running Windows 2000. I set the permission of the mapped drive on the Windows 2000 machine to be "accessible to everyone". On the Windows XP machine I can access the mapped drive through Explore. By one of my third party software c...more >>

Virtual Override of "Mixed" method in another assembly.
Posted by Kevin Frey at 3/1/2007 12:00:00 AM
I have the following situation: Assembly #1: class NativeSearchCriteria // NOTE: a native class { }; public ref class TheBaseClass { public: virtual void Get_Search_Criteria( NativeSearchCriteria& _Criteria ); }; Assembly #2: #using <assembly1.dll> public ref class MyRe...more >>


DevelopmentNow Blog