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

Filter by week: 1 2 3 4 5

Problems sending mouse inputs using SendInput
Posted by kumar_subrahmanya at 5/31/2006 9:30:04 PM
Hi, I am facing problems in sending mouse clicks via SendInput API. Mouse clicks are being sent but at the X,Y co-ordinates. I am mapping my monitor to the (0,0,65535,65535) virtual monitor as needed by the SendInput. But the mouse clicks are always reported at the "current cursor locati...more >>

IMAPI having issues with IDiscRecorder QueryMediaType
Posted by tonylc NO[at]SPAM gmail.com at 5/31/2006 6:48:36 PM
I would like to do some error checking to see if the CD is write protected or not or whether there is even a CD media at all. From what I gather I should be calling the method QueryMediaType. However, on the call right before I set my DiscRecorder hr = pDiscMaster->SetActiveDiscRecorder(pDis...more >>

GetMessage Function MFC Mixed mode dll link problems...
Posted by at 5/31/2006 1:54:44 PM
All, I have a MFC Mixed mode dll which is working well. I am now tring to use a regular C++ class from another DLL which has a method called GetMessage. When I link I get 2 error messages: MyClass.obj : error LNK2028: unresolved token (0A00074C) "public: class CMessage * __thiscall CTr...more >>

Dialog created within a thread
Posted by Victor at 5/31/2006 1:42:46 PM
Hi everybody, could anybody kindly give me a clue in dealing with a following problem : I create a modeless dialog by means of CreateDialogIndirect(). The call executes within a thread and the returned HWND is assigned to a global variable. The dialog appears and can be properly operated, b...more >>

Failed to return new code element
Posted by RML at 5/31/2006 11:09:02 AM
Hi, I have a VS2005 VC++ application which no longer allows me to add a Variable or Function to a class in the project. I attempt to add a new (public) Variable called Temp123, and get this error... Failed to return new Code Element. Possibley syntax error. New Element Name. Temp123 ...more >>

problems in sending mouse clicks via SendInput API
Posted by kumar_subrahmanya at 5/31/2006 6:56:05 AM
Hi, I am facing problems in sending mouse clicks via SendInput API. Mouse clicks are being sent but at the X,Y co-ordinates. I am mapping my monitor to the (0,0,65535,65535) virtual monitor a needed by the SendInput. But the mouse clicks are always reported a the "current cursor location"...more >>

Drawing a Graph (value vs time)
Posted by RichMo at 5/31/2006 5:02:28 AM
Hi, I'm new to C++ and i can't seem to find a tutorial on the net for thi one. I have a dialog based MFC app running that reads sensors using a US interface device. At the moment the varying data just moves a progress bar up and down. I'm looking for a way to display this sensor data as...more >>

Release version crash!!! Only changed a declaration
Posted by dotNeter at 5/31/2006 3:05:52 AM
My source code declared two types of string, static char* str = "hello, world"; static char str1[] = "hello, world"; The only difference between them is the memory allocation while compiling time. And the first one can't be modified through the pointer, whereas the second one can. The d...more >>



.Cab Signing problem
Posted by Nadav at 5/31/2006 1:28:01 AM
Hi Guys, This should be something simple or not possible at all, I have a ‘.pvk’ file and I want to generate a corresponding .spc file, I have followed the instructions on http://msdn2.microsoft.com/en-us/library/9sh96ycy.aspx but failed to generate an adequate cet/spc file, following a...more >>

Is this a Unicode problem?
Posted by Norman Diamond at 5/31/2006 12:00:00 AM
Here are two complete lines of output from Visual Studio 2005: 1>$B%W%m%8%'%/%H=PNO$K(B Authenticode $B=pL>$7$F$$$^$9(B... 1>Successfully signed: c:\T The first line means roughly: Doing Authenticode signature to project output. The second line is harder to translate. The reason is t...more >>

Incremental Linking not working with /nod option
Posted by news.microsoft.com at 5/30/2006 1:55:11 PM
We have recently upgraded from VS2002 to VS2005 and I'm having a problem with the linker always performing a full link even though nothing has changed. In searching the newsgroups I found that I could add "/test" to the linker options and it would tell me why it was causing it to re-link (full...more >>

named override in same class -- is it possible?
Posted by Ben Voigt at 5/30/2006 10:51:02 AM
I have a function that is called for several distinct reasons. It is conceivable that a subclass would want to handle those cases differently. Therefore, what I want to do is have multiple v-table slots, all pointing to a common base function. These functions should be protected, not public....more >>

URL encoding
Posted by farseer at 5/30/2006 10:08:44 AM
Hi, Are there any built in functions of one of the native anscii C++ libraries that would allow me to encode a URL? and example would be to convert "+" to "%2b", double quotes to %22, etc... ...more >>

How to compile IA64 module using VS2005 Professional Ed on 32bit
Posted by Yuanfei at 5/29/2006 9:46:02 PM
Hi there, I am porting a project to IA64, AMD64(X64) with VS2005 Professional Edition on a 32bit box. The version of VS2005(32bit) I used is 8.0.50727.42. However, I just found that only x64 cross-compiler is offered with VS2005 and there is no AMD64 cross-compiler! I wonder if IA64 cr...more >>

Which template should I use for classes
Posted by Juliano.net at 5/29/2006 3:56:07 PM
I'm developing a program that I want to be Object Oriented, so I've opened the Add New File dialog, and there I found "Component Class" and "Installer Class", which of them should I use to create the classes for my program logic? ...more >>

Bind an object to a ListBox
Posted by Juliano.net at 5/29/2006 3:51:47 PM
Can I bind an object of a class to a ListBox? ...more >>

LNK2005
Posted by bosse NO[at]SPAM techinfo.rwth-aachen.de at 5/29/2006 10:46:57 AM
Hi, i have got a linker problem, i don't know how to handle; there are three projects in my workspace. In the Project called modules_common is a class called Features. In the second project there's a class called FeaturesFromPng, which contains an instance of Features. The third project conta...more >>

Runtime crash in a destructor
Posted by nscbabu NO[at]SPAM gmail.com at 5/29/2006 3:12:37 AM
Hi, We are migrating a product from vc6 to vs.net 2003, when we run the app it crashes pointing to a c++ class destructor, we didnot make any code changes during the migration. Can anybody help me giving some pointers on what could be the possible reason? Thanks in advance, --sarath. ...more >>

How to make VC2005 Express can develop MFC?
Posted by Boki at 5/29/2006 12:17:09 AM
Hi All, How to make VC2005 Express can develop MFC? Or should I turn to use CLR? Best regards, Boki. ...more >>

class designer for VC++ on VS 2005
Posted by mt at 5/28/2006 5:45:19 PM
Hi, I have vusual studio 2005, standard addition and I can create class UML diagrams uisng class designer (UML diagram of classes) for C# apps but not for C++ apps. Does anyone know whether class designer works for Visaul C++ apps? thanks ...more >>

Quick question:
Posted by Robby at 5/28/2006 9:30:02 AM
Hello: Can we pass a pointer to an object from one cpp file to another by using a function call. Assuming the object was created and declared along with its accessor methods in the first cpp file, but you need to manipulate the same object in the second cpp file. heres a quick example of...more >>

How to share C++ Class Libries (DLL's ) with other applications?
Posted by Carlos Villaseñor M. at 5/28/2006 3:22:09 AM
Hi everybody! I have developed a DLL's function series in C++ Class Library and I need to share with a VB application, when I tried to make reference to that DLL everything well, but when I tried to access to the function class none don´t appears. I tried with the same code in a C# library and...more >>

.NET Bitmap's Graphics.DrawString() // HDC ExtTExtout issues
Posted by Lloyd Dupont at 5/27/2006 11:16:47 PM
In my .NET application I have some text rendered through GDI. It draws and print nicely. Now I would like to implement image export. So I create a new System.Drawing.Bitmap(width, height) then I create a Graphic g = Graphics.FromImage(bmp) then I use HDC hdc = g.GetHdc(); and use ExtTextOu...more >>

about the "#if (_WIN32_WINNT >= 0x0501)" in the system headers....
Posted by Lloyd Dupont at 5/27/2006 12:00:00 AM
In my code I would like to use the constant (define in WinGdi.h) CLEARTYPE_QUALITY But that doesn't work!! (it's for CreateFont(...)) A quick look at the header reveal that: == WinGdi.h fragment === #if (_WIN32_WINNT >= 0x0500) #define CLEARTYPE_QUALITY 5 #endif ===================...more >>

Message Compiler
Posted by Samuel Shulman at 5/26/2006 6:08:26 PM
Hi I am looking for a message compiler to build .mc file It suppose to be within VS I can't find it and I can't find it in Platform SDK Any clue? ...more >>

Export / Import C++ Managed Classes
Posted by amirbehzadan NO[at]SPAM hotmail.com at 5/26/2006 12:07:03 PM
Hello, I am writing some C++ classes and want to export them as .dll files so other users can import them and use the methods I have provided in those classes. I have two types of classes : unmanaged (or regular classes) and managed (__gc classes). I already know how to use "__declspec(dllexp...more >>

c++ project structures
Posted by dotnetchic at 5/26/2006 6:00:40 AM
Okay, it's been a while since I've managed large projects in vs c++. So I've got a project structure question. I have about 5 projects that I am bringing into MC++ VS2005 (from VS 6). I've got 2 of these projects converted, compiled, and running so far. But all 5 of the projects share some o...more >>

Beginner|Windows|C++|Where to find a guide for plugin development?
Posted by David at 5/26/2006 5:25:02 AM
I need to develop plugins for various applications like Photoshop, Visual Studio 2005, Word, Excel and 3dsMax. Where can I find guides, faqs, introduction or tutorials for plugin development? Any help is appreciated! David...more >>

compiler pre-ANSI switch?
Posted by Patrick at 5/25/2006 11:47:38 AM
Hi, Under Microsoft Visual C++ .NET, I want to use a library from a third party that does not use ANSI C prototypes in its header files. I must tell the compiler to accept K&R (pre-ANSI) C. Someone knows how to do that? Regards, Patrick ...more >>

What are the advantages of managed C++?
Posted by Scirious at 5/25/2006 10:58:41 AM
People, does the managed version of C++ in VS.NET offer the same facilities the C# version offer like garbage collection and mamorry management?? Thanks, Scirious....more >>

casting question
Posted by dotnetchic at 5/25/2006 10:51:09 AM
Can someone explain to me the difference between static_cast<T>(v) and (what's the term for it?) old-style C cast? UINT value1 = 0; int value2 = (int)value1; int value2 = static_cast<int>(value1); TIA, Sharon ...more >>

inputting binary numbers into an int
Posted by Seth King at 5/25/2006 7:55:02 AM
I am used to programming in embedded C and I want to input a binary number into an int. usually I would just use bin as a suffix or b as a prefix int x = b001 or int x = 001110bin the hex suffix works 0x if there is not one is there a standard bin2dec or dec2bin function and what l...more >>

URGENT: DEC / HEX conversion to ASCII code...
Posted by joshua siew at 5/25/2006 3:48:01 AM
heeeeeeeeeeeeeeeeeelpp !!! Can anyone tell me how the heck does VC++ create the ASCII 'ENQ' ???? I'm on a project of programming a PLC devices. I need to send the ENQ ascii value together with others data in a string into the plc. I'm also new in VC++ as well as plc... Thanks for the adv...more >>

How to setup text drawing hit for ExtTextOut ?
Posted by Lloyd Dupont at 5/24/2006 11:46:17 PM
In my .NET app I have to use some home-made, Uniscribe based, text drawing with ScriptTextOut which, ultimately, calls ExtTextOut.. I would like to setup things like text quality, anti aliasing, etc.... What API should I look into? Thanks! :-) ...more >>

inexplicable System.NullReferenceException when using stl vector in managed class
Posted by razilon at 5/24/2006 10:41:27 PM
Hi, I've written a managed class that makes use of stl vectors of a few unmanaged structs for data handling/manipulation, but I'm getting a few very strange errors. I get an "Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object" occasiona...more >>

checkbox in datagrid
Posted by ursridhu at 5/24/2006 10:35:53 PM
hi guys, i am new to vc++, How to add a checkbox column to a datagrid. is i possible to add a checkbox in datagrid?? if yes please send me how w can do it. Thanx in advance its ur'sridh - ursridh ----------------------------------------------------------------------- Posted via htt...more >>

Mouse state
Posted by Abhishek at 5/24/2006 7:27:11 PM
Hi All How do I find the state of a mousebutton. I need it to return 1 if it is clicked and 0 if not. or something similar thanks for your help regards Abhishek ...more >>

ArrayList in a Managed header file
Posted by Fearban NO[at]SPAM gmail.com at 5/24/2006 2:09:16 PM
Hi I have defined a generic c++ class in a .net project c++ In the definition (the header file) i declare a define a variable for it #pragma once #include "categories.h" #using <mscorlib.dll> using namespace System; using namespace System::Collections; __gc class BooksOfEntry { p...more >>

Using "super" for base class in C++/CLI
Posted by Edward Diener at 5/24/2006 8:33:51 AM
In Managed C++ one could use __super to invoke a base class function. Has this been changed to "super" or is it still "__super" ? Looking through the MSDN help I could not find a hit for just "super"....more >>

Problem about time_t, localtime in Vc2005, possible bug ?
Posted by Yuanfei at 5/24/2006 2:10:02 AM
Hi There, I just found that there is a problem in vc2005 regarding to time_t and localtime. See code snippets belows. Using this code segment, I found that when ut is 86200, the corresponding output is 1970.1.1 7:56:40, when ut is 0, the output is 1970.1.1 8:00:00, when ut is 86400, the out...more >>

function??
Posted by joshua siew at 5/24/2006 12:47:01 AM
Dear all who is nice, I'm the DUMBEST person on earth who just started to use VC++.... need some help on the below coding....please check the NOTE section.... thanks in advanced... ================================= #using <mscorlib.dll> #using <System.dll> #using <System.Drawing.dll> #...more >>

EnterCriticalSection() is corrupting my heap
Posted by Arsalan Ahmad at 5/24/2006 12:00:00 AM
Hi all, I have developed a static library which I am using in one of my application. In my library I have created my own heap and all the objects (class objects) in my application are created in that heap. What I have observed is that in my library at a certain place when I call EnterCritic...more >>

How to know if I'm printing from a PaintEventArg?
Posted by Lloyd Dupont at 5/23/2006 10:40:42 PM
In my (C#) code I have some painting methods using Interop and GDI (win32). Unfortunately, as you might know, you have to apply some transformation to your space and fonts if you want to achieve WYSIWIG result with GDI (as summarized here: http://msdn.microsoft.com/msdnmag/issues/06/03/TextRend...more >>

question on array in c++
Posted by Nick at 5/23/2006 9:25:03 AM
Hi, I have a question about array in vc++. I initialized an array from 0 to 480 using memset. and I just realized that in one instance of my code i am putting a value in array position -2, which the array does not have. will this action cause a problem if i try to use delete to deallocate t...more >>

C++ 2003 vs C++ 2005
Posted by calin.hanchevici NO[at]SPAM gmail.com at 5/23/2006 9:08:17 AM
Hi all, I'm trying to use unmanaged C++ code with Visual Studio 2005. My libraries were built using VC++ 2003. When I'm calling my functions I get an AccesViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. If I compl...more >>

Equivalent to run-time dynamic linking in .NET
Posted by Sean M. DonCarlos at 5/23/2006 8:38:01 AM
I have an unmanaged Win32 app that looks up the name of a DLL (unknown at compile time) from an external location, loads it with LoadLibrary, and then uses GetProcAddress on three exported functions (whose names and signatures are known at compile time). The app then calls these functions as n...more >>

consuming unmanaged dlls in VC++
Posted by Matyi at 5/23/2006 7:19:33 AM
Hello everybody! I've this problem: I'm working on a download meter, based on wpcap. As wpcap code is unmanaged, I decided to create the needed functions in a unmanaged project (one for opening an an adapter and capturing the packets (and thus counting the data downloaded), one for getting ...more >>

Question on CloseHandle and Threads
Posted by Abubakar at 5/23/2006 12:00:00 AM
Hi, from msdn: "Closing a thread handle does not terminate the associated thread. To remove a thread object, you must terminate the thread, then close all handles to the thread." Through the documentation it seems that the thread proc must be exited *first* and than the CloseHandle should b...more >>

StartDoc fails on W2003 SP1 on a restricted user
Posted by Cosmin Popescu at 5/22/2006 5:31:03 PM
After upgrading to Windows 2003 SP1 when trying to print a CDC, StartDoc called on CDC fails (with error code -1) if the process is impersonated with a restricted user. This is happening only after upgrading to SP1 and only when the process is impersonated with a restricted user. If the spool...more >>

Intellisense blocking our machines
Posted by Hendrik Schober at 5/22/2006 5:08:18 PM
Hi, as of last Friday VC8's intellisense started to completely block one CPU (our developer machines have two) without getting anywhere. This is a 1.2MLOC solution with 28 projects. We have already found http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=5b68ae70-03e...more >>


DevelopmentNow Blog