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 > september 2006

Filter by week: 1 2 3 4 5

Help! I can't find this info anywhere!
Posted by smerf at 9/30/2006 12:00:00 AM
I have searched high and low (and even in some places I'd like to forget I ever saw) for the information that will tell me exactly how the Nat2Nat server for UltraVNC works (not just a vague diagram, but the code needed - at least psuedocode - to connect the 2 clients) . (You can see it at ...more >>

DoModal returns -1 when opening dialog with flexgid
Posted by alexh1000 at 9/29/2006 10:31:02 AM
When I insert the FlexGrid control in a dialog (using controls toolbar) the dialog fails to open on program execution (DoModal returns a -1). If I remove the FlexGrid from the dialog, the dialog opens so it is definitely a flexgrid related issue. This is using VC++ 6.0 I did not change any ...more >>

DoModal returns -1 when opening dialog with FlexGrid
Posted by alexh1000 at 9/29/2006 10:31:02 AM
When I insert the FlexGrid control in a dialog (using controls toolbar) the dialog fails to open on program execution (DoModal returns a -1). If I remove the FlexGrid from the dialog, the dialog opens so it is definitely a flexgrid related issue. This is using VC++ 6.0 I did not change any ...more >>

Sample of Unmanaged C++ code calling Managed C++
Posted by MC-Advantica at 9/29/2006 7:15:02 AM
Does anyone have a simple "Hello World" like application that demonstrates unmanaged C++ calling managed C++ developed in VS2005? I'm confused by many posts as they discuss managed extensions from VS2003, and related techniques. I have found managed to unmanaged technique very easy in VS2005...more >>

Can I use .NET instead of COM
Posted by MC-Advantica at 9/29/2006 7:06:03 AM
I have several unmanaged C++ based DLLs. I would like to wrap them and expose them as a class library for third party use (i.e., VB). In the past (pre .NET days) I've done this with COM - I'd write ATL COM interfaces that could then be programmed to in VB code by a third party. I have tinke...more >>

reading in a file
Posted by lizii at 9/29/2006 6:13:37 AM
i have a file - which on each line has some data i need to fill into a box - now although reading in the data is simple enough and putting it in the correct box will be no problem, as i can just read a lilne then put into the corresponding box...it just seems like a task i should be able to comp...more >>

unable to locate MSVCP80D.dll
Posted by Abubakar at 9/29/2006 12:00:00 AM
Hi, I'm using vs2k5 vc++ (native/unmanaged). I just took a separate copy of a project from source control (vss) and after fixing its dependencies build it and it builds fine. But when I try to run the exe it reports the following strange message: --------------------------- myapp.exe - Un...more >>

Export C++ class from a Borland DLL and use it in Microsoft VC
Posted by Fabry at 9/28/2006 11:53:35 PM
Hi All, I'm new of this group and I do not know if this is the correct group for my question. I have a DLL with its export library (.lib) wrote in Borland C++ 6. In borland everything is OK and I am able to include the lib and use the class that i have exported creating an instance with new e...more >>



is it possible to use DotNet Components in MFC via COM or Activex Tech?
Posted by tezheng at 9/28/2006 5:11:39 PM
is that possible? thanks ...more >>

CWinFormsView
Posted by MLM450 NO[at]SPAM hotmail.com at 9/28/2006 10:03:14 AM
I am trying to use CWinFormsView. I have followed the instructions in the Microsoft article on changing a CView based class to use it. However, when I compile I get this message: fatal error C1189: #error : MFC WinForms support requires /clr (doesn't support oldSyntax) But I have the CLR s...more >>

Using MFC and CLR in DLL
Posted by Notre Poubelle at 9/27/2006 3:19:02 PM
Hello, I've created a regular (as opposed to extension) DLL that has MFC support (in a shared DLL). Everything works fine. I then decided to modify my configuration so that on the project level I turned on CLR support. Now, when I try to rebuild my solution I get linker errors fileNam...more >>

How can I to fill a polygon?
Posted by Carlos Villaseñor at 9/27/2006 12:55:44 PM
Hi everybody! I'm still new in VB and need to fill a polygon with a color ¿does exist some code to help me to do that? I appreciate some help. Thank you Carlos Villaseñor ...more >>

Passing managed object reference to unmanaged code
Posted by Notre Poubelle at 9/27/2006 9:11:02 AM
Hello, I have some legacy unmanaged C++ code in which I've introduced some managed C++ using the new CLI feature of VS 2005. My managed C++ code invokes a number of methods on a new C#class I've written. This C# class creates additional managed objects and passes one of them back to the ...more >>

comapring two variants
Posted by Vasuki at 9/27/2006 2:14:01 AM
hi when I try to compare two VARIANTS, i get a compilation error. when i tried the same in version visual studio 7.0 it works fine but with 7.1 it gives me the following compilation error: binary '!=' : no operator found which takes a left-hand operand of type 'VARIANT' (or there is no ac...more >>

Generic SortedList Problem C++ VS2005
Posted by Bruce Arnold at 9/26/2006 8:47:45 PM
I have a program that works fine using Remove and Add to update a value. The program processes a log file from a router and counts the hits based on url. It bothers me to use Remove/Add when all I want to do is change a value. I can get the index using IndexOfKey. There is no "SetByIndex" in...more >>

Outlook application object
Posted by Markus Donath at 9/26/2006 4:13:21 PM
I want to create an Outlook-appointment using .NET VC. My Visual Basic example starts with: Dim oApp As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application But my C++ translation: Microsoft::Office::Interop::Outlook::Application *oApp = new M...more >>

String support under managed vc
Posted by fooshm NO[at]SPAM gmail.com at 9/26/2006 5:41:08 AM
Hello, I have an old project written in c++ that also uses MFC. It's a class that allows me to access a data base, it does not export any MFC interfaces it's a "simple" c++ class that uses several capabilities of MFC. I want to use it in a c# application, that is why I decided to create a pr...more >>

\Og instead of \O2
Posted by Simon Tyler at 9/26/2006 4:01:01 AM
Hi, I am porting a Visual Studio 6 project to Visual Studio 2005 and am in the process of determining which optimisation flags to use. The project builds a server - so "Maximize speed" is the best option. However this option appears to have a few unpleasant side effects namely implicitly...more >>

VS 2005 project distribution problem
Posted by MikeMikeMike at 9/26/2006 2:01:02 AM
Hi, I've made som applications with VS 2005 and now I try to distribute them to another machine. This aint working unless that machine has also got VS 2005 installed. I get an error that looks like this (translated from swedish): "This program could not start as its configuration is wrong....more >>

Debugger error: Attempted to read or write protected memory
Posted by Ilkka at 9/25/2006 11:15:02 PM
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled exception of type 'System.AccessViolationException' occurred in mscorlib.dll Additional information:...more >>

Calling Exe Function
Posted by Mayur at 9/25/2006 6:34:17 PM
Hello All I am able to call the function exported by Exe from a dll file im getting the address of the function but whille calling that function im getting access violation Error as bellow my code Function Exported by EXE void __declspec(dllexport) ExeFn() { MessageBox(NULL,"hi","From...more >>

Calling EXE Function Getting handle to calling exe
Posted by Abhishek at 9/25/2006 6:12:59 PM
Hello All I am able to call the function exported by Exe from a dll file im getting the address of the function but whille calling that function im getting access violation Error as bellow my code Function Exported by EXE void __declspec(dllexport) ExeFn() { MessageBox(NULL,"hi","Fro...more >>

disposing or killing a reference to a Bitmap
Posted by abhi.menon NO[at]SPAM gmail.com at 9/25/2006 11:58:38 AM
I have a "Plot" button the code associated with which (when Clicked) is as follows private: System::Void showPic_Click(System::Object * sender, System::EventArgs * e) { /* code to use Matlab to create a 'bmp' and save to C:\tmp\matlabFromNET_TRY2\somefile.bmp ...more >>

Network programming
Posted by Jon Davis at 9/24/2006 6:29:22 PM
Assuming I stay clear of CLR / managed code as this is intended to be optimized for speed as a Windows service, what is the best and easiest API for TCP and UDP network programming? I've been told I should stay away from MFC's CSocket because it's profoundly buggy... or something. Target dep...more >>

Best sites for source code examples?
Posted by smerf at 9/24/2006 3:52:50 PM
What are the best sites for code examples for beginners and advanced programmers? ...more >>

Exposing template instances from managed c++ dll
Posted by cortfr at 9/24/2006 2:58:41 PM
If I compile the following code in my managed c++ dll... public ref class foo { public: void doSomething() { } }; public ref class bar { }; and then inspect the resulting dll using ildasm... I can see that foo and bar both have a function called doSomething. However, if foo is ...more >>

Error C3767: candidate function(s) not accessible
Posted by Iwanow at 9/24/2006 2:53:29 PM
Hello! I have a single class without any inheritance over there, and I get that error on its constructor which is an empty function: LabelProcessor::LabelProcessor() { } The full error message is as follows: ..\LabelProcessor.cpp(5) : error C3767: 'System::Drawing::Bitmap::Bitmap': ca...more >>

Free Memory
Posted by Tom Parke at 9/24/2006 2:36:01 PM
I am looking for some documentation or info on when memory allocated by malloc or new and not expressly freed by the program is freed back to the system in terms of an application, it's dll modules, and their functions....more >>

HWND to HMODULE
Posted by Abhishek at 9/23/2006 6:17:24 PM
Hi, how do you convert HWND to HMODULE or if you have the HWND how do u get its HMODULE. regards Abhishek ...more >>

No buffer error (WSAENOBUFS) in my active connection
Posted by duraisridhar NO[at]SPAM gmail.com at 9/23/2006 2:38:27 AM
Hi All, My active connection created by my application from windows 2000 to Windows 2003 (or any linux machine) get closed as it receives WSAENOBUFS error . While I googled , I come to know that this may occur for the below reasons, 1) If Total Number of protocol exceeds 50 - this is not ...more >>

language conflicts
Posted by Elijah Cardon at 9/23/2006 12:00:00 AM
I bet that if there is a FAQ list in this forum, and if you ordered these FAQ's such that the ten most posed were considered, then this would be one of them: What the heck are these: Windows 2000 Service Pack 3 Microsoft FrontPage 2000 Web Extensions Client Setup Runtime Files Microsoft...more >>

c/C++ prog.
Posted by ניר at 9/22/2006 4:59:01 PM
Hello, I've already sent such a messege, hopping to be answered shortly this time. I am practicing c/c++ programming using microsoft visual c++ express 2005 express edition. Anyway, unlike other compilers there is no option to actually run the prog. (Ctrl+f5,f7 in vs). What I meen is that I ...more >>

Float consistency
Posted by David W at 9/22/2006 12:00:00 AM
Hello, float nanometers(long pm) { return pm / 1000.0f; } void f() { if(nanometers(309311L) == nanometers(309311L)) { // do something } } Is there any way to force the VS .NET 2003 C++ compiler to produce a result of true for the 'if' expression above? I ge...more >>

.NET 2005 Project using DirectX can't find _Xran and _Xlen on conversion from .NET 2003
Posted by Edward Mitchell at 9/21/2006 8:00:58 PM
I am converting a project that uses DirectX and worked under VS.NET 2003. Now when I convert the project to .NET 2005, there are linker errors for _Xran and _Xlen as follows: dx9.lib(WinConsole.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_String_base::_Xra...more >>

Visual C++ 2005 upgrade problems
Posted by freudj76 at 9/21/2006 9:40:02 AM
Hi, Currently, I am working on converting C++ applications written with C++ 6.0 to C++ 2005. I can compile the applications fine after slight modifications but when I run applications, I am getting two different types of errors. 1 - The application failed to initialize properly (0xc0000005...more >>

How to get list of subfolders within one folder
Posted by rachit.goyal NO[at]SPAM gmail.com at 9/21/2006 6:45:10 AM
Hi All, How can I retrieve list of all subfolder within one folder? I want retrieve this list using path of input folder. I want to achieve this in windows form application using VC++. Regards, Rachit ...more >>

Managed C++ calling unmanaged C++ DLL - unresolved external symbol error
Posted by guxu NO[at]SPAM hotmail.com at 9/20/2006 9:48:38 PM
I have a managed C++ code which calls some methods in unmanaged C++ DLL. In my unmanaged DLL, I have a PROTECTED virutal function in a base class and derived class has a PRIVATE function which overrides the virutal one in the base. In my managed class, I have the following private: CU...more >>

A level 4 warning shown only in release mode, not in debug mode
Posted by B. at 9/20/2006 4:00:26 PM
We just recently move to code from VC++6 to VC++.NET 2005 and upgrade the warning level from 3 to 4. In debug mode, we compile the application with no warning no error, but when I build it in release mode, there are quite few C4701 warnings and some C2679 errors. Note that some of warning and er...more >>

flexible array in a struct, or something similar
Posted by chrismcb at 9/20/2006 4:00:02 PM
In C++ I want to statically create an array that contains variable arrays inside of it. Or something similar. Essentially I want to do something like this: { {"name1", {a, b, c} }, {"name2", {b, c} }, {"name2", {d} } } I want an array of names, and with each name I want to associate an li...more >>

math.h / complex - issue porting 2002 app to 2003
Posted by Andy at 9/20/2006 10:48:01 AM
Hi, I noticed when migrating a 2002 application to 2003 that the system changed to a different usage for pow(2,-15). In 2002, it used double pow(double,double). In 2003, it is using double pow(int,int). You may note that pow(2,-15) and pow(2.0,-15.0) give different results. math.h is included...more >>

Passing HWND for C++ wrapper
Posted by Chris Ashley at 9/20/2006 3:23:44 AM
I am writing a Managed C++ wrapper for some unmanaged code to be used from C#. A lot of the C++ methods expect HWND parameters - what is the best way of passing these from C#? At the moment I am taking an IntPtr in my wrapped methods and casting to HWND from the IntPtr.ToPointer() method - is th...more >>

How to call Invoke in C++/CLI?????????????????????????
Posted by Sam Carleton at 9/19/2006 6:49:30 AM
I have a brain dead simple question: how in the heck do I call invoke in C++/CLI? I am simply doing a check to see if invoke needs to be called, but then I cannot for the world figure out how to actual call Invoke. Nor am I finding an examples anywhere. I know they are out there, but I simp...more >>

dwflags in MESSAGEPROPS
Posted by Tibor B. Ormosi at 9/19/2006 12:00:00 AM
Hi when i use IStoreFolder::GetMessageProps or GetFirstMessage/GetNextMessage the result in Messageprops.dwflags always zero. i miss somthing or it's an interface error? all other fields is correct. thanks ...more >>

why the service control manager doesn't start my service
Posted by Jianwei Sun at 9/18/2006 10:35:40 AM
Hi, all, I have a question, and I hope to get some hints here.. I created a really simple service just to check why the service manager doesn't start my service the second time if the first time failed.. I created an atl service through the wizard, and the only thing I do is override th...more >>

Exposing COM & inheritance problems
Posted by Adam Clauss at 9/18/2006 10:08:18 AM
First, I have ComVisible set to true for the entire assembly. I have (abstract) base class A. There are interfaces IA and IAEvents for accessing properties of this object and exposing events. [ClassInterface(ClassInterfaceType.None), ComSourceInterfaces(typeof(IAEvents)) public abstract ...more >>

SAFEARRAY* & COM Interop
Posted by Brendan Grant at 9/18/2006 8:20:02 AM
I’ve got a C# library that I’ve built into a COM component that will be used from a VC++ 6 application and while the creation of the COM object side of things seem to be working fine, using the object fully is another matter. On the C# side of things I’ve got an object defined like so: ...more >>

managed/unmanaged interop critique ...
Posted by Vijay at 9/17/2006 5:35:57 AM
Hi, I am faced with the following common managed/unmanaged C++ interop problem: - I have a .NET form that acts as a front end GUI to a processing engine in the background. The processing engine runs as a thread that is managed by the front-end form class. - The processing engine must have ...more >>

Select
Posted by Sektor at 9/15/2006 9:22:12 PM
Hi guys, I have just a problem with the Select timeout parameter. The MSDN tells us: microSeconds The time-out value, in microseconds. A -1 value indicates an infinite time-out. I try to use -1 as timeout value but the select returns immediately. That's correct if, at least, one of the lis...more >>

3D Arrays
Posted by Mike C# at 9/15/2006 10:31:58 AM
OK, brain freeze (don't laugh). Stupid question, but how do I dynamically declare and initialize a 3-D array in C++? Here's what I want: Array with 2000 elements | |--------Array with 38 elements | |-----------Array of 256 TCHARs It...more >>

Bug Unmanaged -> Managed
Posted by eXile at 9/15/2006 8:24:02 AM
Hi, I've prepared a little example for my problem. Please take some time to undestand it ;) OK, here it is: class ClassA { public: ClassA() { // Empty } ClassA( int value ) { m_value = value; } int m_value; }; class ClassB { p...more >>


DevelopmentNow Blog