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 > february 2004 > threads for february 1 - 7, 2004

Filter by week: 1 2 3 4

new operator
Posted by Hai Ly Hoang at 2/7/2004 4:39:30 PM
Hi, int *(*arr)[5]; a is a pointer to an element (e1). e1 is an array of 5 integer pointer. Now i want to to allocate for arr. How to do that ? int *(**arr2)[3]; and arr2 = new (????). arr2 is now an array of pointer p1. Each pointer p1 point to an object e. Each e1 is an array of pointers ...more >>


Newbie: Allocate 2 dimentional-array
Posted by Hai Ly Hoang at 2/7/2004 3:49:23 PM
Hi, With these code: int a[3][5]; we are allocated (static) an array 3-by-5 (but continous) elements. But how to allocated dynamically an 3x5 array ? The way i know is: a = new int *[3]; a[0] = new int[5]; a[1] = new int[5]; a[2] = new int[5]; Too complex for a simple task ! and the allo...more >>

OpenGL 1.1-GLUT 3.7 Programming on VC++ .NET 2002: error C2065-undeclared identifier
Posted by Scott Chang at 2/7/2004 6:51:07 AM
Hi All I tried to use the attached OpenGL code to draw a Star-shaped figure on my Microsoft Visual C++ .NET 2002-Windows XP Pro PC. When I did 'Build' in Debug Mode, I got an error C2065: 'RenderScence': undeclared identifier. Please help and tell me (1) what it is wrong with my coding in this prog...more >>

How to obtain the handle of the heap used by the C-Runtime system?
Posted by Klaus Bonadt at 2/6/2004 7:03:19 PM
I guess this is a new function for VS 2003, but how to obtain this information in VC6 and VC7? Best regards, Klaus ...more >>

Icon editors?
Posted by Bonj at 2/6/2004 6:33:24 PM
Does anyone know of any good freeware editors that can create/edit .ico files? Don't need to be particularly flash graphics-wise - just need to be able to save .ico files. ...more >>

Does anyone have ready tool to write files to ATAPI CDROM through writer???
Posted by Jigar Mehta at 2/6/2004 4:20:19 PM
Hye, Does anybody of you have any program or tool ready that can be used from inside my program that writes files to the CDROM (ATAPI interface) through writer??? Or is there any API or interface available that can be used to write the files to the CDROM... Any help will be hig...more >>

UrlDecode in C++?
Posted by Yifan at 2/6/2004 3:56:06 PM
Hi I want to use UrlDecode() in C++. I have a Visual C++ (.NET) Win32 project #using <mscorlib.dll #using <System.dll #using <System.Web.dll using namespace System using namespace System::Web void dummy( ... path = UrlDecode(path) When I build the project I got error: "fatal error ...more >>

Single Pixel update bar for progress bars
Posted by Kyle at 2/6/2004 2:37:41 PM
I want to do a single pix update bar instead of the big block that progress bars usually use. I can't seem to find any info on how to do this. Thanks in advance for any help, Kyle ...more >>



Two virtuals of the same name
Posted by Nick at 2/6/2004 1:42:20 PM
In the code below, class Z inherits from T<1> and T<2>. Both parents have pure virtual members of the same name V(), which are overloaded in Z. How do I define those overloaded members outside of Z? Currently, they are defined inside the class declaration and this works fine. The problem is that...more >>

Koenig Lookup vs. Barton-Nackman Trick
Posted by Javier Estrada at 2/6/2004 10:16:05 AM
I'm using a user-defined diagnostics stream and custom manipulators that work with it template<class charT, class traits = std::char_traits<charT> class basic_diagsstream : public std::basic_ostream<charT, traits ... } and a manipulator class alar template <typename charT, typename t...more >>

Debugging
Posted by Bonj at 2/6/2004 7:16:06 AM
OK - picture the scenario. I want to develop a program using C++. I don't have any Visual Studio IDE (please don't say "but I thought you did" - this is for a different environment) I am of the belief I can build unmanaged C++ applciations using all of the things available in the downloadable .NET ...more >>

Errors C2785 and C2912 for explicit specialization of function template with trait return type
Posted by Bill Rubin at 2/6/2004 6:06:07 AM
The following code gives VC++ 7.1 compiler errors C2785 and C2912 template<class U> struct Trait {typedef double result;} template<class T> typename Trait<T>::result foo() template<> typename Trait<int>::result foo<int>(); // Line causes errors Shouldn't this code compile correctly? If so, i...more >>

Debuggers?
Posted by Bonj at 2/6/2004 2:36:06 AM
Apparently debuggers are available free to download from the MS website, presumably they are designed to work with the downloadable SDK..? Where are these debuggers, has anyone got a link to them? And how does a debugger work that hasn't got an IDE?...more >>

API for list of files in the folder
Posted by Leonid at 2/5/2004 6:26:07 PM
Hello What API sequence do I need to use to get list of files in the given folder Thanks for help Leonid...more >>

"...instruction xxxxxx referenced by xxxxxx could not be written..."
Posted by Haitao at 2/5/2004 3:56:06 PM
I encountered this error message when running my C program for over 2 hours. When it runs only for a short time, there is no problem at all. Anybody can give me an idea on what might have caused such an error and how I should deal with it. Thanks a lot Regards Haitao...more >>

How to "Add Reference" in VC.NET?
Posted by msnews.microsoft.com at 2/5/2004 12:29:00 PM
Hi, How do I add a reference in VC++.NET? In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project. After I add a reference, I can start using the class in the DLL as follows: [VB] Imports <TheNamespace> ...more >>

Creating publisher policies for DLLs
Posted by MT at 2/5/2004 8:48:02 AM
We have a .NET dll that we are deploying to our customers using a deployment project in VS .NET 2003. There is a lot of information about creating publisher policies on the web, but we have not been successful in creating one. Here's what the ultimate goal is: When the DLL is deployed to a custo...more >>

"add variable" inactive -weird problem
Posted by Gentian Hila at 2/5/2004 7:26:05 AM
Hi, I am a beginner with Visual C++ (I am using .NET 2002) MY problem is that sometimes the main dialog class dissapears from the class view ( so if my project is named Test, I cannot see CTestDlg class there) and when i right click over a control and try to attach a variable to it 'add variable" i...more >>

__asm Error C2443 (operand size conflict)
Posted by Keith at 2/5/2004 5:16:06 AM
Hi I'd like to get the stackpointer value in my C program I tried this, but I keep getting a compiler error What am I doing wrong monitorStackPointer( long value __asm { mov value, SP printf("%0x\n", value) Thanks, Keith...more >>

Writing a GUI for a console program?
Posted by Falo at 2/5/2004 4:21:30 AM
I've seen GUIs for console applications where the console window is hidden. How is this done, and how is the GUI app "tied" to the console app? That is, I know how to pass commands to an app at startup, but how do I continue to feed commands to the app during the course of it's run? ...more >>

port I/O in Win95 v Win2k
Posted by Fong at 2/4/2004 10:51:06 PM
Hi all, I'm a newbie to VC++, and I'm having some trouble building an executable using some old non-visual code. I'm writing my code on a Win2k machine for use on a Win95/98 machine, using Visual C++ .NET. I'm using inp() and outp() functions from the conio.h runtime library, and they are givin...more >>

Error C2247 for distantly-related static member function
Posted by Bill Rubin at 2/4/2004 6:56:06 PM
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the same invocation from a DistantlyRelated class. What actually happened was that the compiler produced...more >>

Calling one constructor from another in VC++
Posted by Peter E. Granger at 2/4/2004 6:09:54 PM
I'm fairly new to C++ and VC++, but for the most part it seems to do most of the same things that can be done in Java, with just some syntactic and structural adjustments. However, one thing I haven't been able to figure out is how to call one constructor from another within a class. It's easy en...more >>

Trouble displaying MessageBox from VC++ form
Posted by Peter E. Granger at 2/4/2004 6:07:29 PM
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it works just fine. If I put the call in the .cpp file, I get the following two errors: error C26...more >>

Unmanaged exception caught how in managed code?
Posted by Bret Pehrson at 2/4/2004 4:54:58 PM
Suppose the following: // Unmanaged code class UnmanagedException /* not visible outside of unmanaged code */ { }; void DoSomething() /* visible (exported) to managed code */ { throw new UnmangedException(); } // Managed code // Call into unmanaged code try { DoSomething(); ...more >>

MFC OnUpdate handlers
Posted by ChrisA at 2/4/2004 4:11:07 PM
VS6 Class Wizard would create event handlers for a large number of things, including OnUpdateXX handlers for updating the UI. I can not find a way to add OnUpdate handlers with VS.NET -- is the feature gone? ...more >>

Resource Only DLLs Fail to Link VC++ 7.1
Posted by John Cullen at 2/4/2004 11:33:25 AM
I have uncovered an interesting problem with resource only DLLs. If I create a project with a long name and the name includes periods ("."), the IDE will fail to kick off the linker. The resource compiler seems to successfully compile the .rc to a .res, but the linker never fires up. If I force...more >>

Reference to an .exe
Posted by Jon at 2/4/2004 8:47:50 AM
I am developing a 'addin.dl'l to a 'main.exe'. How can I add a reference to 'addin.dll project' for the main.exe? Currently I am renaming a copy of main.exe to main.dll and adding that to my references. Anything simpler? ...more >>

Displaying line numbers in source files??
Posted by Jan E Andersen at 2/4/2004 6:46:05 AM
Is there an option for this It woul certainly make debugging much easier JE...more >>

for employability.... vs c++.net or vs c++ 6??
Posted by vailsy at 2/4/2004 4:41:05 AM
hi there, i was wondering please on which version of c++ i should concentrate i want to make myself as employable as poss... which version should i focus on please? the newest version seems the obvious choice, but are employers using it widely? thanks ...more >>

VC++.NET & ASP.NET
Posted by Juvchan at 2/4/2004 4:26:07 AM
Hi all, i am a newbie. Can we call & use VC++.NET within ASP.NET page Thanks very much...more >>

How to get notification of menu click added dynamically???
Posted by Jigar Mehta at 2/3/2004 6:18:00 PM
Hye, This is Jigar mehta from India. I have made one application that adds dynamic menu items from the database. Each menu item has one ID and menu item's text is coming from the database. Now, I want to get the notification of the menu item click which is added dynamically. I want to put on...more >>

COM Object Won't Register in .NET
Posted by Paul at 2/3/2004 5:31:06 PM
I have a COM (inproc) object that builds, registers and runs fine in VC6.0. It builds on .NET and "registers" without error, but nothing in the registry gets updated. This code was unmanaged in 6.0 and is likewise in .NET Any clues Pau ...more >>

Linker warning about function ordering with VC.NET 2003
Posted by Ryan at 2/3/2004 4:36:05 PM
My project uses the /ORDER specifier to order functions as specified in file containing the decorated names of packaged functions (COMDATs). I am in the process of upgrading from VC6 to VC.NET 2003. When linking a release build of my project VC.NET 2003, the following warning occurs for each func...more >>

How to pass CString from unmanaged code to managed code?
Posted by Klaus Bonadt at 2/3/2004 2:35:54 PM
I have an existing VC6 application using the MFC. I am able to pass CString and other parameters from such a VC6 dll to an unmanaged MFC dll (compiled in Visual Studio .NET). Now I want to use .Net functionality, i.e. calling methods in managed code. How do I pass CString variables for input and...more >>

array of pointers to class methods
Posted by Anonymoose at 2/3/2004 2:06:28 PM
Hello, Hope someone can tell me how to do this - I'm an old 'C' hack so sometimes I get stuck in old-think...this is one of those times... I've got a bunch of methods in a class that I want to be able to lookup and call from an array. In 'c' I'd just do something like: struct t...more >>

Managed Code Pls help me!
Posted by Lars Grøtteland at 2/3/2004 1:16:25 PM
Hello! Could anyone help me please. I tried the following - I created an application in .NET 2003. The project is a MFC Application a CDialog. I ran the application fine. I changed the properties for the app - so I should use Managed Code (Use Managed Extensions = YES). It still ran fine. I...more >>

Run-time check failure #0
Posted by AP at 2/3/2004 12:01:10 PM
Hi, I get this exception everytime I debug and is just annoying. "Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different callin...more >>

Where to find program VC++ .NET on 3D-Graphics?
Posted by Dr. Zharkov at 2/3/2004 10:18:54 AM
Hello. Inform, please, where to find programs for Visual C++ .NET 2002 or 2003 on building the three-dimensional solid and surface z=f(x, y) in 3D-space (without usage of other libraries such as DirectX and OpenGL)? In the answer I can inform, where to find these programs on Visual Basic .....more >>

Managed C++ Compiler Bug ambiguous conversion with class Object
Posted by taltonji NO[at]SPAM hotmail.com at 2/3/2004 4:50:41 AM
There seems to be a bug in managed VC++ when a class is named 'Object'. The code following demonstrates the problem. Note that if the class named 'Object' is renamed ( and references to it changed appropriately ) it compiles ok. It makes no difference if class Object is fully qualified with the...more >>

Problems with allocation
Posted by Michael at 2/3/2004 4:11:08 AM
Hello I have a problem. The following program throws a "0" instead of a "25". I´m from the JAVA world, and in JAVA the output is "25" Hope, anybody can help me Thanks .. class Content public Content() wert = 0 Content::~Content() int getValue() return value voi...more >>

set up include and lib path in .NET?
Posted by Peter at 2/2/2004 11:47:52 PM
Hello, In Visual C++ 6.0, it is easy to setup include path and lib path. But I cannot find the way to add include or lib path for .NET through project property? How it can be done? Thanks, peter ...more >>

C++ compiler error with templates
Posted by Benedikt Weber at 2/2/2004 8:41:41 PM
I found the following compiler error with Microsoft Visual C++ .NET. I use different functions with return types determined by a Traits class. Function g() below works ok, but when I put the two declarations f1() and f2(), the compiler gets disturbed. The error message does not even reproduce ...more >>

cast using reflection
Posted by Chad Silva at 2/2/2004 7:51:08 AM
Hi all I have an object created via reflection of type CateringObject.FBO. I'm trying to assign it to a property that accepts objects of type CateringObject.IDeliveryDestination (which is implemented by CateringObject.FBO). When I try to set the property to an object of type FBO, I get a bad ty...more >>

Reading binary file
Posted by Dave at 2/1/2004 10:58:57 PM
Can someone tell me the best way to read fixed length string content from a binary file. There are no delimiters between strings. I only know the starting byte and that each string is 64 Bytes long. I was doing something like the following but it seems as though I must be doing this the hard w...more >>

Measure my code
Posted by Hai Ly Hoang at 2/1/2004 10:50:42 PM
Is there any tool (accompany with Visual Studio) which help me estimate the speed (or time duration of my application) ? Thanks ...more >>

Allocate an array of pointer
Posted by Hai Ly Hoang at 2/1/2004 10:36:49 PM
Hi, I try to allocate an array of pointer with this pieces of code: int **a; a = new (int *)[3]; but the compiler report that : missing ; before [. It's may be an easy question. However, how to cope with the message ? Thanks for your attention. ...more >>

I'm a newbie
Posted by Hai Nguyen at 2/1/2004 8:13:25 PM
Hi everyone I used to use VS 6.0 to create my C application. I just started learn how to use Visual Studio.Net. I wrote a small program like this: int main() { string name; cout << "What is your name?"; cin >> name; cout << "Welcome to my World" << name << "Hope you enjoy" << end...more >>

How do I force a window to scroll?
Posted by Steve at 2/1/2004 6:16:10 PM
I want to force a window to scroll and am finding this to be an impossibly difficult task. First I tried using the API functions ScrollWindow and ScrollWindowEx but they do not work. The portion that is being exposed in the scroll is not painting properly even though I've passed it the flags to te...more >>

inverse of cosine
Posted by Mario at 2/1/2004 2:51:06 AM
How do I get the inverse of a cosine, that is, cos(a) = x, I have x and I need to know a? I don't need the hyperbolic inverse, unless I can use it to get the cosine inverse. Greetings, Mario...more >>


DevelopmentNow Blog