Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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

Filter by week: 1 2 3 4 5

Dvorak: Vista helps developers (what is he talking about?)
Posted by raylopez99 at 1/31/2007 12:23:19 PM
Dvorak is always interesting, albeit speculative. What hidden gem has he found in Vista that helps developers? It can't be .NET/CLI, that's been out forever. RL Vista rollout hides reality Commentary: It's not about customers, it's about developers By John C. Dvorak Last Update: 2:44 PM...more >>


Is the first character in a string a letter?
Posted by Frank at 1/31/2007 11:42:05 AM
There must be an easier way then what I'm doing to determine if the first character in a string is a valid letter. My code is getting to big. There must be a better way. Thanks in advance ...more >>

How to debug a DLL?
Posted by Gaurav at 1/31/2007 11:07:00 AM
Hi... I had a VC++ 6.0 application that created a DLL to be used with another C# app. I have convered that app to VS .NET 2003 and I can build the DLL without making any changes to the existing code. However, when this DLL is used by my C# application I get some memory errors. I am not too ...more >>

Need to know if dialog input is from the main keyboard keys
Posted by Frank at 1/31/2007 10:18:42 AM
In a dialog box procedure is there a way to determine if keyboard input is from the keypad or the arrow keys? I need to know if the input is from the main keyboard keys. Thanks ...more >>

Switch projects requires rebuild of VC++ project
Posted by JS at 1/31/2007 6:15:44 AM
I have two C# libraries and a managed C++ library which depends on the C# libraries. I have several applications which reference all of these libraries. Whenever I change from one application to another, the managed C++ library does not build. It generates hundreds of errors. However, if I ...more >>

Data Reader
Posted by Helen Trim at 1/31/2007 1:20:00 AM
Is there any way to know how many records a data reader returns, without having to read each one and increment a counter? I am creating an ASP.NET 2.0 project in C#. I need to read data from the first record, if there is only one and count them if there is more than one. The code that I h...more >>

Exporting functions in a DLL without the = _FunctionName
Posted by Bruce at 1/30/2007 8:37:44 PM
I need to write a DLL for a Domino server. It is currently not working and I believe the problem might be related to how the DLL was compiled. I did a Dumpbin of a sample DLL that came from Notes. The dump looks like this: ordinal hint RVA name 1 0 00001014 FilterInit ...more >>

VC++ 6.0 project to C# or C++/CLI
Posted by vijay.gandhi NO[at]SPAM gmail.com at 1/30/2007 7:35:30 PM
Hi, I have a project that was created created in C++ using VC++ 6.0. My current goal is to create .NET based components from the modules of that project. These components may be consumed by older versions (before .NET) of Visual Basic and C++ programs. I have a couple of questions regard...more >>



SetFocus()
Posted by joseramonbravo at 1/30/2007 2:19:00 PM
I use a CDialog with several controls and I want to set the focus in one of them , a CEdit, when an instance is created. The trouble is that I can get a pointer to the CEdit window, say p, but if I use the code p->SetFocus(); then a warning about a fatal error " memory that can't be read " ...more >>

Generic SortedList clashes with SortedList (namespace collision)
Posted by raylopez99 at 1/29/2007 5:31:04 PM
I seem to get name collision between the Generic collection SortedList and C++.NET Framework collection SortedList. How to resolve? Here are the libraries that seem to clash: System::Collections::SortedList, System::Collections::Generic::SortedList, using namespace System::Collections; ...more >>

List of KNOWN VS2005/Vista issues.......
Posted by Jim Hubbard at 1/28/2007 8:56:38 PM
(I know this is a great big newsgroup no-no, but I originally only posted to microsoft.public.dotnet.general and that newsgroup doesn't seem to have near the readership of these - so I thought I'd also post this info here for the benefit of the greater dotnet programming community.) Well, a...more >>

Office 2007 Backward Compatible
Posted by b at 1/28/2007 4:33:00 PM
Can documents that are created in Office 2007 with Vista OS be emailed and opened by a user who uses Office 2003 Windows XP?...more >>

No Vista support?
Posted by smerf at 1/28/2007 2:45:39 PM
First of all, I tried installing VS2005 Pro on Vista Ultimate 32 bit RTM and Vista told me that VS2005 was not compatible with Vista. How the hell can that happen? I thought one of the main ideas of .Net was portability. Then, when I looked around some more, I saw that VS2002 and VS2003 wil...more >>

openGL and .NET forms
Posted by tahirsCorner NO[at]SPAM gmail.com at 1/27/2007 8:53:37 PM
I'm looking for a way to get openGL to run on visual studio.NET either inside a form or in a separate window running in parallel to one. I can currently only get it running in a win32 consol project. I could really use some help figuring out where to start. thanks ...more >>

where's the ClassWiz?
Posted by Dave Cullen at 1/27/2007 7:19:10 PM
Creating my first Dialog MFC app using VC.NET. I'm used to VC6. Where's the Class Wizzard? How do I assign variables to controls ( like CStrings to static text boxes)? And what happened to WM_INITDIALOG? Is there somewhere else to put initialization stuff now? Thanks...more >>

I think there is someting wrong with this code!
Posted by Frank at 1/27/2007 11:42:00 AM
I'm looking at a program I wrote long ago and I think there is much wrong - even tho it works. I know very little c and wish the learn. Is BOOL correct with a dialog proc! Are there returns that don't belong there? Is it correct to sometimes return a BOOL and sometime an int? int iReply; ...more >>

Is there and easy way to read .jpg and/or .bmp files in native C++?
Posted by Frank at 1/27/2007 8:52:44 AM
Is there and easy way to read .bmp files in native C++? How about .jpg files? Thanks in advance ...more >>

Why the thread can not be created?
Posted by Jack at 1/26/2007 9:38:54 PM
Hi, In the code below: #include <process.h> unsigned __stdcall ReadThread( void *arg ) { while( 1 ) { cout << "RUN" << endl; } _endthreadex( 0 ); return 0; } int main( int argc, char **argv ) { ....... HANDLE hThread; unsigned threadID; hThread ...more >>

c++/cli and web applications development
Posted by 9o83qydmg at 1/26/2007 4:39:18 PM
Hello, is it c++/cli mature, compared to the c#, for the web applications development? ...more >>

Converting byte[] to string - removing NULLs??
Posted by j.a. harriman at 1/26/2007 10:55:04 AM
Hello, I've eliminated the bulk of code, this should be sufficient: byte[] fromEncrypt; string sDecryptedString; //Read the data out of the crypto stream. csDecrypt.Read(fromEncrypt, 0, fromEncrypt.Length); //At this point in the debugger, I can see there are "trailing" NULLs '\0' in s...more >>

*long vs Int32 tracking reference
Posted by rob NO[at]SPAM boltman.org at 1/26/2007 3:07:58 AM
Hi, I'm a bit confused by the mapping of the native types int and long to UInt32. I'm trying to bind a tracking reference to a native value type and it works for Int32 % -> int but not for Int32 % -> long. This page http://msdn2.microsoft.com/en-gb/library/0wf2yk2k(VS.80).aspx states that b...more >>

Enabling/disabling a control
Posted by Chris Saunders at 1/26/2007 2:20:59 AM
I'm hoping that this question is not off topic on this newsgroup. If it is please redirect me if you know an appropriate group. I'm actually writing a program in another language (Eiffel) but if I can learn how to accomplish this in C I can convert the solution. What I wish to do is use P...more >>

C++/CLI COM component deployment
Posted by Volker Hetzer at 1/25/2007 4:19:10 PM
Hi! I've done my first little COM component (using the clr) and after signing, regasm and gacutil I can call it from vbscript. set X = createobject("ComComponent.Class1") msgBox X.Testfunktion(2) But the problem we're facing is that for a real development of several components (currently e...more >>

Help: Can I migrate assembly language code to x64 via VC++.NET 200
Posted by NotCpiP at 1/25/2007 10:16:01 AM
Hi, Can anyone tell me if it is possible to make the following function work under VC++.NET 2005 – x64 platform? How? Originally it works under VC++6. Thanks a lot! static PTIB GetTIB ( void ) { PTIB pTib ; __asm { MOV EAX , FS:[18h] MOV pTib , EAX }...more >>

Managed C++ for Excel Add-in
Posted by My interest at 1/25/2007 9:11:18 AM
I was able to create an automation Add-in for Excel using C#. But I was unable to do the same in Managed C++ (VS2005). The code posted below is almost a direct translation from C# to C++. Build was OK, and I could see MyTest.Fun in the Excel Add-In list (in the exact same way as if the code w...more >>

How to Change Lparam before calling CallNextHookEx()?
Posted by nash at 1/25/2007 4:22:31 AM
Hi All, I am working on Message Hooking.I am trying to change the value of lParam before calling CallNextHookEx() function.. and its value is getting changed but the contents remains same.. Where as if I am able to change wParam. For Eg: if I press any key 'S' and if I want to modify it to 'B...more >>

INTERNAL COMPILER ERROR
Posted by pasalic.zaharije NO[at]SPAM gmail.com at 1/25/2007 2:22:10 AM
I write some project, and after few lines (ok, not few, after a lot of lines) i got internal compiler error. After few hours of looking trough my code, I find error: two same names in typedef and in class. So, I write simple console app with: typedef unsigned int UI32; class UI32 { }; ...more >>

Application crashes with a Windows XP error dialog
Posted by Sandy at 1/24/2007 6:59:50 PM
HI All, I have created a MFC exe using VC++ .NET 2003 on Windows XP Prof service pack 2 and it works properly on my machine, but when I run the same exe on a different machine (Windows XP Prof SP-2), The application is bought up and after some time its throwing a windows xp error dialog ...more >>

Is #include inside stdafx.h a bad idea?
Posted by Chris Shearer Cooper at 1/24/2007 12:52:28 PM
In our Visual Studio 2005 application, we have several of our application's H files that are #included into stdafx.h. What is odd, is that when we change those application H files, VS2005 doesn't trigger a rebuild of the entire app (or of anything, for that matter). Is this a setting som...more >>

System::String to wstring
Posted by Tao at 1/23/2007 8:47:44 PM
hi.. group, quick question: how to convert a managed data type system::string to unmanaged wstring? thanks. ...more >>

Services, C#
Posted by Sourcerer at 1/23/2007 8:40:42 PM
I've started my first practice windows service project in C#, and I'm already stuck. Let's say I'm trying to make a simple service (and useless, but good for practice). It is supposed to listen on port which is stored in its configuration file (say C:\MyService\Config.CFG). After it receive...more >>

Pointer to a generic type parameter
Posted by interX at 1/23/2007 6:47:00 PM
Hi I'm new in VC++ and have a question to generics. I have a generic class, which contains an array of the generic type. This array I can pin and then I would like to get an unmanaged pointer to it. Therefore I wanted to creat a class member which represents the pointer to the array. Unfortun...more >>

'Simple' Kill button/progress bar problem
Posted by AE_Cory at 1/23/2007 2:19:34 PM
I'm a n00b to Visual C++ and OOP, but not to programming in general. Here's the problem: Not knowing what I'm doing, I've made my VC++ application as a CLR Window Forms project. Now, I have a process that is lauched by pushing a button. The code for this process is inside the Button_Click e...more >>

How To Communicate with FTDI I/O Device
Posted by murugan.venkatesh NO[at]SPAM gmail.com at 1/23/2007 7:11:01 AM
Hi Everybody, I have connected a ftdi device(LK202-24-USB), and installed the driver, and when i try to use the ftdi api FT_ListDevices(&numDevs, NULL, FT_LIST_NUMBER_ONLY) it always gives the numDevs as Zero. can anybody help on this? Thanks in advance. ...more >>

VC++ memory management functions
Posted by David.C.Dunn NO[at]SPAM googlemail.com at 1/23/2007 3:56:58 AM
(previously posted on microsoft.public.languages.vc) We're about to make a major release. Recently I have been testing the use of the low fragmentation heap that comes with Visual C++ 2005. We ship libraries and in our release notes we would like to offer some tips on how to developers integra...more >>

OK I Give Up
Posted by news at 1/22/2007 7:21:27 PM
Good Day, I'm trying to add a menu item when I right click over a control (VC++). I've been reading and expirementing all day with no luck. Any tips would be greatly appreciated. Bill ...more >>

read .lnk files, modify the data and rewrite the file
Posted by Frank at 1/22/2007 2:30:42 PM
Years ago I wrote a program to read .lnk files, modify the data and rewrite the file. I modified it slightly and used it for .pif files. I can't find it nor can I find the API calls I used. Can you direct me to some info on this subject? thanks ...more >>

mixing managed and unmanaged c++ code
Posted by frank at 1/22/2007 2:10:11 PM
Hi I've got aplication, which one is written in unmanaged c++ with stl, i've made for it gui in managed c++. Problem becomes when I'm starting to filling up for example datagrids, when I'm adding row to datagrid , some varibles (vectors etc) in unmanaged class are cleared or filled with null...more >>

Get int64 from 2 int32?
Posted by Tao at 1/22/2007 1:56:47 PM
hi.. group, is there anyway that I can get a int64 from 2 int32? thanks. ...more >>

Send Events from VC++ to C#
Posted by Tao Liu at 1/22/2007 9:15:09 AM
hi.. group, does anyone have any clue how to send an event (or events) from an unmanaged VC++ code to managed C# code. thanks. ...more >>

GUI in C++ visual studio 2005
Posted by hcvtec NO[at]SPAM gmail.com at 1/22/2007 6:28:59 AM
hi everyone i am new in this and i need some help with how to create a GUI in c++ VS2005. i have created a c++ win32 project. I want from this project to run a simple GUI with buttons and textboxes only. I added into this project a new windows form and from designer i added some buttons t...more >>

C++/CLI and Boost.Filesystem
Posted by gfaraj NO[at]SPAM gmail.com at 1/21/2007 12:30:31 PM
Has anyone tried to use Boost.Filesystem with C++/CLI? I'm trying to get some code that worked correctly in my native application to work on my C++/CLI program. The code is in a header file in a native C++ static library. inline void execute_files(std::string const& dir, std::string const...more >>

ATL service exe problem
Posted by Sandy at 1/21/2007 11:09:17 AM
HI All, I'm a newbe to ATL. I got stucked with a problem, I have a ATL service exe created sometime back in 1998 using VC++ 6.0 ( or older) which works as expected in Windows NT, I dont have all the source code of the exe. I just have all the .cpp and .h files. The .dsp and .dsw files are missi...more >>

What is a *Page*?
Posted by Abubakar at 1/19/2007 8:34:29 PM
Hi, I'm viewing this stack overflow help page ( http://support.microsoft.com/kb/315937 ) at the ms support site. I cant say I understand the concept of a "page" the way its used in this example/explanation. I mean I only am aware of the *simple*, *general*, paging concept, the one that is...more >>

best way to check the installation of mfc80 side by side
Posted by Dieter Pelz at 1/19/2007 4:47:15 PM
Hallo, what is the best way to check the installation of mfc80 and vcrt sidebyside assemblies? Best Regards, Dieter Pelz ...more >>

VS2005 C++ code analysis reporting non-errors
Posted by ajryan at 1/19/2007 11:01:33 AM
When I build my native/unmanaged C++ ATL+MFC app with /analyze I receive several errors like this: Error 1 _com_issue_error (SY_FUNCTION), offset: 0 symbol The project builds fine without /analyze It looks like a dumb output parser is just looking for the substring "error" in the /analyze o...more >>

error PRJ0050: Failed to register output.
Posted by Adarsh at 1/18/2007 8:03:00 PM
Hello All, I am designing an ActiveX control in visual studio 2005 Vc++.After adding some memeber functions to it,its giving the error as "Error 6 error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry." How to solve this pro...more >>

msvcr80.dll was not found
Posted by Adarsh at 1/18/2007 8:01:00 PM
Hello All, I have written some video streaming code in VC++2005 to stream video from video server.Its Successfully compiling with no errors.but when i try to run it its giving error "This Application has failed to start becuase msvcr80.dll was not found.reinstalling this application may ...more >>

Creating wmv Movie Clips
Posted by Adarsh at 1/18/2007 7:58:39 PM
Hello all, I am designing an appliaction to stream video from video server in vc++6.I have created buffer for storing the bitmap bits of video in application.Can i create .wmv movie clips from these buffer? In visual studio 2005 i can use Windows media format sdk for this purpose.How can...more >>

C2666 error with functions/c'tors taking variable parameters
Posted by John Shell at 1/18/2007 2:55:05 PM
Hello, all. The following code results in a C2666 error (2 overloads have similar conversions). class FSVec2D { public: FSVec2D() { // code omitted } FSVec2D(double first, ...) { va_list args; va_start(args, first); double d = first; ...more >>


DevelopmentNow Blog