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 8 - 14, 2004

Filter by week: 1 2 3 4

what could cause a 'warning LNK4020'?
Posted by Gabest at 2/14/2004 7:15:43 PM
After adding one more lib to my project, I keep getting this warning from the linker (twice): warning LNK4020: a type record in '<snip>\debug\vc70.pdb' is corrupted; some symbols and types may not be accessible from the debugger Any idea how to fix it? ...more >>


How to link to older C code without IDL conflicts?
Posted by TOM at 2/14/2004 10:42:06 AM
I am using C++.NET 2003. The appplication requires calling a device (a USB driver) that was compiled under C++ 6.0, and distributed as a binary (a .sys file) by the manufacturer. Some of the data structures are fairly complex, and a couple header files from the Windows DDK are needed to establis...more >>

File saving
Posted by Randy_Vanderputte NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/14/2004 4:37:21 AM
I've used the Save as-dialog, but I don't know how to set it on the right disk or file type. Now the path is c:\Documents and settings\mydocuments but I want c:\Project and only the .mdb files thx Posted Via Usenet.com Premium Usenet Newsgroup Services -------------------------------...more >>

Who knows...???
Posted by Bonj at 2/14/2004 2:34:20 AM
What is the resolution of the warning: cast from integer to pointer of different size on passing any parameter to the last LPVOID of CreateWindow ?? Thanks ...more >>

ICE with template function pointer
Posted by Drew at 2/13/2004 3:44:34 PM
VS.NET 2003 V7.1.3088 - Unmanaged code I'm getting: c:\Proj\pt.h(581) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information P...more >>

CLI Whidbey
Posted by Peter Evans at 2/13/2004 3:01:07 PM
I have just stumbled on the proposal for the new CLI dialect for use with a future version of the visual C++ product Does anyone have timeline details for when an alpha from Microsoft will be available for experimentation Since, I've avoided the managed C++ dialect up until now, I'd rather not ...more >>

How to find reliable offshore (India) programming shop? (this is not a spam)
Posted by Bret Pehrson at 2/13/2004 12:36:06 PM
This message isn't spam or an advertisement or trolling. I'm considering farming some of my application development to offshore shops (I'm in the US). I have absolutely *no* experience w/ this, and therefore I'm looking for comments, suggestions, etc. on how to go about this w/o getting screw...more >>

Automatically increment version resource
Posted by Bob Altman at 2/13/2004 12:05:25 PM
Hi all, Is there any way in an unmanaged C++ project to have the FILEVERSION property in the version resource automatically get a larger value each time I rebuild my project? ...more >>



CString::AllocSysString() needs to be free'd?
Posted by Anders Eriksson at 2/13/2004 11:56:43 AM
Hello! I'm using VC++ 7.0 (.net 2002) and MFC. I have a function (foo) that uses a CString variable (strCommand) as a parameter. foo is accessing a database via ADO. Among the code is this: pCommand->put_CommandText(strCommand.AllocSysString()); Do I need to free the memory allocated ...more >>

Returning char* / System.String array from unmanaged c++ dll into a c# application
Posted by Mark Ingram at 2/13/2004 11:14:54 AM
Hi, how can i return an array of strings from an unmanaged c++ dll into a c# application? cheers Mark ...more >>

send() return -1 - Console application
Posted by Cesario Simoes at 2/13/2004 6:01:10 AM
I´m programming with Visual C++ since 1995. I have developed many client and server Windows applications using sockets and MFC. Now I need a Console Application to convert in a NT service and I´m sliding: I wrote a serverapplication and it accept connection from the cliente but, when it try to sen...more >>

Testing... where did my question go?
Posted by Greg at 2/12/2004 6:51:07 PM
So I typed a question and It doesn't show on the board :-(...more >>

Difference in Optimizing between Standard and Profesional
Posted by Greg at 2/12/2004 6:41:05 PM
A release configuration in the standard edition of C++ .NET 2003 says "Maximize Speed (/02)". Does anyone know how that compares with the optimizing capabilities of the Profesional edition?...more >>

Outsourcing - Sending IT/programming jobs to foriegn countries
Posted by JOHN at 2/12/2004 11:41:06 AM
Recently I read an article in a magazine called "Wired," I think that's what it's called. Well, The article is about a problem programmers might have in the future. They found a way to reduce expenses by replacing high paid programmers to lower paid Indian programmers...more >>

How to: Disable Alt + Ctrl + Del in Windows 2000.
Posted by Mark at 2/12/2004 6:22:09 AM
Any Visual C++ source code available for disabling the following keys in windows 2000. Alt + Ctrl + Del Ctrl + Esc Windows Key to Remove task bar Function keys (or Alt + Function keys or Ctrl + function keys) disabling the Right mouse Basically the system needs high security as it is ava...more >>

How to grab a video stream from an IP-address?
Posted by K.H. at 2/12/2004 5:16:07 AM
Hi Does anyone know how I can grab a video stream from an IP-address? There's a video web server for live image transmission in the Internet. Data transfer is accomplished via TCP/IP. The web cam that I am using is integrated into a network with fixed IP address. The streaming software is already...more >>

Need a cloning smart pointer
Posted by Hendrik Schober at 2/11/2004 10:51:24 PM
Hi, I need something like this: class X { private: struct Impl_ { virtual ~Impl_() {} virtual Impl_* clone() const = 0; }; Impl_* impl_; public: // ... }; 'X' should have value semantics, so '*impl_' must be cloned when 'X' is co...more >>

pc.h header file help
Posted by zhaozhong at 2/11/2004 10:41:06 PM
Hi! I'm doing my final year project in University and I'm currently trying to program my parallel port, but I cannot seem to compile because there isn't a pc.h header file. Is there any way I can download this header file? I'm using Windows XP as my OS, would the security rings interfere with me...more >>

[Emergency!] How to set system default language by code?
Posted by WizardLee at 2/11/2004 9:43:31 PM
Hi, all, A new feature is required to add to my program today. But I do not have any idea about it. The feature should implement these two functions: 1, Select "Install files for East Asia languages" in control panel applet "Regional and Language Option" in "Language" tabpage, then ap...more >>

Getting it off my chest: debugging in vc++ under dotnet
Posted by Craig at 2/11/2004 8:12:47 PM
I started this week recomipling all our projects under vc++7 which is ok by me. most of it worked fine and what the compiler spat out was quickly fixed without too much bother. Then came a service. Now this services works a treat under vc++6. under vc++7 it runs but completely skips over the m...more >>

Premature .dll loading caused by "Project Dependencies" options
Posted by Eric Hirst at 2/11/2004 3:59:54 PM
I have a Visual Studio Solution .sln which contains multiple projects, including an ODBC driver .dll and a client .exe. The client .exe is a simple MFC query tool. Nothing I can find in the client references the driver directly. It uses a connection string to access the driver, and does not p...more >>

DLL Problem
Posted by woleksy NO[at]SPAM stmarys-ca-dot-edu.no-spam.invalid at 2/11/2004 3:24:56 PM
I am writing some OpenGL programs using GLUT as my windowing interface, Every time I try to run my programs I can compile them but then get the error application has failed to start because glut32.dll was not found glut32.dll is in the bin folder for vc7 in my visual studio dot net folder s...more >>

operating system
Posted by viper7 at 2/11/2004 12:26:09 PM
Can I run the c++ compiler on the operating system that I have.. Windows nt 4 ser.pack 6a.. I understan that the compiled programs will run on my system.. I need to know if anyone is using the compile on my type of operating system....more >>

Use SQL statement with ADODB.Recordset in VC++
Posted by vivajuve9999 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/11/2004 11:32:30 AM
Hi everybody I am a newcomer in VC++ developement I work VC with Oracle database I want to manipulate the database with ADODB After connected , i do as follow: ------------------------ recordset->Open("INSERT INTO other_info(card_id) VALUES (200)",connection.GetInterfacePtr(),adOpenForw...more >>

Too many relative include directories in VC2003?
Posted by kwijibo NO[at]SPAM ananzi.co.za at 2/11/2004 8:30:32 AM
Hi, I received a big fat package of source code developed with Metrowerks CodeWarrior and now I am trying to convert this project to VC.NET 2003. My problem is, that in order to compile I have to add around 70 additional include directories to the project's compiler settings. Each of these pa...more >>

Beginner Programmers
Posted by Jay at 2/11/2004 7:05:35 AM
I am an instructor at a technical college. My task is to bring the ciriculum up to .NET. I would like some suggestions on what class to teach to beginner programmers as the first class. We are currently teaching C++ console mode (functional based). We then move into object oriented based (st...more >>

delayload as pragma: fixed in Whidbey?
Posted by Stefan Slapeta at 2/11/2004 12:21:20 AM
The following linker directive #pragma comment (linker, "/delayload:xy.dll") which was valid in VC 6 produces just a warning in VC 7.1 (though the directive is ok, IMO). Is this fixed in the Whidbey release? br, Stefan...more >>

Memory leakage !!
Posted by Sirria at 2/10/2004 5:00:50 PM
I have placed MS comm control on Test dialog, While initiate the dialog it is occupying around 2MB space, I am unable to free this space. I am giving the snippets of the code. MSComm m_ctlComm; m_ctlComm.SetCommPort(1); m_ctlComm.SetInBufferSize(1024); m_ctlComm.SetOutBufferSize(512); ...more >>

VC code !!
Posted by Andry at 2/10/2004 4:55:40 PM
Hi I have an issue with the VC++ code. I have a code in VBA that I am running in VC++. But there is a difference in the result of the two. Following are the details of problem: The result value, "sum", of the following expression does not tally with that from the VBA code in the LU_Decompo...more >>

Help with RC file from beginner- don't know where to start
Posted by VM at 2/10/2004 4:16:53 PM
I'm trying to find the code that's executed when a button in a dialog is pushed. In my AppMaster.rc file, I have a Dialog folder with IDD_DIALOGBAR1 and IDD_DIALOGBAR2 . When I click on IDD_DIALOGBAR1, I can see that it has a button with text "Accept". If I view the rc file through a text ...more >>

Multi-threaded overlapped serial I/O in Visual C++ problems...
Posted by rmnowick at 2/10/2004 12:11:08 PM
I have been having a problem with multi-threaded reading and writing over a serial port from Visual C++. The details can be found in a sort of log I created on the site where I found the source code that I used as a starting point. If you go to the following page and scroll down to the botton there ...more >>

Calling C++ Functions
Posted by Steven Livingstone at 2/10/2004 11:53:24 AM
If I was using C# and wanted to call the printf function what would I do? Specifically i want to convert a string to octal and as there is no facility for doing this in C# i figured i'd look at using C++. Even better would be a function that returns me a string or char array to C# when i call C...more >>

Catch in unmamaged code won't link
Posted by Bret Pehrson at 2/10/2004 11:05:53 AM
Try this one on for size: // Managed C++ Project/code #pragma unmanaged struct S { }; void Func() { try { } catch (S * s) { } } #pragma managed When compiled, produces the following: LINK : error LNK2020: unresolved token (0A000013) ??_7type_info@@6B@ Poking aro...more >>

handle/reference?
Posted by Bonj at 2/10/2004 6:36:08 AM
Specifically, is there any difference between usin void MyFunction(const HANDLE myhandle an void MyFunction(const HANDLE& myhandleref ?? is the latter likely to cause problems (such as I have experienced with HANDLE pointers used in this way ...more >>

function parameters/reference?
Posted by Bonj at 2/10/2004 6:31:08 AM
What is the difference between void MyFunction(int& param1){... void MyFunction(const int& param1){... void MyFunction(const int param1){... Can you also use the 'reference to' operator with handles (and them still work lik void MyFunction(const HINSTANCE& hInst){...}...more >>

Constructor return value?
Posted by Bonj at 2/10/2004 6:16:06 AM
OK I know a constructor can't have a return value but is it feasible such that I have a class whereby //in MyClass1. class MyClass MyClass1(){} ~MyClass1(){} MyClass1(int & Result) {Result = InitMyClass()} int InitMyClass() //in main.cp int main( int result MyClass the...more >>

Visual C++ Upgrades
Posted by Paul Daynes at 2/10/2004 4:36:06 AM
Ive been using VC++ 6.0 for some time now, but I suspect the libraries are out of date fo applications running under Win XP and Win 2000 How do I upgrade this product or get latest libraries and/or include files ????...more >>

Visual .NET c# design view is showing "?????" for foreign language characters.
Posted by jkim65 NO[at]SPAM socal.rr.com at 2/9/2004 10:18:32 PM
Visual .NET c# design view is showing "?????" for all the Korean characters in design view. In code view, it looks okay. Did anybody have this kind of problem with foreign characters?...more >>

Problems with types. Why changes to __gc*?????????
Posted by Gueverson at 2/9/2004 5:41:05 PM
Hello, I am new in programming smart cards and I got an error in compiling that I cannnot manage to get rid of. There is a function in the PCSC that is called "ScardEstablishContext" I am calling this function as SCARDCONTEXT hSC; //SCARDCONTEXT=unsigned long hResult=ScardEstablishContext(SCAR...more >>

linking problem
Posted by woleksy NO[at]SPAM stmarys-ca-dot-edu.no-spam.invalid at 2/9/2004 5:29:55 PM
I am making a simple triangle using glut in a win32 app and am getting an error The error is this Linking... LIBCD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup Debug/glutpro.exe : fatal error LNK1120: 1 unresolved extern...more >>

how to programme to encode CD audio format data to WMA?
Posted by zhaopzhi at 2/9/2004 5:21:07 PM
In VC6.0, how to programme to encode CD audio track to WMA? Hint is ok My mailbox is zhpzh0429@eyou.com Thank you for any helps!! ...more >>

Defect passing const lvalues by-value
Posted by Stefan Slapeta at 2/9/2004 4:34:29 PM
Hi, please could anybody check if this defect is fixed in whidbey? struct X { X() {} X(X& x) {} template <typename T> X(T& x) { } }; void sink(X) {} int main() { X const const_x; X a(const_x); // works! sink(const_x); // doesn't compile! } // ------------...more >>

unresolved token!!!
Posted by Bret Pehrson at 2/9/2004 3:55:11 PM
Ok, here is a real *nice* one... Fortunately, I didn't waste too much time on this one, but a real piece of crap to say the least: Try out this piece of code (managed C++): //begin code class ManagedCPPException { }; __gc class ClassManagedCPP { void DoException() { throw new M...more >>

Mixed-mode and "non-default" app domains
Posted by Bern McCarty at 2/9/2004 2:45:05 PM
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I cannot load/unload/reload extensions into my large and slow-to-load application during development wit...more >>

adding/modifying code of dialog in RC file
Posted by VM at 2/9/2004 2:24:08 PM
Under my myApp.rc file, and under the Dialog folder, I have a Dialog named IDD_DIALOGBAR13 with several buttons. How can I modify the code in these buttons? thanks. ...more >>

GlobalAddAtomW in CreateProcessW crashes in VC7 works fine in VC6
Posted by kostia_greb NO[at]SPAM yahoo.com at 2/9/2004 1:33:24 PM
Hello, Switched from VC6 to VC7 and CreateProcess started giving access violation inside KERNEL32.DLL!GlobalAddAtomW() + 0x1d KERNEL32.DLL!CreateProcessW() + 0x2a ..... Anybody had similar problems? Anybody can suggest what it could be? Linking seems to be OK. I know it is very litt...more >>

Urgent! Problem debugging application - error: Directory is not a valid working directory.
Posted by VM at 2/9/2004 1:09:55 PM
I'm trying to debug an application in the VC dot net compiler and when I begin, I get the error: Unable to start debugging Unable to start program 'c:\myApp\PROGRAM\myApp.exe' 'G:\Program Files\...\myApp\PROGRAM' is not a valid working directory. I know the directory 'G:\...\PROGRAM' does n...more >>

DrawTextEx does not work
Posted by Steve at 2/9/2004 1:01:05 PM
I have a small rectangle into which I want to display a maximum of 2 lines of text. If the text overflows that second line I want to display the ellipse at the end. The problem is the text drawing functions don't draw an ellipse at the end of the text when the text is displayed on two lines, so I ...more >>

How to embed any resource in ready EXE..
Posted by Jigar Mehta at 2/9/2004 12:44:21 PM
Hye, Does anybody of you know, how to embed any resource or code (e.g. ICON or BMP) to a ready EXE file whose code does not exist... And another question, how to get the list of resources used by one EXE and name of the resource without opening the code of the file... Any sugges...more >>

Combobox-problem
Posted by Randy_Vanderputte NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/9/2004 9:25:19 AM
Hello, I've been trying all day to add some Strings to a combobox. But it doesn't seem to work. So I beg you for some help! This is what I did: void CBPLCgeneratorDlg::OnCbnSelchangeCmdname() { extern Ccombo* cmdname; cmdname.AddString("Test"); } cmdname is the variable of my combo...more >>

Parameter Input
Posted by ande0621 NO[at]SPAM tc.umn-dot-edu.no-spam.invalid at 2/9/2004 9:25:17 AM
I have just downloaded some code for a class that I am in. I know that the code works and I have no problems building the code. However I also know that the code requires some input parameters. Main requires 3 parameters or the program won't run, and I know what the parameters are. My proble...more >>

Problem with refreshing the window
Posted by borhan NO[at]SPAM boun.edu-dot-tr.no-spam.invalid at 2/9/2004 9:25:14 AM
Hi, I am coding a drawing application, where you draw freely on a form. My problem is, when ever the form is painted [ a window overlaps my window or for is resized ] the drawn shapes are deleted. I hope that windows forms would handle this but it didn't. Now what should I do ? Note: As the...more >>

Convert System::String* to char*
Posted by Yifan at 2/9/2004 9:16:05 AM
Hi Does anybody know how to convert System::String* to char*? I searched the System::String class members and did not find any. Thanks Yifan...more >>

What project property controls the setting of '/RTC1' option?
Posted by Yifan at 2/9/2004 9:11:13 AM
Hi Could any one tell me what project property controls the setting of '/RTC1' option? Now I have a project which has this build error "Command line error D2016 : '/RTC1' and '/clr' command-line options are incompatible". But when I view the .vcproj file, I cannot find the '/RTC1' option Thanks ...more >>

Debugging nested typed template smart pointers function address in Friend MFC class
Posted by Bonj at 2/9/2004 7:46:10 AM
Very sorry but this is *actually* another question about COMPILERS, I just put that title as bait, but HANG ON! this is the last one honestly Very simply Is there ANY way you can *download* an optimizing compiler for free (And that *includes* non-MS ones if the download portion of their websit...more >>

Using BinaryReader with a structure
Posted by JimM at 2/8/2004 3:06:08 PM
I'm trying to read a file into a structure, called LogFile, but the compilier issues error message: error C2228: left of '.ReadBytes' must have class/struct/union typ Can anyone spot what is wrong with this declaration Thanks Ji int LoadLog(char * path struct dumpD // format of the d...more >>

App doesn't show (sometimes)
Posted by com2repair NO[at]SPAM yahoo.com at 2/8/2004 8:23:22 AM
I'm using Visual Studio .NET to make a C++ DirectX application. My problem is that sometimes when I hit RUN, the application begin loading but doesn't show on the desktop, almost as if I had set the Visible attribute to False. It isn't the code because to make it show all I have to do is hit STO...more >>

.net "split" function equivalent
Posted by Sam Johnson at 2/8/2004 1:41:05 AM
Hi I've seen that the string classes in the .net framework have a cool (new?) function: splitting strings and returning the substrings in an array. Is there any equivalent to this in "old-style" MFC C++? Thanks Sam...more >>


DevelopmentNow Blog