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

Filter by week: 1 2 3 4 5

LINK : fatal error LNK1000: Internal error during LIB::Search
Posted by BobPitbull at 8/31/2006 9:34:01 AM
When doing a "Whole Program Optimization" release build, I get the following error during LINK:- Searching \main\Binaries\lib\pc_retail\AAALibs.lib: LINK : fatal error LNK1000: Internal error during LIB::Search Version 7.10.3077 ExceptionCode = C0000005 ExceptionF...more >>


Changing tab [\t] size in TextBox control
Posted by H.B. at 8/31/2006 7:16:02 AM
Hi, How can I change the default number of char the caret will move in a multiline TextBox control when a Tab char (\t) is written. Hugo...more >>

Marshal::StringToXXX question
Posted by Goran at 8/31/2006 6:39:34 AM
Hi all! I need to pass managed String from to C-style APIs. I see I can use Marshal::StringToXXX functions. Is this the best we have? I understand this will allocate a new string and create copy of my String. I want to pass it as constant (LPCWSTR). I don't need allocation and copying, just t...more >>

Candidate function(s) not accessible [?]
Posted by ajtaylor NO[at]SPAM hushmail.com at 8/31/2006 4:03:49 AM
Hello, Sorry another question on mixed code assemblys. I have a static class library containing a lot of unmanged code. I have created a mixed code assembly which I am attempting to use in a forms project. Thus, Class Library: "Types.h" class someType { public: someType(do...more >>

Memory leak
Posted by eduard.antonyan NO[at]SPAM gmail.com at 8/30/2006 12:21:46 PM
All I'm doing is going through the webpage and analyzing the data, here's the outline of the code: in OnDocumentComplete(LPCTSTR lpszURL) { IDispatch *pDispatch = GetHtmlDocument(); IHTMLDocument2 *pDoc; IHTMLElement *pBody; BSTR str; pDispatch->QueryInterface(IID_IHTMLDocument2,(vo...more >>

15 error(s), 0 warning(s), What can I do to remedy it? Plse Help me...
Posted by dasilva109 NO[at]SPAM gmail.com at 8/30/2006 3:40:52 AM
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string> using std::string; class ClientData { public: // default ClientData constructor inli...more >>

URGENT HELP Needed, VC++ errors on build
Posted by dasilva109 NO[at]SPAM gmail.com at 8/30/2006 3:37:42 AM
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string> using std::string; class ClientData { public: // default ClientData constructor inli...more >>

DLL Class and Resource
Posted by Steve Wheeler at 8/30/2006 1:00:09 AM
Hi - I am trying to create a dll with an embedded class that I create from my /exe, this is no problem, but I also want to have a RT_RCDATA resource embedded in the dll that can be accessed from the .exe so what I am lookingto do is create a kind of hybird resource dll / extension dll. My d...more >>



quick BSTR question
Posted by Lucy Ludmiller at 8/30/2006 12:00:00 AM
How can I write a function like this: BSTR Greeting(BSTR name) { //return "Good Morning : " + name ; } In short I'm looking for a quick tutorial on using BSTR - Google is not bringing up anything consise enough (I'm not particularly interested in the history of BSTR and the differ...more >>

adding a event handler in MFC application for c# event
Posted by Mayur Gadhave at 8/30/2006 12:00:00 AM
Hello all, Im trying to call my .net c# library functions from my unmanaged vc++(dialog based MFC) application . From that application i want add the event handler for the event generated in c# dll so how to do that Here is my code.. #using <mscorlib.dll> #using "ircConnect.dll"...more >>

Passing a pointer to an object in an ActiveX event
Posted by Lucy Ludmiller at 8/30/2006 12:00:00 AM
I have a class CMyObject, that I want to pass in an ActiveX event. I have not as yet found a way of passing pointers in events - any one knows how ? //PseudoCode IDL [id(1)] void HereComesMyObject(CMyObject*); // <- How ?? ...more >>

ActiveX control
Posted by Lucy Ludmiller at 8/29/2006 9:54:50 PM
I want to build an ActiveX control using C++ Does anyone have a link that can serve as a tutorial - a how to guide? Basically, I need to know how I may add properties, methods and events, and how I can pass data in the raised events. ...more >>

Best COM to managed marshaler
Posted by Bob at 8/29/2006 5:24:05 PM
I have a project that uses both managed C# and an unmanaged COM object. I would like to know the best way to transfer large chunks of data between the two? I have a continuous stream of BYTE arrays that are on average 4k in size that I need to move from the COM object to C# as fast and effic...more >>

Function prototype with default arg fails to compile
Posted by Bill Davidson at 8/29/2006 4:37:58 PM
All: I recently had to include a common header file into a straight C (.c file). This header file contains a function prototype that has a default argument. For example int MyFunc(int MyArg = 10); The compiler has no problems when I include this header file into a C++ (.cpp) sourc...more >>

Urgent Help Req'd: Rendering a .NET control to an MFC CDC.
Posted by mmacrobert NO[at]SPAM gmail.com at 8/29/2006 2:50:29 AM
We have an MFC application mixed with a few .NET controls. I would like to be able to render the content of a .NET control to an MFC device context - specifically a printing device context. We wrote the MFC app and the .NET control, so we can add hook functions into either module if necessary....more >>

Can I create a C++ class library(DLL) and use it in C#?
Posted by Pucca at 8/28/2006 3:27:01 PM
Hi, I have a few C BER coding that I would like to compile into a C++ Class library project and then use it in my C# windows application. Can I do that from C# using pinvoke? If not then does anyone how can I call these functions from C#? -- Thanks....more >>

How to access a c++ library from a vb.net project?
Posted by brett.mack NO[at]SPAM gmail.com at 8/28/2006 10:40:51 AM
Okay, this is a pretty basic question. I've created a static library using c++. Now, I've started a vb.net project. How do I reference the functions in the static library? I'm using Visual Studio 2005. I.E., how do I add the library to the project, and call it's functions? Or, do I need to...more >>

Problems with my .exe symbol
Posted by solarin at 8/28/2006 6:03:17 AM
Hi, I've generated a program. It compiles and runs ok, but I can't debbug it. I've got the following error: Loaded "D:\CMS\Debug\CMS.exe', no matching symbolic information found. I'm compiling a debug version of course. What can I do with that? Thanks for the support. ...more >>

C++/CLI issue: using STL and CLI value types (C# structs)
Posted by John at 8/27/2006 4:24:51 PM
I'm having a major problem trying to use value types like System::Drawing::Rectangle with std::vector. Is it possible to use STL containers with these type of objects, or am I just doing something wrong? Thanks! [ -- code snippet -- ] using namespace System::Drawing; #include <vector> ...more >>

What would be the best choice for new client-side apps?
Posted by Ray at 8/27/2006 12:00:00 AM
Hello, I've been reading MSDN to find out the answer for the question above, but I think I should ask in this newsgroup (since nearly everything I read in MSDN Seems to recommend me to move to .NET). Here's the scenario: We're creating a desktop application (that is, no client-server, n...more >>

Converting VC++ 6.0 executable code to .Net DLL
Posted by Jason at 8/26/2006 4:32:05 PM
Hi, I wish to convert c++ code written using VC++ 6.0 to the .Net development environment (Visual Studio 2005). So far I have copied the code into a new C++ Class Library project and recompiled it. I got some errors from the linker and had to change the configuration of the project to us...more >>

finding the header include file for matrix class
Posted by MVM at 8/26/2006 12:20:01 PM
I am new to VS 2003. I did programming in vb6 and vc6, but not through studio. I am having lot of confusion on how to start, where to start? I like to write a program in vc++ under vs 2003. i just need exe file that can be used in command prompt. where do i start? the program should re...more >>

Double characters
Posted by Mike C# at 8/25/2006 6:14:00 PM
Hi all, I'm using std::strings in a program, and was wondering what the most efficient method of performing the following two tasks would be: 1. Locate all apostrophes (') in a string and replace with two apostrophes ('') 2. Locate all side-by-side double quotation marks ("") and replac...more >>

Changing Collations
Posted by Mike C# at 8/25/2006 3:47:01 PM
Hi all, I have a strange little issue. I need to load some data from VC++ into SQL Server but I need to "map" (for lack of a better word) some of the strings to a different collation. Is there a VC++ function to convert strings from one collation to another? And would anyone know if Wind...more >>

Giving one managed wrapper class access to the unmanged part of another managed wrapper class
Posted by mschuck at 8/25/2006 11:21:17 AM
Here is the scenario I'm trying to make work. I've got 2 managed C++ classes, each of which wrappes an unmanaged C++ class, kind of like so: __nogc class UnmanagedClassA { public: void SetUnmanagedB( UnmangedClassB* val ); .... }; __gc class ManagedClassA { public: M...more >>

Using multiple _alloca()'s to build up a buffer
Posted by nickdu at 8/25/2006 7:19:01 AM
I usually try to stay away from _alloca(). However, I'm considering using it for a logging function. Our current logging function maintains its own buffer which it grows to fit the string being logged. To work correctly in a multi-threaded environment there are locks around the code which l...more >>

Do I have to delete/release a BSTR
Posted by Abubakar at 8/25/2006 12:00:00 AM
Hi, Lets say I write this line: BSTR b = m_pdoc->Getxml (); where m_pdoc is MSXML2::IXMLDOMDocumentPtr. Now "b" contains the xml text. When I exit the function in which this line is written, do I have to take care about deleting "b"? And how do I do it ? Regards, -Ab. ...more >>

no matching symbolic information found.
Posted by solarin at 8/24/2006 2:37:35 AM
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded 'D:\prj\simulador HMS\Enviar Datos al sim\CMS\Debug\CMS.exe', no matching symbolic information found. Loaded 'ntd...more >>

How to write a managed wrapper class for a unmanaged Dialog class in VC++?
Posted by 2yuexue at 8/23/2006 1:02:27 PM
I have a dialog application that is created using VC++ 6.0 and a Windows form application using .NET 2003. I'd like to access the Dialog from the form. I have tried every thing I know to write a wrapper class for the dialog class but failed. Would someone here help me out on this? Thanks...more >>

Need template work-around in VC6
Posted by mlimber at 8/23/2006 11:33:09 AM
I am using VC++ 6 (sp6) and cannot change compilers. I have something akin to this code: #include <iostream> using namespace std; template<int i> struct Int2Type { enum { value = i }; }; struct Foo { template<int i> void Bar() { cout << i << e...more >>

Static object not constructed by loader: ctor not called?
Posted by noleander at 8/22/2006 9:20:02 PM
Im getting a runtime error because Ive got a static object that is not properly initialized. ---------- header file xxx.hpp --------------- class SomeClass { SomeClass() { .. constructor here ..;} } // end SomeClass static SomeClass staticObject; // declaration in header ---------...more >>

IntPtr and Handle
Posted by erupakat NO[at]SPAM emirates.net.ae at 8/22/2006 6:11:37 AM
C# using HANDLE=System.IntPtr Can any body suggest the corresponding code in Managed C++ ...more >>

How to control another program to run cryptically?
Posted by Sean at 8/22/2006 1:16:16 AM
Hi all, i write a hook to modify the window style,but some program has SplashWindow, which i can't control it. How to implement that? thanks ...more >>

Operate a Program??!!
Posted by Hardy &&& at 8/22/2006 12:01:12 AM
Please can any body tell me: How can I operate (or deliver) the " Visual C++.NET ", from its mother program " MS Visual Studio 2005"?? A beginner needs Help. Thank you all. ----------------------------- ...more >>

How to debug a DLL in VS2003
Posted by devmentee NO[at]SPAM hotmail.com at 8/21/2006 3:24:21 AM
Hi, I have built a DLL in C++ (unamanged) and written a client app, also in C++, to test it. I set my DLL project as "start up" project and have specified the EXE etc...My client app (exe) starts up fine, however I am unable to step into the DLL code...when I try to step in I get "There is n...more >>

Old style API function callback conversion to managed C++
Posted by harishashim NO[at]SPAM gmail.com at 8/21/2006 2:16:54 AM
I am wrapping a digital camera API using Managed C++ VS .NET 2003). I have this function that called as bellow in the API sample. err = PR_RC_StartViewFinder( m_hCamera, //line 1 (prContext)this, //line 2 (prViewFinderCB*)&ViewFinderCallBackFun ); //line 3 prContext is actually a...more >>

User defined SEH with Release build
Posted by Johnny at 8/21/2006 1:07:02 AM
Hi guys, I created a user-defined SEH by following Crash Course SEH article by Matt Pietrek. When building the app in Debug mode, it has no problem catching exception and entering the user defined hanlder. In Release mode, however, the app would just crash at the point where the exception...more >>

Unable to debug a C++ Web Service in VS2005
Posted by Mark Oliver at 8/18/2006 5:00:13 PM
Hi, I'm trying to create a web service using managed C++ in Visual Studio 2005. If I make a service in Visual Basic it's fine, it all works correctly. With C++ I can make the web service using the new project but I can't get it to debug. I get a "Server Application Unavailable" error in ...more >>

Import Address Table
Posted by Mike C# at 8/18/2006 4:11:55 PM
Hi all, Can someone point me in the direction of a how-to for reading the Import Address Table for an .exe or .dll file? I'm trying to programmatically determine DLL dependencies (like Depends.exe, but in my own application). Also, is there a way to determine LoadLibrary dependencies progr...more >>

Calling .Net ADO through java
Posted by pragatid NO[at]SPAM gmail.com at 8/18/2006 2:40:30 PM
Hi, I want to use .Net ADO lib classess and their methods from my java application. I need to write JNI wrapper DLL in C++ for this. calling ADO libraries from C++ is itself challenging due to managed types. I am a java programmer and not aware of C++ programming.Is there any open source tool a...more >>

Fingerprint reader API (Authentec sensor) with SDK
Posted by Martin Adhie at 8/18/2006 3:19:01 AM
Hi Guys, I start to learn C++, because I got win API which interating with Fingerprint reader from Authentec, it comes with SDK and program samples. I just want to create application where by scan fingerprint and directly recorded in the database SQL Server. Does anyone able to assist m...more >>

Passing none static member function as callback parameter to manag
Posted by Haxan at 8/17/2006 2:57:02 PM
Hi, I have my main application class(unmanaged) that has a none static member function that I need to pass as a delegate to managed C# method. In one of the methods of this class(unmamanged), I am calling a managed C# method(I use gcnew to instantiate the managed class). One of the parame...more >>

Workstation or Server Workspace?
Posted by Don Rich at 8/17/2006 8:34:01 AM
Here's the scenario. A user is sitting at a WinXP workstation and maps a drive to one particular remote server. The user then transfers data files to that server and invokes my C++ application executable that resides on that remote server from a simple DOS command line at the workstation. F...more >>

ThreadPool and Dual Core Opteron.
Posted by LLessieux at 8/16/2006 10:00:01 PM
Hi, I have been seeing a strange behaviour when doing some tests on a Dual - Dual Core Opteron system using Windows XP (32bits with SP2). In out application we have a wrapper around the thread pool to handle the work on renderers and CPU intensive tasks. On the Dual - Dual Core Opteron, ...more >>

registering mixed mode DLLs (regsvr32)
Posted by Genady Beryozkin at 8/16/2006 4:54:01 PM
I have a COM dll that defines a COM object. I used to register it either during link or using regsvr32. Now I have compiled one of the C++ files in the DLL with /clr so now I have a mixed DLL. The problem is that the DLL registration no longer works. Regsvr32 succeeds but the GUIDs of the CO...more >>

More mixed class library questions
Posted by ajtaylor NO[at]SPAM hushmail.com at 8/16/2006 3:00:47 AM
I have a large amount of C++ unmanaged code that I am attempting to use in a managed project. Amongst this code is a large number of classes and structs that I would like to be able to use in several projects in the solution. (my logic is that I am making my solution a more component based ...more >>

Managed usercontrol on a CProperpyPage
Posted by Soren S. Jorgensen at 8/16/2006 12:00:00 AM
Hi, What would it take to put a .NET usercontrol (System.Windows.Forms.UserControl) on a CPropertyPage ?? I can expose the .NET usercontrol to MFC as a ActiveX component (implementing nessecary interfaces and registering the .NET control in the registry) and build a wrapper for this ActiveX...more >>

executing crt functions in immidiate window
Posted by Abubakar at 8/15/2006 5:44:00 PM
Hi, While debugging, can I execute functions like strlen() in immediate window? I tried strlen () on some pointer to char array and it said: CXX0017: Error: symbol "strlen" not found Regards, -ab. ...more >>

need some help with list::end ()
Posted by Abubakar at 8/15/2006 4:30:09 PM
Hi all, I'm using stl's list to store some file names. Its declared as: list < char * > filenames; i enumerate the list by using: list < char * >::const_iterator filename; filename = filenames.begin(); than I simply do a filename++ to go to the next item..... I check for filename...more >>

Mixed mode ActiveX DLL
Posted by NPotnis at 8/15/2006 2:41:02 PM
Hi , I am trying to host .Net UserControls in a MFC Application. The MFC Application is an ActiveX DLL. I inserted required managed code inside the MFC application, making it a mixed mode DLL. I am following the KB article for mixed mode DLL's http://support.microsoft.com/?id=814472 I l...more >>


DevelopmentNow Blog