Click here to Skip to main content
15,928,111 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Threads... Pin
James T. Johnson24-Aug-02 17:58
James T. Johnson24-Aug-02 17:58 
GeneralRe: Threads... Pin
Philip Fitzsimons27-Aug-02 5:11
Philip Fitzsimons27-Aug-02 5:11 
GeneralVideo Conferencing using NetMeeting API Pin
Ashutosh Pandey23-Aug-02 21:52
Ashutosh Pandey23-Aug-02 21:52 
GeneralRe: Video Conferencing using NetMeeting API Pin
Michael Mac28-Aug-02 2:29
Michael Mac28-Aug-02 2:29 
GeneralOne ore more types in the assembly unable to load Pin
User 2237022-Aug-02 17:42
User 2237022-Aug-02 17:42 
GeneralRe: One ore more types in the assembly unable to load Pin
James T. Johnson22-Aug-02 18:29
James T. Johnson22-Aug-02 18:29 
GeneralRecompile VC6 in .NET Pin
gharrison22-Aug-02 5:05
gharrison22-Aug-02 5:05 
GeneralRe: Recompile VC6 in .NET Pin
adamUK22-Aug-02 13:17
adamUK22-Aug-02 13:17 
The C++ compiler in .NET has some, er, features, which bring it much closer to the ANSI standard than VC6. This means that you have to be much more careful how you cast. in this case iterators to pointers.

Found the following note in the VC7 docs.

*************************************************************
Visual C++ Concepts: Porting and Upgrading

Some Iterators Are No Longer the Same as PointersSee Also
Breaking Changes in the Standard C++ Library
In some Standard C++ Library classes, iterators are no longer defined as pointer types.

The following sample compiled in Visual C++ 6.0, but fails on the indicated lines in the current version:

#include <string>
#include <vector>
#include <algorithm>

bool pred(int i) {
return true;
};

void main()
{
std::string str("test");
const char *pszstr = str.begin(); // LINE 8: INCORRECT
const char *pszStr2 = str.c_str(); // OK
const char *pszStr3 = &(*str.begin()); // OK

std::vector<int> v;
int *pint = std::remove_if(v.begin(), v.end(), pred); // LINE 13: INCORRECT
std::vector<int>::iterator iint = std::remove_if(v.begin(), v.end(), pred); // OK
}
*****************************************

hope this helps
Adam.

P.S. know what you mean about .net. Just installed it and 50% of my apps now crash Frown | :(


"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
Generalhelp me Pin
imran_rafique22-Aug-02 0:19
imran_rafique22-Aug-02 0:19 
GeneralMFC42.DLL in .NET Apps Pin
RichardEastes21-Aug-02 17:30
RichardEastes21-Aug-02 17:30 
GeneralRe: MFC42.DLL in .NET Apps Pin
Joel Lucsy22-Aug-02 14:58
Joel Lucsy22-Aug-02 14:58 
General.net on linux? and what languages supported Pin
timhuffam21-Aug-02 9:13
timhuffam21-Aug-02 9:13 
GeneralRe: .net on linux? and what languages supported Pin
Anonymous21-Aug-02 9:54
Anonymous21-Aug-02 9:54 
GeneralRe: .net on linux? and what languages supported Pin
timhuffam27-Aug-02 15:10
timhuffam27-Aug-02 15:10 
GeneralRe: .net on linux? and what languages supported Pin
Kevin McFarlane22-Aug-02 7:35
Kevin McFarlane22-Aug-02 7:35 
GeneralRetrieving web page content using C# Pin
Dave Stone21-Aug-02 3:48
Dave Stone21-Aug-02 3:48 
GeneralRe: Retrieving web page content using C# Pin
Dave Stone21-Aug-02 23:17
Dave Stone21-Aug-02 23:17 
GeneralRe: Retrieving web page content using C# Pin
Dave Stone22-Aug-02 22:37
Dave Stone22-Aug-02 22:37 
GeneralNetwork Printers Pin
Prabhakaar20-Aug-02 20:24
Prabhakaar20-Aug-02 20:24 
GeneralBeginner Q: No Outlining by default Pin
matthias s.19-Aug-02 10:57
matthias s.19-Aug-02 10:57 
GeneralRe: Beginner Q: No Outlining by default Pin
Richard Deeming19-Aug-02 23:33
mveRichard Deeming19-Aug-02 23:33 
GeneralThanx... Pin
matthias s.20-Aug-02 7:25
matthias s.20-Aug-02 7:25 
QuestionWindows Forms control in browser? Pin
Stan Shannon19-Aug-02 8:18
Stan Shannon19-Aug-02 8:18 
Questionkeyboard events and mouse events? Pin
imran_rafique19-Aug-02 1:29
imran_rafique19-Aug-02 1:29 
Generalplz solve mine problem Pin
imran_rafique19-Aug-02 0:30
imran_rafique19-Aug-02 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.