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 > august 2003 > threads for august 22 - 28, 2003

Filter by week: 1 2 3 4 5

System::String to LPCSTR?
Posted by George Ter-Saakov at 8/28/2003 3:35:46 PM
How do i call from managed C++ function wich accepts LPCSTR? void AddName( System::String *sName ) { AddName( (LPCSTR) sName )); -- does not compile. } George. ...more >>


Templating
Posted by JL at 8/28/2003 2:25:45 PM
When trying to template a class where the class declaration is in a header file and the class specification is in the source file, I receive linking errors (Unresolved External Symbols... as if I have not defined the methods). When I put everything in one file, it all works beautifully......more >>

Text Editor Q : Table.ColumnSelect from VC6 in .NET
Posted by Michael G. Scott at 8/28/2003 12:07:45 PM
In VC6, I used Ctrl+Shift+F8 (Table.ColumnSelect) all the time, to select the characters in the same column locations in multiple rows all the time. This doesn't work in .NET, and I haven't found the replacement. Anyone know what that is? As an example, lets say I have the following lines...more >>

Migration to C++ 7.0
Posted by Markus Strauss at 8/28/2003 11:32:53 AM
First i need to tell you i am no C-Programer - i can only make some litle C changes to the code to meet our needs. Now i have the folowing problem. Our programm reads a SQL-String from the resources and gives this to the oledbCommand. This is the macro which worked fine with C++6.0: #define...more >>

Target 1.0 framework
Posted by Chad Silva at 8/28/2003 10:33:02 AM
Can I target the 1.0 framework from VC++ 2003? (been looking through help and on the newsgroups but can't find out how to do it in VC) Thanks Chad...more >>

Sink managed (DataTable) event from unmanaged class?
Posted by Bob Whiton at 8/28/2003 10:03:41 AM
I have an unmanaged class which has a member variable: gcroot<DataTable*> myDataTable; I would like to sink the RowDeleting event in my UNmanaged class. However, I can't declare an event handler in the unmanaged class because the types are managed (compiler error C3265). For example, I...more >>

Migration to VC7: CString problem
Posted by Ram Baruch at 8/28/2003 3:49:00 AM
Hi, In my company we're trying to migrate our application from vc6 to vc7. in one of our dlls we define the following class: class __declspec (dllexport) CExString : public CString { .... } and everything is ok until one of our functions, for example: void ExportCExStringFunc(...more >>

LNK2020 unresolved token error
Posted by baker_tony NO[at]SPAM hotmail.com at 8/28/2003 2:13:49 AM
Hi, If I 1) create a brand new Visual C++ Project -> Class Library (.Net) 2) in the stdafx.h file add #include <atlbase.h> I get the following errors: ------ Build started: Project: testATL, Configuration: Debug Win32 ------ Compiling... Stdafx.cpp Compiling... AssemblyInfo.cpp testAT...more >>



Visual C++ .NET compatability with Visual C++
Posted by Tristan Sehgal at 8/28/2003 2:08:46 AM
I am completley new to the .NET framework but have a good understanding of Visual C++. I am starting to develop a new class libary which other programmers can use in their applications. To do this in Visual C++, I'll be creating a DLL with exported classes. I would like to develop this c...more >>

newbie question
Posted by k_meier NO[at]SPAM engineer.com at 8/28/2003 1:49:03 AM
Hi All In order to learn C++, I want write a programm which plays back a wav file. I know some C and DSP programming. Could you give me a hint where to begin, possibly a sample programm. thanx...more >>

Intellisense not picking up these structs
Posted by Adam Clauss at 8/27/2003 6:30:18 PM
I have a few variables that I want declared as global. To accomplish this, I made the files globals.h and globals.cpp. In globals.h I have the declarations for the structs, and one variable actually defined. It is defined w/ the extern keyword. Then, in globals.cpp I actually define that ex...more >>

OnDraw again
Posted by rufus at 8/27/2003 4:59:07 PM
This is wierd. I have a single doc app. I create some buttons in the view OnDraw method. When I size my app window - the buttons disappear. But as soon as I click on any spot inside the window or the window frame they appear. What is going on here. I have tried everything. I have used WM_SIZ...more >>

operator = defined using template?
Posted by Ondrej Spanel at 8/27/2003 4:23:27 PM
I defined operator = using template member function for a template class. However compiler failed to recognize it is defined and created its own version (which was member-wise copy, and a result was disastrous and hard to debug bug, as pointer was copied). Adding explicit operator = helped. Se...more >>

Custom controls
Posted by Rob T at 8/27/2003 7:34:24 AM
Where are some good places to look for custom controls? I only know of code project, which has been very good. Rob ...more >>

problem with bool in unmanaged/managed interop
Posted by Ian at 8/26/2003 11:45:02 PM
When I have an unmanaged class (compiled without /clr or with #pragma unmanaged) with return type virtual bool, the return value always comes out true when called in managed code. Only happens with virtual and bool. Sample code below. Is anyone aware of a fix, workaround, etc? Sample C...more >>

VC6 COM Server EXE upgrade to VC7.1 - "Server Execution Failed" error coming from CoCreateInstance
Posted by Bill Davidson at 8/26/2003 9:20:35 PM
All: I recently upgraded a VC++6 COM Server Exe project to VC++7.1 (w/ the latest PSDK). After a couple of minor hurdles, I got the project to compile and self-register. Unfortunately, when I tried to call into the server from either a VB6 or a VC6 test client, an error occurs at object cr...more >>

Window Position
Posted by insomniac at 8/26/2003 5:24:34 PM
Does anyone have a code snippet that retrieves a windows coordinates within the desktop? I can't seem to get GetWindowPlacement() to work. And GetWindowRect returns 0,0 for the top,left corner, not the current position on the screen. Thanks. ...more >>

how to keep console window open
Posted by Bumbrlik at 8/26/2003 6:32:04 AM
When I spawn a console application from a another application of mine using _spawnl(_P_NOWAIT, my_program, ......), it opens a new console window but when it is finished the window is automatically closed. Is there any way I can keep the window open even after the program terminated (I w...more >>

unicode vs. ansi strings in WriteFile
Posted by Paul at 8/25/2003 4:30:00 PM
Hi, I am extending an existing MFC app to use Unicode (for a Japanese version of the interface elements). The app's purpose is to control a peripheral device through the serial port, and the device only understands ansi strings (in fact, I synthesize a character stream and send it as th...more >>

Calling a "Mixed mode" dll from c#
Posted by ron jacobs at 8/25/2003 1:44:15 PM
I have just implemented a "mixed mode" dll in VC++. I have implemented this dll in accordence with several articles found on the MSDN website including KB 814472. The crux of the problem is that when the dll is built with the \noentry linker option, I can not load the dll in a c# client....more >>

Any easy way to find functions that are not called
Posted by franklopez2000 NO[at]SPAM yahoo.com at 8/25/2003 1:26:04 PM
Question: Is there any way to use the Visual Studio .NET environment to easily identify C and C++ functions that are not called? If not, does anyone have any recommendations on some other software that I can quickly get my hands on to do this? Right now, I only need to do it once....more >>

Compiler Error C4277 in VS.NET 2003...
Posted by Dave Reed at 8/25/2003 10:13:57 AM
I'm getting this error: Script View.cpp(40) : warning C4277: imported item 'Homegazer::CoreLibrary::ScriptTable::_Deleted' exists as both data member and function member; data member ignored ScriptTable is a C# class with a constructor and some static members and "Script View.cpp" is...more >>

LNK 2019 with std::basic_ostream since switch form 2002 to 2003
Posted by Peter Meier at 8/25/2003 4:55:58 AM
Hello, linking external libraries, which linked perfectly under net 2002 bring up lots of unresolved external symbols for standard iostream calls: any idea what could cause that or how to fix that problem? Greeting Peter error LNK2019: unresolved external symbol "__declspec (dlli...more >>

Could I have some help wiht the DataLink: Brandon Bray
Posted by Burton Wilkins at 8/24/2003 9:15:30 PM
Dear Brandon: You sent me some advice before as to how get the DataLink working, but I = haven't been able to get your solution to compile: You sent me this: >Hi Burton, I was able to get the following code to compile: > #using <mscorlib.dll> > #using <adodb.dll> > #using <MSDASC.dll>...more >>

create worker thread in managed c++
Posted by Daylor at 8/24/2003 7:19:05 PM
hi. i have class foo. and 2 methods. X-method. Y-method. i want inside X method , to start worker thread (managed) of Y method. can i do it ,and how ? have a nice day. ...more >>

mixed-mode DLL: register corruption occurs when managed C++ calls unmanaged C++
Posted by Adam McKee at 8/24/2003 6:12:33 PM
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++ libraries. We are using managed C++ as a bridge between managed .NET code and unmanaged C++ code, which...more >>

MapViewOfFile...
Posted by Emmanuel Derriey at 8/24/2003 11:18:52 AM
Hi ! I have a problem with the MapViewOfFile API. I use this API to store data in files in my own database system management ; when I need to store new data, is the file is NOT large enought, I close the file, reopen and grow it (CreateFileMapping) and re-call MapViewOfFile (last argument is 0,...more >>

migrating COM from vc6 to vc++.net
Posted by Mohammad Bin Shahbaz at 8/24/2003 5:58:52 AM
If there is a COM component developed in vc6, can it be recompiled into vc++.net....more >>

Monitoring Internet usage
Posted by Pawan at 8/23/2003 1:29:13 PM
Hi, Currently I am have an assignment which has to have some functionality which enables internet usage of client computers from a server machine. Basically this is an upgradation that I have to write to an existing software for chain of Internet Cafes. Any pointer or resource where I can f...more >>

managed vs unmanaged C++
Posted by Bob Cummings at 8/23/2003 9:55:34 AM
Greetings everyone, Background: I am working on a project as an intern. When I went to my professor for some guidance, he suggested the design of the program was just about perfect for the new dotNET architecture. I looked at the frame work for dotNET and it does seem like it might be a...more >>

Dynamic and complex query(C#+sql server2000)
Posted by Joe at 8/23/2003 1:03:26 AM
Dear Friends, How do write the below dynamic update Query? I am new to this SQL Query.Its very very urgent requirements. If anyone knows please help me the below SQL query. I would appreciate any help. UpdateEmployee() FieldName datatYpe EmpName - string EmpNo - int Sex ...more >>

Can Managed C++ Use MFC Lib
Posted by apex at 8/22/2003 12:17:04 PM
Hi All: Can Windows Forms Application (.net) Use MFC class and Windows SDK API ? If can ,how to do ? Thanks in advance . ...more >>

The designer could not be shown for this file
Posted by Manmohan Gupta at 8/22/2003 11:48:44 AM
VS.Net 2003 Win2k Terminal Server SP4 When a create a new ASP.Net web service and try to open the web service code behind class in the designer by double clicking in Solution Explorer, I get this task item: The designer could not be shown for this file because none of the classes with...more >>

"MessageBoxA" error
Posted by Charlie NO[at]SPAM CBFC at 8/22/2003 11:20:16 AM
Hi: Using messagebox class, I'm getting error saying "MessageBoxA is not a class or namespace". I'm simply calling MessageBox class in a button event this so: private: System::Void button1_Click(System::Object * sender, System::EventArgs * e) { getExistingRace* per = new getExistingRac...more >>

TAPI (make A call)
Posted by ahmed fat-hi at 8/22/2003 10:00:17 AM
hi every body to make a call using TAPI i do the following: 1- initiate connectiion 2- Select an Address 3- make a call when i make a call i execute the function ITAddress::CreateCall the first parameter it takes is the distination address (BSTR bstrAddressToCall) bstrAddressToCall wi...more >>

Converting IntPtr to HWND
Posted by Alison Kakoschke at 8/22/2003 5:18:19 AM
I need to convert an IntPtr (as returned from the Form, get_Handle() method) to an HWND but can't find any information as to how it is done. I've tried everything I can think of and always seem to get an undefined value for the pHandle. HWND pHandle = (HWND)(void*)dataFormChild->get_Ha...more >>


DevelopmentNow Blog