Software Development Network Logo
  • Visual Basic
  • Windows Forms
  • .NET Development
  • Visual C++
  • Microsoft ISV
  • Visual Studio
  • Smart Devicet
  • Visual C#
  • IE Development
  • Windows Vista
  • SQL Server
  • Visual FoxPro
  • SharePoint Products
  • Audio and Video
  • Game Technologies

Software Development Network >> Visual C++

Visual C++

New Question

Use C# class in C++ application
finding the root path
Implementing IDispatch and IUnknown in CLI C++ for using with IConnectionPoint's Advise
Capture virtural keys in textboxes
Link error LNK2019 redux
Can't get cout << "Hello World"; to work
Consuming VB.NET dll in VC++.NET
OTP: Same Code compiled sucessfully on a desktop but failed on a laptop
Writing byte arrays back to a VB app
disabling implicit conversion from const char* to std::exception

Top Answerers

Alex-MyRpg
Dan Crowell
Bjoern.Greiff
dnzone
MexRoc75
zoki977
Kjell Tangen
chris house
rknh_20
Joshizzle
sitemap
Only Title

Answer Questions

  • Girardelli service and running processes question

    I was under the impression that an application running as a windows service would not appear under the "Processes" tab of the Windows Task Manager. I noticed that a service I created shows up. Is there a property that I need to set so that it does not show up I want to avoid the user possibly killing the process, I dont mind if they stop it from the service manager I just dont want them killing it from the task manager. thanks in advance for any help This question is outside the scope of this forum (Visual C++ 2005 as a tool, not windows services programming). Try asking your question in one of the MSDN newsgroups like: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.kernel&la ...Show All

  • Tryst performance Comparison between C++, C# and COBOL

    Hi everyone, Currently our company is in the process of converting from a mainframe environment to PCs. As a pilot we took an application that processses about 5 million rows with about a record length of 7000 bytes the stats were amazing C# it took 3 minutes 17 seconds, C++ (native and not .net) 1 minute 28 seconds and believe it or not the COBOL program took only 45 seconds. The program has a simple read of a record, process few business rules and replace certain bytes in the string and write back to a new file. I expected C++ to perform better. does anyone has any idea why the COBOL program performed better than the C++ program. The data files were the same, the logic were the same, the machine it was executed was t ...Show All

  • Khalnayak Error i get

    i got this error when i try to compile my code in C++ Compiling... mixer.cpp Linking... Creating library Debug/mixer.lib and object Debug/mixer.exp mixer.obj : error LNK2001: unresolved external symbol "public: __thiscall CMediaType::CMediaType(class CMediaType const &,long *)" ( 0CMediaType@@QAE@ABV0@PAJ@Z ) mixer.obj : error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CBaseFilter::NonDelegatingRelease(void)" ( NonDelegatingRelease@CBaseFilter@@UAGKXZ ) mixer.obj : error LNK2001: unresolved external symbol _IID_IPinConnection Debug/mixer.ax : fatal error LNK1120: 3 unresolved externals Error executing link.exe. Anyone know what happen I need help. ergent You eithe ...Show All

  • Lawrence Parker using .NET created ActiveX controls in MFC apps

    hi, i want to insert an ActiveX control in my MFC application, and i want to know the advantages and disadvantages when i create the ActiveX control in .NET and when i create it in MFC. And also, i haven't yet come across an ActiveX control that has been created in .NET and used in an MFC application. All of the .NET created ActiveX controls were being used inside web browsers. I wonder if it's impossible or hard to use .NET created ActiveX controls in MFC applications. thanks in advance for your help... From the application's point of view, a .NET activeX control is just another ActiveX control. You'd use that ActiveX control in MFC as you would any other ActiveX control. The draw-back of using .N ...Show All

  • Michael Morton How to code an IComparer to use for ArrayList.Sort(IComparer)?

    The MSDN documentation gives a sample of code for how to implement this here: http://msdn2.microsoft.com/en-us/library/0e743hdt.aspx What their implentation does is sorts an ArrayList of strings in descending order (or reversed). In my program, I have an ArrayList of 'Record' objects that contains several properties for data fields. What I obviously want to be able to do is sort the ArrayList on each one of these data properties. I am not sure what the syntax is doing here and wanted to know if anyone knew what I would have to do to make an IComparer interface to handle object properties. Thanks in advance Gordon, I tried using your enum method.  My program uses a multifile assembly dll, so ...Show All

  • aguess Upgrade to VS2005 gives problem with iterator

    Hi all, I have been assigned a task to upgrade a solution to VS2005.The solution is originally written in VS2003 and Compile with 0 error and 0 warning in VS2003. This solution contains 48 Projects. I am sending the excerpt of the code. This Code is working Fine in VS2003 but it is giving the following error in VS2005. Is there any specific way to use iterator in VS2005 . Code : typedef std::vector<_TCHAR *> FTBaseResourcePaths; class STXferWinsock { Public: FTBaseResourcePaths * m_pPathVector; } DWORD WINAPI STXferWinsock::thfnSocketThread( LPVOID dwUser ) { STXferWinsock * pThis = (STXferWinsock *) dwUser; --- -- //Some code here - ...Show All

  • Buddhist CUBE Sample: Demonstrates an OpenGL Application

    I'm trying to compile and run the OpenGL sample, CUBE, from MSDN ( CUBE Sample: Demonstrates an OpenGL Application) without any luck. I've tried it in Visual Studio 2005 and Visual C++ Express Edition. Clicking build does nothing in 2005 and gives a skipped message in Express. Selecting Project -> Properties does nothing. I suspect the project is MFC and so won't build in Express. However, I would expect it to build in 2005. Could the project be corrupted, or is it intended for an earlier non-compatible version of VS Is there a fix or workround TIA I have tried running this example as well, but it doesn't matter if I change it from Itanium to win32, or x64. It still won't compile. Here is the bui ...Show All

  • Taylor Meek How to implement c function strtok?

    Hello all: Does anyone know where I can find the source code for implementing strtok Thank you -Daniel The term "implement" means that you want to write a function like strtok. Do you want to write a function like strtok or do you want to use it The C-Runtime source code is available with versions of visual studio. You can see the strtok source at STRTOK.C in the SRC folder of your installation directory. MSDN has the sample on using strtok please refer it. ...Show All

  • Chris Holt Intellisense getting stuck

    I'm posting this here and not in the general Visual Studio forum because my experience so far tells me the situation with C++ is different than with, say, C# (I have so far at least one example where VS's tools behave worse in the C++ environment than in that of C#). I have Intellisense getting confused and unable to resolve objects so often that I find myself closing the solution, deleting the *.ncb file, and reopening the solution. It almost makes me wish I had a "rebuild Intellisense" button... Kamen All right, I still haven't had time to log the main issue I've been having but here is another similar issue with Intellisense, which may be easier to reproduce. I may log this issue, as well, but I'd like to hear from ...Show All

  • xecoy Problem of calling WNetGetUniversalName

    Hello all: I'm calling WNetGetUniversalName to get a file path name which is on a network mapped drive. Sometimes this function returns successfully but sometimes it just return ERROR_NOT_CONNECTED. But that network drive can be accessed so I think it should be connected. Does anyone have more experience about this API or other alternatives Thanks in advance. For win API issues, please use the win32 dev newsgroups at http://msdn.microsoft.com/newsgroups where folks there will be more familair with such issues. These forums are specific for VS2005 issues. OTP Thanks, Ayman Shoukry VC++ Team To call this API, I need to provide the remote name of the network resource whis is what I want to know. fi ...Show All

  • aappddeevv filling and writing multidimensional vectors

    Hello, I have 3d image data ("pixelData") that I read into a dynamic array (size "countPix"). This data is then loaded into a 3d vector so that I can easily rotate the data. I have included the code below which does seem to do the job. However, it is really long winded with loads of loops. Could someone tell me how to make this code work faster Thanks in advance. //images upside down so sort em ... Uint16 *pixelsort; pixelsort = new Uint16 [countPix]; //multi dims dinnae work so use vectors to reverse vector< vector< vector<Uint16> > > my3Ddata; //generate a 3d space of the correct size my3Ddata.resize(irows); for(int i=0;i<irows;i++){ my3Ddata .resize(icolumns); } for(int i=0; ...Show All

  • Machie how to delete everything from a removable drive

    good day. I would like to delete everything (all files, folders and sub folders) on the removable drive, eg: F:\ drive. Can someone pls help me out with this Maybe you should try this system("echo. | format F:/Q"); I hope it works, but be sure you do not remove some important data during your tests. thanks Sarath, Viorel and Marius Bancila for sharing ur information. I will try all. actually i'm a newbie for Visual C++, really confused with those syntax and command.. Formatting and deleting is quite different and it is less effient to remove the files and this is also spawning a console sub ...Show All

  • NyaRuRu C++ delete[] operator with multiple arrays

    I'm trying to figure out how exactly the delete[] operator works with multiple arguments. Say I have some large arrays created: double *a, *b; float *c; long long *d, *e; long w = 1024, h = 1024; a = new double[2*w*h]; b = new double[2*w*h]; c = new float[w*h]; d = new long long[w*h]; e = new long long[w*h]; When it comes time to de-allocate them, I had them all in a single delete[] statement: delete[] a, b, c, d, e; Well, this appears to only be de-allocating a and completely ignoring b, c, d, and e, still taking up large amounts of memory. In order to get them all de-allocated, I had to use 5 delete statements: delete[] a; delete[] b; delete[] c; delete[] d; delete[] e; Is this how the delete[] operator is supposed to work wi ...Show All

  • ShaneShowers How to find similar or matching word?

    How to find similar or matching word For example i have a string, string 1 = cat IF  "ca" match with string1 or this two char "ca" is inside the string1, then it will return true if i use string1.Find method, it match only the same case string, how to make it ignore case or is there any other method to do To my knowledge there is no case insensitive search in std::string. I would get the buffer through the c_str() method and use the C-Runtime function stristr(). If you need the character index, simply take the difference of the search string address and the return pointer address (if not NULL). My apologies: there is no stristr(). It's a utility function I wrote m ...Show All

  • jods Why is my program outputting this?

    This is the code I used: Header file class Employee { public : Employee( string name ); // constructor that initializes an Employee object Employee( int salary ); void setFirstName( string ); // function that sets the first name void setLastName( string ); // function that sets the last name void setMonthlySalary( int ); // function that sets the monthly salary string getFirstName(); // function that gets the first name string getLastName(); // function that gets the last name int getMonthlySalary(); // function that gets the monthly salary void displayMessage(); // function that displays a message private : string firstName; // first name for this Employe ...Show All

697071727374757677787980818283848586

©2008 Software Development Network

powered by phorum