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 > march 2004

Filter by week: 1 2 3 4 5

visual studio compile rules
Posted by jasonchiller NO[at]SPAM yahoo.com at 3/31/2004 12:41:47 PM
All, Does anyone know if there is a way to get Visual Studio to display the reason it is compiling a file during a build? For example, I start a build on Project A and Visual Studio determines it needs to compile file xyz.cpp b/c the source file is newer then the object file. So ideally the...more >>


intellisense bug
Posted by Gabest at 3/31/2004 12:36:12 AM
Given the following macro, intellisense only lists the first member of the struct: #define decl(name, members) struct name {members}; decl(test, int i; int j; int k;) test t; t. <-- here at this point only 'i' is offered for code completion By checking the preprocessed source file I can ...more >>

Warning compiling extended stored procedure
Posted by Folke at 3/30/2004 9:51:07 PM
I get a warning from compilation with VS .NET 2003. It seems to work fine. Reading the error explanation I don't think it's a problem. But ????? Can someone explain this warning in more depth?...more >>

How to generate a random number between 0 and 1
Posted by Richard at 3/30/2004 12:31:09 PM
My program needs a random number between 0 and 1 (0, 1). Who can tell me how to do this? Thanks in advance Richar richard.dan@263.net...more >>

Diagnosing Memory usage under C++
Posted by Tommy Vercetti at 3/30/2004 11:56:04 AM
I have a large (~100K lines) C++ server application that exhibits memory problems: after about 6 hours of high volume use, it can reach RAM levels of 1.3GB which is unacceptable. Most leak detection or C++ memory profiling tools are targeted at the really blatant traditional C/C++ leaks w...more >>

VC++ vs C# Windows Forms Performance
Posted by Greg at 3/30/2004 10:51:14 AM
Hello Is Windows Forms in C++ better performance than Windows Forms in C# Thank Yo ...more >>

VC++ .NET 2002: How to Create the .lib, .dll and .exe files
Posted by Scott Chang at 3/30/2004 10:36:11 AM
Hi all Please tell me how to use VC++ .NET 2002 -Windows XP Pro to create the .lib, .dll and .exe files from the source code of the following 2 projects ////***Solution 'DllTest' (2 projects)***// ////***DllTest****//// ( First project ////-----DllTest.cpp----/// // DllTest.cpp : Defines the...more >>

Need help translating a string constant that uses "@" ampersand from C# to VB.Net
Posted by standish22 NO[at]SPAM hotmail.com at 3/30/2004 6:54:21 AM
In a lot of C# code I've gotten from downloading from www.codeproject.com, I see that string constants have an ampersand infront of them. Can I just take it off when translating to VB.Net, or does it mean something? Also, are we allowed to use the code in our applications from sites like the...more >>



Error in std::list
Posted by Peter at 3/30/2004 6:21:12 AM
Hi I tried the following struct STRUCTTWO [... } struct STRUCTONE [... std::list<STRUCTTWO> test } std::list<STRUCTONE> mylist Now, when I try to add an element via std::list::insert, the whole stuff crashes: Access Violation in const_iterator begin() (this is in <lis...more >>

LNK4227 Error
Posted by Calvin at 3/30/2004 4:56:06 AM
Could somebody please tell me where I can find more information on the link error LNK4227 When linking to several libraries I see such an error. warning LNK4227: metadata operation warning (00131189) : Inconsistent parameter information in duplicated methods (methods: new; type: <Module>): (0x080...more >>

Extended Stored Procedures
Posted by Folke at 3/30/2004 3:11:07 AM
I have written an Extended Stored Procedure and it works fine. In the installation intructions it is said that you must copy the .dll to SQLServer's binn directory. Why not put it in the GAC? (and ngen it! /Folke...more >>

Bad DLL Calling Cinvention
Posted by S.N. Yang at 3/30/2004 12:11:13 AM
I use the C++.NET to write a dll and call this dll using VB6. VC++ Code #include "stdafx.h BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserve return TRUE extern "C" __declspec(dllexport) int SPS_...more >>

embed IL-code in C++
Posted by Chris at 3/29/2004 5:04:51 PM
Hi, is it possible to embed il-code in C++ ? (much like the _asm directive used in unmanaged C++). If not, other ways to execute il-instructions ? thnx Chris ...more >>

Right way of passing unmanaged structures between managed and native code?
Posted by Vladimir Kouznetsov at 3/29/2004 4:12:12 PM
Hi group, It seems there are no guarantees that the same unmanaged structures have the same binary representation for managed and native code. How do I use them in mixed-code assemblies? Is there just some compiler magic behind curtains (IJW, some implicit marshalling, which can lead to a perf...more >>

Event in interface
Posted by Wernfried Schwenkner at 3/29/2004 2:06:32 PM
I have the following problem while using events. The event is used in two assemblies (remoting). Therfore I defined an interface assembly with the event. One assembly is written in C# the otherone in managed C++. Now, when I write the interface in C# I can't compile the C++-assembly, gettin...more >>

#define for all projects in the solution
Posted by mirek at 3/29/2004 1:24:48 PM
Hi, My application consists of many projects and unfortunatelly now I'm forced to do conditional compilation. I can #define a variable and then #ifdef the parts of code but the problem is that I need to define it in all the projects in the solution. I wish I set this variable in one place. ...more >>

Right-clicking in VC7 editor is slow
Posted by cslarsen NO[at]SPAM newscache.ntnu.no at 3/29/2004 12:00:33 PM
Hi all, when editing my C++ programs in VC++ 7.0 simply right-clicking in the editor window or pressing F9 to set or unset breakpoints is slow -- it takes around 12 seconds before anything happens! Is there any way of getting rid of this delay? I'm using Microsoft VC++ 7.0 (Version 7.0.94...more >>

IL editor
Posted by Chris at 3/29/2004 11:02:20 AM
Hi, does anybody know where I can find an IL-editor ? thnx Chris ...more >>

ENABLE_QUICK_EDIT_MODE etc
Posted by nospam NO[at]SPAM cristalink.com at 3/29/2004 10:22:21 AM
Does anybody know the values of the following flags for SetConsoleMode()? Apparently Microsoft forgot to put them in the headers. Thanks in advance. ENABLE_INSERT_MODE ENABLE_QUICK_EDIT_MODE ENABLE_EXTENDED_FLAGS ENABLE_AUTO_POSITION ...more >>

Problem with RegQueryValueEx
Posted by M Suresh at 3/29/2004 2:11:06 AM
I have problem with the vc++ 6 compiler and its libraries on windows 200 Create the following new ke HKEY_LOCAL_MACHINE\SOFTWARE\SURI\{6FE7A40D-F0EA-4008-A238-3C306E2B2EA9 inside the key create the strin "Assembly"="P24R3O35T1E4C7T14U26S ============================ The file test.cpp look...more >>

Bug in VC7.1?
Posted by Christoph Rabel at 3/29/2004 2:06:32 AM
Hi! When compiling the following program in release mode I get as output: 22 #include <iostream> using namespace std; int f() { static int i; return ++i; } int main() { cout << f() << f() << "\n"; } Now, while I know, that the order of evaluation is unspecifie...more >>

Books
Posted by Val at 3/29/2004 12:34:33 AM
I am fresh in the process of moving from C++ (VS6) to C# (2003). I am aware that many C# books exist, but can anyone reccomend a serious book wich is suitable for developers with quite some C++ (non-mfc) experiance? Thank you for taking your time, Val ...more >>

Confusing Managed C++ Link Errors?
Posted by Tommy Vercetti at 3/28/2004 11:48:49 PM
I get the following odd link errors. This code builds perfectly in non managed VC++ 7.1. Any ideas on where to begin? thanks! msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > & __thiscall...more >>

How to handle exceptions in unmanaged code
Posted by Jarkko.Alli NO[at]SPAM fipow.abb.fi at 3/28/2004 10:55:00 PM
Hi. I am building an application using managed C++ which is calling nicely old unmanaged DLLs. A lot of old logic is based on intended exceptions (iterator reaches end of items etc.). I just realized that when throwing an exception in an unmanaged try/catch block it is not any more caught b...more >>

Using ScriptControl in C++/.NET
Posted by adrian at 3/28/2004 9:41:09 PM
Hello I'm trying to use the MS ScriptControl in a C++/.NET application. However the Run() method that normally receives a string (function name) and a SAFEARRAY, is imported as System::Object __gc* Run( System::String __gc*, System::Object __gc*(__gc*) __gc[] ) How do I create and feed an array ...more >>

Can't find the DLL entry point
Posted by S.N. Yang at 3/28/2004 9:21:05 PM
I use the C++.NET to write a dll and call the dll using VB6 VC++ Code BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserve return TRUE BOOL APIENTRY DllMain( HINSTANCE hModule, ...more >>

problems using STL when building managed C++ class libraries
Posted by isbat1 NO[at]SPAM yahoo.com at 3/28/2004 4:11:43 PM
I am trying with little success to create a .NET class library using Visual C++ .NET 2003. My project will use STL. I can add to my solution without trouble a C# test application which calls into my C++ library. When I merely add the line "#include <vector>" to my main DLL file in the C++ p...more >>

fwrite() equivalent ?
Posted by Chris at 3/28/2004 1:58:23 PM
Hi, using .NET classes, how can you write a 'myobject' to a file with one command, as in C : struct MyStruct { char m_name[20]; int m_age; } myS; myS.m_age = 20; strcpy(myS.m_name, "Bob"); FILE* fp = fopen("test.txt", "w"); fwrite(...more >>

Need for function pointers
Posted by Puchi at 3/28/2004 2:51:06 AM
I have been trying to understand function pointers for a while but not able to figure out why we really need a function pointer. I understand what it does but why do we need them, why cant we call the function itself Sorry for the naive question but I am lost Thanks....more >>

Download program
Posted by Bonj at 3/27/2004 10:56:35 PM
Hello I am often getting annoyed when the internet connection gets disconnected and something is in the middle of a download, hence I am trying to find a way of building a program that will access the URL of a download and then transfer its bytes sequentially, but somehow remember how many bytes...more >>

Symbols Question
Posted by One Handed Man ( OHM#) at 3/27/2004 5:55:18 PM
Hi, I have some source and a dll produced in Visual C++ V6. My question is this :- Is it possible to use this in .NET such as C# or VB and also use the symbol table and source code for debugging. My gut feeling is it is not possible, but I would like that confirmed and if possibl...more >>

SSH API for C++?
Posted by Joachim at 3/27/2004 12:21:07 PM
Is there any free SSH API to use with C++?...more >>

Bug in RTL sscanf and strtok
Posted by CJNoyes at 3/27/2004 11:16:09 AM
I tried to submit this as a bug, but the web page failed to work. I am using visual C++ 6 SP5. I am running on a Window ME machine with 128 megs, gigs of disk, PentiumII 400. I was developing code to parse text delimited by commas. It worked fine as long as none of the fields were empty, i.e. text,t...more >>

Strange linked list behaviour
Posted by Gordon Knote at 3/27/2004 6:36:06 AM
h I use the following statements in my code typedef struct _MYSTRUCT [... CDWordArray myarray }MYSTRUCT CList<MYSTRUCT> mystruct This code won't compile with some strange failure in afxtempl.h (seems as if CDWordArray were a linked list too) Can anyone help me out of this Thanks...more >>

[newbie] list with structures
Posted by Peter at 3/27/2004 2:01:11 AM
Hi I try to use the C++ std class "list" to create my linked list in my MFC app. Now, this list shall contain instances of a structure, like typedef struct _MYSTRUCT int a int b }MYSTRUCT How can I create a linked list of that Thanks a lo Peter...more >>

Finding Path to Source Files
Posted by Nat Wells at 3/26/2004 5:51:32 PM
How can you find the location on the drive of your source files in Visual Studio v7.1? With v6.0 it was easy: Just right-click on a file name (or white space in the editor), and select Properties. nwells ...more >>

Remote
Posted by R Srinivasan at 3/26/2004 4:44:05 PM
folks : a) i am attempting to translate the following C# code into C++. the compiler complains about System.Runtime.Remoting.Channels.Tcp saying Tcp is not part of the Channels namespace. Is there something special I have to do? b) Basically the reason i need to do this is to access some po...more >>

How to raiseevent across .NET assembly boundary using VB.NET
Posted by rm NO[at]SPAM meyering.com at 3/26/2004 2:20:46 PM
I am using VB.NET. I have two assemblies, I am trying to raise an event in one of them and have it received in the other. Below is some pseudo code to illustrate what I am doing: Assembly 1: ------------------- Class myEventSourceClass public event xyz() sub myEventSource() rai...more >>

how to get pure html without javascript from ms web browser control
Posted by zjz at 3/26/2004 2:20:13 PM
Hello, I used web browser control in my program. but I found that if html includes javascript, ihtmldocument object still has this scripte, not pure html. does anybody know how to get the pure html (script has been interpreted)? Thanks in advance! ...more >>

Wait Cursor
Posted by 011 at 3/26/2004 1:37:03 PM
SGVsbG8sIEFsbCENCg0KSG93IGNhbiBJIGNyZWF0ZSB3YWl0IGN1cnNvciB1c2luZyAuTkVUIEZy YW1ld29yaz8gSSBuZWVkIGEgY2xhc3Mgb3Igc210aCBsaWtlIENXYWl0Q3Vyc29yIGZyb20gTUZD Lg0KDQpSZWdhcmRzLA0KMDExLg0KDQpXaW5hbXAgNS4wIChwbGF5aW5nKTogS3lsaWUgTWlub2d1 ZSAtIEZpbmVyIEZlZWxpbmdz ...more >>

Bug with 'dynamic_cast<>' in VC7.1
Posted by Hendrik Schober at 3/26/2004 12:09:20 PM
#include <iostream> class B { public: virtual ~B() {} }; class D : private B { public: B* getB() {return this;} }; int main() { D d; B* pb = d.getB(); D* pd = dynamic_cast<D*>(pb); std::cout << pd; return 0; } When running the above compiled with Comeau...more >>

gc* to LPVOOD * casting problem
Posted by Ertan EFE at 3/26/2004 10:40:46 AM
how can I cast from gc* to LPVOID * anyone help me, thanks! ...more >>

VC++ .NET 2002: Which Wizard/Template to Use to Get a Regular DLL and a non-MFC DLL of native C++ programming
Posted by Scott Chang at 3/26/2004 8:01:15 AM
Hi all (1) In MSDN, there are lots of technical information about VC++ 6.0 programming of Regular DLLs, Extension DLLs and non-MFC DLLs, and some technical articles about mixed MC++ and native C++ DLLs. I did not see the technical information about getting a regular DLL and a non-MFC DLL of native...more >>

applications of vc++
Posted by ash at 3/26/2004 4:31:06 AM
hi folks i would like to know what is the feature and advantages of vc++ ...more >>

Webservice call from extended stored procedure
Posted by Folke at 3/25/2004 11:41:05 PM
I'm trying to write an extended stored procedure that will call a webservice First I wrote a console application and made the call localhost::WsXpService* xsp = new localhost::WsXpService() String* s = String::Copy(xsp->WsXpMethod2()) This works fine But when I put the same code (same referen...more >>

cout undefined after #include <iostream> ?!
Posted by Norman Diamond at 3/25/2004 7:31:07 PM
In the code shown below, I thought I was going to puke because the standard prohibits the definition of crii but legalizes cris But Visual Studio .NET 2003 gave a different reason C:\Documents and Settings\ndiamond\My Documents\refwhat>cl -GX refwhat.cp Microsoft(R) 32-bit C/C++ Optimizing Compi...more >>

ImageCodecInfo and GetEncoders
Posted by Steve McLellan at 3/25/2004 6:35:26 PM
Hi, I'm trying to call GetEncoders in C++. I've got code that does it successfully in C# but whatever I do I seem to get errors. The lines below, which is my current hacked off state, cause the problem: System::Drawing::Imaging::ImageCodecInfo __gc *encoders __gc[]; encoders = System::Dra...more >>

initializing Color arrays...
Posted by AbstractDonut at 3/25/2004 6:11:10 PM
I was wondering if someone could tell me the exact syntax for initializing a Color array. I thought it would be something like below, but I check them and its says they're empty Color colors[] = {Color::Black,Color::Blue,Color::Black} It makes the array and puts it at a length of 3 but it does...more >>

Underscore and Menu
Posted by 011 at 3/25/2004 4:19:02 PM
SGVsbG8sIEFsbCENCg0KV2hlbiBJIGNyZWF0ZSBtZW51IGluIHRoZSBGb3JtIGFzIGZvbGxvd3Ms IEkgZG9uJ3Qgc2VlIHVuZGVyc2NvcmUgY2hhcmFjdGVyIChfKSBpbiBpdC4gSXQgYXBwZWFycyBv bmx5IGlmIEkgcHJlc3MgQWx0IGtleS4gSG93IGNhbiBJIG1ha2UgbXkgbWVudSBsb29rIGxpa2Ug YW55IG90aGVyICJub3JtYWwiIG1lbnU/DQoNCmNsYXNzIE15Rm9ybTogcHVibGljIE...more >>

Using a VB.NET interface from an unmanaged C++ application
Posted by Sin at 3/25/2004 3:44:27 PM
Here's the situation... We have a product which was developped in C++ (win32) and had a Borland C++Builder interface (totally COM-free and proud of it). A little over 2 years ago (before the first official release of .NET) we migrated the interface to VB.NET and the only way we found to make i...more >>


DevelopmentNow Blog