Answer Questions
Abdul Wasie Problem with templates
I am trying to write a template class for a simple double linked list. Posted below are the definitions. In the .cpp file I have the implementation. I know for certain that I am including the .h and .cpp files in the project, but I get an error when I try to build: error LNK2019: unresolved external symbol "public: __thiscall wcLinkedList<int>::~wcLinkedList<int>(void)" ( 1 $wcLinkedList@H@@QAE@XZ) referenced ...Show All
Ant19768341 spawning a 3rd party application from my application
Hi Ok - I know I can use various methods to start a 3rd party app such as system (yes I know it blocks), the spawn family, CreateProcess, winExec and ShellExecute. What I need to do is have a 3rd party application start either where I want it to on the screen and of a particular size or maximized in a window that I have created. I also know that you can specify dwx,dwy,dwxsize,dwysize in the STARTUPINFO struct passed to CreateProcess. I ca ...Show All
KCanterucci Memory error in loading DLL
Hi All, I have a program that reads DLL libraries but it fails with error code 1001 (i.e. Recursion too deep; the stack overflowed.). When I trace the program in debug mode of Visual Studio 2003, the exception is raised and the detail is shown as below. First-chance exception at 0x00359439 (msvcr71d.dll) in iChannelGateway.exe: 0xC0000005: Access violation writing location 0x00030ffc. The program breaks at the function _malloc_dbg() in ...Show All
PaulBSY How to replace a system call in a library?
I have an application, and I know a function f will be invoked which is local in a library l, and the library maybe a dll in my windows. now, I want to reimplement the function f and retain the others. and I have no source code of library l and the application, which means I can't recompile the application and the library. and, in my function f, I want to invoke the f function in library l. I am on platform win2000, and I want the pl ...Show All
Carl Brochu MSFT simple WinApi programm
Hi, Well, MY PROGRAMM: Winnie.cpp //------------------------------------ // winnie.cpp // (c) Bartosz Milewski, 1995 //------------------------------------ #include "winnie.h" // This is the entry point of every Windows program int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, char * cmdParam, int cmdShow) { char className [] = "Winnie" ; // Define a Window Class and register it under the name "Winnie" W ...Show All
spyders Different types of "New Project" ?
When creating a new Project, I have several different options as to what type of project I want, in Visual C++. I'm not sure as to which type of project is an usual one. I am going through this language using a book and so it doesn't go into detail, and doesn't specify anything about which type of project I shoulc create for compiling these programs .CLR, Win32 Console Applications, or empty project. I was wondering what each of them a ...Show All
ITBOB msvcrtd.dll not found
Hi!!!!I'm not sure if this is a .NET problem and I'm not even sure that this thread belongs here.But when I try to run a compiled debug config of a C++ program on VS.NET 2003, I get the message: msvcrtd.dll not found I searched the internet and found that is a common problem,but I can't find where to download the .dll file from.Do you know Or at least do you know how to overcome the problem Thank you, Ni ...Show All
Maturin How to delete a member function in VS2005 like in VC6?
In VC6, I can delete a member function by selecting the member function and select delete from pop-up menu, after that, both the declaration & definition are deleted in .h & .cpp file. I like this function very much because it's very convenient. But now in VS2005, where is that function A possible solution here is to not use VS2005's built-in class modules. I'm not entirely sure though because I've never yet had to program a ...Show All
Robert Dunlop problem reading registry
Hi all I have a problem reading a registry key value : ret = RegQueryValueEx(hkey, L"SchemeName ", NULL, &type, (LPBYTE)data, &len); this code returns ERROR_SUCCESS; however data always contains only the first letter of the value ... len = 512, data is declared as char[512]; I suspect the problem comes from a mismatch between UNICODE and ASCII but I don't know how to work this out. Can anyone help Thanks Emmanuel ...Show All
Mark Gambo waveInReset halts program
When calling waveInReset ( multimedia API), in order to stop recording and return all queued buffers, the program halts. No wave functions are called from within the wave-in callback function, which could be the reason for a deadlock. In fact, after waveInReset is called, the wave-in callback is not called at all, which is weird, because the callback should be called for every queued buffer which was sent using waveInAddBuffer. What cou ...Show All
MichealCollins difference between vs6.0 and vs2005
hai, I am Manas from india.i am learning VC++ 6.0. i would like to make a career in vc++ product development.i heard that microsoft stopped giving certification in Visual Studio 6.0. So is it useful to learn vc++6.0 now or should i shift to Visual Studio 2005 from VS 6.0 . i would like to know the difference between these two. plz help me. Adding to what Ted has said... If you are learning MFC, most ...Show All
Jeeva_mega Rationale for C++/CLI Value Types not having a default constructor
Given value class X { public: // Not allowed: X():i(100000),s(10000) { } // Allowed void InitializeDefaults() { i = 100000; s = 10000; } private: int i; short s; } How can: 1) X x; x.InitializeDefaults(); be better semantically than 2) X x; for setting the default values of 100000 for i and 10000 for s In other words what is the rationale for removing the natural user-defined default constructor for value types and forcing the user to default co ...Show All
Phil RCM is there a better way ?
I'm new to C++.NET & for the 2 or 3 applications I've written that have used .lib files, I explicitly add them into Linker >> Input>> Additional Dependencies & type in the path for my computer. Thus works fine, but every time I transfer the application to another computer & I need to open up the project & chnage the path. Is there a better way to include the lib files regards, ak ...Show All
Ajay Suri Norton Windoctor found the following 2 errors and is unable to fix them
"C:\WINDOWS\$NtUninstallKB898458$\ORUN32.EXE" cannot access a necessary file, "learn32.dll." "C:\WINDOWS\$NtUninstallKB898458$\ORUN32.EXE" cannot access a necessary file, "pctree32.dll." The program ORUN32.EXE may be part of Microsoft Interactive Training for Windows XP. Or it may be part of another program that is causing the error message. What 2 do Hello, I have the same problem today, and it was difficult ...Show All
Dave Mehl Dump files and obtaining stack information
Hi All, Im trying to read a mini dump file using MiniDumpReadDumpStream, which successfully works, and want to know how to obtain stack information that is contained within this file. Ive found StackWalk64, which requires a handle to a process and thread to be passed in - how can this be obtained from the dump file If anyone has any examples - it would much be appreciated. Thanks Yes! So is my kno ...Show All
