Groups | Blog | Home


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 > january 2005

Filter by week: 1 2 3 4 5

CoInitializeEx
Posted by Paul at 1/31/2005 2:35:03 PM
Hi, I am trying to use CoInitializeEx but VC++ 6.0 compiler always complaining error C2065: 'CoInitializeEx' : undeclared identifier. According to MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/htm/cmf_a2c_5iyg.asp), CoInitializeEx is in "ole32.lib" and I ha...more >>


Compiler error - incorrect error message "illegal type for non-type template parameter"
Posted by Ondrej Spanel at 1/31/2005 2:29:15 PM
The code below does not compile with .NET 2003, I get folowing error: w:\c\Pokusy\delegTemplArg\delegTemplArg.cpp(11) : error C2993: 'float' : illegal type for non-type template parameter 'x' The error shows compiler is quite confused - x is not a template parameter at all. I have f...more >>

DLL runtime and /CLR compiling
Posted by Markus Ewald at 1/31/2005 10:38:06 AM
I'm just experimenting around with the VisualC++ 2005 Express Edition Beta and found some strange behavior for which I can't seem to find a workaround. What I've done is set up two static library projects for Lua 5.0.2 and LuaBind beta-6, compiling both with no CLR support and configured to u...more >>

howto: creating custom platform for VC++ projects?
Posted by jordi_vilar NO[at]SPAM hotmail.com at 1/31/2005 9:19:08 AM
Hi, Is there a way to create a new fully customized target for VC++ projects in VS .NET 2003? The idea is to add support for new compilers, so you can compile the same project with different compilers (maybe crosscompilers for other platforms) within the VS IDE. I assume that I need to dev...more >>

New Cracked Software(cad,cae,cam,eda,pcb,gis,cfd,cnc...)
Posted by flex at 1/31/2005 8:41:09 AM
Hi! If you are professional ARHITECT, ENGINEER, DESIGNER, PROGRAMMER or User, and you can't buy expensive professional software - we will solve this problem. Our prices are very low. You pay only about 1%-15% of the price for the original software. Our prices very from $20 to $150 per...more >>

dialog box
Posted by wayne at 1/30/2005 11:45:02 PM
Hi, I'm realli sorry, very bad in programming. How do we create another dialog box when OK button is click on the first dialog box? Thanks alot -- wayne ------------------------------------------------------------------------ Posted via http://www.codecomments.com --------------------...more >>

graphics programming with tiff
Posted by wayne at 1/30/2005 11:29:36 PM
Hi, May I know how to use VC++ to write a program that can read a TIFF image file? thanks alot -- wayne ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ ...more >>

about vector
Posted by mestupid at 1/30/2005 10:19:03 PM
Hi everybody, I have a program which use <vector>. When I compile the program the vc.net 2003 compiler always complains that: ....... Compiling resources... Linking... Generating code c:\program files\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable ...more >>



System::String question
Posted by Ioannis Vranos at 1/30/2005 1:27:55 AM
I had reported this as a bug: Description: Default indexed property of System::String crashes for object with stack semantics. int main() { using namespace System; String ms= "Test string"; char c; for(long i=0; i<ms.Length; ++i) c=ms[i]; } Ac...more >>

How can i retrive a Date and Time?
Posted by Giap at 1/30/2005 1:18:25 AM
i would like to use date and time to name as my file name.. But how can i retrieve a Date and Time?? For example, now is 30/1/05(dd:mm:yy) , 13.06.30(hh:mm:ss) i would like to name my file as 050130130630.txt So how can i do that? Thks for helping -- Giap -----------------------------------...more >>

msdn.microsoft.com dns problem?
Posted by Ioannis Vranos at 1/30/2005 12:31:50 AM
When I type msdn.microsoft.com and www.msdn.com I get an error message that this site does not exist! See the screenshot attached. Is the site down or its DNS entry down? -- Ioannis Vranos...more >>

calling a constructor with unmanaged arg by reflection
Posted by Ingo Nolden at 1/29/2005 5:54:59 PM
Hi, I want to call the constructor of a managed class by reflection. This is not problem so far. I have the instance of ConstructorInfo, that belongs to the constructor I want to call. But the Argument is an unmanaged pointer. ConstructorInfo::Invoke however accepts only an array of mana...more >>

How Can I move a file to other directories?
Posted by Giap at 1/29/2005 1:03:32 PM
Giap wrote: > *I am writing a program using vc++. Now i need to move the file i > create to other place but i failed to do that. Can anyone pls give me > a hint? * I have fix myself..hehe.. use DeleteFile() is good enuf.. -- Giap --------------------------------------------------------------...more >>

XML Parser
Posted by ethoasso NO[at]SPAM poste.isima-dot-fr.no-spam.invalid at 1/29/2005 9:53:57 AM
Hi! I'd like to know if the Chilkat XML Parser can still be used under Microsoft Visual Studio 2005 Beta, because apparently not. If yes which libraries am i supposed to add. Sincerely, bor_kev *---------------------------------* Posted at: http://www.GroupSrv.com Check: http://www...more >>

'FILETIME': ambiguous symbol
Posted by aunthas at 1/29/2005 6:16:54 AM
I want to play sound using winapi, so I wrote these lines of code:- ------------------------------------------------------------------------------------------------------------------- using namespace System; using namespace System::Runtime::InteropServices; namespace WavAPI { [DllImport...more >>

.exe Decompilers
Posted by Mechanicbrain NO[at]SPAM aol-dot-com.no-spam.invalid at 1/28/2005 7:54:20 PM
Does anyone know where I can get an exe decompiler for C++ I am trying to get some files for my program that is already an exe but I don't know how to crack it and I lost the code so if anyone has an exe decompiler or can make one I appreaciate it thanks *---------------------------------* Post...more >>

!! DOWNLOAD THE MOST POPULAR 2005's CRACKED SOFTWARE(CAD/CAE/CAM/EDA/GIS/PCB/FEA/CNC)
Posted by CrackSoft at 1/28/2005 5:06:46 PM
Our Team provide CRACKED engineering and technical software at thi topics: => Civil and Structural => Survey , GIS , Rock , Soil and Water => Architectural => CAD-CAM => FEA , CFD and CAE => Electrical , Electronic , Control and Power => Chemical => Industrial and Control Project => HVAC ...more >>

Success Through Cluelessness
Posted by Ramsey at 1/28/2005 11:01:08 AM
Recently I was having a problem where the creation of an fstream object in my lib file would crash. The lib file was linked to a managed dll. I fixed the problem by changing the 'Run time library' to have a value of 'Multi-threaded Debug DLL (/MDd)' on all the lib files, dlls, and the executab...more >>

How to create a Shortcut File by programming in C++?
Posted by Ping at 1/28/2005 10:03:33 AM
Hi, All, How to create a Shortcut File by programming in C++? To use whitch function or Windows API? Thinks. ...more >>

WinForm richtextbox....appending font color changes (newbie-ish)
Posted by Mr.Baha at 1/28/2005 9:46:06 AM
Hello, I have a situation where I am appending text to a multi-line (rich)textbox in a C# form. Now depending on which event does the appendtext, i want to distinguish the lines in the textbox by having them written in different font colors. So my multi-line textbox will contain lines of vari...more >>

Exception when using delayload linker option in release build
Posted by HairlipDog58 at 1/28/2005 9:07:02 AM
I have a VC++6 project where I need to delay load a DLL. I used a structured exception handling frame and all seems to work when I build the debug version and run it (either in or out of the debugger). In debug build, the exception is caught and reported gracefully to the user. When I build th...more >>

a question on VC++.NET compiler
Posted by mestupid at 1/28/2005 6:59:01 AM
I have some code like this: /////////////// void test(int* a) { a[0]+=((a[1]-a[2])<<3); } //////////////// after compilng with vc.net 2003, the asm code is: /////////// PUBLIC ?test@@YIXPAH@Z ; test ; Function compile flags: /Ogty ; File c:\test.cpp ; COMDAT ?test@@YIXPAH@Z _T...more >>

how to transform a System :: String to a std :: string
Posted by ethoasso NO[at]SPAM poste.isima-dot-fr.no-spam.invalid at 1/28/2005 6:55:22 AM
Hi! I'd like to know how to transform (or convert) a System :: String to a std :: string under Visual Studio (C++) 2005 Beta. Sincerely, bor_kev *---------------------------------* Posted at: http://www.GroupSrv.com Check: http://wwww.HotCodecs.com *---------------------------------*...more >>

"File or assembly name ..., or one of its dependencies, was not found" error message
Posted by Ian Lazarus at 1/28/2005 2:26:00 AM
Hello, Project = class library dll implemented in C++ as a managed wrapper around an unmanaged class, and a small project to consume it (shown at bottom). Running the consumer code results in the run time error message below, at start up, before any of the consumer code runs. What does the...more >>

Why the 16-bit Limit on source lines?
Posted by mark at 1/27/2005 9:04:59 PM
Hi, 2005 Beta Visual Studio Express Just created a bit of code today, turns out it exceeded the 65535 limit on line numbers and the compiler choked. Why is the compiler limited to a maximum of 65535 lines? I thought those hard-wired days were over.... Cheers, Mark....more >>

Difference between (long) x and long(x)?
Posted by mosimu at 1/27/2005 4:45:02 PM
I have never fully understood what the difference is between these two forms of casting. Can anyone please clarify? long is a primitive data type so no, it's not calling a class constructor. This is not simply a .NET feature either, also works in VS6....more >>

Yet another debug-to-release issue
Posted by jlea at 1/27/2005 12:59:03 PM
How many times have we had a program that works toot-sweet in debug but dies in release? Too many. I've created .NET assembly containing a bunch of managed wrapper C++ classes that wrap unmanged C++ classes; these unmanaged C++ classes are located in a Win32 library file. The library is built ...more >>

Getting selected element in List Box Control
Posted by Vijay at 1/27/2005 9:56:55 AM
Hi, Iam new to VC++6.0. I want to display selected item of the ListBox in a MessageBox. I know for experience ppl it must be a kids play but for me who had worked in C# and VB, it seems to be little different. Can anyone write couple to lines of code for this? Moreover, If I want to insert a...more >>

Release build inconsistant behaviour
Posted by samariton at 1/26/2005 11:23:02 PM
We distributed an VS6 "C" executable.(Built on WIN2K with release mode.) Surprisingly we are finding runtime errors for q workflow on all XP m/c and some of the WIN2K systems.All the WIN2K pcs we used for testing never shown any such error. If you have any idea of this strange bahaviour.Pleas...more >>

I am so frusterated with how slow MSVC is
Posted by Chris Stankevitz at 1/26/2005 2:51:31 PM
I can't tell you how frusterated I and my coworkers are with "MSVC 7.1 .net 2003" (what am I supposed to call this thing anyway?). Compiling and linking take twice as long with "MSVC 7.1 .net 2003" than with MSVC 6. My coworkers are angry at "MSVC .net 7.1 2003" and they're angry at me for...more >>

simple dll/lib question
Posted by Ramsey at 1/25/2005 3:01:20 PM
When I first started my project I was using stl for all the real processing and managed c++ for all the pretty forms. But after a while the project became too large to manage. Now I am thinking of breaking up the project into dlls/lib files but I am running into the following problems. My p...more >>

.NET and C++ template
Posted by cipher at 1/25/2005 2:30:53 PM
I have created a C++ MFC dialog based appliction with .NET 2003. I am trying to use a functioning MFC extension dll. There is a header file for this dll that defines a template class. .NET errors when trying to compile this file. This dll and it's associated headers compile and function just ...more >>

Error: The operation could not be completed.
Posted by ethoasso NO[at]SPAM poste.isima-dot-fr.no-spam.invalid at 1/25/2005 6:54:25 AM
Hi, I am working under Microsoft Visual (C++)Studio 2005 Beta i am trying to port some program (implemented under .NET 2003) under this brand new software. I have two questions : First, when i want to "Build" my project i got this error message: Error: The operation could not be com...more >>

Value types vs unmanaged pointers in C++/CLI
Posted by Ioannis Vranos at 1/25/2005 1:31:34 AM
This compiles: value class SomeClass {}; int main() { SomeClass obj; SomeClass *p= &obj; } C:\c>cl /clr temp.cpp Microsoft (R) C/C++ Optimizing Compiler Version 14.00.41013 for Microsoft (R) .NET Framework version 2.00.41013.0 Copyright (C) Microsoft Corporation....more >>

Managed function vs unmanaged function
Posted by Z-Mechanic at 1/25/2005 12:21:04 AM
Hello everybody! I have a question. Anybody knows why managed function calls faster in MC++ rather than unmanaged function (defined with #pragma umanaged)? The differences is about 4 times slower. Thanks for your answers! Z-Mechanic....more >>

Newbie: String conversion
Posted by Steve at 1/24/2005 10:04:00 PM
Hi, Firstly, let me apologise if this is asked all the time, I couldn't find an answer on Google groups. Anyway, how do I convert a System::String to a std::string?? I have some libraries which use std::strings and was trying to use them with VCE 2005. Also, any worthwhile books out for V...more >>

ImageManipulation bmp to tiff (bitmap to tiff)
Posted by Ravi Singh (UCSD) at 1/24/2005 3:12:15 PM
Hello all I get an image from the file in bitmap format(6 meg approx). What I want to do is first change the image to grayscale, reduce the dpi to like 150, and then change the format to tiff, or maybe a jpeg at reduced sizes. Has anyone done this or has pointers for the same. Currently ...more >>

Using ATL Classes (especially ATL MFC Shared Classes) in a Win32 A
Posted by Greg at 1/24/2005 12:55:38 PM
I seek to understand ATL better. When I create a Win32 Project (App or DLL) the option to add support for ATL (or MFC) is not selectable. It is only selectable for a Win32 Console App. However, it seems that ATL-MFC Shared classes, e.g. CString, CStringT, and the new CRect, can be added to the...more >>

Ambiguous symbol error
Posted by rodri rodri via DotNetMonster.com at 1/24/2005 11:07:41 AM
I have done a program with windows forms in "Visual C++". I have implemented a function that returns two values. For example: double functionExample(int parameter, [Out] double __gc* result2); And in a header file, I have written this line: using namespace System::Runtime::InteropService...more >>

Inability to scale DLL code
Posted by reddz at 1/24/2005 10:17:02 AM
Using VC++ 5.0 I have a DLL created by a previous employee that is used for reading from text files and databases and outputs to a database and ASP pages. I am attempting to convert the DLL to input/output UNICODE in specific places. I am able to read in the UNICODE text files (the code fo...more >>

Just a test C++
Posted by Jim Hubbard at 1/24/2005 5:18:38 AM
One of my messages that mentioned C++ in the subject was immediately deleted by the server....just testing to see why.... ...more >>

Fastest way to lean CPP?
Posted by Jim Hubbard at 1/24/2005 5:17:35 AM
I want to do driver development and activeX creation......what would you suggest as far as the best/fastest path to learning C++ for these tasks? ...more >>

Fastest way to learn C++
Posted by Jim Hubbard at 1/24/2005 5:16:26 AM
Is it really necc to learn about C then C++? I want to be able to do driver development and activeX control development with C++. What would you suggest that would get me up-to-speed ASAP? ...more >>

Is it possible to capture GDI streams?
Posted by Jim Hubbard at 1/24/2005 4:44:57 AM
Is it possible to capture GDI streams for the visible desktop and printer devices BEFORE the commands are sent to the devices - like hooking GDI? ...more >>

VC.NET: "import" some pixels from underneath a window
Posted by rnott NO[at]SPAM nospam.ilternet.edu at 1/23/2005 11:28:06 PM
In VC or VC++, suppose I have a simple window (a form). Is it possible from that window to "see" what's underneath a particular pixel? Basically, I want to "import" some pixels underneath my window, depending on color (or some other, similar properties). For example, say I want to incorpora...more >>

When the function has two arrays to return
Posted by rodri rodri via DotNetMonster.com at 1/23/2005 6:53:45 PM
This function will return two values: using namespace System::Runtime::InteropServices; int function1([Out] int * value2); But how can I do that with arrays? I have tried with this, but 'array2' is returned empty: using namespace System::Runtime::InteropServices; int function1([Out...more >>

Problem with indexed pixel format/
Posted by jty202 at 1/23/2005 5:37:33 PM
I know alot of people have the problem with indexed pixel format. I hope someone can show me the solution to this.I am have problem with graphics with the following code giving the error: "A Graphics object cannot be created from an image that has an indexed pixel format." 'My code <%...more >>

Reference indirection with % confusion in c++/cli
Posted by Don Kim at 1/23/2005 4:04:41 PM
I have the following code: using namespace System; ref class R { public: R() { Console::WriteLine("In R"); } }; int main() { R ^r = gcnew R; Object ^o; //o = %r; //causes errors. o = r; o = gcnew R; } I wrote this to understand how ^ relates to %, as * re...more >>

LINK : fatal error LNK1201
Posted by Zak Williamson via .NET 247 at 1/23/2005 9:40:20 AM
We have an automated system that sync's to the head and does an= incremental build of our product (~350 projects) continuously=2E = Two of the projects on an intermittent basis report the error= "LINK : fatal error LNK1201: error writing to program database= 'ows\debug\XMPToolkitMTDLL=2Elib'...more >>

templates, C++, and LNK2019
Posted by Chris Burrger via .NET 247 at 1/23/2005 9:35:44 AM
I've found some other posts that deal with this linker error, but none of those solutions work for me. I just got VS.NET 2003 and I wanted to try it our with some basic algorithms. I am trying to make a singly linked list, using templates. I?ll post my code and then the error message at the end. ...more >>


DevelopmentNow Blog